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: 1933 Location: Norman, OK
Posted: Mon Feb 28, 2005 2:13 pm
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)
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