camerart
Well-Known Member
Morning E,Morning C,
Clip from 18F d/s UART section. page #213.
Explains in the footnote the RCSTA.OERR error sequence.
The 0x0a is the Line Feed code at the end of the RXD msg string, typically 0x0d, 0x0a [ Crlf]
Remember that the Oshonsoft Sim does not add Crlf coding when using the Sim Uart to send a test msg string, so we temporarily used a '?' as a substitute for the Lf 0x0a, ONLY while running in simulation.
The 0x0a detect must be used in an actual PIC code.
E
I see!
The vague '?' in SIM is coming back to me now.
You must have an encyclopeadic memory. I'm envious.
I presume that one of the 'char = RCREG' lines isn't needed?
Thanks,
C.