Re: A82: HALT command
[Prev][Next][Index][Thread]
Re: A82: HALT command
>The halt command simply halts operation until an interrupt occurs (200
>times a second) It can be used to make more acurate timing/delay loops. For
>example, to pause for approximately a second you could do this:
>
> ld b,200
>DelayLoop:
> halt
> djnz DelayLoop
>
> -Andrew
With the RC timer wouldn't this become less accurate as the batteries wore down?
For perfect timing you need to replace the timing circuit or read one in
from the I/O port. Or does the 82 actually have a crystal?
Robert Glass RGlass@lab.Lander.edu dash_squirrel@geocities.com
http://www.geocities.com/Yosemite/3542 http://iceweasel.home.ml.org
The SPC quote of the week:
Guido after being run over:
What's with the violence, I've got a clause in my contract says I don't have
to do this slapstick stuff!
Stop Dragon My Cat Around!