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:
The RX frame time stamping is enabled when writing
tstamp=1 to sub register
SR_IRQ_2_EXT_EN.
- Code example
The value of
tstamp is retrieved with the following use case:
- Code example
-