aa_mane3
Newbie level 4
hello ,
I USE PIC16F877A FOR BUILDING SIMPLE LED ON OFF PROGRAM USING MIKRO C PRO SIMULATION SOFTWARE.
I BUILD IT SUCCESSFULLY. BUT WHEN I TRY IT ON HARDWARE , MY LED WILL GLOW CONTINUOUSLY, SO WHAT IS PROBLEM ?? AND IT WORK SUCCESSFULLY IN PROTEUS SOFTWARE.
I USE 8MHz CRYSTAL OSCILLATOR AND 33pF TWO CAPACITORS ....
HERE IS MY CODE ........
void main() {
// set PORTB to be digital output
TRISB = 0;
// Turn OFF LEDs on PORTB
PORTB= 0;
while(1) {
// Toggle LEDs on PORTB
PORTB = ~PORTB;
// Delay 1000 ms
Delay_ms(1000);
}
}
I USE PIC16F877A FOR BUILDING SIMPLE LED ON OFF PROGRAM USING MIKRO C PRO SIMULATION SOFTWARE.
I BUILD IT SUCCESSFULLY. BUT WHEN I TRY IT ON HARDWARE , MY LED WILL GLOW CONTINUOUSLY, SO WHAT IS PROBLEM ?? AND IT WORK SUCCESSFULLY IN PROTEUS SOFTWARE.
I USE 8MHz CRYSTAL OSCILLATOR AND 33pF TWO CAPACITORS ....
HERE IS MY CODE ........
void main() {
// set PORTB to be digital output
TRISB = 0;
// Turn OFF LEDs on PORTB
PORTB= 0;
while(1) {
// Toggle LEDs on PORTB
PORTB = ~PORTB;
// Delay 1000 ms
Delay_ms(1000);
}
}