29.6.1 Control A

Name: CTRLA
Offset: 0x00
Reset: 0x00000000
Property: PAC Write-Protection, Enable-Protected, Write-Synchronized

Bit 3130292827262524 
  DORDCPOLCMODEFORM[3:0] 
Access R/WR/WR/WR/WR/WR/WR/W 
Reset 0000000 
Bit 2322212019181716 
 SAMPA[1:0]RXPO[1:0]  TXPO[1:0] 
Access R/WR/WR/WR/WR/WR/W 
Reset 000000 
Bit 15141312111098 
 SAMPR[2:0]    IBON 
Access R/WR/WR/WR/W 
Reset 0000 
Bit 76543210 
 RUNSTDBY  MODE[2:0]ENABLESWRST 
Access R/WR/WR/WR/WR/WR/W 
Reset 000000 

Bit 30 – DORD Data Order

This bit selects the data order when a character is shifted out from the Data register.

Note: This bit is enable-protected. This bit is not synchronized.
ValueNameDescription
0MSBMSb is transferred first
1LSBLSb is transferred first

Bit 29 – CPOL Clock Polarity

This bit selects the relationship between data output change and data input sampling in Synchronous mode.

Note: This bit is enable-protected. This bit is not synchronized.
ValueNameDescription
0IDLE_LOWTxD Change: Rising XCK edge, RxD Sample: Falling XCK edge
1IDLE_HIGHTxD Change: Falling XCK edge, RxD Sample: Rising XCK edge

Bit 28 – CMODE Communication Mode

This bit selects asynchronous or synchronous communication.

Note: This bit is enable-protected. This bit is not synchronized.
ValueNameDescription
0ASYNCAsynchronous communication
1SYNCSynchronous communication

Bits 27:24 – FORM[3:0] Frame Format

These bits define the frame format.

Note: This bit field is enable-protected. This bit field is not synchronized.
ValueNameDescription
0x0USART_FRAME_NO_PARITYUSART frame
0x1USART_FRAME_WITH_PARITYUSART frame with parity
0x2USART_FRAME_LINBRKGENLIN Host - Break and sync generation. See LIN Command (CTRLB.LINCMD).
0x4USART_FRAME_AUTO_BAUD_NO_PARITYAuto-baud (LIN Client) - break detection and auto-baud
0x5USART_FRAME_AUTO_BAUD_WITH_PARITYAuto-baud - break detection and auto-baud with parity

Bits 23:22 – SAMPA[1:0] Sample Adjustment

These bits define the sample adjustment.

Note:
  1. This bit field is enable-protected. This bit field is not synchronized.
  2. This adjustment depends on the over-sampling setting 16x (CTRLA.SAMPR = 0 or 1) or 8x (CTRLA.SAMPR = 2 or 3)
ValueNameDescription
0x0ADJ016x Over-sampling = 7-8-9; 8x Over-sampling = 3-4-5
0x1ADJ116x Over-sampling = 9-10-11; 8x Over-sampling = 4-5-6
0x2ADJ2

16x Over-sampling = 11-12-13; 8x Over-sampling = 5-6-7

0x3ADJ3

16x Over-sampling = 13-14-15; 8x Over-sampling = 6-7-8

Bits 21:20 – RXPO[1:0] Receive Data Pinout

These bits define the receive data (RxD) pin configuration.

Note: This bit field is enable-protected. This bit field is not synchronized.
ValueNameDescription
0x0MUX0SERCOM PAD[0] is used for data reception
0x1MUX1SERCOM PAD[1] is used for data reception
0x2MUX2SERCOM PAD[2] is used for data reception
0x3MUX3SERCOM PAD[3] is used for data reception

Bits 17:16 – TXPO[1:0] Transmit Data Pinout

These bits define the transmit data (TxD) and XCK pin configurations.

Note: This bit field is enable-protected. This bit field is not synchronized.
ValueNameDescription
0x0MUX0PAD[0]=TxD, PAD[1]=XCK
0x1MUX1PAD[2]=TxD, PAD[3]=XCK
0x2MUX2PAD[0]=TxD, PAD[2]=RTS/TE, PAD[3]=CTS
0x3MUX3PAD[0]=TxD, PAD[1]=XCK, PAD[2]=RTS/TE

Bits 15:13 – SAMPR[2:0] Sample Rate

These bits select the sample rate.

Note: This bit field is enable-protected. This bit field is not synchronized.
ValueNameDescription
0x016X_ARITHMETIC16x over-sampling using arithmetic baud rate generation
0x116X_FRACTIONAL16x over-sampling using fractional baud rate generation
0x28X_ARITHMETIC8x over-sampling using arithmetic baud rate generation
0x38X_FRACTIONAL8x over-sampling using fractional baud rate generation
0x43X_ARITHMETIC3x over-sampling using arithmetic baud rate generation

Bit 8 – IBON Immediate Buffer Overflow Notification

This bit controls when the buffer overflow status bit (STATUS.BUFOVF) is asserted when a buffer overflow occurs.

Note: This bit is enable-protected. This bit is not synchronized.
ValueDescription
0STATUS.BUFOVF is asserted when a buffer overflow occurs in the data stream
1STATUS.BUFOVF is asserted immediately upon buffer overflow

Bit 7 – RUNSTDBY Run In Standby

This bit defines the functionality in Standby sleep mode. Refer to Sleep Mode Operation for more information.

Note: This bit is enable-protected. This bit is not synchronized.
ValueDescription
0The USART does not operate in Standby sleep mode
1The USART operates in Standby sleep mode

Bits 4:2 – MODE[2:0] Operating Mode

This bit field controls the SERCOM mode.

Note: This bit field is enable-protected. This bit field is not synchronized.
ValueNameDescription
0x0USART_EXTUSART with external clock
0x1USART_INTUSART with internal clock
0x2SPI_SLAVESPI Client mode
0x3SPI_MASTERSPI Host mode
0x4I2C_SLAVEI2C Client mode
0x5I2C_MASTERI2C Host mode

Bit 1 – ENABLE Enable

Note:
  1. This bit is write-synchronized: SYNCBUSY.ENABLE must be checked to ensure the CTRLA.ENABLE synchronization is complete.
  2. This bit is not enable-protected.
ValueDescription
0The peripheral is disabled or being disabled
1The peripheral is enabled or being enabled

Bit 0 – SWRST Software Reset

Writing ‘0’ to this bit has no effect.

Writing ‘1’ to this bit resets all registers in the SERCOM, except DBGCTRL, to their initial state, and the SERCOM will be disabled.

Writing ‘1’ to CTRLA.SWRST will always take precedence, meaning that all other writes in the same write-operation will be discarded. Any register write access during the ongoing reset will result in an APB error. Reading any register will return the reset value of the register.

Note:
  1. This bit is write-synchronized: SYNCBUSY.SWRST must be checked to ensure the CTRLA.SWRST synchronization is complete.
  2. This bit is not enable-protected.
ValueDescription
0There is no reset operation in progress
1The reset operation is in progress