ChArLyZzZ
New Member
Hi again guys,
I'm using PIC16F877 and i want to use the comparator module. I'm simply comparing the temperature sensor voltage to a predefined potentiometer value on PORTA0 and PORTA3
I disabled the Analog module, enabled the CMIE and assigned 0x02 to CMCON (my case). As the datasheet specifies, when the output of the comparator changes state, CMIF should be set which is not happening in my case!!
Do I miss something here??
Thanks guys really
I'm using PIC16F877 and i want to use the comparator module. I'm simply comparing the temperature sensor voltage to a predefined potentiometer value on PORTA0 and PORTA3
I disabled the Analog module, enabled the CMIE and assigned 0x02 to CMCON (my case). As the datasheet specifies, when the output of the comparator changes state, CMIF should be set which is not happening in my case!!
Do I miss something here??
Thanks guys really