Hi all, this is my first post. I have been on the forums for some time now and usually find my answers in others posts. But not this time… I have been searching the net, here, and it appears the i2c tutorial is not what I need. This is my first i2c project.
I am trying to use an 18x to initialize a LM4970 (www.national.com/pf/LM/LM4970.html) with i2c.
I am using the Sparkfun’s breakout board
(http://www.sparkfun.com/datasheets/BreakoutBoards/LM4970-Breakout-Datasheet.pdf). Yes I am a RGB LED freak, love the 08M and the RGB LED.
I believe the I have the device properly hooked up to the 18x with 4k7 pullups (national reconmends 10k ???). I have the LM4970 ADJ pin low =0, I believe this what I need to do...
Sparkfun says they use this to “Start 0xF4 0x04 0x50 0x60 0xBF 0xF2 Stop” to test. These Hex numbers agree with the National data sheet BCD numbers for what I want to do, use the audio sync function of the LM4970.
According to the National’s data sheet F4 is the address and the rest is the data.
Here is couple of many variants I tried:
i2cslave $F4, i2cfast, i2cbyte
writei2c $F4, ($04, $50, $60, $BF, $F2)
Or
i2cslave %11110100, i2cfast, i2cbyte
writei2c 0, ($F4 $04 $50 $60 $BF $F2)
I think my issue is to do with F4 as Sparkfun says is the write command. The National data sheet says the F4 or 11110100 is the address.
Am I way off or can some one shed some light on silly mistake I am making?
Thank you,
Eric
I am trying to use an 18x to initialize a LM4970 (www.national.com/pf/LM/LM4970.html) with i2c.
I am using the Sparkfun’s breakout board
(http://www.sparkfun.com/datasheets/BreakoutBoards/LM4970-Breakout-Datasheet.pdf). Yes I am a RGB LED freak, love the 08M and the RGB LED.
I believe the I have the device properly hooked up to the 18x with 4k7 pullups (national reconmends 10k ???). I have the LM4970 ADJ pin low =0, I believe this what I need to do...
Sparkfun says they use this to “Start 0xF4 0x04 0x50 0x60 0xBF 0xF2 Stop” to test. These Hex numbers agree with the National data sheet BCD numbers for what I want to do, use the audio sync function of the LM4970.
According to the National’s data sheet F4 is the address and the rest is the data.
Here is couple of many variants I tried:
i2cslave $F4, i2cfast, i2cbyte
writei2c $F4, ($04, $50, $60, $BF, $F2)
Or
i2cslave %11110100, i2cfast, i2cbyte
writei2c 0, ($F4 $04 $50 $60 $BF $F2)
I think my issue is to do with F4 as Sparkfun says is the write command. The National data sheet says the F4 or 11110100 is the address.
Am I way off or can some one shed some light on silly mistake I am making?
Thank you,
Eric