NAP vs. SLEEP
Escamoteur
Posts: 12
Hi,
is there any advantage of using NAP instead of sleep? I know it's not as accurate as SLEEP, but is there also an advantage?
Best
Thomas
is there any advantage of using NAP instead of sleep? I know it's not as accurate as SLEEP, but is there also an advantage?
Best
Thomas
Comments
Sometimes a program only needs a short NAP, to save power while waiting for something to happen. It is nowhere near as precise as PAUSE, but sometimes that doesn't matter.
On the multislot Stamps, the BS2pe in partilar, there is also the POLLWAIT command, which is essentially a NAP command that waits for a change on an external pin. I find that very useful.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Giggly Googley!
Best
Thomas
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Giggly Googley!