<< Previous | Next >> | |
|
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 inTICK_TIMER
,MS_TIMER
, andSEC_TIMER
will not be updated unless you call the functionupdateTimers()
frequently in your code. In addition, you will need to callhitwd()
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 withDisable_HW_WDT()
.
use32kHzOsc()
is not task reentrant.Library
- SYS.LIB
See also
- useMainOsc, useClockDivider, updateTimers
Dynamic C Functions | << Previous | Next >> | rabbit.com |