SN32F760 Series
32-Bit Cortex-M0 Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 164
Version 2.0
14.11 USART REGISTERS
Base Address: 0x4001 6000 (USART0)
0x4005 6000 (USART1)
14.11.1 USART n Receiver Buffer register (USARTn_RB) (n=0,1)
Address Offset: 0x00
This register is the top byte of the USART RX FIFO, and contains the oldest character received and can be read via
the bus interface. The LSB (bit 0) contains the first-received data bit. If the character received is less than 8 bits, the
unused MSBs are padded with zeros.
The Divisor Latch Access Bit (DLAB) in the
register must be zero in order to access this register.
Since PE, FE and BI bits correspond to the byte on the top of the USART RX FIFO (i.e. the one that will be read in the
next read from this register), the right approach for fetching the valid pair of received byte and its status bits is first t o
read the content of the
register, and then to read a byte from this register.
Bit
Name
Description
Attribute
Reset
31:8
Reserved
R
0
7:0
RB[7:0]
Contains the oldest received byte in the USART RX FIFO.
R
0
14.11.2 USART n Transmitter Holding register (USARTn_TH) (n=0,1)
Address Offset: 0x00
This register is the top byte of the USART TX FIFO. The top byte is the newest character in the TX FIFO and can be
written via the bus interface. The LSB represents the first bit to transmit.
The Divisor Latch Access Bit (DLAB) in
register must be zero in order to access this register.
Bit
Name
Description
Attribute
Reset
31:8
Reserved
R
0
7:0
TH[7:0]
The byte will be sent when it is the oldest byte in TX FIFO and the
transmitter is available.
W
0
14.11.3 USART n Divisor Latch LSB registers (USARTn_DLL) (n =0,1)
Address Offset: 0x00
The USART Divisor Latch is part of the USART Baud Rate Generator and holds the value used (optionally with the
Fractional Divider) to divide the USARTn_PCLK clock in order to produce the baud rate clock, which must be the
multiple of the desired baud rate that is specified by the Oversampling Register (typically 16X).
The USARTn_DLL and USARTn_DLM registers together form a 16-bit divisor, and DLAB bit in
must be one in order to access these registers.
DLL contains the lower 8 bits of the divisor and DLM contains the higher 8 bits. A zero value is treated like 0x0001.
Bit
Name
Description
Attribute
Reset
31:8
Reserved
R
0
7:0
DLL[7:0]
The USART Divisor Latch LSB Register, along with the DLM register,
determines the baud rate of the USART.
R/W
0
14.11.4 USART n Divisor Latch MSB register (USARTn_DLM) (n=0,1)
Address Offset: 0x04