When my program has done its thing, i'd like it to stop running, not just wait in a infinite loop.
Is this doable ?
Thanks.
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
Posted: Wed May 19, 2010 3:38 am
Lookup the sleep function in the manual.
To prevent the device from waking up from sleep you'll have to ensure all interrupts are disabled (not just the global interrupt flag), or put the sleep inside a while loop.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum