USART Operation: UART Mode
17-8
USART Peripheral Interface, UART Mode
Automatic Error Detection
Glitch suppression prevents the USART from being accidentally started. Any
low-level on URXDx shorter than the deglitch time t
τ
(approximately 300 ns)
will be ignored. See the device-specific data sheet for parameters.
When a low period on URXDx exceeds t
τ
a majority vote is taken for the start
bit. If the majority vote fails to detect a valid start bit the USART halts character
reception and waits for the next low period on URXDx. The majority vote is also
used for each bit in a character to prevent bit errors.
The USART module automatically detects framing errors, parity errors,
overrun errors, and break conditions when receiving characters. The bits FE,
PE, OE, and BRK are set when their respective condition is detected. When
any of these error flags are set, RXERR is also set. The error conditions are
described in Table 17−1.
Table 17−1.Receive Error Conditions
Error Condition
Description
Framing error
A framing error occurs when a low stop bit is
detected. When two stop bits are used, only the first
stop bit is checked for framing error. When a
framing error is detected, the FE bit is set.
Parity error
A parity error is a mismatch between the number of
1s in a character and the value of the parity bit.
When an address bit is included in the character, it
is included in the parity calculation. When a parity
error is detected, the PE bit is set.
Receive overrun error
An overrun error occurs when a character is loaded
into UxRXBUF before the prior character has been
read. When an overrun occurs, the OE bit is set.
Break condition
A break condition is a period of 10 or more low bits
received on URXDx after a missing stop bit. When a
break condition is detected, the BRK bit is set. A
break condition can also set the interrupt flag
URXIFGx when URXEIE = 0.
When URXEIE = 0 and a framing error, parity error, or break condition is
detected, no character is received into UxRXBUF. When URXEIE = 1,
characters are received into UxRXBUF and any applicable error bit is set.
When any of the FE, PE, OE, BRK, or RXERR bits are set, the bit remains set
until user software resets it or UxRXBUF is read.
Содержание MSP430x4xx Family
Страница 1: ...MSP430x4xx Family 2007 Mixed Signal Products User s Guide SLAU056G ...
Страница 2: ......
Страница 6: ...vi ...
Страница 114: ...3 76 RISC 16 Bit CPU ...
Страница 304: ...5 20 FLL Clock Module ...
Страница 340: ...7 8 Supply Voltage Supervisor ...
Страница 348: ...8 8 16 Bit Hardware Multiplier ...
Страница 372: ...9 24 32 Bit Hardware Multiplier ...
Страница 400: ...10 28 DMA Controller ...
Страница 428: ...13 10 Basic Timer1 ...
Страница 466: ...15 24 Timer_A ...
Страница 522: ...17 30 USART Peripheral Interface UART Mode ...
Страница 544: ...18 22 USART Peripheral Interface SPI Mode ...
Страница 672: ...23 12 Comparator_A ...
Страница 692: ...24 20 LCD Controller ...
Страница 746: ...26 28 ADC12 ...