Transitions to/from State SLEEP

This section describes how the state SLEEP is entered and left. The following state transitions are defined:


PHY_STATE_TRX_OFF__SLEEP

After setting the pin TRX_PIN_SLP_TR = HIGH, the radio transceiver delivers a specified number of additional clock cycles (refer to tTR3) on the pin TRX_PIN_CLKM before it reaches the SLEEP state. More details about the usage of pin TRX_PIN_SLP_TR can be found in section 4.6 (Sleep/Wake-up and Transmit Signal) of the AT86RF212 datasheet.

Note:
If a CLKM frequency less or equal to 250 kHz is selected (see section CLKM Frequencies), the clock signal at pin TRX_PIN_CLKM will be turned off immediately.
inline_mscgraph_50
Code example
    /* AT86RF212::TRX_OFF */
    trx_pinset_slptr(1);
    trxstat='SLEEP';
    /* AT86RF212::SLEEP */

PHY_STATE_SLEEP__TRX_OFF

After setting the pin TRX_PIN_SLP_TR = LOW, the radio transceiver typically needs tTR2 for wakeup (see also PHY_EVENT_AWAKE_END).

inline_mscgraph_51
Code example
    /* AT86RF212::SLEEP */
    trx_pinset_slptr(0);
    delay(tTR2);
    /* AT86RF212::TRX_OFF */
    trxstat = trx_bit_read(SR_TRX_STATUS);
    ASSERT(trxstat==TRX_OFF);

Generated on Mon Aug 17 13:35:00 2009 for SWPM AT86RF212 by  doxygen 1.5.6