beautypg.com

Radio transceiver usage, 1 frame receive procedure, Section 10.1 “frame receive procedure” on – Rainbow Electronics AT86RF231 User Manual

Page 126

background image

126

8111A–AVR–05/08

AT86RF231

10. Radio Transceiver Usage

This section describes basic procedures to receive and transmit frames using the AT86RF231.
For a detailed programming description refer to reference

[6]

.

10.1

Frame Receive Procedure

A frame reception comprises of two actions: The PHY listens for, receives and demodulates the
frame to the Frame Buffer and signalizes the reception to the microcontroller. After or while that
the microcontroller read the available frame data from the Frame Buffer via the SPI interface.

While in state RX_ON or RX_AACK_ON the radio transceiver searches for incoming frames on
the selected channel. Assuming the appropriate interrupts are enabled, a detection of an IEEE
802.15.4 compliant frame is indicated by interrupt IRQ_2 (RX_START) first. The frame reception
is completed when issuing interrupt IRQ_3 (TRX_END).

Different Frame Buffer read access scenarios are recommended for:

Waiting for IRQ_3 (TRX_END) interrupt before starting a Frame Buffer read access is recom-
mended for operations considered to be none time critical.

Figure 10-1 on page 126

illustrates

the frame receive procedure using IRQ_3 (TRX_END).

Figure 10-1. Transactions between AT86RF231 and Microcontroller during Receive

Critical protocol timing could require starting the Frame Buffer read access after interrupt IRQ_2
(RX_START). The first byte of the frame data can be read 32 µs after the IRQ_2 (RX_START)
interrupt. The microcontroller must ensure to read slower than the frame is received. Otherwise
a Frame Buffer under run occurs, IRQ_6 (TRX_UR) is issued, and the frame data may be not
valid. To avoid this, the Frame Buffer read access can be controlled by using a Frame Buffer
Empty indicator, refer to

Section 11.7 “Frame Buffer Empty Indicator” on page 152

.

• Non-time critical applications

read access starts after IRQ_3 (TRX_END)

• Time-critical applications

read access starts after IRQ_2 (RX_START)

AT

86RF

231

Mic

ro

c

ont

roller

IRQ issued (IRQ_2)

Read IRQ status, pin 24 (IRQ) deasserted

IRQ issued (IRQ_3)

Read frame data (Frame Buffer access)

Read IRQ status, pin 24 (IRQ) deasserted