Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4935

ICD bits -- ADC and 16F886 E/SP.

$
0
0
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.....
Code (Text):
  1.   ANSEL = 0x1F;                      // AN0 to AN4 as Analog Inputs.
  2.   CM1CON0 = 0x07;                    // Comparator 1 off
  3.   CM2CON0 = 0x07;                    // Comparator 2 off
  4.   TRISA = 0xFF;                      // Port A as Inputs
  5.   TRISB = 0xDC;                      // TrisB 'b11011100'...
ICD bits -- ADC and 16F886 E/SP.

Viewing all articles
Browse latest Browse all 4935

Latest Images

Trending Articles



Latest Images