Go Down

Topic: AS1130 So far, so good... (Read 2227 times) previous topic - next topic

Hexadec

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...
Sponge.
I'm allowed to have it 'cos it's not sharp.

Graynomad

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
Rob Gray aka the GRAYnomad www.robgray.com

Hexadec

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.  8)
Sponge.
I'm allowed to have it 'cos it's not sharp.

Jack Christensen

AMS makes some interesting chips, has anyone (in the US) found good sources for them?
MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Hexadec

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:
Sponge.
I'm allowed to have it 'cos it's not sharp.

Jack Christensen

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.
MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Hexadec

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.
Sponge.
I'm allowed to have it 'cos it's not sharp.

Graynomad

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
Rob Gray aka the GRAYnomad www.robgray.com

Hexadec

#8
Sep 17, 2012, 05:45 pm Last Edit: Sep 17, 2012, 05:53 pm by Hexadec Reason: 1
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.
Sponge.
I'm allowed to have it 'cos it's not sharp.

JoeN


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...
I have only come here seeking knowledge. Things they would not teach me of in college.

Hexadec

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



You need more cheek.... :P

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

JoeN

#11
Sep 17, 2012, 10:23 pm Last Edit: Sep 17, 2012, 10:34 pm by JoeN Reason: 1

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



You need more cheek.... :P

:D :D


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.
I have only come here seeking knowledge. Things they would not teach me of in college.

Hexadec

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. 8)
Sponge.
I'm allowed to have it 'cos it's not sharp.

Mike McLaren, K8LH

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

Hexadec

It most certainly is...or at least a 'flavour' called crossplexing by ASM
Sponge.
I'm allowed to have it 'cos it's not sharp.

Go Up