English
Language : 

RFM22 Datasheet, PDF (38/150 Pages) –
RFM22
Function/Descri
POR
Add R/W
D7 D6
D5
D4
D3
D2
D1
D0
ption
Def.
Operating &Function antdi antdi antdiv[
08 R/W
rxmpk autotx enldm
Control 2
v[2] v[1]
0]
ffclrrx
ffclrtx 00h
7C R/W TX FIFO Control 1
txafthr[5] txafthr[4] txafthr[3] txafthr[2] txafthr[1] txafthr[0] 37h
7D R/W TX FIFO Control 2
txaethr[ txaethr[ txaethr[ txaethr[ txaethr[ txaethr[
04h
5]
4]
3]
2]
1]
0]
The RX FIFO has one programmable threshold called the FIFO Almost Full Threshold, rxafthr[5:0]. When the
incoming RX data reaches the Almost Full Threshold an interrupt will be generated to the microcontroller via the
nIRQ pin. The microcontroller will then need to read the data from the RX FIFO.
Function/D
POR
Add R/W
D7
D6
D5
D4
D3
D2
D1
D0
escription
Def.
7E R/W
RX FIFO
Control
rxafthr rxafthr rxafthr rxafthr
Reserved Reserved rxafthr[5] rxafthr[4]
37h
[3]
[2]
[1]
[0]
Both the TX and RX FIFOs may be cleared or reset with the ffclrtx and ffclrrx bits in ―Register 08h. Operating Mode
and Function Control 2,‖. All interrupts may be enabled by setting the Interrupt Enabled bits in "Register 05h.
Interrupt Enable 1" and ―Register 06h. Interrupt Enable 2,‖. If the interrupts are not enabled the function will not
generate an interrupt on the nIRQ pin but the bits will still be read correctly in the Interrupt Status registers.
6.2. Packet Configuration
When using the FIFOs, automatic packet handling may be enabled for TX mode, RX mode, or both. "Register 30h.
Data Access Control" through ―Register 4Bh. Received Packet Length,‖ control the configuration,status, and
decoded RX packet data for Packet Handling. The usual fields for network communication (such as preamble,
synchronization word, headers, packet length, and CRC) can be configured to be automatically added to
the data payload. The fields needed for packet generation normally change infrequently and can therefore be
stored in registers. Automatically adding these fields to the data payload greatly reduces the amount of
communication between the microcontroller and the RFM22 and therefore also reduces the required computational
power of the microcontroller.
The general packet structure is shown in Figure 17. The length of each field is shown below the field. The preamble
pattern is always a series of alternating ones and zeroes, starting with a one. All the fields have programmable
lengths to accommodate different applications. The most common CRC polynominals are available for selection.
Figure 17. Packet Structure
An overview of the packet handler configuration registers is shown in Table 14. A complete register description can
be found in ―12.1. Complete Register Table and Descriptions‖.
38
Tel: +86-755-82973805 Fax: +86-755-82973550 E-mail: sales@hoperf.com http://www.hoperf.com