I have a circuit design where i am using a PIC18F8722 chip to send information to a TLC5922 LED driver IC. The TLC5922 ic has a SPI compatible interface so i am using the SPI of the PIC to try to send data to the chip. However, i am not sure how to send the needed 112bit wide serial packet. This packet is 7bits for each of the 16 potential outputs. This allows the control of the intensity of each LED. Does anyone have any examples of how to send that much information? I am sure it is possible, but my limited experience with C has left me in the dark as to how to accomplish this. Thanks
Neutone
Joined: 08 Sep 2003 Posts: 839 Location: Houston
Re: How do i send a 112 bit serial packet with SPI?
Posted: Mon Feb 25, 2008 4:48 pm
nmeyer wrote:
I have a circuit design where i am using a PIC18F8722 chip to send information to a TLC5922 LED driver IC. The TLC5922 ic has a SPI compatible interface so i am using the SPI of the PIC to try to send data to the chip. However, i am not sure how to send the needed 112bit wide serial packet. This packet is 7bits for each of the 16 potential outputs. This allows the control of the intensity of each LED. Does anyone have any examples of how to send that much information? I am sure it is possible, but my limited experience with C has left me in the dark as to how to accomplish this. Thanks
Start by building a 14 byte buffer with the data you will transmit.
Then send 14 bytes of data.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum