In this case I use 8,N and generate a parity bit using a table, to convert ASCII char to MARK parity. In both directions.
For MARK it's simple to add a 1 bit, without any fancy conversion.
In this case I use 8,N and generate a parity bit using a table, to convert ASCII char to MARK parity. In both directions.
For MARK it's simple to add a 1 bit, without any fancy conversion.
I use OR 128 to add the most significant bit to the byte. To take off use AND 127. Yes it's always 1. Use 8,n for definition, so parity in not checked. To tell the truth MARK is not strictly a parity checking, since it's not calculated. In 45 years I have never seen any device using this feature.