CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

How do i send a 112 bit serial packet with SPI?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
nmeyer



Joined: 09 Jul 2004
Posts: 70

View user's profile Send private message

How do i send a 112 bit serial packet with SPI?
PostPosted: Mon Feb 25, 2008 3:02 pm     Reply with quote

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

View user's profile Send private message

Re: How do i send a 112 bit serial packet with SPI?
PostPosted: Mon Feb 25, 2008 4:48 pm     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group