40.5.7 Synchronization
Due to the asynchronicity between the main clock domain (CLK_TSENS_APB) and the peripheral clock domain (GCLK_TSENS) some registers are synchronized when written. When a write-synchronized register is written, the corresponding bit in the Synchronization Busy register (SYNCBUSY) is set immediately. When the write-synchronization is complete, this bit is cleared. Reading a write-synchronized register while the synchronization is ongoing will return the value written, and not the current value in the peripheral clock domain. To read the current value in the peripheral clock domain after writing a register, the user must wait for the corresponding SYNCBUSY bit to be cleared before reading the value.
If an operation that require synchronization is executed while its busy bit is on, the operation is discarded and a bus error is generated.
The following bits need synchronization when written:
- Software Reset bit in Control A register (CTRLA40.6.1 Control A.SWRST)
- Enable bit in Control A register (CTRLA40.6.1 Control A.ENABLE)
Write-synchronization is denoted by the Write-Synchronized property in the register description.