PhilipWarence
New Member
Off Topic Bros. Sorry but I had been frustrating since last night that i cant figure this simple goal out...
void main()
{
PORTB = 0;
TRISB = 0;
{
for( PORTB=0; PORTB<=7; PORTB++)
Delay_ms(50) ;
}
}
Hello guys, Sorry to disturb yah'll. Im a beginner in MikroC. I had just started using this last night. Can i ask what's wrong with my code? My goal is to HIGH all the pins in portb 1 by 1 in PIC16F877A using a loop. But the only thing that happened is only pin RB0 turns high. Help guys. Thank you a lot..
void main()
{
PORTB = 0;
TRISB = 0;
{
for( PORTB=0; PORTB<=7; PORTB++)
Delay_ms(50) ;
}
}
Hello guys, Sorry to disturb yah'll. Im a beginner in MikroC. I had just started using this last night. Can i ask what's wrong with my code? My goal is to HIGH all the pins in portb 1 by 1 in PIC16F877A using a loop. But the only thing that happened is only pin RB0 turns high. Help guys. Thank you a lot..