ShortBus
- 22nd October 2009, 03:34
This is probably an obvious newbie question, but my Google-Fu is failing me.
I have a PIC connected to a PC via a serial interface. When I type "42" on my keyboard and press enter, I would like to store the integer value of 42 (or, preferably it's hex value of 2A) into a PBP variable. How do I do this? I've only been able to figure out how to store the ASCII value of the "4" and "2" characters. Thanks!
I have a PIC connected to a PC via a serial interface. When I type "42" on my keyboard and press enter, I would like to store the integer value of 42 (or, preferably it's hex value of 2A) into a PBP variable. How do I do this? I've only been able to figure out how to store the ASCII value of the "4" and "2" characters. Thanks!