31.6.1 Control A

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

Bit 3130292827262524 
  LOWTOUTEN  SCLSM SPEED[1:0] 
Access R/WR/WR/WR/W 
Reset 0000 
Bit 2322212019181716 
 SEXTTOEN SDAHOLD[1:0]   PINOUT 
Access R/WR/WR/WR/W 
Reset 0000 
Bit 15141312111098 
          
Access  
Reset  
Bit 76543210 
 RUNSTDBY  MODE[2:0]ENABLESWRST 
Access R/WR/WR/WR/WR/WR/W 
Reset 000000 

Bit 30 – LOWTOUTEN SCL Low Time-Out

This bit enables the SCL low time-out. If SCL is held low for 25 ms–35 ms, the client will release its clock hold, if enabled, and reset the internal state machine. Any interrupt flags set at the time of time-out will remain set.

Note: This bit is enable-protected. This bit is not synchronized.
ValueDescription
0Time-out disabled
1Time-out enabled

Bit 27 – SCLSM SCL Clock Stretch Mode

This bit controls when SCL will be stretched for software interaction.

Note: This bit is enable-protected. This bit is not synchronized.
ValueDescription
0SCL stretch according to Figure 31-9
1SCL stretch only after ACK bit according to Figure 31-10

Bits 25:24 – SPEED[1:0] Transfer Speed

These bits define the bus speed.

Note: This bit field is enable-protected. This bit field is not synchronized.
ValueNameDescription
0x0SM_MODEStandard-mode (Sm) and Fast-mode (Fm)
0x1FASTPLUS_MODEFast-mode Plus (Fm+)
OtherReserved

Bit 23 – SEXTTOEN Client SCL Low Extend Time-Out

This bit enables the client SCL low extend time-out. If SCL is cumulatively held low for greater than 25 ms from the initial START to a STOP, the client will release its clock hold if enabled and reset the internal state machine. Any interrupt flags set at the time of time-out will remain set. If the address was recognized, PREC will be set when a STOP is received.

Note: This bit is enable-protected. This bit is not synchronized.
ValueDescription
0Time-out disabled
1Time-out enabled

Bits 21:20 – SDAHOLD[1:0] SDA Hold Time

These bits define the SDA hold time with respect to the negative edge of SCL.

Note: This bit field is enable-protected. This bit field is not synchronized.
ValueNameDescription
0x0DISDisabled
0x175NS50-100 ns hold time
0x2450NS300-600 ns hold time
0x3600NS400-800 ns hold time

Bit 16 – PINOUT Pin Usage

This bit sets the pin usage to either two- or four-wire operation:

Note: This bit is enable-protected. This bit is not synchronized.
ValueDescription
04-wire operation is disabled
14-wire operation is enabled

Bit 7 – RUNSTDBY Run in Standby

This bit defines the functionality in Standby Sleep mode.

Note: This bit is enable-protected. This bit is not synchronized.
ValueDescription
0Disabled – All reception is dropped
1Wake on address match, if enabled

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

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