void use32kHzOsc( void );
Description
- Sets the Rabbit processor to use the 32kHz real-time clock oscillator for both the CPU and peripheral
clock, and shuts off the main oscillator. If this is already set, there is no effect. This
mode should provide greatly reduced power consumption. Serial communications will be lost
since typical baud rates cannot be made from a 32kHz clock. Also note that this function disables
the periodic interrupt, so
waitfor and related statements will not work properly (although
costatements in general will still work). In addition, the values in TICK_TIMER,
MS_TIMER, and SEC_TIMER will not be updated unless you call the function
updateTimers() frequently in your code. In addition, you will need to call hitwd() periodically
to hit the hardware watchdog timer since the periodic interrupt normally handles that,
or disable the watchdog timer before calling this function. The watchdog can be disabled with
Disable_HW_WDT().
-
use32kHzOsc() is not task reentrant.
Library
- SYS.LIB
See also
- useMainOsc, useClockDivider, updateTimers