beautypg.com

2 register description – Rainbow Electronics AT86RF231 User Manual

Page 30

background image

30

8111A–AVR–05/08

AT86RF231

Note that AWAKE_END interrupt can usually not be seen when the transceiver enters
TRX_OFF state after RESET, because register 0x0E (IRQ_MASK) is reset to mask all inter-
rupts. In this case, state TRX_OFF is normally entered before the microcontroller could modify
the register.

The interrupt handling in Extended Operating Mode is described in

Section 7.2.5 “Interrupt Han-

dling” on page 67

.

If register bit IRQ_MASK_MODE (register 0x04, TRX_CTRL_1) is set, an interrupt event can be
read from IRQ_STATUS register even if the interrupt itself is masked. However, in that case no
timing information for this interrupt is provided.

The IRQ pin polarity can be configured with register bit IRQ_POLARITY (register 0x04,
TRX_CTRL_1). The default behavior is active high, which means that pin IRQ = H issues an
interrupt request.

If "Frame Buffer Empty Indicator" is enabled during Frame Buffer read access the IRQ pin has
an alternative functionality, refer to

Section 11.7 “Frame Buffer Empty Indicator” on page 152

for

details.

6.6.2

Register Description

Register 0x0E (IRQ_MASK):

he IRQ_MASK register is used to enable or disable individual interrupts. An interrupt is enabled
if the corresponding bit is set to 1. All interrupts are disabled after power up sequence (P_ON
state) or reset (RESET state).

If an interrupt is enabled it is recommended to read the interrupt status register 0x0F
(IRQ_STATUS) first to clear the history.

Register 0x0F (IRQ_STATUS):

The IRQ_STATUS register contains the status of the pending interrupt requests.

By reading the register after an interrupt is signaled at pin 24 (IRQ) the source of the issued
interrupt can be identified. A read access to this register resets all interrupt bits, and so clears
the IRQ_STATUS register.

If register bit IRQ_MASK_MODE (register 0x04, TRX_CTRL_1) is set, an interrupt event can be
read from IRQ_STATUS register even if the interrupt itself is masked. However in that case no
timing information for this interrupt is provided.

If register bit IRQ_MASK_MODE is set, it is recommended to read the interrupt status register
0x0F (IRQ_STATUS) first to clear the history.

Bit

7

6

5

4

3

2

1

0

+0x0E

MASK_BAT_LOW

MASK_TRX_UR

MASK_AMI

MASK_CCA_ED_READY

MASK_TRX_END

MASK_RX_START

MASK_PLL_UNLOCK

MASK_PLL_LOCK

IRQ_MASK

Read/Write

R/W

R/W

R/W

R/W

R/W

R/W

R/W

R/W

Reset Value

0

0

0

0

0

0

0

0

Bit

7

6

5

4

3

2

1

0

+0x0F

BAT_LOW

TRX_UR

AMI

CCA_ED_READY

TRX_END

RX_START

PLL_UNLOCK

PLL_LOCK

IRQ_STATUS

Read/Write

R

R

R

R

R

R

R

R

Initial Value

0

0

0

0

0

0

0

0