Även om jag jordar eller lägger adc ingången på 5V så lyser dioden.
det fanns en funktion som heter
ADC_Init
Prototype void ADC_Init();
Returns Nothing.
Description This routine initializes PIC’s internal ADC module to work with RC clock. Clock determines the time period necessary for performing AD conversion (min 12TAD).
Requires MCU with built-in ADC module.
Example ADC_Init(); // Initialize ADC module with default settings
Jag la till ADC_INIT() men det gjorde ingen skillnad
