Hey guys, i have been having a problem with my PIC16F88. since i am new to programming micro-controllers, i wanted to start with a simple led blinking program. i wrote the following code inside mikroc and built it.
I programmed the device using pickit 3 and it works fine. But when i connect an LED (with resistor) to any of PORTA pins, rather than blinking, the led stays on. The funny part is, even PORTB turns the LED on(was supposed to be floating).
I wonder if there is a specific issue that makes all the ports high(think this is what is happening).
Rich (BB code):
void main() {
ANSEL = 0;
TRISA = 0;
do {
PORTA = 0x00;
Delay_ms(1000);
PORTA = 0xFF;
Delay_ms(1000);
} while(1);
}
I wonder if there is a specific issue that makes all the ports high(think this is what is happening).