- This topic has 2 replies, 3 voices, and was last updated 9 years, 8 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
|
Microcontroller › PIC › uart
i want to send data from pc.. for example i want to send 45 from pc to microcontroller then add this data to variable declared in microcontroller.. the problem is that i could not append the data receive because its stored in an array..is there a way to make the data receive become a single integer..
Since you are using ASCII keyboard, even if you type ‘4’ it will send the ascii value of 4 only. I think there is no key in keyboard having ascii values 4 or 5
you have to make a program that receives
4 and 5 as saparate characters and then it makes it digit 45
its simple
first delete 48 from received value. that will give you 4 or 5
then simple mathamatics like
4*10 + 5