OK the Data from PIC to PC works fine, but from PC to PIC fails, heres code Im working with, NOTE that im am still using 9600 8N1 on the pc.
LCD display numbers from 130 - 137 based on what character is sent, only a few characters work, say d - l (lower case) and they dont corrospond to any numbering system i was hoping for ascii valuesCode:Define OSC 20 'USE ECIO, NOT ECPIO define HSER_BAUD 9600 DEFINE HSER_BITS 8 DEFINE HSER_CLROERR 1 RCSTA = $90 TXSTA = $20 'DO NOT USE $24 TRISC = %10000000 TRISD = 0 MYBYTE VAR BYTE MAINLOOP: mybyte = 0 Hserin [MYBYTE] LCDOUT $FE, 2 LCDOUT $FE, $80 LCDOUT "MYBYTE = ", DEC MYBYTE Hserout ["Received = ", mybyte, 13, 10] goto mainloop




Bookmarks