TLC59711

From Steak Wiki
Revision as of 15:25, 13 December 2019 by Adminguy (talk | contribs) (Created page with "The TLC59711 by Texas Instruments is a 16 bit 12 channel LED driver. It has a 224 bit stream required for each chip. The stream has 32 bits of configuration data (config + 21...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

The TLC59711 by Texas Instruments is a 16 bit 12 channel LED driver. It has a 224 bit stream required for each chip. The stream has 32 bits of configuration data (config + 21 brightness), and 192 bits for the LEDs.

Example Code

This code runs on an Olimex PIC32-HMZ144 development board. Note that SPI mode 3 must be used. The SPI mode refers to whether bits are

   The SPI clock (SCK) polarity (parameter clock_idle)
   The SPI data out transmit edge (parameter edge)
The SPI "Modes"
SPI knows 4 "standard" modes, reflecting the SCK's polarity (CPOL) and the SCK's phase (CPHA).
The definition is:
SPI Mode 	CPOL 	CPHA
0 (or 0,0) 	0 	0
1 (or 0,1) 	0 	1
2 (or 1,0) 	1 	0
3 (or 1,1) 	1 	1
The meaning is:
CPOL:
   0 = Clock Idle low level
   1 = Clock Idle high level
CPHA:
   0 = SDO transmit edge (*) active to idle
   1 = SDO transmit edge idle to active


(*): the transmit edge is the clock edge at which the SDO level changes 

Ref: http://www.rosseeld.be/DRO/PIC/SPI_Timing.htm

Example Code:


References