Maybe I mislead you then, sorry I mean 8,E,1 (1 start bit, 8 data bits, 1 parity bit and one stop bit)
The below sort of works just moving the 9th bit and the 8 Bit data straight across from the RX to TX.
The receiving device is now accepting the input but Saleae logic still shows errors in the data the PIC is outputting???
Something weird is going on..
Code:
Start: 'Main program start
do while PIR1.5 = 0 'Wait for RX data
loop
do while PIR1.4 = 0 'Wait for TX to be ready
loop
TXSTA.0 = RCSTA.0
TXREG = RCREG
goto start
Bookmarks