Hi all,
I am testing the PIC18F internal comparator which is set as "one independent comparator with output".
This is the configuration code:
I connected Vin+ to ground and the Vin- to 5V. The output was approximately 250-350mV. When inverting the inputs (Vin+ to 5V and Vin- to ground) the output remained at the same voltage.
What am I oing wrong please? am I missing something in the code?
I am testing the PIC18F internal comparator which is set as "one independent comparator with output".
This is the configuration code:
Rich (BB code):
CMCONbits.CM0 = 1;
CMCONbits.CM1 = 0;
CMCONbits.CM2 = 0;
CMCONbits.C1INV = 0;
What am I oing wrong please? am I missing something in the code?