Hi Henrik,
Many thanks for the tips.
I've had a look at the 16f690 datasheet, & you're completely right - it seems that bit 6 of the CM1CON0 register reflects the logic level output of comparator 1.
Therefore I'm thinking something like this will work...
...that should keep my variable in total sync with the comparator1 output logic level?Code:Comp1_Int: If CM1CON0.6 = 0 then above_threshold = 0 If CM1CON0.6 = 1 then above_threshold = 1 @ INT_RETURN
Bookmarks