2 frame buffer access, 3 transceiver pin register trxpr – Rainbow Electronics ATmega128RFA1 User Manual
Page 32

32
8266A-MCU Wireless-12/09
ATmega128RFA1
register access is only possible, if the transceiver clock is available. Therefore the
transceiver must be enabled (PRR1 Register) and not in SLEEP state.
9.3.1.2 Frame Buffer Access
The 128-byte Frame Buffer can hold the PHY service data unit (PSDU) data of one
IEEE 802.15.4 compliant RX or one TX frame of maximum length at a time. A detailed
description of the Frame Buffer can be found in section
. An
introduction to the IEEE 802.15.4 frame format can be found in section
IEEE 802.15.4-2006 Frame Format" on page 61
.
The Frame Buffer is located within the controller I/O address space above of the
transceiver register set. The first byte of the Frame Buffer can be accessed with the
symbolical address TRXFBST and the last byte can be accessed with the symbolical
address TRXFBEND. Random access to single frame bytes is possible with “TRXFBST
+ byte index” or “TRXFBEND – byte index”. In contrast to the transceiver register
access, the Frame Buffer allows single cycle read/write operations for all controller
clock speeds.
The content of the Frame Buffer is only overwritten by a new received frame or a Frame
Buffer write access.
The Frame Buffer usage is different between received and transmitted frames.
Therefore it is not possible to retransmit a received frame without modifying the frame
buffer.
On received frames, the frame length byte is not stored in the Frame Buffer, but can be
accessed over the TST_FRAME_LENGTH register. During frame receive, the Link
Quality Indication (LQI) value (refer to
"Link Quality Indication (LQI)" on page 72
) is
appended to the frame data in the Frame Buffer.
For frame transmission, the first byte of the Frame Buffer must contain the frame length
information followed by the frame data. The TST_FRAME_LENGTH register does not
need to be written in this case.
A detailed description of the Frame Buffer usage for receive and transmit frames can be
found in
.
Notes:
1. The Frame Buffer is shared between RX and TX; therefore, the frame data are overwritten by
new incoming frames. If the TX frame data are to be retransmitted, it must be ensured that no
frame was received in the meanwhile.
2. To avoid overwriting during receive, Dynamic Frame Buffer Protection can be enabled. For
details about this feature refer to section
"Dynamic Frame Buffer Protection" on page 91
3. It is not possible to retransmit received frames without inserting the frame length information at
the beginning of the Frame Buffer. That requires a complete read out of the received frame
and rewriting the modified frame to the Frame Buffer.
4. For exceptions, e.g. receiving acknowledgement frames in Extended Operating Mode
(TX_ARET) refer to section
"TX_ARET_ON – Transmit with Automatic Retry and CSMA-CA
9.3.1.3 Transceiver Pin Register TRXPR
The Transceiver Pin Register TRXPR is located in the Controller clock domain and is
accessible even if the transceiver is in sleep state. This register provides access to the
pin functionality, known from the RF231 devices (two chip solution).
The register (TRXRST) can be used to reset the transceiver without resetting the
controller. After the reset bit was set, it is cleared immediately.