Sign in

username:

password:



Not a member?

Search lpc2000



Search tips

Subscribe to lpc2000



lpc2000 by Keywords

2106 | ADC | ARM7 | Atmel | Bootloader | CAN | CrossStudio | CrossWorks | DDS | ECos | Ethernet | ETM | FIFO | FLASH | FPGA | GCC | GDB | GNU | GNUARM | GPIO | I2C | IAP | IAR | JTAG | Kickstart | LCD | Linux | LPC | LPC-E2294 | LPC2000 | LPC2100 | LPC2104 | Lpc2106 | Lpc210x | LPC2114 | LPC2119 | LPC2124 | LPC2129 | Lpc2138 | LPC213x | LPC21xx | LPC2210 | LPC2212 | LPC2214 | LPC2292 | LPC2294 | LPC2xxx | LPC3128 | MCB2100 | Olimex | Philips | PWM | Rowley | RTC | RTOS | SPI | SSP | UART | UART0 | UART1 | ULINK | USB | Watchdog | Wiggler

Ads

Discussion Groups

Discussion Groups | LPC2000 | Sample code / driver for TI's TLC5940 LED Driver IC

Discussion group dedicated to the Philips LPC2000 family of ARM MCUs

Sample code / driver for TI's TLC5940 LED Driver IC - Toby - Oct 15 6:27:13 2008

Hi All

Has anyone successfully integrated the TLC5930 LED driver into an
LPC2138/48 (or any other ARM) project ? It seems an ideal IC to
control multiple RGB LED's including GLCD backlight, however it
doesn't have a true SPI interface so will have to be bit-banged or, so
I'm lead to believe, used on a dedicated SPI hardware channel.

Data sheet http://focus.ti.com/docs/prod/folders/print/tlc5940.html

The other thing I will probably have a problem with is the fact that
the BLANK signal has to be pulsed every 4096 GSCLK pulses.

Do people have experience of any other multiple (my design needs at
least 8) configurable RGB LED drivers... ?

Cheers
Toby
------------------------------------



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )


RE: Sample code / driver for TI's TLC5940 LED Driver IC - Tim Mitchell - Oct 15 8:53:17 2008

Toby Harris wrote:
> Hi All
>
> Has anyone successfully integrated the TLC5930 LED driver into an
> LPC2138/48 (or any other ARM) project ? It seems an ideal IC to
> control multiple RGB LED's including GLCD backlight, however it
> doesn't have a true SPI interface so will have to be bit-banged or,
> so I'm lead to believe, used on a dedicated SPI hardware channel.
>
> Data sheet http://focus.ti.com/docs/prod/folders/print/tlc5940.html
>
> The other thing I will probably have a problem with is the fact that
> the BLANK signal has to be pulsed every 4096 GSCLK pulses.
>
> Do people have experience of any other multiple (my design needs at
> least 8) configurable RGB LED drivers... ?
>

I have just designed a circuit for TLC5941 using an AVR mega8. I am
bit-banging it on the AVR because its hardware SPI is fixed at 8 bits,
but I think you can set the ARM SPI to 12 bits so you could use the
ARM's hardware SPI. You need to toggle the latch (XLAT) line yourself
once you have clocked all the data out. (actually the TLC5930 might not
be 12 bit anyway - is it?)

For the 4096 GSCLK pulses I am using a timer hardware pwm output to
toggle a pin at 1MHz, then I have looped the pin back to a counter input
pin which generates an interrupt when it counts 4096, the interrupt
routine then handles the BLANK signal (and also latches the data in to
ensure it's synchronised with the PWM). ARM could do this no problem.

--
Tim Mitchell
------------------------------------



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )