29.4.3.9 Start-of-Frame Detection

The USART start-of-frame detector can wake up the CPU when it detects a start bit. For this feature to work, the device must be in Standby sleep mode, the internal fast start-up oscillator must be selected as the GCLK_SERCOMx_CORE source and the Run Standby (CTRLA.RUNSTDBY) bit must be set to ‘0’.

When a 1-to-0 transition is detected on RxD, the SERCOM requests the Generic Clock (GCLK), and GCLK_SERCOMx_CORE starts. After start-up, the rest of the data frame can be received, provided that the baud rate is slow enough relative to the startup time of the fast startup internal oscillator. Refer to the Electrical Characteristics chapter for details.

The USART start-of-frame detection feature works in both Asynchronous and Synchronous modes. It is enabled by writing ‘1’ to the Start of Frame Detection Enable bit in the Control B (CTRLB.SFDE) register.

If the Receive Start Interrupt Enable bit in the Interrupt Enable Set (INTENSET.RXS) register is set, the Receive Start interrupt is generated immediately when a start bit is detected.

When start-of-frame detection is used without the Receive Start interrupt, start detection requests GCLK_SERCOMx_CORE to receive the rest of the frame. In this case, the CPU does not wake up until the Receive Complete interrupt is generated.