imranahmed
Advanced Member level 3
- Joined
- Dec 4, 2011
- Messages
- 817
- Helped
- 3
- Reputation
- 6
- Reaction score
- 3
- Trophy points
- 1,298
- Location
- Karachi,Pakistan
- Activity points
- 6,493
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
// simple LED test - for PIC12F683
// set internal oscillator in configuration bits
// make sure project frequency matches the frequency set below with OSCCON
void main() {
OSCCON = 0x51; // Internal 2MHz osc.
ADCON0 = 0; // all pins digital
ANSEL = 0; // all pins digital
CMCON0 = 7; // Comparators off.
TRISIO = 0; // all output
GPIO = 0; // all pins low
while (1){
GPIO = 0; // All LEDs off
Delay_ms(500); // half second delay
GPIO = 0xff; // all LEDs on
Delay_ms(500);
}
}
ANSEL = 0;
CMCON0 = 7;
Can i use ADC library function for 12f,16f series or only for 16f series.