I've Googled till my fingers bled, but still can't get this to work. I'm reading serial data from a Windows XP machine in the following format: "F100". I'm using serin on a 16f877. The data is being sent as characters from the Window machine.
<code>
Byte1 var Byte
Byte2 var Byte
Serin 1,N2400, Byte1, Byte2
</code>
I want to read Byte1 as "F", and Byte2 as decimal 100. I can read the "F", but I'm not sure how to get the 100 as a number. I've tried # and []. Should be easy right? So far I'm failing miserably!
Can anyone help? Thank you in advance.
Bookmarks