
Primitives
Simple Media Access Controller (SMAC) for the HCS08 Reference Manual, Rev. 2.0
Freescale Semiconductor
3-5
— If the wake-up value is set to zero, the wake-up function is disabled and once enabled, Doze
mode will continue until a MLMEWakeRequest is executed. CLKO is enabled; this is known
as Acoma.
•
The transceiver can always be wakened by a MLMEWakeRequest function call or asserting the
hardware reset to the transceiver
NOTE
This primitive can be used only on the MC1320x and MC1321x platforms.
For the MC1323x platform, it is invalid.
Prototype
smacErrors_t MLMEDozeRequest(uint32_t u32Timeout);
Arguments
u32Timeout
Is the automatic wake-up time for this mode.
Returns
gErrorNoError_c
The Radio has been set in Doze mode
gErrorBusy_c
Radio is performing another action and could not attend this request.
Usage
To use Acoma Mode, users should call this function with “0” as parameter. Then, the SMAC sets the radio
in Acoma Mode with CLKO Output MLMEWakeRequest. To exit from this state, users should call the
MLMEWakeRequest function.
To use Normal Doze Mode, users should call this function with the desired timeout. When the SMAC
places the radio in Doze Mode, the user is given 128 CLKO clock cycles more before disabling CLKO; if
the MCU is using this signal as a clock source, the user should first switch to the MCU internal clock
before making the MLMEDozeRequest call
Once the timeout is reached, the radio wakes-up and performs an IRQ Interrupt (attended by the SMAC).
NOTE
•
The maximum allowed CLKO frequency during Doze Mode or Acoma
Mode is equal to or less than 1MHz. The SMAC does no error checking
for this when entering Doze Mode. The user application must handle
this situation.
•
Having CLKO available during Doze mode is optional and is controlled
by setting transceiver Register 0x7, Bit 9. The reset value/default for this
bit does not provide CLKO in Doze Mode. If the radio is reset, this bit
needs to be set in order to provide the CLKO.