Hello,
I hope someone can help with this software programing, I've been posting a few times but not getting any help :(
Having some problems with this chip.
I can do some things, such as read all the registers and I can set each of the pwm's and turn on LED 0 and LED1, no problem.
But, I am having some problems that I am not sure how to address.
1) I have several boards with these chips on them and some seem to work (turn on led) and others not.
For the ones that do not work, when I read the registers, I notice that I get a number like 157 (0x9D) returned in the 18th byte.
For the ones that do work ok, I get some number like 129 (0x81) in the 18th byte.
Even though returned in byte 18 and not byte 1, this number seems like it could be the mode1 register and if so, it would make sense because 0x9D would indicate Low Power Mode is set (ie bit 4 = 1). Documentation seems to indicate mode 1 is in the first byte but I do not see that in my application.
I thought from the document that the low power mode by default would always come up as 0 but it seems some chips come up 0 and others are set to 1. Is that possible???
It would be ok if I could reset it but I do not see any way to do that. I have tried setting mode 1 according to the document (0x00 followed by 0x81 for example)
but also tried setting the 18th byte in case document is wrong (0x17 followed by 0x81) but that doesn't work either.
I also tried doing an all call to set all the registers but don't seem to be able to change that 18th byte so that it is not in sleep mode.
As mentioned, if the chip happens to come up with the 18th byte with bit 4 = 0 (ie 0x8F) then I am able to turn on the led's.
Thanks!! Please someone take a look and help!!
David