I am trying to use the internal ADC in my project. However, when I try to initialize the ADC, I get:
I cannot access any of the ADC registers and the same error persists. My ADC functional clock is set to SIRCDIV2_CLK (8 MHz), PDB block set to bus clock and turned on, Extension ADC clock divide set to 2. SOSC and SPLL are disabled. Frequency in run mode is 48 MHz.
Any leads regarding this issue are appreciated.