aa_mane3
Newbie level 4
- Joined
- Jun 7, 2013
- Messages
- 6
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,324
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);
}
}