34.6.4.2.3 Clock and Clock Generation
Clock
The SERCOM bus clock (CLK_SERCOMx_APB) can be enabled and disabled in the Device Main Clock Controller.
A generic clock (GCLK_SERCOMx_CORE) is required to clock the SPI. This clock must be configured and enabled in the Device Generic Clock Controller before using the SPI.
This generic clock is asynchronous to the bus clock (CLK_SERCOMx_APB). Therefore, writing to certain registers will require synchronization to the clock domains. Refer to Synchronization for further details.
Clock Generation
In SPI host operation (CTRLD.MODE=0x3), the serial clock (SCK) is generated internally by the SERCOM baudrate generator.
In SPI mode, the baud-rate generator is set to Synchronous mode. The 8-bit Baud register (BAUD) value is used for generating SCK and clocking the Shift register. Refer to Clock Generation – Baud-Rate Generator for more details.
In SPI client operation (CTRLD.MODE is 0x2), the clock is provided by an external master on the SCK pin. This clock is used to directly clock the SPI Shift register.