PIC32CX2051MTG64 FLEXCOM4 registers

The 81 registers of FLEXCOM4 (Flexible Serial Communication), from 0x40010000, with their reset value and every field. The PIC32CX2051MTG64 has 2801 registers in 57 peripherals, one page each.

FLEXCOM4 Flexible Serial Communication

FLEX_MRFLEXCOM Mode Register

Address
0x40010000
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
OPMODE1:0FLEXCOM Operating Mode
  • 0 No communication
  • 1 All UART related protocols are selected (RS232, RS485, IrDA, ISO7816, LIN,) SPI/TWI related registers are not accessible and have no impact on IOs.
  • 2 SPI operating mode is selected. USART/TWI related registers are not accessible and have no impact on IOs.
  • 3 All TWI related protocols are selected (TWI, SMBus). USART/SPI related registers are not accessible and have no impact on IOs.

FLEX_RHRFLEXCOM Receive Holding Register

Address
0x40010010
Reset
0x00000000
Access
read only
Size
32-bit
1 field
FieldBitsWhat it does
RXDATA15:0Receive Data

FLEX_THRFLEXCOM Transmit Holding Register

Address
0x40010020
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
TXDATA15:0Transmit Data

FLEX_RPRReceive Pointer Register

Address
0x40010100
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
RXPTR31:0Receive Pointer Register

FLEX_RCRReceive Counter Register

Address
0x40010104
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
RXCTR15:0Receive Counter Register

FLEX_TPRTransmit Pointer Register

Address
0x40010108
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
TXPTR31:0Transmit Counter Register

FLEX_TCRTransmit Counter Register

Address
0x4001010C
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
TXCTR15:0Transmit Counter Register

FLEX_RNPRReceive Next Pointer Register

Address
0x40010110
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
RXNPTR31:0Receive Next Pointer

FLEX_RNCRReceive Next Counter Register

Address
0x40010114
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
RXNCTR15:0Receive Next Counter

FLEX_TNPRTransmit Next Pointer Register

Address
0x40010118
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
TXNPTR31:0Transmit Next Pointer

FLEX_TNCRTransmit Next Counter Register

Address
0x4001011C
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
TXNCTR15:0Transmit Counter Next

FLEX_PTCRTransfer Control Register

Address
0x40010120
Reset
0x00000000
Access
write only
Size
32-bit
9 fields
FieldBitsWhat it does
ERRCLR24Transfer Bus Error Clear
TXCBDIS19Transmitter Circular Buffer Disable
TXCBEN18Transmitter Circular Buffer Enable
RXCBDIS17Receiver Circular Buffer Disable
RXCBEN16Receiver Circular Buffer Enable
TXTDIS9Transmitter Transfer Disable
TXTEN8Transmitter Transfer Enable
RXTDIS1Receiver Transfer Disable
RXTEN0Receiver Transfer Enable

FLEX_PTSRTransfer Status Register

Address
0x40010124
Reset
0x00000000
Access
read only
Size
32-bit
5 fields
FieldBitsWhat it does
ERR24Transfer Bus Error
TXCBEN18Transmitter Circular Buffer Enable
RXCBEN16Receiver Circular Buffer Enable
TXTEN8Transmitter Transfer Enable
RXTEN0Receiver Transfer Enable

FLEX_PWPMRWrite Protection Mode Register

Address
0x40010128
Reset
0x00000000
Access
read/write
Size
32-bit
4 fields
FieldBitsWhat it does
WPCREN2Write Protection Control Register Enable
WPCTREN1Write Protection Counter Registers Enable
WPPTREN0Write Protection Pointer Registers Enable
WPKEY31:8Write Protection Key
  • 5260355 Writing any other value in this field aborts the write operation. Always reads as 0.

FLEX_US_CRUSART Control Register

Address
0x40010200
Reset
0x00000000
Access
write only
Size
32-bit
24 fields
FieldBitsWhat it does
FIFOEN30FIFO Enable
REQCLR28Request to Clear the Comparison Trigger
TXFLCLR26Transmit FIFO Lock CLEAR
RXFCLR25Receive FIFO Clear
TXFCLR24Transmit FIFO Clear
LINWKUP21Send LIN Wakeup Signal
LINABT20Abort LIN Transmission
RTSDIS19Request to Send Disable
RTSEN18Request to Send Enable
RETTO15Start Timeout Immediately
RSTNACK14Reset Non Acknowledge
RSTIT13Reset Iterations
SENDA12Send Address
STTTO11Clear TIMEOUT Flag and Start Timeout After Next Character Received
STPBRK10Stop Break
STTBRK9Start Break
RSTSTA8Reset Status Bits
TXDIS7Transmitter Disable
TXEN6Transmitter Enable
RXDIS5Receiver Disable
RXEN4Receiver Enable
RSTTX3Reset Transmitter
RSTRX2Reset Receiver
FIFODIS31FIFO Disable

FLEX_US_MRUSART Mode Register

Address
0x40010204
Reset
0x00000000
Access
read/write
Size
32-bit
34 fields
FieldBitsWhat it does
MODSYNC30Manchester Synchronization Mode
MAN29Manchester Encoder/Decoder Enable
FILTER28Receive Line Filter
FILTER28Receive Line Filter
MAX_ITERATION26:24Maximum Number of Automatic Iteration
INVDATA23Inverted Data
VAR_SYNC22Variable Synchronization of Command/Data Sync Start Frame Delimiter
DSNACK21Disable Successive NACK
OOKEN21OOK Modulation/Demodulation Enabled
INACK20Inhibit Non Acknowledge
OOKRXD20OOK Demodulation Input Selection
OVER19Oversampling Mode
OVER19Oversampling Mode
CLKO18Clock Output Select
CLKO18Clock Output Select
MODE9179-bit Character Length
MODE9179-bit Character Length
MSBF16Bit Order
MSBF16Bit Order
CHMODE15:14Channel Mode
  • 0 Normal mode
  • 1 Automatic Echo. Receiver input is connected to the TXD pin.
  • 2 Local Loopback. Transmitter output is connected to the Receiver Input.
  • 3 Remote Loopback. RXD pin is internally connected to the TXD pin.
CHMODE15:14Channel Mode
  • 0 Normal mode
  • 1 Automatic Echo. Receiver input is connected to the TXD pin.
  • 2 Local Loopback. Transmitter output is connected to the Receiver Input.
  • 3 Remote Loopback. RXD pin is internally connected to the TXD pin.
NBSTOP13:12Number of Stop Bits
  • 0 1 stop bit
  • 1 1.5 stop bit (SYNC = 0) or reserved (SYNC = 1)
  • 2 2 stop bits
NBSTOP13:12Number of Stop Bits
  • 0 1 stop bit
  • 1 1.5 stop bit (SYNC = 0) or reserved (SYNC = 1)
  • 2 2 stop bits
PAR11:9Parity Type
  • 0 Even parity
  • 1 Odd parity
  • 2 Parity forced to 0 (Space)
  • 3 Parity forced to 1 (Mark)
  • 4 No parity
  • 6 Multidrop mode
PAR11:9Parity Type
  • 0 Even parity
  • 1 Odd parity
  • 2 Parity forced to 0 (Space)
  • 3 Parity forced to 1 (Mark)
  • 4 No parity
  • 6 Multidrop mode
SYNC8Synchronous Mode Select
SYNC8Synchronous Mode Select
CHRL7:6Character Length
  • 0 Character length is 5 bits
  • 1 Character length is 6 bits
  • 2 Character length is 7 bits
  • 3 Character length is 8 bits
CHRL7:6Character Length
  • 0 Character length is 5 bits.
  • 1 Character length is 6 bits.
  • 2 Character length is 7 bits.
  • 3 Character length is 8 bits.
USCLKS5:4Clock Selection
  • 0 Peripheral clock is selected
  • 1 Peripheral clock divided (DIV = 8) is selected
  • 2 PMC generic clock is selected. If the SCK pin is driven (CLKO = 1), the CD field must be greater than 1.
  • 3 External pin SCK is selected
USCLKS5:4Clock Selection
  • 0 Peripheral clock is selected.
  • 1 Peripheral clock divided (DIV=8) is selected.
  • 2 PMC programmable clock (PCK) is selected. If the SCK pin is driven (CLKO = 1), the CD field must be greater than 1.
  • 3 Serial clock (SCK) is selected.
USART_MODE3:0USART Mode of Operation
  • 0 Normal mode
  • 1 RS485
  • 2 Hardware handshaking
  • 4 IS07816 Protocol: T = 0
  • 6 IS07816 Protocol: T = 1
  • 8 IrDA
  • 10 LIN Host mode
  • 11 LIN Client mode
  • 12 16-bit data host
  • 13 16-bit data client
USART_MODE3:0USART Mode of Operation
  • 0 Normal mode
ONEBIT31Start Frame Delimiter Selector

FLEX_US_IERUSART Interrupt Enable Register

Address
0x40010208
Reset
0x00000000
Access
write only
Size
32-bit
38 fields
FieldBitsWhat it does
LINSTE30LIN Synch Tolerance Error Interrupt Enable
LINSNRE29LIN Client Not Responding Error Interrupt Enable
LINCE28LIN Checksum Error Interrupt Enable
LINIPE27LIN Identifier Parity Interrupt Enable
LINISFE26LIN Inconsistent Synch Field Error Interrupt Enable
LINBE25LIN Bus Error Interrupt Enable
MANE24Manchester Error Interrupt Enable
CMP22Comparison Interrupt Enable
CTSIC19Clear to Send Input Change Interrupt Enable
LINTC15LIN Transfer Completed Interrupt Enable
LINID14LIN Identifier Sent or LIN Identifier Received Interrupt Enable
LINBK13LIN Break Sent or LIN Break Received Interrupt Enable
NACK13Non Acknowledge Interrupt Enable
RXBUFF12Buffer Full Interrupt Enable (available in all USART modes of operation)
RXBUFF12Buffer Full Interrupt Enable
TXBUFE11Buffer Empty Interrupt Enable (available in all USART modes of operation)
TXBUFE11Buffer Empty Interrupt Enable
ITER10Max number of Repetitions Reached Interrupt Enable
TXEMPTY9TXEMPTY Interrupt Enable
TXEMPTY9TXEMPTY Interrupt Enable
TIMEOUT8Timeout Interrupt Enable
TIMEOUT8Timeout Interrupt Enable
PARE7Parity Error Interrupt Enable
PARE7Parity Error Interrupt Enable
FRAME6Framing Error Interrupt Enable
FRAME6Framing Error Interrupt Enable
OVRE5Overrun Error Interrupt Enable
OVRE5Overrun Error Interrupt Enable
ENDTX4End of Transmit Interrupt Enable (available in all USART modes of operation)
ENDTX4End of Transmit Interrupt Enable
ENDRX3End of Receive Transfer Interrupt Enable (available in all USART modes of operation)
ENDRX3End of Receive Transfer Interrupt Enable
RXBRK2Receiver Break Interrupt Enable
TXRDY1TXRDY Interrupt Enable
TXRDY1TXRDY Interrupt Enable
RXRDY0RXRDY Interrupt Enable
RXRDY0RXRDY Interrupt Enable
LINHTE31LIN Header Timeout Error Interrupt Enable

FLEX_US_IDRUSART Interrupt Disable Register

Address
0x4001020C
Reset
0x00000000
Access
write only
Size
32-bit
38 fields
FieldBitsWhat it does
LINSTE30LIN Synch Tolerance Error Interrupt Disable
LINSNRE29LIN Client Not Responding Error Interrupt Disable
LINCE28LIN Checksum Error Interrupt Disable
LINIPE27LIN Identifier Parity Interrupt Disable
LINISFE26LIN Inconsistent Synch Field Error Interrupt Disable
LINBE25LIN Bus Error Interrupt Disable
MANE24Manchester Error Interrupt Disable
CMP22Comparison Interrupt Disable
CTSIC19Clear to Send Input Change Interrupt Disable
LINTC15LIN Transfer Completed Interrupt Disable
LINID14LIN Identifier Sent or LIN Identifier Received Interrupt Disable
LINBK13LIN Break Sent or LIN Break Received Interrupt Disable
NACK13Non Acknowledge Interrupt Disable
RXBUFF12Buffer Full Interrupt Disable (available in all USART modes of operation)
RXBUFF12Buffer Full Interrupt Disable
TXBUFE11Buffer Empty Interrupt Disable (available in all USART modes of operation)
TXBUFE11Buffer Empty Interrupt Disable
ITER10Max Number of Repetitions Reached Interrupt Disable
TXEMPTY9TXEMPTY Interrupt Disable
TXEMPTY9TXEMPTY Interrupt Disable
TIMEOUT8Timeout Interrupt Disable
TIMEOUT8Timeout Interrupt Disable
PARE7Parity Error Interrupt Disable
PARE7Parity Error Interrupt Disable
FRAME6Framing Error Interrupt Disable
FRAME6Framing Error Interrupt Disable
OVRE5Overrun Error Interrupt Disable
OVRE5Overrun Error Interrupt Disable
ENDTX4End of Transmit Interrupt Disable (available in all USART modes of operation)
ENDTX4End of Transmit Interrupt Disable
ENDRX3End of Receive Transfer Interrupt Disable (available in all USART modes of operation)
ENDRX3End of Receive Transfer Interrupt Disable
RXBRK2Receiver Break Interrupt Disable
TXRDY1TXRDY Interrupt Disable
TXRDY1TXRDY Interrupt Disable
RXRDY0RXRDY Interrupt Disable
RXRDY0RXRDY Interrupt Disable
LINHTE31LIN Header Timeout Error Interrupt Disable

FLEX_US_IMRUSART Interrupt Mask Register

Address
0x40010210
Reset
0x00000000
Access
read only
Size
32-bit
38 fields
FieldBitsWhat it does
LINSTE30LIN Synch Tolerance Error Interrupt Mask
LINSNRE29LIN Client Not Responding Error Interrupt Mask
LINCE28LIN Checksum Error Interrupt Mask
LINIPE27LIN Identifier Parity Interrupt Mask
LINISFE26LIN Inconsistent Synch Field Error Interrupt Mask
LINBE25LIN Bus Error Interrupt Mask
MANE24Manchester Error Interrupt Mask
CMP22Comparison Interrupt Mask
CTSIC19Clear to Send Input Change Interrupt Mask
LINTC15LIN Transfer Completed Interrupt Mask
LINID14LIN Identifier Sent or LIN Identifier Received Interrupt Mask
LINBK13LIN Break Sent or LIN Break Received Interrupt Mask
NACK13Non Acknowledge Interrupt Mask
RXBUFF12Buffer Full Interrupt Mask (available in all USART modes of operation)
RXBUFF12Buffer Full Interrupt Mask
TXBUFE11Buffer Empty Interrupt Mask (available in all USART modes of operation)
TXBUFE11Buffer Empty Interrupt Mask
ITER10Max Number of Repetitions Reached Interrupt Mask
TXEMPTY9TXEMPTY Interrupt Mask
TXEMPTY9TXEMPTY Interrupt Mask
TIMEOUT8Timeout Interrupt Mask
TIMEOUT8Timeout Interrupt Mask
PARE7Parity Error Interrupt Mask
PARE7Parity Error Interrupt Mask
FRAME6Framing Error Interrupt Mask
FRAME6Framing Error Interrupt Mask
OVRE5Overrun Error Interrupt Mask
OVRE5Overrun Error Interrupt Mask
ENDTX4End of Transmit Interrupt Mask (available in all USART modes of operation)
ENDTX4End of Transmit Interrupt Mask
ENDRX3End of Receive Transfer Interrupt Mask (available in all USART modes of operation)
ENDRX3End of Receive Transfer Interrupt Mask
RXBRK2Receiver Break Interrupt Mask
TXRDY1TXRDY Interrupt Mask
TXRDY1TXRDY Interrupt Mask
RXRDY0RXRDY Interrupt Mask
RXRDY0RXRDY Interrupt Mask
LINHTE31LIN Header Timeout Error Interrupt Mask

FLEX_US_CSRUSART Channel Status Register

Address
0x40010214
Reset
0x00000000
Access
read only
Size
32-bit
40 fields
FieldBitsWhat it does
LINSTE30LIN Synch Tolerance Error
LINSNRE29LIN Client Not Responding Error
LINCE28LIN Checksum Error
LINIPE27LIN Identifier Parity Error
LINISFE26LIN Inconsistent Synch Field Error
LINBE25LIN Bit Error
MANE24Manchester Error
CTS23Image of CTS Input
LINBLS23LIN Bus Line Status
CMP22Comparison Status
CTSIC19Clear to Send Input Change Flag
LINTC15LIN Transfer Completed
LINID14LIN Identifier Sent or LIN Identifier Received
LINBK13LIN Break Sent or LIN Break Received
NACK13Non Acknowledge Interrupt
RXBUFF12RX Buffer Full (cleared by writing FLEX_US_RCR or FLEX_US_RNCR)
RXBUFF12RX Buffer Full (cleared by writing FLEX_US_RCR or FLEX_US_RNCR)
TXBUFE11TX Buffer Empty (cleared by writing FLEX_US_TCR or FLEX_US_TNCR)
TXBUFE11TX Buffer Empty (cleared by writing FLEX_US_TCR or FLEX_US_TNCR)
ITER10Max Number of Repetitions Reached
TXEMPTY9Transmitter Empty (cleared by writing FLEX_US_THR)
TXEMPTY9Transmitter Empty (cleared by writing FLEX_US_THR)
TIMEOUT8Receiver Timeout
TIMEOUT8Receiver Timeout
PARE7Parity Error
PARE7Parity Error
FRAME6Framing Error
FRAME6Framing Error
OVRE5Overrun Error
OVRE5Overrun Error
ENDTX4End of TX Buffer (cleared by writing FLEX_US_TCR or FLEX_US_TNCR)
ENDTX4End of TX Buffer (cleared by writing FLEX_US_TCR or FLEX_US_TNCR)
ENDRX3End of RX Buffer (cleared by writing FLEX_US_RCR or FLEX_US_RNCR)
ENDRX3End of RX Buffer (cleared by writing FLEX_US_RCR or FLEX_US_RNCR)
RXBRK2Break Received/End of Break
TXRDY1Transmitter Ready (cleared by writing FLEX_US_THR)
TXRDY1Transmitter Ready (cleared by writing FLEX_US_THR)
RXRDY0Receiver Ready (cleared by reading FLEX_US_RHR)
RXRDY0Receiver Ready (cleared by reading FLEX_US_RHR)
LINHTE31LIN Header Timeout Error

FLEX_US_RHRUSART Receive Holding Register

Address
0x40010218
Reset
0x00000000
Access
read only
Size
32-bit
6 fields
FieldBitsWhat it does
RXCHR223:16Received Characters
RXCHR115:8Received Characters
RXSYNH15Received Sync
RXCHR8:0Received Character
RXCHR07:0Received Characters
RXCHR331:24Received Characters

FLEX_US_THRUSART Transmit Holding Register

Address
0x4001021C
Reset
0x00000000
Access
write only
Size
32-bit
6 fields
FieldBitsWhat it does
TXCHR223:16Character to be Transmitted
TXCHR115:8Character to be Transmitted
TXSYNH15Sync Field to be Transmitted
TXCHR8:0Character to be Transmitted
TXCHR07:0Character to be Transmitted
TXCHR331:24Character to be Transmitted

FLEX_US_BRGRUSART Baud Rate Generator Register

Address
0x40010220
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
FieldBitsWhat it does
FP18:16Fractional Part
CD15:0Clock Divider

FLEX_US_RTORUSART Receiver Timeout Register

Address
0x40010224
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
TO16:0Timeout Value

FLEX_US_TTGRUSART Transmitter Timeguard Register

Address
0x40010228
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
TG7:0Timeguard Value

FLEX_US_FIDIUSART FI DI Ratio Register

Address
0x40010240
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
FI_DI_RATIO15:0FI Over DI Ratio Value

FLEX_US_NERUSART Number of Errors Register

Address
0x40010244
Reset
0x00000000
Access
read only
Size
32-bit
1 field
FieldBitsWhat it does
NB_ERRORS7:0Number of Errors

FLEX_US_IFUSART IrDA Filter Register

Address
0x4001024C
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
IRDA_FILTER7:0IrDA Filter

FLEX_US_MANUSART Manchester Configuration Register

Address
0x40010250
Reset
0x00000000
Access
read/write
Size
32-bit
9 fields
FieldBitsWhat it does
DRIFT30Drift Compensation
ONE29Must Be Set to 1
RX_MPOL28Receiver Manchester Polarity
RX_PP25:24Receiver Preamble Pattern detected
  • 0 The preamble is composed of '1's
  • 1 The preamble is composed of '0's
  • 2 The preamble is composed of '01's
  • 3 The preamble is composed of '10's
RX_PL19:16Receiver Preamble Length
TX_MPOL12Transmitter Manchester Polarity
TX_PP9:8Transmitter Preamble Pattern
  • 0 The preamble is composed of '1's
  • 1 The preamble is composed of '0's
  • 2 The preamble is composed of '01's
  • 3 The preamble is composed of '10's
TX_PL3:0Transmitter Preamble Length
RXIDLEV31Receiver Idle Value

FLEX_US_LINMRUSART LIN Mode Register

Address
0x40010254
Reset
0x00000000
Access
read/write
Size
32-bit
10 fields
FieldBitsWhat it does
SYNCDIS17Synchronization Disable
PDCM16PDC Mode
DLC15:8Data Length Control
WKUPTYP7Wakeup Signal Type
FSDIS6Frame Slot Mode Disable
DLM5Data Length Mode
CHKTYP4Checksum Type
CHKDIS3Checksum Disable
PARDIS2Parity Disable
NACT1:0LIN Node Action
  • 0 The USART transmits the response.
  • 1 The USART receives the response.
  • 2 The USART does not transmit and does not receive the response.

FLEX_US_LINIRUSART LIN Identifier Register

Address
0x40010258
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
IDCHR7:0Identifier Character

FLEX_US_LINBRRUSART LIN Baud Rate Register

Address
0x4001025C
Reset
0x00000000
Access
read only
Size
32-bit
2 fields
FieldBitsWhat it does
LINFP18:16Fractional Part after Synchronization
LINCD15:0Clock Divider after Synchronization

FLEX_US_CMPRUSART Comparison Register

Address
0x40010290
Reset
0x00000000
Access
read/write
Size
32-bit
4 fields
FieldBitsWhat it does
VAL224:16Second Comparison Value for Received Character
CMPPAR14Compare Parity
CMPMODE13:12Comparison Mode
  • 0 Any character is received and comparison function drives CMP flag.
  • 1 Comparison condition must be met to start reception.
  • 2 Comparison must be met to receive the current data only
VAL18:0First Comparison Value for Received Character

FLEX_US_FMRUSART FIFO Mode Register

Address
0x400102A0
Reset
0x00000000
Access
read/write
Size
32-bit
6 fields
FieldBitsWhat it does
RXFTHRES229:24Receive FIFO Threshold 2
RXFTHRES21:16Receive FIFO Threshold
TXFTHRES13:8Transmit FIFO Threshold
FRTSC7FIFO RTS Pin Control enable (Hardware Handshaking mode only)
RXRDYM5:4Receiver Ready Mode
  • 0 RXRDY will be at level '1' when at least one unread data is in the receive FIFO. When DMA is enabled to transfer data and FLEX_US_MR.MODE9=0 (up to 8 bits to transfer on the line), the chunk of 1 byte must be configured in the DMA. If the transfer is performed by software, the access type must be de
  • 1 RXRDY will be at level '1' when at least two unread data are in the receive FIFO. To minimize system bus load, when DMA is enabled to transfer data and FLEX_US_MR.MODE9=0 (up to 8 bits to transfer on the line), the chunk of 1 halfword (1 halfword carries 2 bytes) must be configured in the DMA (chunk
  • 2 RXRDY will be at level '1' when at least four unread data are in the receive FIFO. To minimize system bus load, when DMA is enabled to transfer data and FLEX_US_MR.MODE9=0 (up to 8 bits to transfer on the line), the chunk of 1 word (1 word carries 4 bytes) must be configured in the DMA. If the trans
TXRDYM1:0Transmitter Ready Mode
  • 0 TXRDY will be at level '1' when at least one data can be written in the transmit FIFO. When DMA is enabled to transfer data and FLEX_US_MR.MODE9=0 (up to 8 bits to transfer on the line), the chunk of 1 byte must be configured in the DMA. If the transfer is performed by software, the access type must
  • 1 TXRDY will be at level '1' when at least two data can be written in the transmit FIFO. To minimize system bus load, when DMA is enabled to transfer data and FLEX_US_MR.MODE9=0 (up to 8 bits to transfer on the line), the chunk of 1 halfword (1 halfword carries 2 bytes) must be configured in the DMA.
  • 2 TXRDY will be at level '1' when at least four data can be written in the transmit FIFO. To minimize system bus load, when DMA is enabled to transfer data and FLEX_US_MR.MODE9=0 (up to 8 bits to transfer on the line), the chunk of 1 word (1 word carries 4 bytes) must be configured in the DMA (chunk s

FLEX_US_FLRUSART FIFO Level Register

Address
0x400102A4
Reset
0x00000000
Access
read only
Size
32-bit
2 fields
FieldBitsWhat it does
RXFL21:16Receive FIFO Level
TXFL5:0Transmit FIFO Level

FLEX_US_FIERUSART FIFO Interrupt Enable Register

Address
0x400102A8
Reset
0x00000000
Access
write only
Size
32-bit
9 fields
FieldBitsWhat it does
RXFTHF29RXFTHF2 Interrupt Enable
RXFPTEF7RXFPTEF Interrupt Enable
TXFPTEF6TXFPTEF Interrupt Enable
RXFTHF5RXFTHF Interrupt Enable
RXFFF4RXFFF Interrupt Enable
RXFEF3RXFEF Interrupt Enable
TXFTHF2TXFTHF Interrupt Enable
TXFFF1TXFFF Interrupt Enable
TXFEF0TXFEF Interrupt Enable

FLEX_US_FIDRUSART FIFO Interrupt Disable Register

Address
0x400102AC
Reset
0x00000000
Access
write only
Size
32-bit
9 fields
FieldBitsWhat it does
RXFTHF29RXFTHF2 Interrupt Disable
RXFPTEF7RXFPTEF Interrupt Disable
TXFPTEF6TXFPTEF Interrupt Disable
RXFTHF5RXFTHF Interrupt Disable
RXFFF4RXFFF Interrupt Disable
RXFEF3RXFEF Interrupt Disable
TXFTHF2TXFTHF Interrupt Disable
TXFFF1TXFFF Interrupt Disable
TXFEF0TXFEF Interrupt Disable

FLEX_US_FIMRUSART FIFO Interrupt Mask Register

Address
0x400102B0
Reset
0x00000000
Access
read only
Size
32-bit
9 fields
FieldBitsWhat it does
RXFTHF29RXFTHF2 Interrupt Mask
RXFPTEF7RXFPTEF Interrupt Mask
TXFPTEF6TXFPTEF Interrupt Mask
RXFTHF5RXFTHF Interrupt Mask
RXFFF4RXFFF Interrupt Mask
RXFEF3RXFEF Interrupt Mask
TXFTHF2TXFTHF Interrupt Mask
TXFFF1TXFFF Interrupt Mask
TXFEF0TXFEF Interrupt Mask

FLEX_US_FESRUSART FIFO Event Status Register

Address
0x400102B4
Reset
0x00000000
Access
read only
Size
32-bit
10 fields
FieldBitsWhat it does
RXFTHF29Receive FIFO Threshold Flag 2 (cleared by writing the FLEX_US_CR.RSTSTA bit)
TXFLOCK8Transmit FIFO Lock
RXFPTEF7Receive FIFO Pointer Error Flag
TXFPTEF6Transmit FIFO Pointer Error Flag
RXFTHF5Receive FIFO Threshold Flag (cleared by writing the FLEX_US_CR.RSTSTA bit)
RXFFF4Receive FIFO Full Flag (cleared by writing the FLEX_US_CR.RSTSTA bit)
RXFEF3Receive FIFO Empty Flag (cleared by writing the FLEX_US_CR.RSTSTA bit)
TXFTHF2Transmit FIFO Threshold Flag (cleared by writing the FLEX_US_CR.RSTSTA bit)
TXFFF1Transmit FIFO Full Flag (cleared by writing the FLEX_US_CR.RSTSTA bit)
TXFEF0Transmit FIFO Empty Flag (cleared by writing the FLEX_US_CR.RSTSTA bit)

FLEX_US_WPMRUSART Write Protection Mode Register

Address
0x400102E4
Reset
0x00000000
Access
read/write
Size
32-bit
4 fields
FieldBitsWhat it does
WPCREN2Write Protection Control Enable
WPITEN1Write Protection Interrupt Enable
WPEN0Write Protection Enable
WPKEY31:8Write Protection Key
  • 5591873 Writing any other value in this field aborts the write operation of bits WPEN, WPITEN and WPCREN. Always reads as 0.

FLEX_US_WPSRUSART Write Protection Status Register

Address
0x400102E8
Reset
0x00000000
Access
read only
Size
32-bit
2 fields
FieldBitsWhat it does
WPVSRC23:8Write Protection Violation Source
WPVS0Write Protection Violation Status

FLEX_SPI_CRSPI Control Register

Address
0x40010400
Reset
0x00000000
Access
write only
Size
32-bit
9 fields
FieldBitsWhat it does
FIFOEN30FIFO Enable
LASTXFER24Last Transfer
RXFCLR17Receive FIFO Clear
TXFCLR16Transmit FIFO Clear
REQCLR12Request to Clear the Comparison Trigger
SWRST7SPI Software Reset
SPIDIS1SPI Disable
SPIEN0SPI Enable
FIFODIS31FIFO Disable

FLEX_SPI_MRSPI Mode Register

Address
0x40010404
Reset
0x00000000
Access
read/write
Size
32-bit
10 fields
FieldBitsWhat it does
PCS17:16Peripheral Chip Select
CMPMODE12Comparison Mode
  • 0 Any character is received and comparison function drives CMP flag.
  • 1 Comparison condition must be met to start reception of all incoming characters until REQCLR is set.
LLB7Local Loopback Enable
WDRBT5Wait Data Read Before Transfer
MODFDIS4Mode Fault Detection
BRSRCCLK3Bit Rate Source Clock
  • 0 The peripheral clock is the source clock for the bit rate generation.
  • 1 GCLK is the source clock for the bit rate generation, thus the bit rate can be independent of the core/peripheral clock.
PCSDEC2Chip Select Decode
PS1Peripheral Select
MSTR0Host/Client Mode
DLYBCS31:24Delay Between Chip Selects

FLEX_SPI_RDRSPI Receive Data Register

Address
0x40010408
Reset
0x00000000
Access
read only
Size
32-bit
8 fields
FieldBitsWhat it does
RD223:16Receive Data
PCS19:16Peripheral Chip Select
RD15:0Receive Data
RD015:0Receive Data
RD115:8Receive Data
RD07:0Receive Data
RD131:16Receive Data
RD331:24Receive Data

FLEX_SPI_TDRSPI Transmit Data Register

Address
0x4001040C
Reset
0x00000000
Access
write only
Size
32-bit
5 fields
FieldBitsWhat it does
LASTXFER24Last Transfer
PCS19:16Peripheral Chip Select
TD15:0Transmit Data
TD015:0Transmit Data
TD131:16Transmit Data

FLEX_SPI_SRSPI Status Register

Address
0x40010410
Reset
0x00000000
Access
read only
Size
32-bit
22 fields
FieldBitsWhat it does
TXFPTEF30Transmit FIFO Pointer Error Flag
RXFTHF29Receive FIFO Threshold Flag
RXFFF28Receive FIFO Full Flag
RXFEF27Receive FIFO Empty Flag
TXFTHF26Transmit FIFO Threshold Flag (cleared on read)
TXFFF25Transmit FIFO Full Flag (cleared on read)
TXFEF24Transmit FIFO Empty Flag (cleared on read)
SPIENS16SPI Enable Status
SFERR12Client Mode Frame Error (cleared on read)
CMP11Comparison Status (cleared on read)
UNDES10Underrun Error Status (Client mode only) (cleared on read)
TXEMPTY9Transmission Registers Empty (cleared by writing FLEX_SPI_TDR)
NSSR8NSS Rising (cleared on read)
TXBUFE7TX Buffer Empty (cleared by writing FLEX_SPI_TCR or FLEX_SPI_TNCR)
RXBUFF6RX Buffer Full (cleared by writing FLEX_SPI_RCR or FLEX_SPI_RNCR)
ENDTX5End of TX Buffer (cleared by writing FLEX_SPI_TCR or FLEX_SPI_TNCR)
ENDRX4End of RX Buffer (cleared by writing FLEX_SPI_RCR or FLEX_SPI_RNCR)
OVRES3Overrun Error Status (cleared on read)
MODF2Mode Fault Error (cleared on read)
TDRE1Transmit Data Register Empty (cleared by writing FLEX_SPI_TDR)
RDRF0Receive Data Register Full (cleared by reading FLEX_SPI_RDR)
RXFPTEF31Receive FIFO Pointer Error Flag

FLEX_SPI_IERSPI Interrupt Enable Register

Address
0x40010414
Reset
0x00000000
Access
write only
Size
32-bit
21 fields
FieldBitsWhat it does
TXFPTEF30TXFPTEF Interrupt Enable
RXFTHF29RXFTHF Interrupt Enable
RXFFF28RXFFF Interrupt Enable
RXFEF27RXFEF Interrupt Enable
TXFTHF26TXFTHF Interrupt Enable
TXFFF25TXFFF Interrupt Enable
TXFEF24TXFEF Interrupt Enable
SFERR12Client Mode Frame Error Interrupt Enable
CMP11Comparison Interrupt Enable
UNDES10Underrun Error Interrupt Enable
TXEMPTY9Transmission Registers Empty Enable
NSSR8NSS Rising Interrupt Enable
TXBUFE7Transmit Buffer Empty Interrupt Enable
RXBUFF6Receive Buffer Full Interrupt Enable
ENDTX5End of Transmit Buffer Interrupt Enable
ENDRX4End of Receive Buffer Interrupt Enable
OVRES3Overrun Error Interrupt Enable
MODF2Mode Fault Error Interrupt Enable
TDRE1SPI Transmit Data Register Empty Interrupt Enable
RDRF0Receive Data Register Full Interrupt Enable
RXFPTEF31RXFPTEF Interrupt Enable

FLEX_SPI_IDRSPI Interrupt Disable Register

Address
0x40010418
Reset
0x00000000
Access
write only
Size
32-bit
21 fields
FieldBitsWhat it does
TXFPTEF30TXFPTEF Interrupt Disable
RXFTHF29RXFTHF Interrupt Disable
RXFFF28RXFFF Interrupt Disable
RXFEF27RXFEF Interrupt Disable
TXFTHF26TXFTHF Interrupt Disable
TXFFF25TXFFF Interrupt Disable
TXFEF24TXFEF Interrupt Disable
SFERR12Client Mode Frame Error Interrupt Disable
CMP11Comparison Interrupt Disable
UNDES10Underrun Error Interrupt Disable
TXEMPTY9Transmission Registers Empty Disable
NSSR8NSS Rising Interrupt Disable
TXBUFE7Transmit Buffer Empty Interrupt Disable
RXBUFF6Receive Buffer Full Interrupt Disable
ENDTX5End of Transmit Buffer Interrupt Disable
ENDRX4End of Receive Buffer Interrupt Disable
OVRES3Overrun Error Interrupt Disable
MODF2Mode Fault Error Interrupt Disable
TDRE1SPI Transmit Data Register Empty Interrupt Disable
RDRF0Receive Data Register Full Interrupt Disable
RXFPTEF31RXFPTEF Interrupt Disable

FLEX_SPI_IMRSPI Interrupt Mask Register

Address
0x4001041C
Reset
0x00000000
Access
read only
Size
32-bit
21 fields
FieldBitsWhat it does
TXFPTEF30TXFPTEF Interrupt Mask
RXFTHF29RXFTHF Interrupt Mask
RXFFF28RXFFF Interrupt Mask
RXFEF27RXFEF Interrupt Mask
TXFTHF26TXFTHF Interrupt Mask
TXFFF25TXFFF Interrupt Mask
TXFEF24TXFEF Interrupt Mask
SFERR12Client Mode Frame Error Interrupt Mask
CMP11Comparison Interrupt Mask
UNDES10Underrun Error Interrupt Mask
TXEMPTY9Transmission Registers Empty Mask
NSSR8NSS Rising Interrupt Mask
TXBUFE7Transmit Buffer Empty Interrupt Mask
RXBUFF6Receive Buffer Full Interrupt Mask
ENDTX5End of Transmit Buffer Interrupt Mask
ENDRX4End of Receive Buffer Interrupt Mask
OVRES3Overrun Error Interrupt Mask
MODF2Mode Fault Error Interrupt Mask
TDRE1SPI Transmit Data Register Empty Interrupt Mask
RDRF0Receive Data Register Full Interrupt Mask
RXFPTEF31RXFPTEF Interrupt Mask

FLEX_SPI_CSR0SPI Chip Select Register

Address
0x40010430
Reset
0x00000000
Access
read/write
Size
32-bit
8 fields
FieldBitsWhat it does
DLYBS23:16Delay Before SPCK
SCBR15:8Serial Clock Bit Rate
BITS7:4Bits Per Transfer
  • 0 8 bits for transfer
  • 1 9 bits for transfer
  • 2 10 bits for transfer
  • 3 11 bits for transfer
  • 4 12 bits for transfer
  • 5 13 bits for transfer
  • 6 14 bits for transfer
  • 7 15 bits for transfer
  • 8 16 bits for transfer
CSAAT3Chip Select Active After Transfer
CSNAAT2Chip Select Not Active After Transfer (Ignored if CSAAT = 1)
NCPHA1Clock Phase
CPOL0Clock Polarity
DLYBCT31:24Delay Between Consecutive Transfers

FLEX_SPI_CSR1SPI Chip Select Register

Address
0x40010434
Reset
0x00000000
Access
read/write
Size
32-bit
8 fields
FieldBitsWhat it does
DLYBS23:16Delay Before SPCK
SCBR15:8Serial Clock Bit Rate
BITS7:4Bits Per Transfer
  • 0 8 bits for transfer
  • 1 9 bits for transfer
  • 2 10 bits for transfer
  • 3 11 bits for transfer
  • 4 12 bits for transfer
  • 5 13 bits for transfer
  • 6 14 bits for transfer
  • 7 15 bits for transfer
  • 8 16 bits for transfer
CSAAT3Chip Select Active After Transfer
CSNAAT2Chip Select Not Active After Transfer (Ignored if CSAAT = 1)
NCPHA1Clock Phase
CPOL0Clock Polarity
DLYBCT31:24Delay Between Consecutive Transfers

FLEX_SPI_FMRSPI FIFO Mode Register

Address
0x40010440
Reset
0x00000000
Access
read/write
Size
32-bit
4 fields
FieldBitsWhat it does
RXFTHRES29:24Receive FIFO Threshold
TXFTHRES21:16Transmit FIFO Threshold
RXRDYM5:4Receive Data Register Full Mode
  • 0 RDRF will be at level '1' when at least one unread data is in the receive FIFO. When DMA is enabled to transfer data and FLEX_SPI_CSR0.BITS=0 (8 bits transfered on SPI line), the chunk of 1 byte must be configured in the DMA. When FLEX_SPI_CSR0.BITS>0 (9 to 16 bits transfered on SPI line), the chunk
  • 1 RDRF will be at level '1' when at least two unread data are in the receive FIFO. To minimize system bus load, when DMA is enabled to transfer data and FLEX_SPI_CSR0.BITS=0 (8 bits transfered on SPI line), the chunk of 1 halfword (1 halfword carries 2 bytes) must be configured in the DMA. When FLEX_S
  • 2 RDRF will be at level '1' when at least four unread data are in the receive FIFO. To minimize system bus load, when DMA is enabled to transfer data and FLEX_SPI_CSR0.BITS=0 (8 bits transfered on SPI line), the chunk of 1 word (1 halfword carries 4 bytes) must be configured in the DMA. When FLEX_SPI_
TXRDYM1:0Transmit Data Register Empty Mode
  • 0 TDRE will be at level '1' when at least one data can be written in the transmit FIFO. When DMA is enabled to transfer data, the chunk of 1 data (byte or halfword) must be configured in the DMA depending on FLEX_SPI_CSR0.BITS. If the transfer is performed by software, the access type (byte, halfword)
  • 1 TDRE will be at level '1' when at least two data can be written in the transmit FIFO. FIFO. To minimize system bus load, when DMA is enabled to transfer data, the chunk of 1 word (1 word carries 2 data) must be configured in the DMA. If the transfer is performed by software, the access type must be

FLEX_SPI_FLRSPI FIFO Level Register

Address
0x40010444
Reset
0x00000000
Access
read only
Size
32-bit
2 fields
FieldBitsWhat it does
RXFL21:16Receive FIFO Level
TXFL5:0Transmit FIFO Level

FLEX_SPI_CMPRSPI Comparison Register

Address
0x40010448
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
FieldBitsWhat it does
VAL115:0First Comparison Value for Received Character
VAL231:16Second Comparison Value for Received Character

FLEX_SPI_WPMRSPI Write Protection Mode Register

Address
0x400104E4
Reset
0x00000000
Access
read/write
Size
32-bit
4 fields
FieldBitsWhat it does
WPCREN2Write Protection Control Enable
WPITEN1Write Protection Interrupt Enable
WPEN0Write Protection Enable
WPKEY31:8Write Protection Key
  • 5460041 Writing any other value in this field aborts the write operation of bits WPEN, WPITEN and WPCREN. Always reads as 0

FLEX_SPI_WPSRSPI Write Protection Status Register

Address
0x400104E8
Reset
0x00000000
Access
read only
Size
32-bit
2 fields
FieldBitsWhat it does
WPVSRC15:8Write Protection Violation Source
WPVS0Write Protection Violation Status

FLEX_TWI_CRTWI Control Register

Address
0x40010600
Reset
0x00000000
Access
write only
Size
32-bit
45 fields
FieldBitsWhat it does
FIFODIS29FIFO Disable
FIFODIS29FIFO Disable
FIFOEN28FIFO Enable
FIFOEN28FIFO Enable
LOCKCLR26Lock Clear
TXFLCLR26Transmit FIFO Lock CLEAR
RXFCLR25Receive FIFO Clear
THRCLR24Transmit Holding Register Clear
TXFCLR24Transmit FIFO Clear
ACMDIS17Alternative Command Mode Disable
ACMDIS17Alternative Command Mode Disable
ACMEN16Alternative Command Mode Enable
ACMEN16Alternative Command Mode Enable
CLEAR15Bus CLEAR Command
CLEAR15Bus CLEAR Command
PECRQ14PEC Request
PECRQ14PEC Request
PECDIS13Packet Error Checking Disable
PECDIS13Packet Error Checking Disable
PECEN12Packet Error Checking Enable
PECEN12Packet Error Checking Enable
SMBDIS11SMBus Mode Disabled
SMBDIS11SMBus Mode Disabled
SMBEN10SMBus Mode Enabled
SMBEN10SMBus Mode Enabled
HSDIS9TWI High-Speed Mode Disabled
HSDIS9TWI High-Speed Mode Disabled
HSEN8TWI High-Speed Mode Enabled
HSEN8TWI High-Speed Mode Enabled
SWRST7Software Reset
SWRST7Software Reset
QUICK6SMBus Quick Command
QUICK6SMBus Quick Command
SVDIS5TWI Client Mode Disabled
SVDIS5TWI Client Mode Disabled
SVEN4TWI Client Mode Enabled
SVEN4TWI Client Mode Enabled
MSDIS3TWI Host Mode Disabled
MSDIS3TWI Host Mode Disabled
MSEN2TWI Host Mode Enabled
MSEN2TWI Host Mode Enabled
STOP1Send a STOP Condition
STOP1Send a STOP Condition
START0Send a START Condition
START0Send a START Condition

FLEX_TWI_MMRTWI Host Mode Register

Address
0x40010604
Reset
0x00000000
Access
read/write
Size
32-bit
5 fields
FieldBitsWhat it does
NOAP24No Auto-Stop On NACK Error
DADR22:16Device Address
SCLRBL14:13SCL Rise Boost Level
MREAD12Host Read Direction
IADRSZ9:8Internal Device Address Size
  • 0 No internal device address
  • 1 One-byte internal device address
  • 2 Two-byte internal device address
  • 3 Three-byte internal device address

FLEX_TWI_SMRTWI Client Mode Register

Address
0x40010608
Reset
0x00000000
Access
read/write
Size
32-bit
13 fields
FieldBitsWhat it does
SADR3EN30Client Address 3 Enable
SADR2EN29Client Address 2 Enable
SADR1EN28Client Address 1 Enable
SADR22:16Client Address
MASK14:8Client Address Mask
SNIFF7Client Sniffer Mode
SCLWSDIS6Clock Wait State Disable
BSEL5TWI Bus Selection
SADAT4Client Address Treated as Data
SMHH3SMBus Host Header
SMDA2SMBus Default Address
NACKEN0Client Receiver Data Phase NACK Enable
DATAMEN31Data Matching Enable

FLEX_TWI_IADRTWI Internal Address Register

Address
0x4001060C
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
IADR23:0Internal Address

FLEX_TWI_CWGRTWI Clock Waveform Generator Register

Address
0x40010610
Reset
0x00000000
Access
read/write
Size
32-bit
5 fields
FieldBitsWhat it does
HOLD29:24TWD Hold Time Versus TWCK Falling
BRSRCCLK20Bit Rate Source Clock
  • 0 The peripheral clock is the source clock for the bit rate generation.
  • 1 GCLK is the source clock for the bit rate generation, thus the bit rate can be independent of the core/peripheral clock.
CKDIV18:16Clock Divider
CHDIV15:8Clock High Divider
CLDIV7:0Clock Low Divider

FLEX_TWI_SRTWI Status Register

Address
0x40010620
Reset
0x00000000
Access
read only
Size
32-bit
52 fields
FieldBitsWhat it does
SR26Start Repeated
SR26Start Repeated
SDA25SDA Line Value
SDA25SDA Line Value
SCL24SCL Line Value
SCL24SCL Line Value
LOCK23TWI Lock Due to Frame Errors
TXFLOCK23Transmit FIFO Lock
SMBHHM21SMBus Host Header Address Match (cleared on read)
SMBHHM21SMBus Host Header Address Match (cleared on read)
SMBDAM20SMBus Default Address Match (cleared on read)
SMBDAM20SMBus Default Address Match (cleared on read)
PECERR19PEC Error (cleared on read)
PECERR19PEC Error (cleared on read)
TOUT18Timeout Error (cleared on read)
TOUT18Timeout Error (cleared on read)
SMBAF17SMBus Alert Flag
SMBAF17SMBus Alert Flag
MCACK16Host Code Acknowledge (cleared on read)
MCACK16Host Code Acknowledge (cleared on read)
TXBUFE15TX Buffer Empty (cleared by writing FLEX_TWI_TCR or FLEX_TWI_TNCR)
TXBUFE15TX Buffer Empty (cleared by writing FLEX_TWI_TCR or FLEX_TWI_TNCR)
RXBUFF14RX Buffer Full (cleared by writing FLEX_TWI_RCR or FLEX_TWI_RNCR)
RXBUFF14RX Buffer Full (cleared by writing FLEX_TWI_RCR or FLEX_TWI_RNCR)
ENDTX13End of TX Buffer (cleared by writing FLEX_TWI_TCR or FLEX_TWI_TNCR)
ENDTX13End of TX Buffer (cleared by writing FLEX_TWI_TCR or FLEX_TWI_TNCR)
ENDRX12End of RX Buffer (cleared by writing FLEX_TWI_RCR or FLEX_TWI_RNCR)
ENDRX12End of RX Buffer (cleared by writing FLEX_TWI_RCR or FLEX_TWI_RNCR)
EOSACC11End Of Client Access (cleared on read)
EOSACC11End Of Client Access (cleared on read)
SCLWS10Clock Wait State
SCLWS10Clock Wait State
ARBLST9Arbitration Lost (cleared on read)
ARBLST9Arbitration Lost (cleared on read)
NACK8Not Acknowledged (cleared on read)
NACK8Not Acknowledged (cleared on read)
UNRE7Underrun Error (cleared on read)
UNRE7Underrun Error (cleared on read)
OVRE6Overrun Error (cleared on read)
OVRE6Overrun Error (cleared on read)
GACC5General Call Access (cleared on read)
GACC5General Call Access (cleared on read)
SVACC4Client Access
SVACC4Client Access
SVREAD3Client Read
SVREAD3Client Read
TXRDY2Transmit Holding Register Ready (cleared by writing FLEX_TWI_THR)
TXRDY2Transmit Holding Register Ready (cleared by writing FLEX_TWI_THR)
RXRDY1Receive Holding Register Ready (cleared when reading FLEX_TWI_RHR)
RXRDY1Receive Holding Register Ready (cleared when reading FLEX_TWI_RHR)
TXCOMP0Transmission Completed (cleared by writing FLEX_TWI_THR)
TXCOMP0Transmission Completed (cleared by writing FLEX_TWI_THR)

FLEX_TWI_IERTWI Interrupt Enable Register

Address
0x40010624
Reset
0x00000000
Access
write only
Size
32-bit
20 fields
FieldBitsWhat it does
SMBHHM21SMBus Host Header Address Match Interrupt Enable
SMBDAM20SMBus Default Address Match Interrupt Enable
PECERR19PEC Error Interrupt Enable
TOUT18Timeout Error Interrupt Enable
MCACK16Host Code Acknowledge Interrupt Enable
TXBUFE15Transmit Buffer Empty Interrupt Enable
RXBUFF14Receive Buffer Full Interrupt Enable
ENDTX13End of Transmit Buffer Interrupt Enable
ENDRX12End of Receive Buffer Interrupt Enable
EOSACC11End Of Client Access Interrupt Enable
SCL_WS10Clock Wait State Interrupt Enable
ARBLST9Arbitration Lost Interrupt Enable
NACK8Not Acknowledge Interrupt Enable
UNRE7Underrun Error Interrupt Enable
OVRE6Overrun Error Interrupt Enable
GACC5General Call Access Interrupt Enable
SVACC4Client Access Interrupt Enable
TXRDY2Transmit Holding Register Ready Interrupt Enable
RXRDY1Receive Holding Register Ready Interrupt Enable
TXCOMP0Transmission Completed Interrupt Enable

FLEX_TWI_IDRTWI Interrupt Disable Register

Address
0x40010628
Reset
0x00000000
Access
write only
Size
32-bit
20 fields
FieldBitsWhat it does
SMBHHM21SMBus Host Header Address Match Interrupt Disable
SMBDAM20SMBus Default Address Match Interrupt Disable
PECERR19PEC Error Interrupt Disable
TOUT18Timeout Error Interrupt Disable
MCACK16Host Code Acknowledge Interrupt Disable
TXBUFE15Transmit Buffer Empty Interrupt Disable
RXBUFF14Receive Buffer Full Interrupt Disable
ENDTX13End of Transmit Buffer Interrupt Disable
ENDRX12End of Receive Buffer Interrupt Disable
EOSACC11End Of Client Access Interrupt Disable
SCL_WS10Clock Wait State Interrupt Disable
ARBLST9Arbitration Lost Interrupt Disable
NACK8Not Acknowledge Interrupt Disable
UNRE7Underrun Error Interrupt Disable
OVRE6Overrun Error Interrupt Disable
GACC5General Call Access Interrupt Disable
SVACC4Client Access Interrupt Disable
TXRDY2Transmit Holding Register Ready Interrupt Disable
RXRDY1Receive Holding Register Ready Interrupt Disable
TXCOMP0Transmission Completed Interrupt Disable

FLEX_TWI_IMRTWI Interrupt Mask Register

Address
0x4001062C
Reset
0x00000000
Access
read only
Size
32-bit
20 fields
FieldBitsWhat it does
SMBHHM21SMBus Host Header Address Match Interrupt Mask
SMBDAM20SMBus Default Address Match Interrupt Mask
PECERR19PEC Error Interrupt Mask
TOUT18Timeout Error Interrupt Mask
MCACK16Host Code Acknowledge Interrupt Mask
TXBUFE15Transmit Buffer Empty Interrupt Mask
RXBUFF14Receive Buffer Full Interrupt Mask
ENDTX13End of Transmit Buffer Interrupt Mask
ENDRX12End of Receive Buffer Interrupt Mask
EOSACC11End Of Client Access Interrupt Mask
SCL_WS10Clock Wait State Interrupt Mask
ARBLST9Arbitration Lost Interrupt Mask
NACK8Not Acknowledge Interrupt Mask
UNRE7Underrun Error Interrupt Mask
OVRE6Overrun Error Interrupt Mask
GACC5General Call Access Interrupt Mask
SVACC4Client Access Interrupt Mask
TXRDY2Transmit Holding Register Ready Interrupt Mask
RXRDY1Receive Holding Register Ready Interrupt Mask
TXCOMP0Transmission Completed Interrupt Mask

FLEX_TWI_RHRTWI Receive Holding Register

Address
0x40010630
Reset
0x00000000
Access
read only
Size
32-bit
8 fields
FieldBitsWhat it does
RXDATA223:16Host or Client Receive Holding Data 2
RXDATA115:8Host or Client Receive Holding Data 1
ASTATE12:11Acknowledge State (Client Sniffer Mode only)
  • 0 No Acknowledge or Nacknowledge detected after previously logged data
  • 1 Acknowledge (A) detected after previously logged data
  • 2 Nacknowledge (NA) detected after previously logged data
  • 3 Not defined
PSTATE10Stop State (Client Sniffer Mode only)
SSTATE9:8Start State (Client Sniffer Mode only)
  • 0 No START detected with the logged data
  • 1 START (S) detected with the logged data
  • 2 Repeated START (Sr) detected with the logged data
  • 3 Not defined
RXDATA7:0Host or Client Receive Holding Data
RXDATA07:0Host or Client Receive Holding Data 0
RXDATA331:24Host or Client Receive Holding Data 3

FLEX_TWI_THRTWI Transmit Holding Register

Address
0x40010634
Reset
0x00000000
Access
write only
Size
32-bit
5 fields
FieldBitsWhat it does
TXDATA223:16Host or Client Transmit Holding Data 2
TXDATA115:8Host or Client Transmit Holding Data 1
TXDATA7:0Host or Client Transmit Holding Data
TXDATA07:0Host or Client Transmit Holding Data 0
TXDATA331:24Host or Client Transmit Holding Data 3

FLEX_TWI_SMBTRTWI SMBus Timing Register

Address
0x40010638
Reset
0x00000000
Access
read/write
Size
32-bit
4 fields
FieldBitsWhat it does
TLOWM23:16Host Clock Stretch Maximum Cycles
TLOWS15:8Client Clock Stretch Maximum Cycles
PRESC3:0SMBus Clock Prescaler
THMAX31:24Clock High Maximum Cycles

FLEX_TWI_HSRTWI High Speed Register

Address
0x4001063C
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
MCODE7:0TWI High Speed Host Code

FLEX_TWI_ACRTWI Alternative Command Register

Address
0x40010640
Reset
0x00000000
Access
read/write
Size
32-bit
6 fields
FieldBitsWhat it does
NPEC25Next PEC Request (SMBus Mode only)
NDIR24Next Transfer Direction
NDATAL23:16Next Data Length
PEC9PEC Request (SMBus Mode only)
DIR8Transfer Direction
DATAL7:0Data Length

FLEX_TWI_FILTRTWI Filter Register

Address
0x40010644
Reset
0x00000000
Access
read/write
Size
32-bit
3 fields
FieldBitsWhat it does
THRES10:8Digital Filter Threshold
PADFEN1PAD Filter Enable
FILT0RX Digital Filter

FLEX_TWI_HSCWGRTWI High Speed Clock Waveform Generator Register

Address
0x40010648
Reset
0x00000000
Access
read/write
Size
32-bit
3 fields
FieldBitsWhat it does
HSCKDIV18:16High Speed Clock Divider
HSCHDIV15:8High Speed Clock High Divider
HSCLDIV7:0High Speed Clock Low Divider

FLEX_TWI_SWMRTWI Matching Register

Address
0x4001064C
Reset
0x00000000
Access
read/write
Size
32-bit
4 fields
FieldBitsWhat it does
SADR322:16Client Address 3
SADR214:8Client Address 2
SADR16:0Client Address 1
DATAM31:24Data Match

FLEX_TWI_FMRTWI FIFO Mode Register

Address
0x40010650
Reset
0x00000000
Access
read/write
Size
32-bit
4 fields
FieldBitsWhat it does
RXFTHRES29:24Receive FIFO Threshold
TXFTHRES21:16Transmit FIFO Threshold
RXRDYM5:4Receiver Ready Mode
  • 0 RXRDY will be at level '1' when at least one unread data is in the receive FIFO. When DMA is enabled to transfer data the chunk of 1 byte must be configured in the DMA. If the transfer is performed by software, the access type (byte, halfword) must be defined accordingly.
  • 1 RXRDY will be at level '1' when at least two unread data are in the receive FIFO. To minimize system bus load, when DMA is enabled to transfer data, the chunk of 1 halfword (1 halfword carries 2 bytes) must be configured in the DMA. If the transfer is performed by software, the access type can be de
  • 2 RXRDY will be at level '1' when at least four unread data are in the receive FIFO. To minimize system bus load, when DMA is enabled to transfer data, the chunk of 1 word (1 word carries 4 bytes) must be configured in the DMA. If the transfer is performed by software, the access type can be defined a
TXRDYM1:0Transmitter Ready Mode
  • 0 TXRDY will be at level '1' when at least one data can be written in the transmit FIFO. When DMA is enabled to transfer data, the chunk of 1 byte must be configured in the DMA. If the transfer is performed by software, the access type must be defined as byte.
  • 1 TXRDY will be at level '1' when at least two data can be written in the transmit FIFO. To minimize system bus load, when DMA is enabled to transfer data, the chunk of 1 halfword (1 halfword carries 2 bytes) must be configured in the DMA. If the transfer is performed by software, the access type can
  • 2 TXRDY will be at level '1' when at least four data can be written in the transmit FIFO. To minimize system bus load, when DMA is enabled to transfer data, the chunk of 1 word (1 word carries 4 bytes) must be configured in the DMA. If the transfer is performed by software, the access type can be defi

FLEX_TWI_FLRTWI FIFO Level Register

Address
0x40010654
Reset
0x00000000
Access
read only
Size
32-bit
2 fields
FieldBitsWhat it does
RXFL21:16Receive FIFO Level
TXFL5:0Transmit FIFO Level

FLEX_TWI_FSRTWI FIFO Status Register

Address
0x40010660
Reset
0x00000000
Access
read only
Size
32-bit
8 fields
FieldBitsWhat it does
RXFPTEF7Receive FIFO Pointer Error Flag
TXFPTEF6Transmit FIFO Pointer Error Flag
RXFTHF5Receive FIFO Threshold Flag
RXFFF4Receive FIFO Full Flag
RXFEF3Receive FIFO Empty Flag
TXFTHF2Transmit FIFO Threshold Flag (cleared on read)
TXFFF1Transmit FIFO Full Flag (cleared on read)
TXFEF0Transmit FIFO Empty Flag (cleared on read)

FLEX_TWI_FIERTWI FIFO Interrupt Enable Register

Address
0x40010664
Reset
0x00000000
Access
write only
Size
32-bit
8 fields
FieldBitsWhat it does
RXFPTEF7RXFPTEF Interrupt Enable
TXFPTEF6TXFPTEF Interrupt Enable
RXFTHF5RXFTHF Interrupt Enable
RXFFF4RXFFF Interrupt Enable
RXFEF3RXFEF Interrupt Enable
TXFTHF2TXFTHF Interrupt Enable
TXFFF1TXFFF Interrupt Enable
TXFEF0TXFEF Interrupt Enable

FLEX_TWI_FIDRTWI FIFO Interrupt Disable Register

Address
0x40010668
Reset
0x00000000
Access
write only
Size
32-bit
8 fields
FieldBitsWhat it does
RXFPTEF7RXFPTEF Interrupt Disable
TXFPTEF6TXFPTEF Interrupt Disable
RXFTHF5RXFTHF Interrupt Disable
RXFFF4RXFFF Interrupt Disable
RXFEF3RXFEF Interrupt Disable
TXFTHF2TXFTHF Interrupt Disable
TXFFF1TXFFF Interrupt Disable
TXFEF0TXFEF Interrupt Disable

FLEX_TWI_FIMRTWI FIFO Interrupt Mask Register

Address
0x4001066C
Reset
0x00000000
Access
read only
Size
32-bit
8 fields
FieldBitsWhat it does
RXFPTEF7RXFPTEF Interrupt Mask
TXFPTEF6TXFPTEF Interrupt Mask
RXFTHF5RXFTHF Interrupt Mask
RXFFF4RXFFF Interrupt Mask
RXFEF3RXFEF Interrupt Mask
TXFTHF2TXFTHF Interrupt Mask
TXFFF1TXFFF Interrupt Mask
TXFEF0TXFEF Interrupt Mask

FLEX_TWI_WPMRTWI Write Protection Mode Register

Address
0x400106E4
Reset
0x00000000
Access
read/write
Size
32-bit
4 fields
FieldBitsWhat it does
WPCREN2Write Protection Control Enable
WPITEN1Write Protection Interrupt Enable
WPEN0Write Protection Enable
WPKEY31:8Write Protection Key
  • 5527369 Writing any other value in this field aborts the write operation of bits WPEN, WPITEN and WPCREN. Always reads as 0

FLEX_TWI_WPSRTWI Write Protection Status Register

Address
0x400106E8
Reset
0x00000000
Access
read only
Size
32-bit
2 fields
FieldBitsWhat it does
WPVS0Write Protect Violation Status (cleared on read)
WPVSRC31:8Write Protection Violation Source