\n

USART

Peripheral Memory Blocks

address_offset : 0x0 Bytes (0x0)
size : 0xFFF byte (0x0)
mem_usage : registers
protection : not protected

Registers

RBR

THR

DLL

MCR

LSR

MSR

SCR

ACR

ICR

FDR

OSR

TER

DLM

IER

HDEN

SCICTRL

RS485CTRL

RS485ADRMATCH

RS485DLY

SYNCCTRL

IIR

FCR

LCR


RBR

Receiver Buffer Register. Contains the next received character to be read. (DLAB=0)
address_offset : 0x0 Bytes (0x0)
access : read-only
reset_value : 0x0
reset_Mask : 0x0

RBR RBR read-only 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 RBR RESERVED

RBR : The USART Receiver Buffer Register contains the oldest received byte in the USART RX FIFO.
bits : 0 - 7 (8 bit)

RESERVED : Reserved
bits : 8 - 39 (32 bit)


THR

Transmit Holding Register. The next character to be transmitted is written here. (DLAB=0)
address_offset : 0x0 Bytes (0x0)
access : write-only
reset_value : 0x0
alternate_register : RBR
reset_Mask : 0x0

THR THR write-only 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 THR RESERVED

THR : Writing to the USART Transmit Holding Register causes the data to be stored in the USART transmit FIFO. The byte will be sent when it is the oldest byte in the FIFO and the transmitter is available.
bits : 0 - 7 (8 bit)

RESERVED : Reserved
bits : 8 - 39 (32 bit)


DLL

Divisor Latch LSB. Least significant byte of the baud rate divisor value. The full divisor is used to generate a baud rate from the fractional rate divider. (DLAB=1)
address_offset : 0x0 Bytes (0x0)
access : read-write
reset_value : 0x0
alternate_register : RBR
reset_Mask : 0x0

DLL DLL read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 DLLSB RESERVED

DLLSB : The USART Divisor Latch LSB Register, along with the DLM register, determines the baud rate of the USART.
bits : 0 - 7 (8 bit)

RESERVED : Reserved
bits : 8 - 39 (32 bit)


MCR

Modem Control Register.
address_offset : 0x10 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

MCR MCR read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 DTRCTRL RTSCTRL LMS RESERVED RTSEN CTSEN RESERVED RESERVED

DTRCTRL : Source for modem output pin DTR. This bit reads as 0 when modem loopback mode is active.
bits : 0 - 0 (1 bit)

RTSCTRL : Source for modem output pin RTS. This bit reads as 0 when modem loopback mode is active.
bits : 1 - 2 (2 bit)

LMS : Loopback Mode Select. The modem loopback mode provides a mechanism to perform diagnostic loopback testing. Serial data from the transmitter is connected internally to serial input of the receiver. Input pin, RXD, has no effect on loopback and output pin, TXD is held in marking state. The DSR, CTS, DCD, and RI pins are ignored. Externally, DTR and RTS are set inactive. Internally, the upper four bits of the MSR are driven by the lower four bits of the MCR. This permits modem status interrupts to be generated in loopback mode by writing the lower four bits of MCR.
bits : 4 - 8 (5 bit)

Enumeration: ENUM

0 : DISABLE_MODEM_LOOPBA

Disable modem loopback mode.

1 : ENABLE_MODEM_LOOPBAC

Enable modem loopback mode.

End of enumeration elements list.

RESERVED : Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined.
bits : 5 - 10 (6 bit)

RTSEN : RTS enable
bits : 6 - 12 (7 bit)

Enumeration: ENUM

0 : DISABLE_AUTO_RTS_FLO

Disable auto-rts flow control.

1 : ENABLE_AUTO_RTS_FLOW

Enable auto-rts flow control.

End of enumeration elements list.

CTSEN : CTS enable
bits : 7 - 14 (8 bit)

Enumeration: ENUM

0 : DISABLE_AUTO_CTS_FLO

Disable auto-cts flow control.

1 : ENABLE_AUTO_CTS_FLOW

Enable auto-cts flow control.

End of enumeration elements list.

RESERVED : Reserved
bits : 8 - 39 (32 bit)

RESERVED : Reserved
bits : 8 - 39 (32 bit)


LSR

Line Status Register. Contains flags for transmit and receive status, including line errors.
address_offset : 0x14 Bytes (0x0)
access : read-only
reset_value : 0x0
reset_Mask : 0x0

LSR LSR read-only 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 RDR OE PE FE BI THRE TEMT RXFE TXERR RESERVED

RDR : Receiver Data Ready:LSR[0] is set when the RBR holds an unread character and is cleared when the USART RBR FIFO is empty.
bits : 0 - 0 (1 bit)

Enumeration: ENUM

0 : RBR_IS_EMPTY_

RBR is empty.

1 : RBR_CONTAINS_VALID_D

RBR contains valid data.

End of enumeration elements list.

OE : Overrun Error. The overrun error condition is set as soon as it occurs. A LSR read clears LSR[1]. LSR[1] is set when USART RSR has a new character assembled and the USART RBR FIFO is full. In this case, the USART RBR FIFO will not be overwritten and the character in the USART RSR will be lost.
bits : 1 - 2 (2 bit)

Enumeration: ENUM

0 : INACTIVE

Overrun error status is inactive.

1 : ACTIVE

Overrun error status is active.

End of enumeration elements list.

PE : Parity Error. When the parity bit of a received character is in the wrong state, a parity error occurs. A LSR read clears LSR[2]. Time of parity error detection is dependent on FCR[0]. Note: A parity error is associated with the character at the top of the USART RBR FIFO.
bits : 2 - 4 (3 bit)

Enumeration: ENUM

0 : INACTIVE

Parity error status is inactive.

1 : ACTIVE

Parity error status is active.

End of enumeration elements list.

FE : Framing Error. When the stop bit of a received character is a logic 0, a framing error occurs. A LSR read clears LSR[3]. The time of the framing error detection is dependent on FCR0. Upon detection of a framing error, the RX will attempt to re-synchronize to the data and assume that the bad stop bit is actually an early start bit. However, it cannot be assumed that the next received byte will be correct even if there is no Framing Error. Note: A framing error is associated with the character at the top of the USART RBR FIFO.
bits : 3 - 6 (4 bit)

Enumeration: ENUM

0 : INACTIVE

Framing error status is inactive.

1 : ACTIVE

Framing error status is active.

End of enumeration elements list.

BI : Break Interrupt. When RXD1 is held in the spacing state (all zeros) for one full character transmission (start, data, parity, stop), a break interrupt occurs. Once the break condition has been detected, the receiver goes idle until RXD1 goes to marking state (all ones). A LSR read clears this status bit. The time of break detection is dependent on FCR[0]. Note: The break interrupt is associated with the character at the top of the USART RBR FIFO.
bits : 4 - 8 (5 bit)

Enumeration: ENUM

0 : INACTIVE

Break interrupt status is inactive.

1 : ACTIVE

Break interrupt status is active.

End of enumeration elements list.

THRE : Transmitter Holding Register Empty. THRE is set immediately upon detection of an empty USART THR and is cleared on a THR write.
bits : 5 - 10 (6 bit)

Enumeration: ENUM

0 : THR_CONTAINS_VALID_D

THR contains valid data.

1 : THR_IS_EMPTY_

THR is empty.

End of enumeration elements list.

TEMT : Transmitter Empty. TEMT is set when both THR and TSR are empty TEMT is cleared when either the TSR or the THR contain valid data.
bits : 6 - 12 (7 bit)

Enumeration: ENUM

0 : VALID_D

THR and/or the TSR contains valid data.

1 : EMPTY

THR and the TSR are empty.

End of enumeration elements list.

RXFE : Error in RX FIFO. LSR[7] is set when a character with a RX error such as framing error, parity error or break interrupt, is loaded into the RBR. This bit is cleared when the LSR register is read and there are no subsequent errors in the USART FIFO.
bits : 7 - 14 (8 bit)

Enumeration: ENUM

0 : NO_ERROR

RBR contains no USART RX errors or FCR[0]=0.

1 : ERRO

USART RBR contains at least one USART RX error.

End of enumeration elements list.

TXERR : Tx Error. In smart card T=0 operation, this bit is set when the smart card has NACKed a transmitted character, one more than the number of times indicated by the TXRETRY field.
bits : 8 - 16 (9 bit)

RESERVED : Reserved
bits : 9 - 40 (32 bit)


MSR

Modem Status Register.
address_offset : 0x18 Bytes (0x0)
access : read-only
reset_value : 0x0
reset_Mask : 0x0

MSR MSR read-only 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 DCTS DDSR TERI DDCD CTS DSR RI DCD RESERVED

DCTS : Delta CTS. Set upon state change of input CTS. Cleared on an MSR read.
bits : 0 - 0 (1 bit)

Enumeration: ENUM

0 : NO_CHANGE_DETECTED_O

No change detected on modem input, CTS.

1 : STATE_CHANGE_DETECTE

State change detected on modem input, CTS.

End of enumeration elements list.

DDSR : Delta DSR. Set upon state change of input DSR. Cleared on an MSR read.
bits : 1 - 2 (2 bit)

Enumeration: ENUM

0 : NO_CHANGE_DETECTED_O

No change detected on modem input, DSR.

1 : STATE_CHANGE_DETECTE

State change detected on modem input, DSR.

End of enumeration elements list.

TERI : Trailing Edge RI. Set upon low to high transition of input RI. Cleared on an MSR read.
bits : 2 - 4 (3 bit)

Enumeration: ENUM

0 : NO_CHANGE_DETECTED_O

No change detected on modem input, RI.

1 : LOW_TO_HIGH_TRANSITI

Low-to-high transition detected on RI.

End of enumeration elements list.

DDCD : Delta DCD. Set upon state change of input DCD. Cleared on an MSR read.
bits : 3 - 6 (4 bit)

Enumeration: ENUM

0 : NO_CHANGE_DETECTED_O

No change detected on modem input, DCD.

1 : STATE_CHANGE_DETECTE

State change detected on modem input, DCD.

End of enumeration elements list.

CTS : Clear To Send State. Complement of input signal CTS. This bit is connected to MCR[1] in modem loopback mode.
bits : 4 - 8 (5 bit)

DSR : Data Set Ready State. Complement of input signal DSR. This bit is connected to MCR[0] in modem loopback mode.
bits : 5 - 10 (6 bit)

RI : Ring Indicator State. Complement of input RI. This bit is connected to MCR[2] in modem loopback mode.
bits : 6 - 12 (7 bit)

DCD : Data Carrier Detect State. Complement of input DCD. This bit is connected to MCR[3] in modem loopback mode.
bits : 7 - 14 (8 bit)

RESERVED : Reserved, the value read from a reserved bit is not defined.
bits : 8 - 39 (32 bit)


SCR

Scratch Pad Register. Eight-bit temporary storage for software.
address_offset : 0x1C Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SCR SCR read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 PAD RESERVED

PAD : A readable, writable byte.
bits : 0 - 7 (8 bit)

RESERVED : Reserved
bits : 8 - 39 (32 bit)


ACR

Auto-baud Control Register. Contains controls for the auto-baud feature.
address_offset : 0x20 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ACR ACR read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 START MODE AUTORESTART ABEOINTCLR ABTOINTCLR RESERVED RESERVED

START : This bit is automatically cleared after auto-baud completion.
bits : 0 - 0 (1 bit)

Enumeration: ENUM

0 : AUTO_BAUD_STOP_AUTO

Auto-baud stop (auto-baud is not running).

1 : AUTO_BAUD_START_AUT

Auto-baud start (auto-baud is running). Auto-baud run bit. This bit is automatically cleared after auto-baud completion.

End of enumeration elements list.

MODE : Auto-baud mode select bit.
bits : 1 - 2 (2 bit)

Enumeration: ENUM

0 : MODE_0_

Mode 0.

1 : MODE_1_

Mode 1.

End of enumeration elements list.

AUTORESTART : Start mode
bits : 2 - 4 (3 bit)

Enumeration: ENUM

0 : NO_RESTART

No restart

1 : RESTART_IN_CASE_OF_T

Restart in case of time-out (counter restarts at next USART Rx falling edge)

End of enumeration elements list.

ABEOINTCLR : End of auto-baud interrupt clear bit (write only accessible).
bits : 8 - 16 (9 bit)

Enumeration: ENUM

0 : NO_IMPACT

Writing a 0 has no impact.

1 : CLEAR

Writing a 1 will clear the corresponding interrupt in the IIR.

End of enumeration elements list.

ABTOINTCLR : Auto-baud time-out interrupt clear bit (write only accessible).
bits : 9 - 18 (10 bit)

Enumeration: ENUM

0 : NO_IMPACT

Writing a 0 has no impact.

1 : CLEAR

Writing a 1 will clear the corresponding interrupt in the IIR.

End of enumeration elements list.

RESERVED : Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined.
bits : 10 - 41 (32 bit)

RESERVED : Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined.
bits : 10 - 41 (32 bit)


ICR

IrDA Control Register. Enables and configures the IrDA (remote control) mode.
address_offset : 0x24 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ICR ICR read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IRDAEN IRDAINV FIXPULSEEN PULSEDIV RESERVED

IRDAEN : IrDA mode enable
bits : 0 - 0 (1 bit)

Enumeration: ENUM

0 : IRDA_MODE_IS_DISABLE

IrDA mode is disabled, USARTn acts as a standard USART.

1 : IRDA_MODE_IS_ENABLED

IrDA mode is enabled.

End of enumeration elements list.

IRDAINV : Serial input inverter
bits : 1 - 2 (2 bit)

Enumeration: ENUM

0 : INVERTED

The serial input is not inverted.

1 : NOT_INVERTED

The serial input is inverted. This has no effect on the serial output.

End of enumeration elements list.

FIXPULSEEN : IrDA fixed pulse width mode.
bits : 2 - 4 (3 bit)

Enumeration: ENUM

0 : DISABLED

IrDA fixed pulse width mode disabled.

1 : ENABLED

IrDA fixed pulse width mode enabled.

End of enumeration elements list.

PULSEDIV : Configures the pulse width when FixPulseEn = 1.
bits : 3 - 8 (6 bit)

Enumeration: ENUM

0x0 : 3_DIV_16_X_BAUD_RATE

3 / (16 x baud rate)

0x1 : 2_X_TPCLK

2 x TPCLK

0x2 : 4_X_TPCLK

4 x TPCLK

0x3 : 8_X_TPCLK

8 x TPCLK

0x4 : 16_X_TPCLK

16 x TPCLK

0x5 : 32_X_TPCLK

32 x TPCLK

0x6 : 64_X_TPCLK

64 x TPCLK

0x7 : 128_X_TPCLK

128 x TPCLK

End of enumeration elements list.

RESERVED : Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined.
bits : 6 - 37 (32 bit)


FDR

Fractional Divider Register. Generates a clock input for the baud rate divider.
address_offset : 0x28 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

FDR FDR read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 DIVADDVAL MULVAL RESERVED

DIVADDVAL : Baud rate generation pre-scaler divisor value. If this field is 0, fractional baud rate generator will not impact the USART baud rate.
bits : 0 - 3 (4 bit)

MULVAL : Baud rate pre-scaler multiplier value. This field must be greater or equal 1 for USART to operate properly, regardless of whether the fractional baud rate generator is used or not.
bits : 4 - 11 (8 bit)

RESERVED : Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined.
bits : 8 - 39 (32 bit)


OSR

Oversampling Register. Controls the degree of oversampling during each bit time.
address_offset : 0x2C Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

OSR OSR read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 OSFRAC OSINT FDINT RESERVED RESERVED

OSFRAC : Fractional part of the oversampling ratio, in units of 1/8th of an input clock period. (001 = 0.125, ..., 111 = 0.875)
bits : 1 - 4 (4 bit)

OSINT : Integer part of the oversampling ratio, minus 1. The reset values equate to the normal operating mode of 16 input clocks per bit time.
bits : 4 - 11 (8 bit)

FDINT : In Smart Card mode, these bits act as a more-significant extension of the OSint field, allowing an oversampling ratio up to 2048 as required by ISO7816-3. In Smart Card mode, bits 14:4 should initially be set to 371, yielding an oversampling ratio of 372.
bits : 8 - 22 (15 bit)

RESERVED : Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined.
bits : 15 - 46 (32 bit)

RESERVED : Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined.
bits : 15 - 46 (32 bit)


TER

Transmit Enable Register. Turns off USART transmitter for use with software flow control.
address_offset : 0x30 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TER TER read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 TXEN RESERVED RESERVED

TXEN : When this bit is 1, as it is after a Reset, data written to the THR is output on the TXD pin as soon as any preceding data has been sent. If this bit cleared to 0 while a character is being sent, the transmission of that character is completed, but no further characters are sent until this bit is set again. In other words, a 0 in this bit blocks the transfer of characters from the THR or TX FIFO into the transmit shift register. Software can clear this bit when it detects that the a hardware-handshaking TX-permit signal (CTS) has gone false, or with software handshaking, when it receives an XOFF character (DC3). Software can set this bit again when it detects that the TX-permit signal has gone true, or when it receives an XON (DC1) character.
bits : 7 - 14 (8 bit)

RESERVED : Reserved
bits : 8 - 39 (32 bit)

RESERVED : Reserved
bits : 8 - 39 (32 bit)


DLM

Divisor Latch MSB. Most significant byte of the baud rate divisor value. The full divisor is used to generate a baud rate from the fractional rate divider. (DLAB=1)
address_offset : 0x4 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

DLM DLM read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 DLMSB RESERVED

DLMSB : The USART Divisor Latch MSB Register, along with the DLL register, determines the baud rate of the USART.
bits : 0 - 7 (8 bit)

RESERVED : Reserved
bits : 8 - 39 (32 bit)


IER

Interrupt Enable Register. Contains individual interrupt enable bits for the 7 potential USART interrupts. (DLAB=0)
address_offset : 0x4 Bytes (0x0)
access : read-write
reset_value : 0x0
alternate_register : DLM
reset_Mask : 0x0

IER IER read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 RBRINTEN THREINTEN RLSINTEN MSINTEN ABEOINTEN ABTOINTEN RESERVED RESERVED

RBRINTEN : RBR Interrupt Enable. Enables the Receive Data Available interrupt. It also controls the Character Receive Time-out interrupt.
bits : 0 - 0 (1 bit)

Enumeration: ENUM

0 : DISABLE_THE_RDA_INTE

Disable the RDA interrupt.

1 : ENABLE_THE_RDA_INTER

Enable the RDA interrupt.

End of enumeration elements list.

THREINTEN : THRE Interrupt Enable. Enables the THRE interrupt. The status of this interrupt can be read from LSR[5].
bits : 1 - 2 (2 bit)

Enumeration: ENUM

0 : DISABLE_THE_THRE_INT

Disable the THRE interrupt.

1 : ENABLE_THE_THRE_INTE

Enable the THRE interrupt.

End of enumeration elements list.

RLSINTEN : Enables the Receive Line Status interrupt. The status of this interrupt can be read from LSR[4:1].
bits : 2 - 4 (3 bit)

Enumeration: ENUM

0 : DISABLE_THE_RLS_INTE

Disable the RLS interrupt.

1 : ENABLE_THE_RLS_INTER

Enable the RLS interrupt.

End of enumeration elements list.

MSINTEN : Enables the Modem Status interrupt. The components of this interrupt can be read from the MSR.
bits : 3 - 6 (4 bit)

Enumeration: ENUM

0 : DISABLE_THE_MS_INTER

Disable the MS interrupt.

1 : ENABLE_THE_MS_INTERR

Enable the MS interrupt.

End of enumeration elements list.

ABEOINTEN : Enables the end of auto-baud interrupt.
bits : 8 - 16 (9 bit)

Enumeration: ENUM

0 : DISABLE_END_OF_AUTO_

Disable end of auto-baud Interrupt.

1 : ENABLE_END_OF_AUTO_B

Enable end of auto-baud Interrupt.

End of enumeration elements list.

ABTOINTEN : Enables the auto-baud time-out interrupt.
bits : 9 - 18 (10 bit)

Enumeration: ENUM

0 : DISABLE_AUTO_BAUD_TI

Disable auto-baud time-out Interrupt.

1 : ENABLE_AUTO_BAUD_TIM

Enable auto-baud time-out Interrupt.

End of enumeration elements list.

RESERVED : Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined.
bits : 10 - 41 (32 bit)

RESERVED : Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined.
bits : 10 - 41 (32 bit)


HDEN

Half duplex enable register.
address_offset : 0x40 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

HDEN HDEN read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 HDEN RESERVED

HDEN : Half-duplex mode enable
bits : 0 - 0 (1 bit)

Enumeration: ENUM

0 : DISABLE_HALF_DUPLEX_

Disable half-duplex mode.

1 : ENABLE_HALF_DUPLEX_M

Enable half-duplex mode.

End of enumeration elements list.

RESERVED : Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined.
bits : 1 - 32 (32 bit)


SCICTRL

Smart Card Interface Control register. Enables and configures the Smart Card Interface feature.
address_offset : 0x48 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SCICTRL SCICTRL read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 SCIEN NACKDIS PROTSEL TXRETRY XTRAGUARD RESERVED RESERVED

SCIEN : Smart Card Interface Enable.
bits : 0 - 0 (1 bit)

Enumeration: ENUM

0 : SMART_CARD_INTERFACE

Smart card interface disabled.

1 : ASYNCHRONOUS_HALF_DU

Asynchronous half duplex smart card interface is enabled.

End of enumeration elements list.

NACKDIS : NACK response disable. Only applicable in T=0.
bits : 1 - 2 (2 bit)

Enumeration: ENUM

0 : ENABLED

A NACK response is enabled.

1 : DISABLED

A NACK response is inhibited.

End of enumeration elements list.

PROTSEL : Protocol selection as defined in the ISO7816-3 standard.
bits : 2 - 4 (3 bit)

Enumeration: ENUM

0 : T_EQ_0

T = 0

1 : T_EQ_1

T = 1

End of enumeration elements list.

TXRETRY : When the protocol selection T bit (above) is 0, the field controls the maximum number of retransmissions that the USART will attempt if the remote device signals NACK. When NACK has occurred this number of times plus one, the Tx Error bit in the LSR is set, an interrupt is requested if enabled, and the USART is locked until the FIFO is cleared.
bits : 5 - 12 (8 bit)

XTRAGUARD : When the protocol selection T bit (above) is 0, this field indicates the number of bit times (ETUs) by which the guard time after a character transmitted by the USART should exceed the nominal 2 bit times. 0xFF in this field may indicate that there is just a single bit after a character and 11 bit times/character
bits : 8 - 23 (16 bit)

RESERVED : Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined.
bits : 16 - 47 (32 bit)

RESERVED : Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined.
bits : 16 - 47 (32 bit)


RS485CTRL

RS-485/EIA-485 Control. Contains controls to configure various aspects of RS-485/EIA-485 modes.
address_offset : 0x4C Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

RS485CTRL RS485CTRL read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 NMMEN RXDIS AADEN SEL DCTRL OINV RESERVED

NMMEN : NMM enable.
bits : 0 - 0 (1 bit)

Enumeration: ENUM

1 : RS_485_EIA_485_NORMA

RS-485/EIA-485 Normal Multidrop Mode (NMM) is enabled. In this mode, an address is detected when a received byte causes the USART to set the parity error and generate an interrupt.

1 : RS_485_EIA_485_NORMA

RS-485/EIA-485 Normal Multidrop Mode (NMM) is enabled. In this mode, an address is detected when a received byte causes the USART to set the parity error and generate an interrupt.

End of enumeration elements list.

RXDIS : Receiver enable.
bits : 1 - 2 (2 bit)

Enumeration: ENUM

0 : THE_RECEIVER_IS_ENAB

The receiver is enabled.

1 : THE_RECEIVER_IS_DISA

The receiver is disabled.

End of enumeration elements list.

AADEN : AAD enable.
bits : 2 - 4 (3 bit)

Enumeration: ENUM

1 : AUTO_ADDRESS_DETECT_

Auto Address Detect (AAD) is enabled.

1 : AUTO_ADDRESS_DETECT_

Auto Address Detect (AAD) is enabled.

End of enumeration elements list.

SEL : Select direction control pin
bits : 3 - 6 (4 bit)

Enumeration: ENUM

0 : RTS

If direction control is enabled (bit DCTRL = 1), pin RTS is used for direction control.

1 : DTR

If direction control is enabled (bit DCTRL = 1), pin DTR is used for direction control.

End of enumeration elements list.

DCTRL : Auto direction control enable.
bits : 4 - 8 (5 bit)

Enumeration: ENUM

0 : DISABLE_AUTO_DIRECTI

Disable Auto Direction Control.

1 : ENABLE_AUTO_DIRECTIO

Enable Auto Direction Control.

End of enumeration elements list.

OINV : Polarity control. This bit reverses the polarity of the direction control signal on the RTS (or DTR) pin.
bits : 5 - 10 (6 bit)

Enumeration: ENUM

0 : LOW

The direction control pin will be driven to logic 0 when the transmitter has data to be sent. It will be driven to logic 1 after the last bit of data has been transmitted.

1 : HIGH

The direction control pin will be driven to logic 1 when the transmitter has data to be sent. It will be driven to logic 0 after the last bit of data has been transmitted.

End of enumeration elements list.

RESERVED : Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined.
bits : 6 - 37 (32 bit)


RS485ADRMATCH

RS-485/EIA-485 address match. Contains the address match value for RS-485/EIA-485 mode.
address_offset : 0x50 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

RS485ADRMATCH RS485ADRMATCH read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ADRMATCH RESERVED

ADRMATCH : Contains the address match value.
bits : 0 - 7 (8 bit)

RESERVED : Reserved
bits : 8 - 39 (32 bit)


RS485DLY

RS-485/EIA-485 direction control delay.
address_offset : 0x54 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

RS485DLY RS485DLY read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 DLY RESERVED

DLY : Contains the direction control (RTS or DTR) delay value. This register works in conjunction with an 8-bit counter.
bits : 0 - 7 (8 bit)

RESERVED : Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined.
bits : 8 - 39 (32 bit)


SYNCCTRL

Synchronous mode control register.
address_offset : 0x58 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SYNCCTRL SYNCCTRL read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 SYNC CSRC FES TSBYPASS CSCEN SSDIS CCCLR RESERVED

SYNC : Enables synchronous mode.
bits : 0 - 0 (1 bit)

Enumeration: ENUM

0 : DISABLED

Disabled

1 : ENABLED

Enabled

End of enumeration elements list.

CSRC : Clock source select.
bits : 1 - 2 (2 bit)

Enumeration: ENUM

0 : SYNCHRONOUS_SLAVE_MO

Synchronous slave mode (SCLK in)

1 : SYNCHRONOUS_MASTER_M

Synchronous master mode (SCLK out)

End of enumeration elements list.

FES : Falling edge sampling.
bits : 2 - 4 (3 bit)

Enumeration: ENUM

0 : RISING

RxD is sampled on the rising edge of SCLK

1 : FALLING

RxD is sampled on the falling edge of SCLK

End of enumeration elements list.

TSBYPASS : Transmit synchronization bypass in synchronous slave mode.
bits : 3 - 6 (4 bit)

Enumeration: ENUM

0 : SYNC

The input clock is synchronized prior to being used in clock edge detection logic

1 : NOSYNC

The input clock is not synchronized prior to being used in clock edge detection logic. This allows for a high er input clock rate at the expense of potential metastability.

End of enumeration elements list.

CSCEN : Continuous master clock enable (used only when CSRC is 1)
bits : 4 - 8 (5 bit)

Enumeration: ENUM

0 : SCLK_CYCLES_ONLY_WHE

SCLK cycles only when characters are being sent on TxD

1 : SCLK_RUNS_CONTINUOUS

SCLK runs continuously (characters can be received on RxD independently from transmission on TxD)

End of enumeration elements list.

SSDIS : Start/stop bits
bits : 5 - 10 (6 bit)

Enumeration: ENUM

0 : SEND_START_AND_STOP_

Send start and stop bits as in other modes.

1 : DO_NOT_SEND_START_STOP

Do not send start/stop bits.

End of enumeration elements list.

CCCLR : Continuous clock clear
bits : 6 - 12 (7 bit)

Enumeration: ENUM

0 : CSCEN_IS_UNDER_SOFTW

CSCEN is under software control.

1 : HARDWARE_CLEARS_CSCE

Hardware clears CSCEN after each character is received.

End of enumeration elements list.

RESERVED : Reserved. The value read from a reserved bit is not defined.
bits : 7 - 38 (32 bit)


IIR

Interrupt ID Register. Identifies which interrupt(s) are pending.
address_offset : 0x8 Bytes (0x0)
access : read-only
reset_value : 0x0
reset_Mask : 0x0

IIR IIR read-only 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 INTSTATUS INTID FIFOEN ABEOINT ABTOINT RESERVED RESERVED

INTSTATUS : Interrupt status. Note that IIR[0] is active low. The pending interrupt can be determined by evaluating IIR[3:1].
bits : 0 - 0 (1 bit)

Enumeration: ENUM

0 : AT_LEAST_ONE_INTERRU

At least one interrupt is pending.

1 : NO_INTERRUPT_IS_PEND

No interrupt is pending.

End of enumeration elements list.

INTID : Interrupt identification. IER[3:1] identifies an interrupt corresponding to the USART Rx FIFO. All other values of IER[3:1] not listed below are reserved.
bits : 1 - 4 (4 bit)

Enumeration: ENUM

0x3 : 1_RECEIVE_LINE_S

1 - Receive Line Status (RLS).

0x2 : 2A__RECEIVE_DATA_AV

2a - Receive Data Available (RDA).

0x6 : 2B__CHARACTER_TIME_

2b - Character Time-out Indicator (CTI).

0x1 : 3_THRE_INTERRUPT

3 - THRE Interrupt.

0x0 : 4_MODEM_STATUS

4 - Modem status

End of enumeration elements list.

FIFOEN : These bits are equivalent to FCR[0].
bits : 6 - 13 (8 bit)

ABEOINT : End of auto-baud interrupt. True if auto-baud has finished successfully and interrupt is enabled.
bits : 8 - 16 (9 bit)

ABTOINT : Auto-baud time-out interrupt. True if auto-baud has timed out and interrupt is enabled.
bits : 9 - 18 (10 bit)

RESERVED : Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined.
bits : 10 - 41 (32 bit)

RESERVED : Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined.
bits : 10 - 41 (32 bit)


FCR

FIFO Control Register. Controls USART FIFO usage and modes.
address_offset : 0x8 Bytes (0x0)
access : write-only
reset_value : 0x0
reset_Mask : 0x0

FCR FCR write-only 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 FIFOEN RXFIFORES TXFIFORES RESERVED RXTL RESERVED RESERVED

FIFOEN : FIFO enable
bits : 0 - 0 (1 bit)

Enumeration: ENUM

0 : DISABLED

USART FIFOs are disabled. Must not be used in the application.

1 : ENABLED

Active high enable for both USART Rx and TX FIFOs and FCR[7:1] access. This bit must be set for proper USART operation. Any transition on this bit will automatically clear the USART FIFOs.

End of enumeration elements list.

RXFIFORES : RX FIFO Reset
bits : 1 - 2 (2 bit)

Enumeration: ENUM

0 : NO_IMPACT

No impact on either of USART FIFOs.

1 : CLEAR

Writing a logic 1 to FCR[1] will clear all bytes in USART Rx FIFO, reset the pointer logic. This bit is self-clearing.

End of enumeration elements list.

TXFIFORES : TX FIFO Reset
bits : 2 - 4 (3 bit)

Enumeration: ENUM

0 : NO_IMPACT

No impact on either of USART FIFOs.

1 : CLEAR

Writing a logic 1 to FCR[2] will clear all bytes in USART TX FIFO, reset the pointer logic. This bit is self-clearing.

End of enumeration elements list.

RESERVED : Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined.
bits : 4 - 9 (6 bit)

RXTL : RX Trigger Level. These two bits determine how many receiver USART FIFO characters must be written before an interrupt is activated.
bits : 6 - 13 (8 bit)

Enumeration: ENUM

0x0 : TRIGGER_LEVEL_0_1_C

Trigger level 0 (1 character or 0x01).

0x1 : TRIGGER_LEVEL_1_4_C

Trigger level 1 (4 characters or 0x04).

0x2 : TRIGGER_LEVEL_2_8_C

Trigger level 2 (8 characters or 0x08).

0x3 : TRIGGER_LEVEL_3_14_

Trigger level 3 (14 characters or 0x0E).

End of enumeration elements list.

RESERVED : Reserved
bits : 8 - 39 (32 bit)

RESERVED : Reserved
bits : 8 - 39 (32 bit)


LCR

Line Control Register. Contains controls for frame formatting and break generation.
address_offset : 0xC Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

LCR LCR read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 WLS SBS PE PS BC DLAB RESERVED

WLS : Word Length Select
bits : 0 - 1 (2 bit)

Enumeration: ENUM

0x0 : 5_BIT_CHARACTER_LENG

5-bit character length.

0x1 : 6_BIT_CHARACTER_LENG

6-bit character length.

0x2 : 7_BIT_CHARACTER_LENG

7-bit character length.

0x3 : 8_BIT_CHARACTER_LENG

8-bit character length.

End of enumeration elements list.

SBS : Stop Bit Select
bits : 2 - 4 (3 bit)

Enumeration: ENUM

0 : 1_STOP_BIT_

1 stop bit.

1 : 2_STOP_BITS_1_5_IF_

2 stop bits (1.5 if LCR[1:0]=00).

End of enumeration elements list.

PE : Parity Enable
bits : 3 - 6 (4 bit)

Enumeration: ENUM

0 : DISABLE_PARITY_GENER

Disable parity generation and checking.

1 : ENABLE_PARITY_GENERA

Enable parity generation and checking.

End of enumeration elements list.

PS : Parity Select
bits : 4 - 9 (6 bit)

Enumeration: ENUM

0x0 : ODD_PARITY_NUMBER_O

Odd parity. Number of 1s in the transmitted character and the attached parity bit will be odd.

0x1 : EVEN_PARITY_NUMBER_

Even Parity. Number of 1s in the transmitted character and the attached parity bit will be even.

0x2 : FORCED_1_STICK_PARIT

Forced 1 stick parity.

0x3 : FORCED_0_STICK_PARIT

Forced 0 stick parity.

End of enumeration elements list.

BC : Break Control
bits : 6 - 12 (7 bit)

Enumeration: ENUM

0 : DISABLE_BREAK_TRANSM

Disable break transmission.

1 : ENABLE_BREAK_TRANSMI

Enable break transmission. Output pin USART TXD is forced to logic 0 when LCR[6] is active high.

End of enumeration elements list.

DLAB : Divisor Latch Access Bit
bits : 7 - 14 (8 bit)

Enumeration: ENUM

0 : DISABLE_ACCESS_TO_DI

Disable access to Divisor Latches.

1 : ENABLE_ACCESS_TO_DIV

Enable access to Divisor Latches.

End of enumeration elements list.

RESERVED : Reserved
bits : 8 - 39 (32 bit)



Is something missing? Is something wrong? can you help correct it ? Please contact us at info@chipselect.org !

This website is sponsored by EmbeetleEmbeetle, an IDE designed from scratch for embedded software developers.