I ran into a road block.
How do you set the bits in ICSPDAT and ICSPCLK.
I have the ICD enabled in config.
What will happen if I set them as Inputs in TRISB
And about the comparator.....
ICD bits -- ADC and 16F886 E/SP.
How do you set the bits in ICSPDAT and ICSPCLK.
I have the ICD enabled in config.
What will happen if I set them as Inputs in TRISB
And about the comparator.....
Code (Text):
- ANSEL = 0x1F; // AN0 to AN4 as Analog Inputs.
- CM1CON0 = 0x07; // Comparator 1 off
- CM2CON0 = 0x07; // Comparator 2 off
- TRISA = 0xFF; // Port A as Inputs
- TRISB = 0xDC; // TrisB 'b11011100'...