I'm using an UC3 to schedule the startup of various onboard hardware. To do this I need to put the CPU in a low-power wait state for a given period of time. 1ms+-20% will be more than enough precision.
Is there a convenient way to do this? In my code this will be the first routine to run after boot-up, while the CPU has very little internal hardware fired up, and way before the task switcher is started.
Background: The board uses one shared current limiting power switch which is always on. During a fault it will limit to a predefined constant current and set a FAULT pin accordingly. My plan is to power the CPU from a big cap, which is fed from a diode, all the while monitoring the FAULT pin. While polling the FAULT pin I will enable one load at a time. I expect the current limiter to go into limiting multiple times, but can't let that take down the CPU. To do this the CPU should consume as little current as possible in order to run for a longer time from the cap.