hassankhan
New Member
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
thanks & regards
hassan khan
please tell where i m making mistake??
code is
Code:
void main() {
TRISB = 0; // TO MAKE ALL PORT OUTPUT
PORTB = 0; // TO OFF PORTB
while(1)
{
PORTB = 0xff; // TO TOGGLE PORTB
}
}
thanks & regards
hassan khan
Last edited by a moderator: