English
Language : 

CC2430 Datasheet, PDF (167/234 Pages) Texas Instruments – A True System-on-Chip solution for 2.4 GHz IEEE 802.15.4 / ZigBee-TM
CC2430
The RF interrupt is the combined interrupt
from eight different sources in the radio.
Two SFR registers are used for setting the
eight individual RFIF radio interrupt flags
and interrupt enables. These are the RFIF
and RFIM registers.
The interrupt flags in SFR register RFIF
show the status for each interrupt source
for the RF interrupt vector.
The interrupt enable bits in RFIM are used
to disable individual interrupt sources for
the RF interrupt vector. Note that masking
an interrupt source in RFIM does not affect
the update of the status in the RFIF
register.
Due to the use of the individual interrupt
masks in RFIM, and the main interrupt
mask for the RF interrupt given by
IEN2.RFIE there is two-layered masking
of this interrupt. Special attention needs to
be taken when processing this type of
interrupt as described below.
To clear the RF interrupt, S1CON.RFIF
and the interrupt flag in RFIF need to be
cleared. The order and method of doing
this is shown in Figure 40. Note that
S1CON is cleared after RFIF, otherwise
S1CON.RFIF could be set once again due
to the same interrupt.
MOV RFIF,#00h
MOV S1CON,#00h
MOV RFIM,RFIM
;clear all interrupt flags
;clear main interrupt flags
;set interrupt mask
Figure 40: Clearing RF Interrupt
CC2430 PRELIMINARY Data Sheet (rev. 1.03) SWRS036A
Page 167 of 232