
NUC126
Aug. 08, 2018
Page
861
of 943
Rev 1.03
NUC12
6 S
E
RI
E
S
T
E
CH
NI
CA
L R
E
F
E
RE
NCE
MA
NUA
L
9600
BRD =142
BRD =254, EDIVM1 =8
BRD =190, EDIVM1 =11
BRD =142, EDIVM1 =15
BRD =2302
4800
BRD =286
BRD =510, EDIVM1 =8
BRD =382, EDIVM1 =11
BRD =286, EDIVM1 =15
BRD =4606
Table 6.23-4 UART Controller Baud Rate Parameter Setting Example Table
UART Peripheral Clock = 22.1184 MHz
Baud Rate
UART_BAUD Value
Mode 0
Mode 1
Mode 2
921600
Not support
0x2B00_0000
0x3000_0016
460800
0x0000_0001
0x2F00_0001
0x2B00_0002
0x3000_002E
230400
0x0000_0004
0x2F00_0004
0x2B00_0006
0x3000_005E
115200
0x0000_000A
0x2F00_000A
0x2B00_000E
0x3000_00BE
57600
0x0000_0016
0x2F00_0016
0x2B00_001E
0x3000_017E
38400
0x0000_0022
0x2800_003E
0x2B00_002E
0x2F00_0022
0x3000_023E
19200
0x0000_0046
0x2800_007E
0x2B00_005E
0x2F00_0046
0x3000_047E
9600
0x0000_008E
0x2800_00FE
0x2B00_00BE
0x2F00_008E
0x3000_08FE
4800
0x0000_011E
0x2800_01FE
0x2B00_017E
0x2F00_011E
0x3000_11FE
Table 6.23-5 UART Controller Baud Rate Register Setting Example Table
6.23.5.2 UART Controller Baud Rate Compensation
The UART controller supports baud rate compensation function. It is used to optimize the precision in
each bit. The precision of the compensation is half of UART module clock because there is
BRCOMDEC bit (UART_BRCOMP[31]) to define the positive or negative compensation in each bit. If
the BRCOMPDEC (UART_BRCOMP[31]) = 0, it is positive compensation for each bit, one more
module clock will be append in the compensated bit. If the BRCOMPDEC (UART_BRCOMP[31]) = 1, it
is negative compensation for each bit, decrease one module clock in the compensated bit.
There is 9-bits location, BRCOMP[8:0] (UART_BRCOMP[8:0]), can be configured by user to define the
relative bit is compensated or not. BRCOMP[7:0] is used to define the compensation of
UART_DAT[7:0] and BRCOMP[8] is used to define the parity bit.