English
Language : 

RF64 Datasheet, PDF (56/76 Pages) List of Unclassifed Manufacturers – ADVANCED COMMUNICATIONS & SENSING
ADVANCED COMMUNICATIONS & SENSING
RF64
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
X
X Defines data operation mode (Æ Packet)
X
X Defines FIFO size
X
X Defines FIFO threshold
Rx_stby_irq_0
X Defines IRQ_0 source in Rx & Stby modes
IRQParam
Rx_stby_irq_1
Tx_irq_1
X Defines IRQ_1 source in Rx & Stby modes
X
Defines IRQ_1 source in Tx mode
Tx_start_irq_0
X
Defines Tx start condition and IRQ_0 source
RXParam
Sync_size
Sync_tol
X
X Defines Sync word size
X Defines the error tolerance on Sync word detection
SYNCParam
Sync_value
X
X Defines Sync word value
PKTParam
Manchester_on
Payload_length
Node_adrs
Pkt_format
Preamble_size
Whitening_on
X
X Enables Manchester encoding/decoding
X(1) X Length in fixed format, max Rx length in variable format
X Defines node address for Rx address filtering
X
X Defines packet format (fixed or variable length)
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 76
Tel: +86-755-82973805 Fax: +86-755-82973550 E-mail: sales@hoperf.com http://www.hoperf.com