232串口通讯中的11位编码中的stick parity是什么意思

来源:百度知道 编辑:UC知道 时间:2024/06/19 03:05:35
这个和效验码有关系吗??

如果不是效验码,它是什么??
232 的11位编码是指

1个开始

8个数据

1个效验

1个停止吗?

那个效验位,可以用来效验,也可以软件指定具体标志值,而不用作效验???

奇偶校验位,可以设置成多种配置。
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’.