hassan khan
Junior Member level 1
- Joined
- Mar 25, 2012
- Messages
- 15
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,370
i wrote a program in mikro c & put it into 16f877a, led didnt glow but when i touch one of the probe of multimeter with vdd pin of controller & other with osc2 then it was glowing, what is this?
please tell where i m making mistake??
code is
void main() {
TRISB = 0; // TO MAKE ALL PORT OUTPUT
PORTB = 0; // TO OFF PORTB
while(1)
{
PORTB = 0xff; // TO TOGGLE PORTB
}
}
please tell where i m making mistake??
code is
void main() {
TRISB = 0; // TO MAKE ALL PORT OUTPUT
PORTB = 0; // TO OFF PORTB
while(1)
{
PORTB = 0xff; // TO TOGGLE PORTB
}
}