I have a problem to read the error code of the TLC5917. I use a microcontroller to comunicate with the device. I've made few routines like:
-switching between normal mode and special
-switching to special mode to normal mode
-setting the current (in special mode)
-setting the LED (in normal mode)
In my application, only one led is on at the same time
All the routines work fine, but i have some issues with the read of Error Status. Indeed each bit i read,( when i follow the datasheet) is '0', which signifies I have all the errors possible. The datasheet is not very clear for me. So could you help me to resolve the problem?
First could you told me what is the good sequence to retrieve the Error Status register?, is there anything to write on SDI line during the reading of the error code?
I try the following sequence:
- Switching to special mode
-Set the current
-switching to normal mode
-select the led I want to light
-switching to special mode
-read the error status as described in the datasheet
-switching to normal mode
- Turn ON the LED with OE=0
I thank you in advance for your help
Marc HUBERT