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.....
I plan to use the ADC.
Am I on the right track here.
uC is 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:
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'
TRISC = 0x00; // Port C as Outputs
Am I on the right track here.
uC is 16F886 E/SP
Last edited: