Pages: [1]   Go Down
Author Topic: AS1130 So far, so good...  (Read 1973 times)
0 Members and 1 Guest are viewing this topic.
Southport UK
Offline Offline
Full Member
***
Karma: 1
Posts: 195
Been at it a long time...still learning every day.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This is the latest, fully documented version of my experiments with this chip.

I want to do all the controlling (post setup) using interrupts but can't at the moment seem to get a response from the IRQ pin.

I would much appreciate any comment from people working with this chip, especially re interrupts.

Anyway here's the Vid....
http://www.youtube.com/watch?v=oZlIEfT-95w&feature=youtu.be


...and the source code...

* AS1130_Frames_demo_diamonds.rar (5.01 KB - downloaded 53 times.)
Logged

Sponge.
I'm allowed to have it 'cos it's not sharp.

nr Bundaberg, Australia
Online Online
Tesla Member
***
Karma: 129
Posts: 8592
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
especially re interrupts.
You do a total of 6 I2C_write()s in the ISR which equates to a whole lot of Wire.XX calls, conventional wisdom says that you should not do too much in an ISR and I'd say that's too much.

That said it appears to be working well.

What's generating these interrupts?

______
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

Southport UK
Offline Offline
Full Member
***
Karma: 1
Posts: 195
Been at it a long time...still learning every day.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Rob, Thanks for the reply.

The ISR in the example is never called...and would not take that form if I ever get it working  smiley-red

I would do some clever bit manipulation and let the main() do the donkey work, especially as the AS1130 can run pretty much independently once it's got it's data.

The problem I am having is that the IRQ line on pin 11 should be pulled to VCC by a 4k7 resistor (datasheet fig 1) but is always around 0.05V whatever I do with the Interrupt bits.

I have 2 of these chips in working condition and both show the same characteristic - hence it must be me that's not doing something I should be (or doing something I shoudn't  smiley-mr-green)

If you've got one of these working I would appreciate your measurements etc. or any other input you have of course...

Cheers, Roy

PS Love your Nomad Vehicle.  smiley-cool
Logged

Sponge.
I'm allowed to have it 'cos it's not sharp.

Grand Blanc, MI, USA
Offline Offline
Faraday Member
**
Karma: 95
Posts: 4092
CODE is a mass noun and should not be used in the plural or with an indefinite article.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

AMS makes some interesting chips, has anyone (in the US) found good sources for them?
Logged

MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Southport UK
Offline Offline
Full Member
***
Karma: 1
Posts: 195
Been at it a long time...still learning every day.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Digi-Key do them but they are very expensive.  smiley-eek

How many do you need? I have received 6 free samples so far.... smiley-mr-green
Logged

Sponge.
I'm allowed to have it 'cos it's not sharp.

Grand Blanc, MI, USA
Offline Offline
Faraday Member
**
Karma: 95
Posts: 4092
CODE is a mass noun and should not be used in the plural or with an indefinite article.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Cool project, BTW. I did see the prices at Digi-Key smiley-eek  I don't have any specific requirements, just thinking about experimenting a bit. Actually more interested in the AS1106/07 which are MAX7219/21 replacements but will operate down to 2.7V.
Logged

MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Southport UK
Offline Offline
Full Member
***
Karma: 1
Posts: 195
Been at it a long time...still learning every day.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Sign up for samples and off you go.... smiley-mr-green
http://www.ams.com/eng/ICdirect-Buy-Online/Online-Shop
This is what I've had so far.

AS1130   6   132 LED driver with PWM   28   SSOP
AS5130   3   Magnetic Rotary Encoder with 8-bit Res   16   SSOP
AS1108   3   4-Digit LED Driver, Serially Interfaced   20   PDIP
AS1116   3   64 LED Driver with Detailed Error Detection   24   QSOP

The samples arrive very quickly.

I'll try the ones you suggest as well I think.
Logged

Sponge.
I'm allowed to have it 'cos it's not sharp.

nr Bundaberg, Australia
Online Online
Tesla Member
***
Karma: 129
Posts: 8592
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
The problem I am having is that the IRQ line on pin 11 should be pulled to VCC by a 4k7 resistor (datasheet fig 1) but is always around 0.05V whatever I do with the Interrupt bits.
Sounds like the interrupt is not being cleared despite your efforts.

Quote
If you've got one of these working I would appreciate your measurements etc.
I don't have one, but I think I'll get some samples, I was aware of them but never looked that close at their chips, they have some great offerings.

Quote
PS Love your Nomad Vehicle.
Not a bad old bomb eh?

______
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

Southport UK
Offline Offline
Full Member
***
Karma: 1
Posts: 195
Been at it a long time...still learning every day.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Rob,

Quote
Sounds like the interrupt is not being cleared despite your efforts.

What I don't understand is...if I read out the registers in the AS1130 they all make sense and show the settings I have sent via I2C and everything works fine but the Interrupt status register shows all 0s which means that no interrupt has occured. The IRQ pin is still pulled low somehow though.

By the way...it's the AS1130 which generates the IRQ after certain conditions occur (like a movie ending).

I would expect the pin which is connected to VDD (5V on Arduino) via a 4k7 resistor to be at 5V or thereabouts at power up or POR and it isn't for some reason. All other pins with pull-ups are working as expected.
« Last Edit: September 17, 2012, 10:53:22 am by Hexadec » Logged

Sponge.
I'm allowed to have it 'cos it's not sharp.

Danger Boy
Offline Offline
Edison Member
*
Karma: 14
Posts: 1108
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Digi-Key do them but they are very expensive.  smiley-eek

How many do you need? I have received 6 free samples so far.... smiley-mr-green

Damn, you have me beat.  I have 3 so far...
Logged

I have only come here seeking knowledge. Things they would not teach me of in college.

Southport UK
Offline Offline
Full Member
***
Karma: 1
Posts: 195
Been at it a long time...still learning every day.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Damn, you have me beat.  I have 3 so far...


You need more cheek.... smiley-razz

 smiley-grin smiley-grin
Logged

Sponge.
I'm allowed to have it 'cos it's not sharp.

Danger Boy
Offline Offline
Edison Member
*
Karma: 14
Posts: 1108
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Damn, you have me beat.  I have 3 so far...


You need more cheek.... smiley-razz

 smiley-grin smiley-grin

3x3 is the highest you can go with AMS.  I have only placed one order for this particular chip because I just learned about it.  I've actually done 3 3x3 samples with AMS so far.  So, 27 devices so far, just three of these.  smiley-mr-green

Trust me, I'm sufficiently cheeky.  The last ADC that I asked AD for was a $30 part at Digikey (qty 1).  I asked for two and got them.
« Last Edit: September 17, 2012, 03:34:07 pm by JoeN » Logged

I have only come here seeking knowledge. Things they would not teach me of in college.

Southport UK
Offline Offline
Full Member
***
Karma: 1
Posts: 195
Been at it a long time...still learning every day.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Trust me, I'm sufficiently cheeky.

Respect.... smiley-mr-green

I tend to only order what I will use but have been tempted a few times with Microchip samples  smiley-red


Oh well...they are billionaires and I'm not. smiley-cool
Logged

Sponge.
I'm allowed to have it 'cos it's not sharp.

0
Offline Offline
Newbie
*
Karma: 0
Posts: 27
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey guys, after looking at the datasheet, may I ask if this chip (AS1130) is a driver for a Charlieplexed type display array?
Logged

Southport UK
Offline Offline
Full Member
***
Karma: 1
Posts: 195
Been at it a long time...still learning every day.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It most certainly is...or at least a 'flavour' called crossplexing by ASM
Logged

Sponge.
I'm allowed to have it 'cos it's not sharp.

Pages: [1]   Go Up
Jump to: