Academic Program

ADC Peripheral

ADC Peripheral

Step 7 - The ADCC needs to be set up. Click on the ADCC label in the Project Resources menu to make the ADCC setup screen appear.

adc.png
 
  1. Check the ADC Enable box and select the FOSC/ADCLK Clock Source from the drop-down menu and the FOSC/2 Clock.
  2. Select right for Result Alignment. This will produce a 10-bit ADC result.
  3. Leave Vref+ as VDD and Vref- as VSS.

After proper set up, your window should look like the setup below.

adcsetup.png