USART Operation: UART Mode
14-13USART Peripheral Interface, UART Mode
Transmit Bit Timing
The timing for each character is the sum of the individual bit timings. By
modulating each bit, the cumulative bit error is reduced. The individual bit error
can be calculated by:
Error [%] +NJbaud rate
BRCLK ƪ(j)1) UxBR )S
j
i+0miƫ*(j)1)Nj 100%
With:
baud rate: Desired baud rate
BRCLK: Input frequency UCLKI, ACLK, or SMCLK
j: Bit position - 0 for the start bit, 1 for data bit D0, and so on
UxBR: Division factor in registers UxBR1 and UxBR0
For example, the transmit errors for the following conditions are calculated:
Baud rate = 2400
BRCLK = 32,768 Hz (ACLK)
UxBR = 13, since the ideal division factor is 13.65
UxMCTL = 6Bh: m7= 0, m6= 1, m5=1, m4 =0, m3 =1, m2= 0,
m1=1, and m0 =1. The LSB of UxMCTL is used first.
Start bit Error [%] +ǒbaudrate
BRCLK ((0)1) UxBR )1)1Ǔ 100% +2.54%
Data bit D0 Error [%] +ǒbaud rate
BRCLK ((1)1) UxBR)2)2Ǔ 100% +5. 08%
Data bit D1 Error [%] +ǒbaud rate
BRCLK ((2)1) UxBR)2)3Ǔ 100% +0. 29%
Data bit D2 Error [%] +ǒbaud rate
BRCLK ((3)1) UxBR)3)4Ǔ 100% +2. 83%
Data bit D3 Error [%] +ǒbaud rate
BRCLK ((4)1) UxBR)3)5Ǔ 100% +*1.95%
Data bit D4 Error [%] +ǒbaud rate
BRCLK ((5)1) UxBR)4)6Ǔ 100% +0. 59%
Data bit D5 Error [%] +ǒbaud rate
BRCLK ((6)1) UxBR)5)7Ǔ 100% +3. 13%
Data bit D6 Error [%] +ǒbaud rate
BRCLK ((7)1) UxBR)5)8Ǔ 100% +*1.66%
Data bit D7 Error [%] +ǒbaud rate
BRCLK ((8)1) UxBR)6)9Ǔ 100% +0. 88%
Parity bit Error[%] +ǒbaud rat e
BRCLK ((9)1) UxBR )7)10Ǔ 100% +3.42%
Stop bit 1 Error [%] +ǒbaud rate
BRCLK ((10 )1) UxBR)7)11Ǔ 100% +*1.37%
The results show the maximum per-bit error to be 5.08% of a BITCLK period.