Hi
I need to implement UART drive. The configuration of the frame is that it has 1 start bit, 8 data bit, 1 parity bit, 2 stop bit.
But the problem is that s12x has no configuration register for the number of stop bit. Only 1 stop bit is supported.
In this case, How can i do?? Any solution?
Hi,
the answer is easy. You want to send 1+8+2. it is the same like 1+9+1.
So, you should set nine data bit communication and use 8 data bit as the first stop bit.
The register SCIDRH contains bits R8 and T8 which are used as a 8 data bit in the 1+9+1 communication format.
In order to set 1+9+1 communication set the M bit in the register SCICR1 and Set the R8 to required stop bit polarity.
That's all you need to do.
Best regards,
Ladislav