Tom and CC,
<<With 8 bits, you can only have "N" parity.>>
The following works fine in PB3.5.
I can confirm it sends out 11 bits, 1 start bit, 8 data bits, 1 Even parity and 1 stop. Change the "E" to "O" in the OPEN COM and it works with Odd parity too.
There is no reason for any restriction in the data format, the number of bits and the type of parity are not linked, they have independent control bits in the UART Line Control Register.
Paul.
<<With 8 bits, you can only have "N" parity.>>
The following works fine in PB3.5.
I can confirm it sends out 11 bits, 1 start bit, 8 data bits, 1 Even parity and 1 stop. Change the "E" to "O" in the OPEN COM and it works with Odd parity too.
Code:
open "com2:9600,E,8,1,cs0,cd0,ds0" as #1
Paul.
Comment