You code for sending the value out is sending unprintable characters to whatever is receiving the serial.
if your bit is a 0 then that is a null character, if it is a 1 then it is a SOH see here
http://www.asciitable.com/
If you want to see the character as a printable digit then add 48 to it
SEROUT porta.2,T9600,[led+48]
You could also run your simple program then put the pic back in the programmer, read and view the eeprom data.
Bookmarks