Pages: [1]   Go Down
Author Topic: TLC5940 - using ATTINY85 to control GSCLK and BLANK  (Read 540 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 27
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi there

I’m using TLC5940 to control LED’s and Servos. I made the GSCLK signal by a 555-circuit to reduce the use of Arduino pins. But it is not precise and I also would like to reduce the number of discrete components. I have a bunch of ATTINY85 lying around.

My idea is to make ATTINY85 control GSCLK and BLANK. Not connected to the Arduino but just contantly providing GSCLK and BLANK signals.
Arduine should then program TLC5940 by using XLAT, SIN and SCLK.
My question is. Are there any dependencies between XLAT on one hand and GSCLK and BLANK on the other? In other words, should the timing of the lathing take into account how far the counter of GSCLK is in its sequence?
Is it a possible solution?

Thanks
« Last Edit: December 10, 2013, 07:50:14 am by AllanB » Logged

Valencia, Spain
Offline Offline
Faraday Member
**
Karma: 146
Posts: 5522
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It won't work.

In the "Serial Interface" section of the datasheet it says:
Quote
"the XLAT signal should only latch the grayscale data at the end of the grayscale cycle. Latching in new grayscale data immediately overwrites the existing grayscale data".
Logged

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

Offline Offline
Newbie
*
Karma: 0
Posts: 27
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I see Fungus. I missed that part. Thanks.

Well - then I could use the extra free pins on ATTINY85. So the latch goes from Arduino to ATTINY85 and from there to TLC5940 when ATTINY85 is at the end of the grayscale cycle.
Logged

Pages: [1]   Go Up
Jump to: