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
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhazlGS2OrsHtnfXnoo9p-nCzNlIjyqy4LBLx18G0y4x6S8UkCJqqlGxw_zCRIBVzlxwROq7JR8kOh4OMgYIRpy_17_fV-vV9KX_S0IeFohlmOZa8YLNI78JS7Y0nTTsaf4DIFDs9fJW1f/s320/counting.jpg)
![](file:///C:/DOCUME%7E1/ravi/LOCALS%7E1/Temp/moz-screenshot.jpg)
![](file:///C:/DOCUME%7E1/ravi/LOCALS%7E1/Temp/moz-screenshot-1.jpg)
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