Hi,
Yes, you're missing somehing....
You get V1=53 because you're sending a string of two ASCII characters from the PC, a "five" and a "zero". You're telling the PIC to receive ONE byte, it grabs the first one, the "five" which happens to be ASCII code 53. Try sending 60 and you'll get 54 because 54 is the ASCII code for "six" or 93 and you'll get 57 because 57 is the ASCII code for "nine".
If you're sending decimal numbers as ASCII strings then tell SERIN you're doing just thatBTW, please use code tags when posting code, it gets so much easier to read.Code:SERIN2 PORTB.0,16468,3000,OVER,[DEC V1]
/Henrik.




Bookmarks