{"id":207,"date":"2010-11-11T14:32:41","date_gmt":"2010-11-11T14:32:41","guid":{"rendered":"http:\/\/louisc.co.uk\/FYP\/?p=207"},"modified":"2016-11-05T11:17:47","modified_gmt":"2016-11-05T11:17:47","slug":"the-tlc5940","status":"publish","type":"post","link":"https:\/\/louisc.co.uk\/?p=207","title":{"rendered":"The TLC5940 16-Channel PWM Controller"},"content":{"rendered":"<h1 style=\"font-size: 2em;\">Introduction<\/h1>\n<p>Texas Instruments describe the TLC5940 with the following paragraph:<\/p>\n<blockquote><p>The TLC5940 is a 16-channel, constant-current sink LED driver. Each channel has an individually adjustable 4096-step grayscale PWM brightness control and a 64-step, constant-current sink (dot correction). The dot correction adjusts the brightness variations between LED channels and other LED drivers. The dot correction data is stored in an integrated EEPROM. Both grayscale control and dot correction are accessible via a serial interface. A single external resistor sets the maximum current value of all 16 channels.<\/p><\/blockquote>\n<p>My use for the chip will be to allow one LED driver the ability to drive multiple led bars\u00a0independently. The uController (MCU) \u00a0I am using, the ATMEGA328p has only 6 PWM enabled ports. 3 of these are automatically reserved for use by the SPI interface required for the wireless module. Expanding these PWM ports will mean control over more than one LED light bar per driver. The TLC5940 offers 16 ports, we consume 3 ports per bar, one for each colour of Red, Green and Blue. This means with one TLC5940 we can address 5 bars.<\/p>\n<p><!--more--><\/p>\n<h1>Pinouts<\/h1>\n<p><a href=\"http:\/\/louisc.co.uk\/wp-content\/uploads\/2010\/11\/FYP_islou_co_uk_pinout_tlc5940.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"329\" height=\"453\" class=\" wp-image-214  alignnone\" title=\"Pinout TLC5940\" src=\"http:\/\/louisc.co.uk\/wp-content\/uploads\/2010\/11\/FYP_islou_co_uk_pinout_tlc5940.jpg\" alt=\"Pinout TLC5940\" srcset=\"https:\/\/louisc.co.uk\/wp-content\/uploads\/2010\/11\/FYP_islou_co_uk_pinout_tlc5940-217x300.jpg 217w, https:\/\/louisc.co.uk\/wp-content\/uploads\/2010\/11\/FYP_islou_co_uk_pinout_tlc5940.jpg 329w\" sizes=\"auto, (max-width: 329px) 100vw, 329px\" \/><\/a><\/p>\n<h1>Specs<\/h1>\n<div>Data sheet: \u00a0<a href=\"http:\/\/focus.ti.com\/lit\/ds\/symlink\/tlc5940.pdf\">http:\/\/focus.ti.com\/lit\/ds\/symlink\/tlc5940.pdf<\/a><\/div>\n<div>\n<ul>\n<li>16 Channels \u00b7 Monocolor, Multicolor, Fullcolor LED Displays<\/li>\n<li>12 bit (4096 Steps) Grayscale PWM Control<\/li>\n<li>6 bit (64 Steps)<\/li>\n<li>Storable in Integrated EEPROM<\/li>\n<li>Drive Capability (Constant Current Sink)<\/li>\n<li>60 mA (VCC &lt; 3.6 V) LED driver. Each channel has an individually adjust-<\/li>\n<li>120 mA (VCC &gt; 3.6 V) able 4096-step grayscale PWM brightness control<\/li>\n<li>LED Power Supply Voltage up to 17 V and a 64-step constant-current sink (dot correction).<\/li>\n<li>Serial Data Interface, SPI comp. dot correction data is stored in an integrated<\/li>\n<li>Controlled In-Rush Current EEPROM. Both grayscale control and dot correction<\/li>\n<li>30-MHz Data Transfer Rate are accessible via a serial interface.<\/li>\n<li>A single external\u00a0resistor sets the maximum current value of all 16<\/li>\n<li>Error Information The TLC5940 features two error information circuits.<\/li>\n<li>LOD: LED Open Detection<\/li>\n<li>TEF: Thermal Error Flag.<\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Texas Instruments describe the TLC5940 with the following paragraph: The TLC5940 is a 16-channel, constant-current sink LED driver. Each channel has an individually adjustable 4096-step grayscale PWM brightness control and a 64-step, constant-current sink (dot correction). The dot correction adjusts the brightness variations between LED channels and other LED drivers. The dot correction data is stored in an integrated EEPROM. Both grayscale control and dot correction are accessible via a serial interface. A single external resistor [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":473,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[32],"tags":[34,35,11,38,39,20,37,36,18],"class_list":["post-207","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-lightive-reactive-lighting-system","tag-arduino","tag-atmel","tag-led-driver","tag-led-strip","tag-pwm","tag-spi-interface","tag-ti","tag-tlc5940","tag-transceiver"],"_links":{"self":[{"href":"https:\/\/louisc.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/207","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/louisc.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/louisc.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/louisc.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/louisc.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=207"}],"version-history":[{"count":19,"href":"https:\/\/louisc.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/207\/revisions"}],"predecessor-version":[{"id":2140,"href":"https:\/\/louisc.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/207\/revisions\/2140"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/louisc.co.uk\/index.php?rest_route=\/wp\/v2\/media\/473"}],"wp:attachment":[{"href":"https:\/\/louisc.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/louisc.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=207"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/louisc.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}