Subroutin for a pause
Christian Vlaskowits email (remove spam text)
I'm new to pic programing, and I've encouterd a problem, doing a pause.
Right now I'm using the decreas command to make a short pause, this is the
movlw 200 ; load count1 with decimal 200
d1 movlw 200 ; load count2 with decimal 200
d2 decfsz count2,1 ; decrement and skip next line if zero
goto d2 ; if not zero
decfsz count1,1 ; decrement count1 if count2 is zero
goto d1 ; do inside loop again if count2 nz
But after calling it in a program a couple of times, the pause gets shorter
and shorter. Have I maybe forgotten to reset or clear something? Or Does
anybody know a better way of initiating a pause.
Any help is very appreciated
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
http://www.piclist.com hint: The PICList is archived three different
ways. See http://www.piclist.com/#archives for details.
See also: www.piclist.com/techref/microchip/devices.htm?key=pic
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the