English
Language : 

NUC140LC1CN Datasheet, PDF (47/77 Pages) List of Unclassifed Manufacturers – 32-BIT MICROCONTROLLER
NuMicro™ NUC140 Data Sheet
System clock = internal 22.1184 MHz high speed oscillator
Baud rate
Mode0
Parameter Register
Mode1
Parameter Register
Mode2
Parameter Register
230400
115200
57600
38400
19200
9600
4800
A=4
A=10
A=22
A=34
A=70
A=142
A=286
0x0000_0004
A=4,B=15
A=6,B=11
0x2F00_0004
0x2B00_0006
0x0000_000A
A=10,B=15
A=14,B=11
0x2F00_000A
0x2B00_000E
0x0000_0016
A=22,B=15
A=30,B=11
0x2F00_0016
0x2B00_001E
A=62,B=8 0x2800_003E
0x0000_0022 A=46,B=11 0x2B00_002E
A=34,B=15 0x2F00_0022
A=126,B=8 0x2800_007E
0x0000_0046 A=94,B=11 0x2B00_005E
A=70,B=15 0x2F00_0046
A=254,B=8 0x2800_00FE
0x0000_008E A=190,B=11 0x2B00_00BE
A=142,B=15 0x2F00_008E
A=510,B=8 0x2800_01FE
0x0000_011E A=382,B=11 0x2B00_017E
A=286,B=15 0x2F00_011E
A=94
A=190
A=382
A=574
A=1150
A=2302
A=4606
0x3000_005E
0x3000_00BE
0x3000_017E
0x3000_023E
0x3000_047E
0x3000_08FE
0x3000_11FE
Table 5-7 UART Baud Rate Setting Table
The UART0 and UART1 controllers support auto-flow control function that uses two low-level
signals, /CTS (clear-to-send) and /RTS (request-to-send), to control the flow of data transfer
between the UART and external devices (ex: Modem). When auto-flow is enabled, the UART is
not allowed to receive data until the UART asserts /RTS to external device. When the number of
bytes in the RX FIFO equals the value of RTS_TRI_LEV (UA_FCR [19:16]), the /RTS is de-
asserted. The UART sends data out when UART controller detects /CTS is asserted from external
device. If a valid asserted /CTS is not detected the UART controller will not send data out.
The UART controllers also provides Serial IrDA (SIR, Serial Infrared) function (User must set
IrDA_EN (UA_FUN_SEL [1]) to enable IrDA function). The SIR specification defines a short-range
infrared asynchronous serial transmission mode with one start bit, 8 data bits, and 1 stop bit. The
maximum data rate is 115.2 Kbps (half duplex). The IrDA SIR block contains an IrDA SIR
Protocol encoder/decoder. The IrDA SIR protocol is half-duplex only. So it cannot transmit and
receive data at the same time. The IrDA SIR physical layer specifies a minimum 10ms transfer
delay between transmission and reception. This delay feature must be implemented by software.
The alternate function of UART controllers is LIN (Local Interconnect Network) function. The LIN
mode is selected by setting the UA_FUN_SEL[1:0] to ’01’. In LIN mode, one start bit and 8-bit
data format with 1-bit stop bit are required in accordance with the LIN standard.
For NuMicro™ NUC100 Series, another alternate function of UART controllers is RS-485 9-bit
mode function, and direction control provided by RTS pin or can program GPIO (PB.2 for RTS0
and PB.6 for RTS1) to implement the function by software. The RS-485 mode is selected by
setting the UA_FUN_SEL register to select RS-485 function. The RS-485 driver control is
implemented using the RTS control signal from an asynchronous serial port to enable the RS-485
driver. In RS-485 mode, many characteristics of the RX and TX are same as UART.
- 47 -
Publication Release Date: Jan. 2, 2012
Revision V3.02