poke TRISB, 0 'defines the all pins on the portB as output pins
let b1=0
loop: 'its an identifier for iteration
pause 1000 'it pauses the programm execution for 1 second
poke portB,b1 'writes the value of b1 on portB(decimal<=>binary)
b1=b1+1 'updetes the variable value to the nxt value
goto loop 'substitution for the loop statement,a simple goto
The connection diagram is as shown



1 comment:
Hi,
I read your post. They are understandable as well as good. Make it more effective. I am interested to help you
Post a Comment