Page 1 of 1
RS232 with 2 stop bits on PIC16F877A
Posted: Tue May 10, 2011 4:34 pm
by jonath
ANY SUGGESTIONS ON HOW TO IMPLEMENT RS232 RX/TX WITH 2 STOP BITS LIKE
BAUDRATE 19,200, 8 BITS, NONE PARITY, 2 STOP BITS SERIAL COMMUNICATION ON PIC16F877.
Re: RS232 with 2 stop bits on PIC16F877A
Posted: Wed May 11, 2011 9:43 am
by Benj
Hello,
Flowcode v3 does not support the 9th data bit so you will probably have to do this via C code.
Flowcode v4 supports 9 bit data mode so you could always set the 9th bit to 1 and this will be your 1st stop bit. The second stop bit will then be automatic.
The stop bits are always logic 1 so you could do a normal 8-bit data transmission and then have at least a bit delay after you have sent a byte. This will essentially allow time for the second stop bit to be detected as the bus is always a logic 1 when inactive. You could even modify the send byte function with an appropriate delay_us() call and this will allow the second stop bit to be added automatically.