DataBits, Parity, StopBits

DataBits
Number of data bits to transmit

Description
You can configure DataBits to be 5, 6, 7, or 8. Data is transmitted as a series of five, six, seven, or eight bits with the least significant bit sent first. At least seven data bits are required to transmit ASCII characters. Eight bits are required to transmit binary data. Five and six bit data formats are used for specialized communications equipment.

Note : Both the computer and the peripheral device must be configured to transmit the same number of data bits.
 

In addition to the data bits, the serial data format consists of a start bit, one or two stop bits, and possibly a parity bit. You specify the number of stop bits with the StopBits property, and the type of parity checking with the Parity property.
To display the supported number of data bits for the serial ports on your platform, see Finding Serial Port Information for Your Platform.

Values
DataBits can be 5, 6, 7, or 8. The default value is 8.


Parity
Specify the type of parity checking

Description
You can configure Parity to be none, odd, even, mark, or space. If Parity is none, parity checking is not performed and the parity bit is not transmitted. If Parity is odd, the number of mark bits (1s) in the data is counted, and the parity bit is asserted or unasserted to obtain an odd number of mark bits. If Parity is even, the number of mark bits in the data is counted, and the parity bit is asserted or unasserted to obtain an even number of mark bits. If Parity is mark, the parity bit is asserted. If Parity is space, the parity bit is unasserted.
Parity checking can detect errors of one bit only. An error in two bits might cause the data to have a seemingly valid parity, when in fact it is incorrect. For more information about parity checking, see The Parity Bit.
In addition to the parity bit, the serial data format consists of a start bit, between five and eight data bits, and one or two stop bits. You specify the number of data bits with the DataBits property, and the number of stop bits with the StopBits property.

Values
{none} : No parity checking
odd : Odd parity checking
even : Even parity checking
mark : Mark parity checking
space : Space parity checking


StopBits 
Number of bits used to indicate the end of a byte

Description
You can configure StopBits to be 1, 1.5, or 2. If StopBits is 1, one stop bit is used to indicate the end of data transmission. If StopBits is 2, two stop bits are used to indicate the end of data transmission. If StopBits is 1.5, the stop bit is transferred for 150% of the normal time used to transfer one bit.

Note : Both the computer and the peripheral device must be configured to transmit the same number of stop bits.
 

In addition to the stop bits, the serial data format consists of a start bit, between five and eight data bits, and possibly a parity bit. You specify the number of data bits with the DataBits property, and the type of parity checking with the Parity property.

Values
{1} : One stop bit is transmitted to indicate the end of a byte.
1.5 : The stop bit is transferred for 150% of the normal time used to transfer one bit.
2 : Two stop bits are transmitted to indicate the end of a byte.

댓글