23.3.1 Initialization and Disabling
To initialize the TCD:
- Configure the static registers to the desired functionality.
- Write desired initial values to the double-buffered registers.
- Ensure that the Enable Ready bit (ENRDY) in the Status register (TCDn.STATUS) is set to '1'.
- Enable the TCD by writing a '1' to the ENABLE bit in the Control A register (TCDn.CTRLA).
- By writing a '0' to ENABLE in TCDn.CTRLA. This disables the TCD instantly when synchronized to the TCD core domain.
- By writing a '1' to the Disable at End of Cycle Strobe bit (DISEOC) in the Control E register (TCDn.CTRLE). This disables the TCD at the end of the TCD cycle.
The bit fields in the TCDn.CTRLA register are enable-protected, with exception of the ENABLE bit. They can only be written when ENABLE is written to '0' first.