Monday, April 16, 2007

Home

Simple Counting Program

b1 var byte           'declares the variable b1 as type byte
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



Labels:

1 Comments:

At April 18, 2007 5:13 AM , Blogger Yamanoor Sairam said...

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

Subscribe to Post Comments [Atom]

<< Home


-->

StatCount - Traffic counter

Add to Technorati Favorites