Hi all,
I'm experimenting with a Texas Instruments TLC59116FIPWR 16 Channel LED Driver chip that is controllable via i2c. I can get the registers to config and using the code below I can read them back no problem. They all take just fine, but I can't get a single LED to light (using output7) and I need a fresh pair of eyes to look at this... where is my goof up? HELP!
HERE'S THE DATASHEET
AND HERE'S MY CODE
My Debug Screen verifies that ALL of the readbacks do, indeed contain the configurations that I put in. However, I cannot get a single LED to light. (yes, I've verified the LED works, I am using a 220K resistor, etc..)
Am I missing something here? Is there a definitave "on switch" that I'm missing?
I thought the configs for 0x14 through 0x17 would be enough to just turn on ALL the channels to full power. (I'm only using output 7 right now) surely turning them all on would garner a single led to light up... no?
It's driving me just plain batty!!!
I'm experimenting with a Texas Instruments TLC59116FIPWR 16 Channel LED Driver chip that is controllable via i2c. I can get the registers to config and using the code below I can read them back no problem. They all take just fine, but I can't get a single LED to light (using output7) and I need a fresh pair of eyes to look at this... where is my goof up? HELP!
HERE'S THE DATASHEET
AND HERE'S MY CODE
Code:
hi2csetup i2cmaster, %11000000 ,i2cslow,i2cbyte ' Set up i2c com's
pause 250
hi2cout [%11000000], 0x01, (%00000000) ' address the chip, Set register 1 to defaults (dimming control)
hi2cout [%11000001], 0x09, (0xff) ' address the chip, Dimming for output 7 register, setfull power
hi2cout [%11000001], 0x12, (0xff) ' address the chip, Group Duty Cycle to 255
hi2cout [%11000001], 0x14, (%10101010) ' Turn on group 0 - no dimming control, just on
hi2cout [%11000001], 0x15, (%10101010) ' Turn on group 1 - no dimming control, just on
hi2cout [%11000001], 0x16, (%10101010) ' Turn on group 2 - no dimming control, just on
hi2cout [%11000001], 0x17, (%10101010) ' Turn on group 3 - no dimming control, just on
main:
hi2cin [0xC0],0x09,(B0) ' Read back the configuration of LED7
hi2cin [0xC0],0x18,(B1) ' Veriy the i2c Subaddress1
hi2cin [0xC0],0x1B,(B2) ' Verify the "allcall" address
hi2cin [0xC0],0x12,(B3) ' Read back Group Duty Cycle
hi2cin [0xC0],0x14,(B4) ' Read back Group0 Config
hi2cin [0xC0],0x15,(B5) ' Read back Group1 Config
hi2cin [0xC0],0x16,(B6) ' Read Back Group2 Config
hi2cin [0xC0],0x17,(B7) ' Read Back Group3 Config
hi2cin [0xC0],0x13,(B9) ' Verify Group Freq.
hi2cin [0xC0],0x00,(B10) 'Read Back register 00h general Config
hi2cin [0xC0],0x01,(B11) 'Read Back register 01h general Config
debug
goto main
Am I missing something here? Is there a definitave "on switch" that I'm missing?
I thought the configs for 0x14 through 0x17 would be enough to just turn on ALL the channels to full power. (I'm only using output 7 right now) surely turning them all on would garner a single led to light up... no?
It's driving me just plain batty!!!