English
Language : 

RFM64W Datasheet, PDF (56/75 Pages) List of Unclassifed Manufacturers – ISM TRANSCEIVER MODULE
ADVANCED COMMUNICATIONS & SENSING
RFM 64W
5.5.9. Packet Mode Example
„ Configure all data processing related registers listed below appropriately. In this example we assume CRC is
enabled with autoclear on.
Table 25: Relevant Configuration Registers in Packet Mode (data processing related only)
Tx
Rx Description
MCParam
Data_mode_x
Fifo_size
Fifo_thresh
Rx_stby_irq_0
X
X Defines data operation mode (ÆPacket)
X
X Defines FIFO size
X
X Defines FIFO threshold
X Defines IRQ_0 source in Rx & Stby modes
IRQParam
RXParam
Rx_stby_irq_1
Tx_irq_1
Tx_start_irq_0
Sync_size
Sync_tol
X Defines IRQ_1 source in Rx & Stby modes
X
Defines IRQ_1 source in Tx mode
X
Defines Tx start condition and IRQ_0 source
X
X Defines Sync word size
X Defines the error tolerance on Sync word detection
SYNCParam
Sync_value
X
X Defines Sync word value
Manchester_on
Payload length
X
X Enables Manchester encoding/decoding
X(1) X Length in fixed format, max Rx length in variable format
Node_adrs
X Defines node address for Rx address filtering
Pkt_format
X
X Defines packet format (fixed or variable length)
PKTParam
Preamble_size
Whitening_on
X
Defines the size of preamble to be transmitted
X
X Enables whitening/de-whitening process
CRC_on
X
X Enables CRC calculation/check
Adrs filt
X Enables and defines address filtering
CRC_autoclr
X Enables FIFO autoclear if CRC failed
Fifo_stby_access
X
X Defines FIFO access in Stby mode
(1)fixed format only
Tx Mode:
„ Program Tx start condition and IRQs: Start Tx when FIFO not empty (Tx_start_irq_0=1) and IRQ_1 mapped to
Tx_done (Tx_irq_1=1)
„ Go to Stby mode
„ Write all payload bytes into FIFO (Fifo_stby_access=0, Stby interrupts can be used if needed)
„ Go to Tx mode. When Tx is ready (automatically handled) Tx starts (Tx_start_irq_0=1).
„ Wait for Tx_done interrupt (+1 bit period)
„ Go to Sleep mode
Rx Mode:
„ Program Rx/Stby interrupts: IRQ_0 mapped to /Fifoempty (Rx_stby_irq_0=10) and IRQ_1 mapped to CRC_OK
(Rx_stby_irq_1=00)
„ Go to Rx (note that Rx is not ready immediately, see section 7.3.1
„ Wait for CRC_OK interrupt
„ Go to Stby
„ Read payload bytes from FIFO until /Fifoempty goes low. (Fifo_stby_access =1)
„ Go to Sleep mode
5.5.10. Additional Information
If the number of bytes filled for transmission is greater than the actual length of the packet to be transmitted and
Tx_start_irq_0 = 1, then the FIFO is cleared after the packet has been transmitted. Thus the extra bytes in the
Page 56 of 75
Tel: +86-755-82973805 Fax: +86-755-82973550 E-mail: sales@hoperf.com http:/ / www.hoperf.com