232串口通讯中的11位编码中的stick parity是什么意思
发布网友
发布时间:2023-07-25 22:12
我来回答
共1个回答
热心网友
时间:2023-08-02 14:40
奇偶校验位,可以设置成多种配置。
3
RW
Parity Enable
‘0’ – No parity
‘1’ – Parity bit is generated on each outgoing character and
is checked on each incoming one.
4
RW
Even Parity select
‘0’ – Odd number of ‘1’ is transmitted and checked in each
word (data and parity combined). In other words, if the data has an
even number of ‘1’ in it, then the parity bit is ‘1’.
‘1’ – Even number of ‘1’ is transmitted in each word.
5
RW
Stick Parity bit.
‘0’ – Stick Parity disabled
‘1’ - If bits 3 and 4 are logic ‘1’, the parity bit is transmitted
and checked as logic ‘0’. If bit 3 is ‘1’ and bit 4 is ‘0’ then the
parity bit is transmitted and checked as ‘1’.