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.

Using MSP430 to connect over SPI to TLC591

Other Parts Discussed in Thread: TLC5941, MSP430F427, MSP430G2221

Hi All,

I am trying to control 16 LEDs using the TLC5941 current driver and the MSP430. Reading the datasheets:

"The TLC5941 is a 16-channel LED driver with 12-bit grayscale dimming and typically used for high-quality LED displays. The 192 bits of grayscale data are entered into the TLC5941 via a serial interface. The serial interface is comprised of a shift register that is controlled by two signals, SLCK and SIN. One bit of serial data is placed on the SIN pin of the TLC5941; then, a positive edge on the SCLK pin shifts the data into the TLC5941 input register. Once all of the 192 bits have been shifted in, the XLAT pin is pulsed high to latch the data from the input register into the grayscale registers. The TLC5941 also requires a clock signal, GSCLK, for the grayscale PWM function. This clock is used to drive internal counters to derive the 12-bit grayscale dimming function. After 4096 grayscale clocks, the internal counter must be reset to zero by pulsing the BLANK signal high."

TI provides an example code to do the above with an MSP430F427. I would like to write my own code to use the MSP430G2221 to control the TLC5941. My question is, is it feasible to do this? I am new to the MSP430 MCU so any insight you could give would be greatly appreciated.

Thank you, Best,

Kevin

  • Kevin Meyer1 said:
    I would like to write my own code to use the MSP430G2221 to control the TLC5941. My question is, is it feasible to do this?

    Yes, you can play with particular LED controller using G2221. Thou cannot promise that original TI sample  code will fit into 2KB of code memory - most probably you shall rewrite it, but that's another story.

  • Thank you for the quick response! Hopefully I can fit all the code on the G2221. 

**Attention** This is a public forum