I'm not getting anything out of the C1 comparator, have I missed anything with my register settings
Code:
ANSEL = %00000110 ' AN1-AN2 enabled - the rest all digital
CM1CON0 = %10100000 ' C1 On, C1 Output enable, take VREF from C1In+ pin, Select C1In0- channel
TRISA.0 = 0
TRISA.1 = 1
TRISA.2 = 1
ANSELH = %00000011 ' AN7-AN8 enabled
CM2CON0 = 0 'C2 off.
I'm connecting a VREF DC level externally to pin 19 PortA.0 (which is C1IN+), something ain't right - when I scope Pin 19 -it's the yellow trace here - there's some random high/low switching going on (it should be steady DC - I checked the DC when removed from the PIC - it's rock solid...this pulseing is coming out of the PIC pin!)

and an analogue sine wave to PortA.1 (which is C12IN0-) ...I'm scoping PortA.2 (which is C1OUT) - nothing there :-(
Many thanks for any help!
Bookmarks