This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

The problem in TLC5940

Other Parts Discussed in Thread: TLC5940

Dear,

 I combined the TLC5940 with my MCU (nuvoton NUC123) trying to control servo motor; however, there are some problems in the duty of PWM signal. I can’t adjust the right duty even the trend seemed correct. I did not use the dot correction but just gray scale.


 Figure 1
Take these two pictures for example, the first is the timing diagram of my SPI command, BLANK, and XLAT. I set 10 in SPI packet, that should mean the low level maintain 10 GSCLK and then PWM transfers to high level, am I right?


Fig.2

But the red frame of the Fig.2 shows that it not only 10 CLK but about 80 CLK during low level. This will cause the fault outcome.


I have done some tests trying to find how could this happen.

1. I change the frequency of GSCLK, this problem still goes and with the higher frequency the number of clock during low level grows.

 2. I change the timing of falling edge of BLANK and XLAT pulse, there is no use.

 I can’t understand why, the PWM “seems” work, however the outcome has problem. Please give me some instructions! Thanks a lot!

 Maxwell

  •  Hello Maxwell,

     What is "VPRG" pin level of TLC5940 when XLAT goes high level for GS data writing? The "VPRG"  must be set to low level for GS data writing and must be set to high level for DC data writing.  

     Best regards,

     Kazuya Nakai.

  • Dear Kazuya,

    Thanks for your reply!! In fact, in my application where only GS mode may take place. Therefore I never uses DC function, and the VPRG is always grounded. Do I need to set DC value for first usage??

    In my rest test, I also find a problem that if I connect PWM output pin with a resistor(1K) load, the signal can't be measure by my USBee! Is there also the problem that I never set the value of dot-correction?

    Maxwell

  •  Hello Maxwell,

     If you don't use DC function, then you don't need to write DC data and you can keep VPRG level to low. DC data should be set to 7Fh if the device EEPROM data was not changed because the EEPROM was set to 7Fh in TI factory.

    What is your GSCLK frequency? The frequency may be too fast for 1Kohm.

     Best regards,

     Kazuya Nakai.