Home    All Posts    RSS    Contact    Search

Marketplace

Tlc5940

Tlc5940Programming a LED driver ..?

I am currently working with the BS2 "Green" parallax, and I program in PBASIC (I think it can also be called PICBASIC). Now I work on the next part of my project ... An LED driver .... Now that I have is the TLC5940 "from Texas Instruments. But led driver working, I just need to control a handful of LEDs, but do not want to use all the ports on my microphone.

Have you any advice as how to program one I?
Or could you tell me something simple with some sample code?

Major thank you!


http://focus.ti.com/docs/prod/folders/print/tlc5940.html

You only need three out of your character to go to the LED driver. You really can not lower than that, no matter what you use. I'm not really familiar with the LED drivers, but it sounds great. It may be a bit exaggerated, because it has 12-bit brightness control. If it is useful to you, then it's all good.

Anything you do to control more LED's that you IOS require some kind of a shift register, as this chip a. In short, nothing else will be equally difficult.

The main thing to do in your routine PBASIC is controlling the line of NAS, the line and the line SCLK XLAT. You'll also need an oscillator for GSCLK, but you do not necessarily need to generate the buffer if you can get another type of oscillator board.

If you need a start / stop, it will be easier if you get a series-parallel shift register. With them, there is no gray scale control, point of correction or anything else. It's just on / off.

I'm not familiar with PBASIC, so I'll write a few simple guidelines.
For all these things, the way it works is like this:
First create the bit pattern you need for the device.
Start with SCLK low.
For every bit that you want to download to the device:
bit set on the NAS online
Set SCLK high
wait a small amount (you can skip this if the patch is quite slow)
SCLK kidded
wait a small amount (you can skip this if the patch is quite slow)
Repeat for next bit
When all bits are done, XLAT pulses (called LATCH on some devices).
Set-up, then down.

For different devices, the polarity of the lines may be different. Check the specifications of the aircraft to ensure that you are on the right track.

Posted on February 15, 2010.
Share |

Comments

There are no comments.

Leave a Comment

Your Name
Your Email
Comments
Human Check. Type 9454.

Most Recent
Stroke Rehab Centers
Pdf Player
Ways To Quit Smoking Hypnosis
Stroke Hemiplegia
Memphis Orthopedic Group
Hypnotherapy Addiction
Geisinger Scenery Park
Treating Excema

My Friends
Healthcare Topic
Bicycle Island
Scribblers
Paint Boxes
Brawlers.org
Druggy.net
astronautic.org
Schtick Spot
Hemp Camp
Fitness Clothing
Casual Clothing
Clothing Scene