<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>LeafLabs Garden &#187; Topic: Interfacing with TLC5490 LED driver</title>
		<link>http://forums.leaflabs.com/topic.php?id=1196</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:18:28 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=1196" rel="self" type="application/rss+xml" />

		<item>
			<title>ericyanush on "Interfacing with TLC5490 LED driver"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1196#post-7306</link>
			<pubDate>Sun, 11 Dec 2011 23:16:41 +0000</pubDate>
			<dc:creator>ericyanush</dc:creator>
			<guid isPermaLink="false">7306@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Finally, after hours and hours of timer issues (and many forcibly removed hairs) I have my Maple Mini interfacing properly with a TLC5940 using SPI and two Hardware Timers.  As soon as I get some more testing done, and Clean up the code I will post it.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ericyanush on "Interfacing with TLC5490 LED driver"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1196#post-7302</link>
			<pubDate>Sun, 11 Dec 2011 06:15:58 +0000</pubDate>
			<dc:creator>ericyanush</dc:creator>
			<guid isPermaLink="false">7302@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I have been doing some work on getting the TLC5940 working with Maple too. As of right now I can shift the data out using SPI, but I am running into a timing problem setting up hardware timers to take care of pulsing the GSCLK and firing an interrupt every 4096 pulses to clock in more data, so the channels are always either on or off no matter the DC or GS value it has set. :(
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "Interfacing with TLC5490 LED driver"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1196#post-7269</link>
			<pubDate>Thu, 01 Dec 2011 13:54:15 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">7269@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;nissarup - I haven't checked that code at all.&#60;br /&#62;
I just wrote it off the top of my head to illustrate the idea, after a quick glance at the TLC5490 datasheet.&#60;br /&#62;
It looks okay, but I wouldn't be surprised if I'd missed something. &#60;/p&#62;
&#60;p&#62;Also, the call to &#60;code&#62;digitalWrite()&#60;/code&#62; is so slow that &#60;code&#62;delayMicroseconds()&#60;/code&#62; is probably not needed.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nissarup on "Interfacing with TLC5490 LED driver"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1196#post-7268</link>
			<pubDate>Thu, 01 Dec 2011 07:25:53 +0000</pubDate>
			<dc:creator>nissarup</dc:creator>
			<guid isPermaLink="false">7268@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;That was what I figured last night that I would do today.&#60;br /&#62;
Thank you for the snippet.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "Interfacing with TLC5490 LED driver"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1196#post-7266</link>
			<pubDate>Wed, 30 Nov 2011 16:40:48 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">7266@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;nissarup - if you are having problems, you might want to try 'bit banging' the interface to the TLC5490. Use digitalWrite to generate a clock and data signals.&#60;/p&#62;
&#60;p&#62;E.g.:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;const byte dataPin = 9;  // a random guess
const byte clockPin = 10;  // another random guess
void dummySPIwrite(byte b) {
    for (byte bitMask=0b10000000; bitMask != 0; bitMask &#38;gt;&#38;gt;= 1) {
        digitalWrite(clockPin, LOW);
        digitalWrite(dataPin, (b &#38;amp; bitMask)? HIGH : LOW);
        delayMicroseconds(1);
        digitalWrite(clockPin, HIGH);
        delayMicroseconds(1);
    }
    digitalWrite(clockPin, LOW);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This technique may be enough to get you off the ground, and test the electronics.&#60;br /&#62;
Have you access to an oscilloscope? You might also have a look at the signals to see that they make sense.&#60;/p&#62;
&#60;p&#62;(full disclosure: I am not a member of LeafLabs staff.)&#60;br /&#62;
(WARNING: I have not compiled and tested that code.)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nissarup on "Interfacing with TLC5490 LED driver"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1196#post-7264</link>
			<pubDate>Wed, 30 Nov 2011 08:51:56 +0000</pubDate>
			<dc:creator>nissarup</dc:creator>
			<guid isPermaLink="false">7264@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi all,&#60;/p&#62;
&#60;p&#62;Have anybody interfaced a Maple with the TLC5490 LED driver?&#60;br /&#62;
It's supposed to be reachable via SPI, but I've had no luck so far.&#60;/p&#62;
&#60;p&#62;--Nis
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
