Switching Speed
Areal Person
Posts: 197
·
Ok,
·
I’ve built a 3 LED Per Pixel Matrix· of 16x16 Pixels (768 Leds total in 1sq. ft. @ 19mm DOT Pitch) - I’ll send pictures on 12/18/07
·
I’m using the TLC5940 for the16 channel driver (common anode).
·
I had selected the 74HC595N for the anode connection into the TLC5940.
(It takes two(2) IC to switch the 16 anodes)
·
I’m also using the BS2 Functions as follows to latch the channels I’m switching on
e.g. column = %0011110011001101
·
BS2.SHIFTOUT(14, 11, column,BS2#LSBFIRST, 16)
BS2.PULSOUT(12,5)
·
But I’m having problems with the speed of the switching, no matter what I do
I can’t get the flicker out. I’ve tried setting the Propeller clock as fast as it can go.
·
My project looks around 35-40Hz (It’s got a wave in it)
·
QUESTION 1:
Does anyone have any suggestions how I can get a better switching speed ?
Is there a·faster chip I·should try ? Maybe I should use two(2) Propellers
In sync ? (one for the TLC other for the 595) Or is it probably the 595 is just two slow.
·
Here’s the data sheets.
·
Thanks for the help ?
The 595 - ·http://focus.ti.com/lit/ds/symlink/sn74hc595.pdf
The TLC –· http://focus.ti.com/lit/ds/symlink/tlc5940.pdf
·
·
QUESTION 2:
What property determines the switching speed of the 595 ?
Is it· TPD = 13ns or Clock Freq = 6, or 21 MHZ depending on vdd
·
Maybe I should increase the voltage into the 595 from 3.3v to 4.5v ?
·
What do you think ?
·
Thank,
-Areal
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I have a tree growing out of my head, but
what do you expect ? I'm a programmer.
Ok,
·
I’ve built a 3 LED Per Pixel Matrix· of 16x16 Pixels (768 Leds total in 1sq. ft. @ 19mm DOT Pitch) - I’ll send pictures on 12/18/07
·
I’m using the TLC5940 for the16 channel driver (common anode).
·
I had selected the 74HC595N for the anode connection into the TLC5940.
(It takes two(2) IC to switch the 16 anodes)
·
I’m also using the BS2 Functions as follows to latch the channels I’m switching on
e.g. column = %0011110011001101
·
BS2.SHIFTOUT(14, 11, column,BS2#LSBFIRST, 16)
BS2.PULSOUT(12,5)
·
But I’m having problems with the speed of the switching, no matter what I do
I can’t get the flicker out. I’ve tried setting the Propeller clock as fast as it can go.
·
My project looks around 35-40Hz (It’s got a wave in it)
·
QUESTION 1:
Does anyone have any suggestions how I can get a better switching speed ?
Is there a·faster chip I·should try ? Maybe I should use two(2) Propellers
In sync ? (one for the TLC other for the 595) Or is it probably the 595 is just two slow.
·
Here’s the data sheets.
·
Thanks for the help ?
The 595 - ·http://focus.ti.com/lit/ds/symlink/sn74hc595.pdf
The TLC –· http://focus.ti.com/lit/ds/symlink/tlc5940.pdf
·
·
QUESTION 2:
What property determines the switching speed of the 595 ?
Is it· TPD = 13ns or Clock Freq = 6, or 21 MHZ depending on vdd
·
Maybe I should increase the voltage into the 595 from 3.3v to 4.5v ?
·
What do you think ?
·
Thank,
-Areal
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I have a tree growing out of my head, but
what do you expect ? I'm a programmer.
Comments
First: change the BS2 functions by propeller assembly. (after that, you will need to send the data to the TLC faster and faster)
Seccond: I told you... I don't think that you will·get the·matrix working well without using 16*3 TLC's in each matrix...forget the 595's..or continue trying & good luck.
Third: Maximun operating frequency of SCK = 30 Mhz. for HC595.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Regards.
Alberto.
As cntMin is 400 this is not consistent however... so your pulse will be 5 µs...
The SHIFTOUT takes 1 ms/16 bits.... When you shift-out for 16 rows (?) your refresh will be 1/16ms = 60 Hz.
Maybe there is essentially more SPIN code (complex computations?) than you show us in the main loop?
An easy improvement will be to change the wait time in BS2; look here
Change the waitcnt (1000+cnt) to 500 or omit the waitcnt totally!
Thanks dude !
Thats a good place for me to start !
Thanks BTX !
-Areal
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I have a tree growing out of my head, but
what do you expect ? I'm a programmer.
I wasn't following the hardware details you were talking about. Can you post a sketch or schematic? I also eager to see a picture because it sounds like you are controlling a boat load of LEDs.
What I can help you with is to point out that the problem isn't the TLC5940 nor is it the Propeller that is your problem. My guess is that it is software or the interface chip logic you have. Check out the other thread regarding the DMX LED bookcase in my living room. This design uses one Prop and 6 TLC5940 (3 per column each column with one chip for red, one for green and one for blue).
There is some good code on the forum for controlling the TLC5940. I also created code that I will be posting soon. My code is mostly in SPIN because I didn't need a super fast update. It shouldn't be too hard for me to convert it to ASM when and if I need to.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter
tdswieter.com
One little spark of imagination is all it takes for an idea to explode
He's going to build a big LED screen in modules of 16 by 16 pixeles each.
If I'm not wrong, he want to use three TLC's for each module multiplexing each·column, ... I think·maybe the TLC's will not work correctly at that situation, also the TLC data would be refreshed at a very high speed, to get the modul working with "video" at a 30 fps or even at 15 fps.
I think too, that 48 TLC's could be the best choice for that...... although not the cheapest. I was looking inside some comercial LED screen at many shows....and then uses that method, lot of chips per module, linked by a dedicated board between them, and finally linked by ethernet.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Regards.
Alberto.
Thanks for the details BTX.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter
tdswieter.com
One little spark of imagination is all it takes for an idea to explode
bored out of my mind waiting for my prop
kevin