SAM3XA USART2

Universal Synchronous Asynchronous Receiver Transmitter (USART2) User Interface

Registers

Register Mapping
Address Register Name Access Reset
0x400A0000 Control Register USART2_CR write-only -
0x400A0004 Mode Register USART2_MR read-write -
0x400A0008 Interrupt Enable Register USART2_IER write-only -
0x400A000C Interrupt Disable Register USART2_IDR write-only -
0x400A0010 Interrupt Mask Register USART2_IMR read-only 0x00000000
0x400A0014 Channel Status Register USART2_CSR read-only -
0x400A0018 Receiver Holding Register USART2_RHR read-only 0x00000000
0x400A001C Transmitter Holding Register USART2_THR write-only -
0x400A0020 Baud Rate Generator Register USART2_BRGR read-write 0x00000000
0x400A0024 Receiver Time-out Register USART2_RTOR read-write 0x00000000
0x400A0028 Transmitter Timeguard Register USART2_TTGR read-write 0x00000000
0x400A0040 FI DI Ratio Register USART2_FIDI read-write 0x00000174
0x400A0044 Number of Errors Register USART2_NER read-only -
0x400A004C IrDA Filter Register USART2_IF read-write 0x00000000
0x400A0050 Manchester Encoder Decoder Register USART2_MAN read-write 0x30011004
0x400A0054 LIN Mode Register USART2_LINMR read-write 0x00000000
0x400A0058 LIN Identifier Register USART2_LINIR read-write 0x00000000
0x400A00E4 Write Protect Mode Register USART2_WPMR read-write 0x00000000
0x400A00E8 Write Protect Status Register USART2_WPSR read-only 0x00000000
0x400A0100 Receive Pointer Register USART2_RPR read-write 0x00000000
0x400A0104 Receive Counter Register USART2_RCR read-write 0x00000000
0x400A0108 Transmit Pointer Register USART2_TPR read-write 0x00000000
0x400A010C Transmit Counter Register USART2_TCR read-write 0x00000000
0x400A0110 Receive Next Pointer Register USART2_RNPR read-write 0x00000000
0x400A0114 Receive Next Counter Register USART2_RNCR read-write 0x00000000
0x400A0118 Transmit Next Pointer Register USART2_TNPR read-write 0x00000000
0x400A011C Transmit Next Counter Register USART2_TNCR read-write 0x00000000
0x400A0120 Transfer Control Register USART2_PTCR write-only 0x00000000
0x400A0124 Transfer Status Register USART2_PTSR read-only 0x00000000

Register Fields

USART2 Control Register

Name: USART2_CR

Access: write-only

Address: 0x400A0000

31 30 29 28 27 26 25 24
- - - - - - - -
23 22 21 20 19 18 17 16
- - LINWKUP LINABT RTSDIS RTSEN - -
15 14 13 12 11 10 9 8
RETTO RSTNACK RSTIT SENDA STTTO STPBRK STTBRK RSTSTA
7 6 5 4 3 2 1 0
TXDIS TXEN RXDIS RXEN RSTTX RSTRX - -

USART2 Mode Register

Name: USART2_MR

Access: read-write

Address: 0x400A0004

31 30 29 28 27 26 25 24
ONEBIT MODSYNC MAN FILTER - MAX_ITERATION
23 22 21 20 19 18 17 16
INVDATA VAR_SYNC DSNACK INACK OVER CLKO MODE9 MSBF
15 14 13 12 11 10 9 8
CHMODE NBSTOP PAR SYNC
7 6 5 4 3 2 1 0
CHRL USCLKS USART_MODE

USART2 Interrupt Enable Register

Name: USART2_IER

Access: write-only

Address: 0x400A0008

31 30 29 28 27 26 25 24
- - LINSNRE LINCE LINIPE LINISFE LINBE MANE
23 22 21 20 19 18 17 16
- - - - CTSIC - - -
15 14 13 12 11 10 9 8
LINTC LINID NACK RXBUFF TXBUFE ITER TXEMPTY TIMEOUT
7 6 5 4 3 2 1 0
PARE FRAME OVRE ENDTX ENDRX RXBRK TXRDY RXRDY

USART2 Interrupt Disable Register

Name: USART2_IDR

Access: write-only

Address: 0x400A000C

31 30 29 28 27 26 25 24
- - LINSNRE LINCE LINIPE LINISFE LINBE MANE
23 22 21 20 19 18 17 16
- - - - CTSIC - - -
15 14 13 12 11 10 9 8
LINTC LINID NACK RXBUFF TXBUFE ITER TXEMPTY TIMEOUT
7 6 5 4 3 2 1 0
PARE FRAME OVRE ENDTX ENDRX RXBRK TXRDY RXRDY

USART2 Interrupt Mask Register

Name: USART2_IMR

Access: read-only

Address: 0x400A0010

31 30 29 28 27 26 25 24
- - LINSNRE LINCE LINIPE LINISFE LINBE MANE
23 22 21 20 19 18 17 16
- - - - CTSIC - - -
15 14 13 12 11 10 9 8
LINTC LINID NACK RXBUFF TXBUFE ITER TXEMPTY TIMEOUT
7 6 5 4 3 2 1 0
PARE FRAME OVRE ENDTX ENDRX RXBRK TXRDY RXRDY

USART2 Channel Status Register

Name: USART2_CSR

Access: read-only

Address: 0x400A0014

31 30 29 28 27 26 25 24
- - LINSNRE LINCE LINIPE LINISFE LINBE MANERR
23 22 21 20 19 18 17 16
CTS - - - CTSIC - - -
15 14 13 12 11 10 9 8
LINTC LINID NACK RXBUFF TXBUFE ITER TXEMPTY TIMEOUT
7 6 5 4 3 2 1 0
PARE FRAME OVRE ENDTX ENDRX RXBRK TXRDY RXRDY

USART2 Receiver Holding Register

Name: USART2_RHR

Access: read-only

Address: 0x400A0018

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

USART2 Transmitter Holding Register

Name: USART2_THR

Access: write-only

Address: 0x400A001C

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

USART2 Baud Rate Generator Register

Name: USART2_BRGR

Access: read-write

Address: 0x400A0020

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

USART2 Receiver Time-out Register

Name: USART2_RTOR

Access: read-write

Address: 0x400A0024

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

USART2 Transmitter Timeguard Register

Name: USART2_TTGR

Access: read-write

Address: 0x400A0028

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

USART2 FI DI Ratio Register

Name: USART2_FIDI

Access: read-write

Address: 0x400A0040

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

USART2 Number of Errors Register

Name: USART2_NER

Access: read-only

Address: 0x400A0044

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

USART2 IrDA Filter Register

Name: USART2_IF

Access: read-write

Address: 0x400A004C

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

USART2 Manchester Encoder Decoder Register

Name: USART2_MAN

Access: read-write

Address: 0x400A0050

31 30 29 28 27 26 25 24
- DRIFT STUCKTO1 RX_MPOL - - RX_PP
23 22 21 20 19 18 17 16
- - - - RX_PL
15 14 13 12 11 10 9 8
- - - TX_MPOL - - TX_PP
7 6 5 4 3 2 1 0
- - - - TX_PL

USART2 LIN Mode Register

Name: USART2_LINMR

Access: read-write

Address: 0x400A0054

31 30 29 28 27 26 25 24
- - - - - - - -
23 22 21 20 19 18 17 16
- - - - - - - PDCM
15 14 13 12 11 10 9 8
DLC
7 6 5 4 3 2 1 0
WKUPTYP FSDIS DLM CHKTYP CHKDIS PARDIS NACT

USART2 LIN Identifier Register

Name: USART2_LINIR

Access: read-write

Address: 0x400A0058

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

USART2 Write Protect Mode Register

Name: USART2_WPMR

Access: read-write

Address: 0x400A00E4

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

USART2 Write Protect Status Register

Name: USART2_WPSR

Access: read-only

Address: 0x400A00E8

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

USART2 Receive Pointer Register

Name: USART2_RPR

Access: read-write

Address: 0x400A0100

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

USART2 Receive Counter Register

Name: USART2_RCR

Access: read-write

Address: 0x400A0104

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

USART2 Transmit Pointer Register

Name: USART2_TPR

Access: read-write

Address: 0x400A0108

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

USART2 Transmit Counter Register

Name: USART2_TCR

Access: read-write

Address: 0x400A010C

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

USART2 Receive Next Pointer Register

Name: USART2_RNPR

Access: read-write

Address: 0x400A0110

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

USART2 Receive Next Counter Register

Name: USART2_RNCR

Access: read-write

Address: 0x400A0114

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

USART2 Transmit Next Pointer Register

Name: USART2_TNPR

Access: read-write

Address: 0x400A0118

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

USART2 Transmit Next Counter Register

Name: USART2_TNCR

Access: read-write

Address: 0x400A011C

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

USART2 Transfer Control Register

Name: USART2_PTCR

Access: write-only

Address: 0x400A0120

31 30 29 28 27 26 25 24
- - - - - - - -
23 22 21 20 19 18 17 16
- - - - - - - -
15 14 13 12 11 10 9 8
- - - - - - TXTDIS TXTEN
7 6 5 4 3 2 1 0
- - - - - - RXTDIS RXTEN

USART2 Transfer Status Register

Name: USART2_PTSR

Access: read-only

Address: 0x400A0124

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