kishore680
Member level 5
depending upon the state of portb 8 pin.. the first 4 led s should glow or stop glowing.. how to simulate this in real pic simulator..
code is
code is
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 main() { TRISB=0X80; while(1) // do forever { while(portb&0x80) { portb=0x0f; delay_100ms; } portb=0x00; delay_100ms; } }
Last edited by a moderator: