Jump to content

TLC5940 driver for Tiva

Recommended Posts

  • 7 months later...

Hi there, thank you for the code. I'm still trying to learn SSI on the Tiva (I'm a beginner overall). My main question is without the boosterpack in the video, how exactly do you wire up the Tiva to the TLC5940? (I guess more specifically, does PB4 --> SCLK, PB7 --> SIN? If you know where I could find a schematic of the Tiva + the driver that would be awesome)


Also what is the PWM timer used for?


Thank you.

Link to post
Share on other sites

Thanks for the schematic, I just tried it out but nothing is lighting up. Where in the code are you clocking/pulsing GSCLK?


From the schematic, it looks like P1.4 from the MSP430 maps to PE5 on the Tiva/Stellaris for GSCLK, but that port is not mentioned anywhere in the code. I think that might be the reason why it is not working for me, I'm not supplying the GSCLK signal. Do you have happen to have the code for that?


Also I have VCC as 3.3V, with 2.2kOhm resistor on IREF to GND.


Thanks again.

Link to post
Share on other sites
  • 3 weeks later...
Real life took over so I couldn't really work on my problem until now.


I have tried connecting PB2 to GSCLK but that doesn't work either.

Can you please verify that I have wired everything correctly? (Just in case there were other pins you shorted)

SIN   --> PB7

SCLK  --> PB4

GSCLK --> PB2*


XLAT  --> PA3


VPRG  --> PA4


PB2 (Timer3) is configured to capture an incoming positive edge and count. What is the source for that? How would this configuration make it a GSCLK?


I was assuming that Timer1, the PWM (PB5), generates the GSCLK and then Timer3 counts its positive edges until it reaches a complete GS cycle.


Sorry for the amount of questions. This is quite a learning process for me.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...