
Originally Posted by
ShortBus
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!
Not so obvious . . . I do not use the hyper term in windows . . I use real Term, http://realterm.sourceforge.net/ , from which you can select the option of sending the ascii representation or the real number to your PIC from the PC. The PIC can use any format you choose ascii, hex, dec, http://www.melabs.com/resources/pbpmanual/ look under hserin.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks