RX Frame Time Stamping

When the RX frame time stamping feature is enabled, the pin DIG2 signals the start of an incoming frame with a transition from LOW to HIGH. This transition is generated at the same time, when the interrupt TRX_IRQ_RX_START occurs. The signal on pin DIG2 can be used together with a timer capture unit of the microcontroller in order to obtain a precise time stamp for the received frame. For more details refer to section 9.5 (RX Frame Time Stamping) of the AT86RF212 datasheet.

The RX frame time stamping is enabled, if tstamp=1 is written to sub register SR_IRQ_2_EXT_EN.

Parameters:
tstamp enable {1}/disable {0} RX frame time stamping.
Note:
The RX frame time stamping feature is available, even if antenna diversity is enabled. In this case, the pin DIG1 is used for RF switch control (see section Antenna Diversity), while pin DIG2 signals the start of the frame reception.
Use Cases:


SET_TIME_STAMP_CFG

The RX frame time stamping is enabled when writing tstamp=1 to sub register SR_IRQ_2_EXT_EN.

inline_mscgraph_104
Code example
    /* AT86RF212::[ACTIVE] */
    trx_bit_write(SR_IRQ_2_EXT_EN, tstamp);

GET_TIME_STAMP_CFG

The value of tstamp is retrieved with the following use case:

inline_mscgraph_105
Code example
    /* AT86RF212::[ACTIVE] */
    tstamp = trx_bit_read(SR_IRQ_2_EXT_EN);

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