To ensure correct functionality of the AFEC, the AFEC Mode register (AFEC_MR) must be configured as described in the following sections.