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 CCS Technical Support

Receiving an int on the uart???

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







Receiving an int on the uart???
PostPosted: Mon Feb 28, 2005 1:07 pm     Reply with quote

Hi,

I am sending a single int down to my pic from a pc, does anyone know how I can receive the int without losing one of the bytes that make up the int.

If anybody has the code to do this, I would be very grateful!!!

Cheers.
dyeatman



Joined: 06 Sep 2003
Posts: 1934
Location: Norman, OK

View user's profile Send private message

PostPosted: Mon Feb 28, 2005 2:13 pm     Reply with quote

Guest,
A number of things would be VERY useful here:
1. What PIC are you using
2.What version of compiler are you using
3. We need to see all the setup lines in your program (preferably the entire program).
4. What application is sending the data?
5. What size integer, 16 or 32 bits?

If you are talking about a 32 bit integer from the PC it will come down in four bytes, not two. We need to see more about what you are trying to do on the PIC end with the data. (see number 3 above)
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