50.5.11 Register Write Protection
To prevent any single software error from corrupting ASRC behavior, certain registers in the address space can be write-protected by setting the WPEN, WPITEN and WPCREN bits in the Write Protection Mode Register (ASRC_WPMR).
If a write access to a write-protected register is detected, the WPVS flag in the Write Protection Status Register (ASRC_WPSR) is set and the field WPVSRC indicates the register in which the write access has been attempted.
The WPVS bit is automatically cleared after reading ASRC_WPSR.
The following registers are write-protected when the WPEN bit is set in ASRC_WPMR:
- ASRC Mode Register
- ASRC Ratio Register of Stereo Channel x
- ASRC Valid bit Per Sample In Register
- ASRC Valid bit Per Sample Out Register
- ASRC Channel Configuration Register
- ASRC Trigger Selection Register
The following registers are write-protected when the WPITEN bit is set in ASRC_WPMR:
- ASRC Interrupt Enable Register of Stereo Channel x
- ASRC Interrupt Disable Register of Stereo Channel x