Programming with on-chip ADC
Procedure
Simulator :
- step 1 : Select Input Channel (Pin RA0 to Pin RA7).
- step 2 : Select Reference Voltage.
- step 3 : Enter Analog Input Voltage in Volt.
- step 4 : Click on "GENERATE CODE" button to generate code.
- step 5 : Click on "COMPILE" button to compile code.
- step 6 : Click on "EXECUTE" button to execute code and goto mimic.
- step 7 : If you want to download code click on "DOWNLOAD" button.
- step 8 : The MIMIC will open on left side of screen.
- step 9 : Click on selected input channel terminal (blue circle) and click on analog input voltage terminal (blue circle) for connection of the selected input channel with analog input voltage or vice versa.
- step 10 : Click on "Check Connection" button.
- step 11 : If connection is wrong, click on "Reset Connection" button and follow steps 9 and 10.
- step 12 : If connection is successful, click on Run Button.
- step 13 : Now observe the ADC output on Digital Output Display.
- step 14 : Click on "REFRESH" button to re-executing the experiment.