MRF24J40 Data Sheet
IEEE 802.15.4™ 2.4 GHz RF Transceiver
© 2008 Microchip Technology Inc.
Preliminary
DS39776B
Note the following details of the code protection feature on Microchip devices: • • Microchip products meet the specification contained in their particular Microchip Data Sheet. Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the intended manner and under normal conditions. There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data Sheets. Most likely, the person doing so is engaged in theft of intellectual property. Microchip is willing to work with the customer who is concerned about the integrity of their code. Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not mean that we are guaranteeing the product as “unbreakable.”
•
• •
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
Information contained in this publication regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer’s risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.
Trademarks The Microchip name and logo, the Microchip logo, Accuron, dsPIC, KEELOQ, KEELOQ logo, MPLAB, PIC, PICmicro, PICSTART, rfPIC, SmartShunt and UNI/O are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. FilterLab, Linear Active Thermistor, MXDEV, MXLAB, SEEVAL, SmartSensor and The Embedded Control Solutions Company are registered trademarks of Microchip Technology Incorporated in the U.S.A. Analog-for-the-Digital Age, Application Maestro, CodeGuard, dsPICDEM, dsPICDEM.net, dsPICworks, dsSPEAK, ECAN, ECONOMONITOR, FanSense, In-Circuit Serial Programming, ICSP, ICEPIC, Mindi, MiWi, MPASM, MPLAB Certified logo, MPLIB, MPLINK, mTouch, PICkit, PICDEM, PICDEM.net, PICtail, PIC32 logo, PowerCal, PowerInfo, PowerMate, PowerTool, REAL ICE, rfLAB, Select Mode, Total Endurance, WiperLock and ZENA are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. All other trademarks mentioned herein are property of their respective companies. © 2008, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved. Printed on recycled paper.
Microchip received ISO/TS-16949:2002 certification for its worldwide headquarters, design and wafer fabrication facilities in Chandler and Tempe, Arizona; Gresham, Oregon and design centers in California and India. The Company’s quality system processes and procedures are for its PIC® MCUs and dsPIC® DSCs, KEELOQ® code hopping devices, Serial EEPROMs, microperipherals, nonvolatile memory and analog products. In addition, Microchip’s quality system for the design and manufacture of development systems is ISO 9001:2000 certified.
DS39776B-page ii
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
IEEE 802.15.4™ 2.4 GHz RF Transceiver
Features:
• IEEE 802.15.4™ Standard Compliant RF Transceiver • Supports ZigBee®, MiWi™, MiWi P2P and Proprietary Wireless Networking Protocols • Simple, 4-Wire SPI Interface • Integrated 20 MHz and 32.768 kHz Crystal Oscillator Circuitry • Low-Current Consumption: - RX mode: 19 mA (typical) - TX mode: 23 mA (typical) - Sleep: 2 μA (typical) • Small, 40-Pin Leadless QFN 6x6 mm2 Package
RF/Analog Features:
• ISM Band 2.405-2.48 GHz Operation • Data Rate: 250 kbps (IEEE 802.15.4); 625 kbps (Turbo mode) • -95 dBm Typical Sensitivity with +5 dBm Maximum Input Level • +0 dBm Typical Output Power with 36 dB TX Power Control Range • Differential RF Input/Output with Integrated TX/RX Switch • Integrated Low Phase Noise VCO, Frequency Synthesizer and PLL Loop Filter • Digital VCO and Filter Calibration • Integrated RSSI ADC and I/Q DACs • Integrated LDO • High Receiver and RSSI Dynamic Range
MAC/Baseband Features:
• Hardware CSMA-CA Mechanism, Automatic Acknowledgement Response and FCS Check • Independent Beacon, Transmit and GTS FIFO • Supports all CCA modes and RSSI/ED • Automatic Packet Retransmit Capability • Hardware Security Engine (AES-128) with CTR, CCM and CBC-MAC modes • Supports Encryption and Decryption for MAC Sublayer and Upper Layer
Pin Diagram:
LCAP VDD NC VDD GND VDD OSC1 OSC2 VDD VDD 40 39 38 37 36 35 34 33 32 31 VDD RFP RFN VDD VDD GND GPIO0 GPIO1 GPIO5 GPIO4 1 2 3 4 5 6 7 8 9 10 30 29 28 27 26 25 24 23 22 21 NC NC LPOSC1 LPOSC2 NC GND GND NC GND VDD
40-Pin QFN
MRF24J40
11 12 13 14 15 16 17 18 19 20 GPIO2 GPIO3 RESET GND WAKE INT SDO SDI SCK CS
Note: Backside center pad is GND.
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 1
MRF24J40
Table of Contents
1.0 Overview ...................................................................................................................................................................................... 3 2.0 Hardware Description ................................................................................................................................................................... 5 3.0 Functional Description ................................................................................................................................................................ 85 4.0 Applications .............................................................................................................................................................................. 129 5.0 Electrical Characteristics .......................................................................................................................................................... 135 6.0 Packaging Information.............................................................................................................................................................. 139 Appendix A: Revision History............................................................................................................................................................. 141 Index .................................................................................................................................................................................................. 143 The Microchip Web Site ..................................................................................................................................................................... 147 Customer Change Notification Service .............................................................................................................................................. 147 Customer Support .............................................................................................................................................................................. 147 Reader Response .............................................................................................................................................................................. 148 Product Identification System............................................................................................................................................................. 149
TO OUR VALUED CUSTOMERS
It is our intention to provide our valued customers with the best documentation possible to ensure successful use of your Microchip products. To this end, we will continue to improve our publications to better suit your needs. Our publications will be refined and enhanced as new volumes and updates are introduced. If you have any questions or comments regarding this publication, please contact the Marketing Communications Department via E-mail at docerrors@microchip.com or fax the Reader Response Form in the back of this data sheet to (480) 792-4150. We welcome your feedback.
Most Current Data Sheet
To obtain the most up-to-date version of this data sheet, please register at our Worldwide Web site at: http://www.microchip.com You can determine the version of a data sheet by examining its literature number found on the bottom outside corner of any page. The last character of the literature number is the version number, (e.g., DS30000A is version A of document DS30000).
Errata
An errata sheet, describing minor operational differences from the data sheet and recommended workarounds, may exist for current devices. As device/documentation issues become known to us, we will publish an errata sheet. The errata will specify the revision of silicon and revision of document to which it applies. To determine if an errata sheet exists for a particular device, please check with one of the following: • Microchip’s Worldwide Web site; http://www.microchip.com • Your local Microchip sales office (see last page) When contacting a sales office, please specify which device, revision of silicon and data sheet (include literature number) you are using.
Customer Notification System
Register on our web site at www.microchip.com to receive the most current information on all of our products.
DS39776B-page 2
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
1.0 OVERVIEW
The MRF24J40 is an IEEE 802.15.4™ Standard compliant 2.4 GHz RF transceiver. It integrates the PHY and MAC functionality in a single chip solution. Figure 1-1 shows a simplified block diagram of a MRF24J40 wireless node. The MRF24J40 creates a low-cost, low-power, low data rate (250 or 625 kbps) Wireless Personal Area Network (WPAN) device. The MRF24J40 interfaces to many popular Microchip PIC® microcontrollers via a 4-wire serial SPI interface, interrupt, wake and Reset. The MRF24J40 provides hardware support for: • Energy Detection • Carrier Sense • • • • • Three CCA Modes CSMA-CA Algorithm Automatic Packet Retransmission Automatic Acknowledgment Independent Transmit, Beacon and GTS FIFO Buffers • Security Engine supports Encryption and Decryption for MAC Sublayer and Upper Layer These features reduce the processing load, allowing the use of low-cost 8-bit microcontrollers. The MRF24J40 is compatible with Microchip's ZigBee®, MiWi™ and MiWi P2P software stacks. Each software stack is available as a free download, including source code, from the Microchip web site: http://www.microchip.com/wireless.
FIGURE 1-1:
WIRELESS NODE BLOCK DIAGRAM
PIC® MCU CS Interface Matching Circuitry RFP PHY RFN MAC SDI SDO SCK INT Power Management Memory WAKE RESET I/O SDO SDI SCK INTx I/O I/O
Antenna
MRF24J40
20 MHz Crystal
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 3
MRF24J40
1.1 IEEE 802.15.4-2003 Standard
The MRF24J40 is compliant with the IEEE 802.15.4™-2003 Standard. The Standard specifies the physical (PHY) and Media Access Controller (MAC) functions that form the basis for a wireless network device. Figure 1-2 shows the structure of the PHY packet and MAC frame. It is highly recommended that the design engineer be familiar with the IEEE 802.15.4-2003 Standard in order to best understand the configuration and operation of the MRF24J40. The Standard can be downloaded from the IEEE web site: http://www.ieee.org.
FIGURE 1-2:
IEEE 802.15.4™ PHY PACKET AND MAC FRAME STRUCTURE
2 1
Sequence Number
2 FCS MFR
octets
MAC Sublayer
Acknowledgment Frame
Frame Control
MHR
2 MAC Sublayer Data Frame Frame Control
1
Sequence Number
4 to 20 Adressing Fields
n Data Payload MSDU
2 FCS MFR n 2 FCS MFR n Beacon Payload 2 FCS MFR
octets
MHR 2 MAC Sublayer MAC Command Frame Frame Control 1
Sequence Number
4 to 20 Adressing Fields
1 Command Type
octets
Command Payload MSDU
MHR 2 MAC Sublayer Beacon Frame Frame Control 1
Sequence Number
4 or 10 Adressing Fields
2
Superframe Specification
k GTS Fields
m
Pending Address Fields
octets
MHR 4 PHY Layer
Preamble
MSDU 5 – 127 PSDU PHY Payload
1 SFD
1 Frame Length PHR
octets
SHR
On air packet
PPDU
DS39776B-page 4
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
2.0
2.1
HARDWARE DESCRIPTION
2.1 Overview
Six General Purpose Input/Output (GPIO) pins can be configured for control or monitoring purposes. They can also be configured to control external PA/LNA RF switches. The power management circuitry consists of an integrated Low Dropout (LDO) voltage regulator. The MRF24J40 can be placed into a very low-current (2 μA typical) Sleep mode. An internal 100 kHz oscillator or 32 kHz external crystal oscillator can be used for Sleep mode timing. The Media Access Controller (MAC) circuitry verifies reception and formats for transmission IEEE 802.15.4 Standard compliant packets. Data is buffered in Transmit and Receive FIFOs. Carrier Sense Multiple Access-Collision Avoidance (CSMA-CA), superframe constructor, receive frame filter and security engine functionality are implemented in hardware. The security engine provides hardware circuitry for AES-128 with CTR, CCM and CBC-MAC modes. Control of the transceiver is via a 4-wire Serial Peripheral Interface (SPI), interrupt, wake and Reset pins.
The MRF24J40 is an IEEE 802.15.4 Standard compliant 2.4 GHz RF transceiver. It integrates the PHY and MAC functionality in a single chip solution. Figure 2-1 is a block diagram of the MRF24J40 circuitry. A frequency synthesizer is clocked by an external 20 MHz crystal and generates a 2.4 GHz RF frequency. The receiver is a low-IF architecture consisting of a Low Noise Amplifier (LNA), down conversion mixers, polyphase channel filters and baseband limiting amplifiers with a Receiver Signal Strength Indicator (RSSI). The transmitter is a direct conversion architecture with a 0 dBm maximum output (typical) and 36 dB power control range. An internal Transmit/Receive (TR) switch combines the transmitter and receiver circuits into differential RFP and RFN pins. These pins are connected to impedance matching circuitry (balun) and antenna. An external Power Amplifier (PA) and/or LNA can be controlled via the GPIO pins.
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 5
2.2
FIGURE 2-1:
DS39776B-page 6
MRF24J40
Block Diagram
PHY
MAC
ADC Filter Interrupts ADC MEMORY Frequency Synthesizer RXFIFO DAC TXMAC TXNFIFO TX Baseband FCS Generator Packet Retriever DAC CSMA-CA TXG2FIFO Superframe State Machine TXBFIFO TXG1FIFO Security Key FIFO Control Registers RSSI ADC RX Baseband FCS Checker Frame Checker
RXMAC
LNA
RF
4 SPI INT Interface 6 WAKE RESET GPIO
MRF24J40 ARCHITECTURE BLOCK DIAGRAM
Preliminary
SLEEP CLOCK 32 kHz Crystal Oscillator Power Management 100 kHz Internal Oscillator Security Engine
PA
20MHz Crystal Oscillator
© 2008 Microchip Technology Inc.
MRF24J40
2.3 Pin Descriptions
MRF24J40 PIN DESCRIPTIONS
Type Power AIO AIO Power Power Ground DIO DIO DIO DIO DIO DIO DI Ground DI DO DO DI DI DI Power Ground — Ground Ground — AI AI — — Power Power AI AI Power Ground Power — Power — Description RF power supply. Bypass with a capacitor as close to the pin as possible. Differential RF input/output (+). Differential RF input/output (-). RF power supply. Bypass with a capacitor as close to the pin as possible. Guard ring power supply. Bypass with a capacitor as close to the pin as possible. Guard ring ground. General purpose digital I/O, also used as external PA enable. General purpose digital I/O, also used as external TX/RX switch control. General purpose digital I/O. General purpose digital I/O. General purpose digital I/O, also used as external TX/RX switch control. General purpose digital I/O. Global hardware Reset pin active-low. Ground for digital circuit. External wake-up trigger (must be enabled in software). Interrupt pin to microcontroller. Serial interface data output from MRF24J40. Serial interface data input to MRF24J40. Serial interface clock. Serial interface enable. Digital circuit power supply. Bypass with a capacitor as close to the pin as possible. Ground for digital circuit. No Connection. Ground for digital circuit. Ground for digital circuit. No Connection. (Allow pin to float; do not connect signal.) 32 kHz crystal input. 32 kHz crystal input. No Connection. (Allow pin to float; do not connect signal.) No Connection. (Allow pin to float; do not connect signal.) Power supply for band gap reference circuit. Bypass with a capacitor as close to the pin as possible. Power supply for analog circuit. Bypass with a capacitor as close to the pin as possible. 20 MHz crystal input. 20 MHz crystal input. PLL power supply. Bypass with a capacitor as close to the pin as possible. Ground for PLL. Charge pump power supply. Bypass with a capacitor as close to the pin as possible. No Connection. VCO supply. Bypass with a capacitor as close to the pin as possible. PLL loop filter external capacitor. Connected to external 100 pF capacitor.
TABLE 2-1:
Pin 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 VDD RFP RFN VDD VDD GND
Symbol
GPIO0 GPIO1 GPIO5 GPIO4 GPIO2 GPIO3 RESET GND WAKE INT SDO SDI SCK CS VDD GND NC GND GND NC LPOSC2 LPOSC1 NC NC VDD VDD OSC2 OSC1 VDD GND VDD NC VDD LCAP
Legend: A = Analog, D = Digital, I = Input, O = Output
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 7
MRF24J40
2.4 Power and Ground Pins
FIGURE 2-2:
Recommended bypass capacitors are listed in Table 2-2. VDD pins 1 and 31 require two bypass capacitors to ensure sufficient bypass decoupling. Minimize trace length from the VDD pin to the bypass capacitors and make them as short as possible.
20 MHz MAIN OSCILLATOR CRYSTAL CIRCUIT
OSC2
CL2
TABLE 2-2:
VDD Pin 1 4 5 21 31 32 35 37 39
RECOMMENDED BYPASS CAPACITOR VALUES
Bypass Capacitor 47 pF and 0.01 μF 47 pF 0.1 μF 0.01 μF 47 pF and 0.01 μF 47 pF 47 pF 0.01 μF 1 μF
CL1
X1
20 MHz Main Oscillator
OSC1
2.6
Phase Lock Loop
The Phase Lock Loop (PLL) circuitry requires one external capacitor connected to pin 40 (LCAP). The recommended value is 100 pF. The PCB layout around the capacitor and pin 40 should be designed carefully such as to minimize interference to the PLL.
2.5
20 MHz Main Oscillator
2.7
32 kHz External Crystal Oscillator
The 20 MHz main oscillator provides the main frequency (MAINCLK) signal to internal RF, baseband and MAC circuitry. An external 20 MHz quartz crystal is connected to the OSC1 and OSC2 pins as shown in Figure 2-2. The crystal parameters are listed in Table 2-3.
The 32 kHz external crystal oscillator provides one of two Sleep clock (SLPCLK) frequencies to Sleep mode counters. The Sleep mode counters time the Beacon Interval (BI) and inactive period for a beacon-enabled device and the Sleep interval for a nonbeacon-enabled device. Refer to Section 3.15 “Sleep” for more information. The SLPCLK frequency is selectable between the 32 kHz external crystal oscillator or 100 kHz internal oscillator. The 32 kHz external crystal oscillator provides better frequency accuracy and stability than the 100 kHz internal oscillator. An external 32 kHz tuning fork crystal is connected to the LPOSC1 and LPOSC2 pins, as shown in Figure 2-3. The crystal parameters are listed in Table 2-4.
TABLE 2-3:
20 MHz CRYSTAL PARAMETERS(1)
Parameter Value 20 MHz ±20 ppm(2) ±20 ppm(2) Fundamental 15-20 pF 80Ω max.
Frequency Frequency Tolerance at 25°C Frequency Stability over Operating Temperature Range Mode Load Capacitance ESR Note 1: 2:
TABLE 2-4:
32 kHz CRYSTAL PARAMETERS(1)
Value 32.768 kHz ±20 ppm 12.5 pF 70 kΩ max.
Parameter Frequency Frequency Tolerance Load Capacitance ESR Note 1:
These values are for design guidance only. IEEE 802.15.4™ Standard specifies transmitted center frequency tolerance shall be ±40 ppm maximum.
These values are for design guidance only.
DS39776B-page 8
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
FIGURE 2-3: 32 kHz EXTERNAL OSCILLATOR CRYSTAL CIRCUIT
LPOSC2
2.11
Wake (WAKE) Pin
CL22
X2
32 kHz External Crystal Oscillator
The Wake (WAKE) pin 15 provides an external wake-up signal to the MRF24J40 from the host microcontroller. It is used in conjunction with the Sleep modes of the MRF24J40. The WAKE pin is disabled by default. Refer to Section 3.15.2 “Immediate Sleep and Wake-up Mode” for a functional description of the Immediate Sleep and Wake-up modes.
2.12
CL11
LPOSC1
General Purpose Input/Output (GPIO) Pins
2.8
100 kHz Internal Oscillator
Six GPIO pins can be configured individually for control or monitoring purposes. Input or output selection is configured by the TRISGPIO (0x34) register. GPIO data can be read/written to via the GPIO (0x33) register. The GPIO pins have limited output drive capability. Table 2-5 lists the individual GPIO pin source current limits.
The 100 kHz internal oscillator requires no external components and provides one of two Sleep clock (SLPCLK) frequencies to Sleep mode counters. The Sleep mode counters time the Beacon Interval (BI) and inactive period for a beacon-enabled device and the Sleep interval for a nonbeacon-enabled device. Refer to Section 3.15 “Sleep” for more information. The SLPCLK frequency is selectable between the 32 kHz external crystal oscillator or 100 kHz internal oscillator. The 32 kHz external crystal oscillator provides better frequency accuracy and stability than the 100 kHz internal oscillator. It is recommended that the 100 kHz internal oscillator be calibrated before use. The calibration procedure is given in Section 3.15.1.2 “Sleep Clock Calibration”.
TABLE 2-5:
Pin GPIO0 GPIO1 GPIO2 GPIO3 GPIO4 GPIO5
GPIO SOURCE CURRENT LIMITS
Maximum Current Sourced 4 mA 1 mA 1 mA 1 mA 1 mA 1 mA
2.9
Reset (RESET) Pin
An external hardware Reset can be performed by asserting the RESET pin 13 low. The MRF24J40 will be released from Reset approximately 250 μs after the RESET pin is released. The RESET pin has an internal weak pull-up resistor.
GPIO0, GPIO1 and GPIO2 can be configured to control external PA, LNA, and RF switches by the internal RF state machine. This allows the external PA and LNA to be controlled by the MRF24J40 without any host microcontroller intervention. Refer to Section 4.2 “External PA/LNA Control” for control register configuration, timing diagrams and application information.
2.10
Interrupt (INT) Pin
The Interrupt (INT) pin 16 provides an interrupt signal to the host microcontroller from the MRF24J40. The polarity is configured via the INTEDGE bit in the SLPCON0 (0x211) register. Interrupts have to be enabled and unmasked before the INT pin is active. Refer to Section 3.3 “Interrupts” for a functional description of interrupts. Note: The INTEDGE polarity defaults to, 0 = Falling Edge. Ensure that the interrupt polarity matches the interrupt pin polarity on the host microcontroller.
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 9
MRF24J40
2.13 Serial Peripheral Interface (SPI) Port Pins
Note: The SDO pin 17 defaults to a low state when CS is high (the MRF24J40 is not selected). If the MRF24J40 is to share a SPI bus, a tri-state buffer should be placed on the SDO signal to provide a high-impedance signal to the SPI bus. See Section 4.4 “MRF24J40 Schematic and Bill of Materials” for an example application circuit.
The MRF24J40 communicates with a host microcontroller via a 4-wire SPI port as a slave device. The MRF24J40 supports SPI mode 0,0 which requires that SCK idles in a low state. The CS pin must be held low while communicating with the MRF24J40. Figure 2-4 shows timing for a write operation. Data is received by the MRF24J40 via the SDI pin and is clocked in on the rising edge of SCK. Figure 2-5 shows timing for a read operation. Data is sent by the MRF24J40 via the SDO pin and is clocked out on the falling edge of SCK.
FIGURE 2-4:
SPI PORT WRITE (INPUT) TIMING
CS
SCK
SDI
MSb
LSb
SDO
FIGURE 2-5:
CS
SPI PORT READ (OUTPUT) TIMING
SCK
SDI
SDO
MSb
LSb
DS39776B-page 10
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
2.14 Memory Organization
Memory in the MRF24J40 is implemented as static RAM and is accessible via the SPI port. Memory is functionally divided into control registers and data buffers (FIFOs), as shown in Figure 2-6. Control registers provide control, status and device addressing for MRF24J40 operations. FIFOs serve as temporary buffers for data transmission, reception and security keys. Memory is accessed via two addressing methods: Short and Long.
FIGURE 2-6:
MEMORY MAP FOR MRF24J40
Short Address Memory Space
0x00 0x3F Control Registers 64 bytes 0x000
Long Address Memory Space
TX Normal FIFO 0x07F 0x080 TX Beacon FIFO 0x0FF 0x100 TX GTS1 FIFO 0x17F 0x180 TX GTS2 FIFO 0x1FF 0x200 Control Registers 0x27F 0x280 Security Key FIFO 0x2BF 0x2C0 Reserved 0x2FF 0x300 RX FIFO 0x38F 128 bytes 64 bytes 128 bytes 128 bytes 128 bytes 128 bytes
144 bytes
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 11
MRF24J40
2.14.1 SHORT ADDRESS REGISTER INTERFACE
The short address memory space contains control registers with a 6-bit address range of 0x00 to 0x3F. Figure 2-7 shows a short address read and Figure 2-8 shows a short address write. The 8-bit SPI transfer begins with a ‘0’ to indicate a short address transaction. It is followed by the 6-bit register address, Most Significant bit (MSb) first. The 8th bit indicates if it is a read (‘0’) or write (‘1’) transaction.
FIGURE 2-7:
CS
SHORT ADDRESS READ
SCK SDI SDO 0 A5 A4 A3 A2 A1 A0 0 D7 D6 D5 D4 X D3 D2 D1 D0
FIGURE 2-8:
CS
SHORT ADDRESS WRITE
SCK SDI SDO 0 A5 A4 A3 A2 A1 A0 1 D7 D6 D5 D4 D3 D2 D1 D0
DS39776B-page 12
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
2.14.2 LONG ADDRESS REGISTER INTERFACE
The long address memory space contains control registers and FIFOs with a 10-bit address range of 0x000 to 0x38F. Figure 2-9 shows a long address read and Figure 2-10 shows a long address write. The 12-bit SPI transfer begins with a ‘1’ to indicate a long address transaction. It is followed by the 10-bit register address, Most Significant bit (MSb) first. The 12th bit indicates if it is a read (‘0’) or write (‘1’) transaction.
FIGURE 2-9:
CS SCK SDI SDO 1 A9 A8
LONG ADDRESS READ
A7
A6
A5
A4
A3
A2
A1
A0
0 D7 D6
X D5 D4 D3 D2 D1 D0
FIGURE 2-10:
CS SCK SDI SDO 1 A9 A8
LONG ADDRESS WRITE
A7
A6
A5
A4
A3
A2
A1
A0
1
X
D7
D6
D5
D4
D3
D2
D1
D0
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 13
MRF24J40
2.15 Control Register Description
Control registers provide control, status and device addressing for MRF24J40 operations. The following figures, tables and register definitions describe the control register operation.
2.15.1
CONTROL REGISTER MAP SHORT ADDRESS CONTROL REGISTER MAP FOR MRF24J40
RXMCR PANIDL PANIDH SADRL SADRH EADR0 EADR1 EADR2 EADR3 EADR4 EADR5 EADR6 EADR7 RXFLUSH Reserved Reserved 0x10 0x11 0x12 0x13 0x14 0x15 0x16 0x17 0x18 0x19 0x1A 0x1B 0x1C 0x1D 0x1E 0x1F ORDER TXMCR ACKTMOUT ESLOTG1 SYMTICKL SYMTICKH PACON0 PACON1 PACON2 Reserved TXBCON0 TXNCON TXG1CON TXG2CON ESLOTG23 ESLOTG45 0x20 0x21 0x22 ESLOTG67 TXPEND WAKECON 0x30 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38 0x39 0x3A 0x3B 0x3C 0x3D 0x3E 0x3F RXSR INTSTAT INTCON GPIO TRISGPIO SLPACK RFCTL SECCR2 BBREG0 BBREG1 BBREG2 BBREG3 BBREG4 Reserved BBREG6 CCAEDTH
FIGURE 2-11:
0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0A 0x0B 0x0C 0x0D 0x0E 0x0F
0x23 FRMOFFSET 0x24 0x25 0x26 0x27 0x28 0x29 0x2A 0x2B 0x2C 0x2D 0x2E 0x2F TXSTAT TXBCON1 GATECLK TXTIME HSYMTMRL HSYMTMRH SOFTRST Reserved SECCON0 SECCON1 TXSTBL Reserved
FIGURE 2-12:
0x200 0x201 0x202 0x203 0x204 0x205 0x206 0x207 0x208 0x209 0x20A 0x20B 0x20C 0x20D 0x20E 0x20F RFCON0 RFCON1 RFCON2 RFCON3 Reserved RFCON5 RFCON6 RFCON7 RFCON8 SLPCAL0 SLPCAL1 SLPCAL2 Reserved Reserved Reserved RFSTATE
LONG ADDRESS CONTROL REGISTER MAP FOR MRF24J40
0x210 0x211 0x212 0x213 0x214 0x215 0x216 0x217 0x218 0x219 0x21A 0x21B 0x21C 0x21D 0x21E 0x21F RSSI SLPCON0 Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved 0x220 0x221 0x222 0x223 0x224 0x225 0x226 0x227 0x228 0x229 0x22A 0x22B 0x22C 0x22D 0x22E 0x22F SLPCON1 Reserved WAKETIMEL WAKETIMEH REMCNTL REMCNTH MAINCNT0 MAINCNT1 MAINCNT2 MAINCNT3 Reserved Reserved Reserved Reserved Reserved TESTMODE ox230 0x231 0x232 0x233 0x234 0x235 0x236 0x237 0x238 0x239 0x23A 0x23B 0x23C 0x23D 0x23E 0x23F ASSOEADR0 ASSOEADR1 ASSOEADR2 ASSOEADR3 ASSOEADR4 ASSOEADR5 ASSOEADR6 ASSOEADR7 ASSOSADR0 ASSOSADR1 Reserved Reserved Unimplemented Unimplemented Unimplemented Unimplemented 0x240 0x241 0x242 0x243 0x244 0x245 0x246 0x247 0x248 0x249 0x24A 0x24B 0x24C UPNONCE0 UPNONCE1 UPNONCE2 UPNONCE3 UPNONCE4 UPNONCE5 UPNONCE6 UPNONCE7 UPNONCE8 UPNONCE9 UPNONCE10 UPNONCE11 UPNONCE12
DS39776B-page 14
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
2.15.2 CONTROL REGISTER SUMMARY SHORT ADDRESS CONTROL REGISTER SUMMARY FOR MRF24J40
Bit 7 r Bit 6 r Bit 5 NOACKRSP Bit 4 r Bit 3 PANCOORD Bit 2 COORD Bit 1 ERRPKT Bit 0 PROMI Value on POR 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 BCNONLY r r SO1 CSMABF1 MAWD1 CAP1 TICKP1 TXONT0 PAONT1 PAONTS0 TXONT8 r TXBSECEN TXNSECEN TXG1SECEN TXG2SECEN GTS2-1 GTS4-1 GTS6-1 GTSSWITCH r OFFSET1 TXG1STAT r r r HSYMTMR1 HSYMTMR09 RSTBB r TXNCIPHER1 DISDEC MSIFS1 r RXFLUSH r r SO0 CSMABF0 MAWD0 CAP0 TICKP0 TICKP8 PAONT0 PAONT8 TXONT7 r TXBTRIG TXNTRIG TXG1TRIG TXG2TRIG GTS2-0 GTS4-0 GTS6-0 FPACK r OFFSET0 TXNSTAT r r r HSYMTMR0 0000 0000 0000 0000 0000 0000 1111 1111 0001 1100 0011 1001 0000 0000 0100 0000 0101 0001 0010 1001 0000 0010 1000 1000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 1000 0100 0000 0000 0000 0000 0000 0000 0011 0000 0000 0000 0100 1000 0000 0000 Details on Page: 18 19 19 20 20 21 21 21 22 22 22 23 23 24 — — 25 26 27 28 29 29 30 30 31 — 32 33 34 34 35 35 35 36 37 38 39 40 41 42 43 43 44 — 45 46 47 —
TABLE 2-6:
Addr. File Name
0x00 RXMCR 0x01 PANIDL 0x02 PANIDH 0x03 SADRL 0x04 SADRH 0x05 EADR0 0x06 EADR1 0x07 EADR2 0x08 EADR3 0x09 EADR4 0x0A EADR5 0x0B EADR6 0x0C EADR7 0x0D RXFLUSH 0x0E Reserved 0x0F Reserved 0x10 ORDER 0x11 TXMCR 0x12 ACKTMOUT 0x13 ESLOTG1 0x14 SYMTICKL 0x15 SYMTICKH 0x16 PACON0 0x17 PACON1 0x18 PACON2 0x19 Reserved 0x1A TXBCON0 0x1B TXNCON 0x1C TXG1CON 0x1D TXG2CON 0x1E ESLOTG23 0x1F ESLOTG45 0x20 ESLOTG67 0x21 TXPEND 0x22 WAKECON 0x23 FRMOFFSET 0x24 TXSTAT 0x25 TXBCON1 0x26 GATECLK 0x27 TXTIME 0x28 HSYMTMRL 0x29 HSYMTMRH 0x2A SOFTRST 0x2B Reserved 0x2C SECCON0 0x2D SECCON1 0x2E TXSTBL 0x2F Reserved Legend: r = reserved
PAN ID Low Byte (PANIDL) PAN ID High Byte (PANIDH) Short Address Low Byte (SADRL) Short Address High Byte (SADRH) 64-Bit Extended Address bits (EADR0) 64-Bit Extended Address bits (EADR1) 64-Bit Extended Address bits (EADR2) 64-Bit Extended Address bits (EADR3) 64-Bit Extended Address bits (EADR4) 64-Bit Extended Address bits (EADR5) 64-Bit Extended Address bits (EADR6) 64-Bit Extended Address bits (EADR7) r r r BO3 NOCSMA DRPACK GTS1-3 TICKP7 TXONT6 PAONT7 r FIFOEN r r r TXG1RETRY1 TXG2RETRY1 GTS3-3 GTS5-3 r MLIFS5 IMMWAKE OFFSET7 TXNRETRY1 TXBMSK r TURNTIME3 HSYMTMR7 HSYMTMR15 r r SECIGNORE r RFSTBL3 r WAKEPOL r r BO2 BATLIFEXT MAWD6 GTS1-2 TICKP6 TXONT5 PAONT6 r r r r r TXG1RETRY0 TXG2RETRY0 GTS3-2 GTS5-2 r MLIFS4 REGWAKE OFFSET6 TXNRETRY0 WU/BCN r TURNTIME2 HSYMTMR6 HSYMTMR14 r r SECSTART TXBCIPHER2 RFSTBL2 r WAKEPAD r r BO1 SLOTTED MAWD5 GTS1-1 TICKP5 TXONT4 PAONT5 r TXONTS3 r r r TXG1SLOT2 TXG2SLOT2 GTS3-1 GTS5-1 r MLIFS3 r OFFSET5 CCAFAIL RSSINUM1 r TURNTIME1 HSYMTMR5 HSYMTMR13 r r RXCIPHER2 TXBCIPHER1 RFSTBL1 r r r r BO0 MACMINBE1 MAWD4 GTS1-0 TICKP4 TXONT3 PAONT4 PAONTS3 TXONTS2 r r FPSTAT TXG1SLOT1 TXG2SLOT1 GTS3-0 GTS5-0 r MLIFS2 r OFFSET4 TXG2FNT RSSINUM0 r TURNTIME0 HSYMTMR4 HSYMTMR12 r r RXCIPHER1 TXBCIPHER0 RFSTBL0 r CMDONLY r r SO3 MACMINBE0 MAWD3 CAP3 TICKP3 TXONT2 PAONT3 PAONTS2 TXONTS1 r r INDIRECT TXG1SLOT0 TXG2SLOT0 GTS2-3 GTS4-3 GTS6-3 MLIFS1 r OFFSET3 TXG1FNT r GTSON r HSYMTMR3 HSYMTMR11 r r RXCIPHER0 r MSIFS3 r DATAONLY r r SO2 CSMABF2 MAWD2 CAP2 TICKP2 TXONT1 PAONT2 PAONTS1 TXONTS0 r r TXNACKREQ TXG1ACKREQ TXG2ACKREQ GTS2-2 GTS4-2 GTS6-2 MLIFS0 r OFFSET2 TXG2STAT r r r HSYMTMR2 HSYMTMR10 RSTPWR r TXNCIPHER2 r MSIFS2 r
HSYMTMR08 0000 0000 RSTMAC r 0000 0000 0000 0000
TXNCIPHER0 0000 0000 DISENC MSIFS0 r 0000 0000 0111 0101 0000 0000
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 15
MRF24J40
TABLE 2-6:
Addr. File Name
SHORT ADDRESS CONTROL REGISTER SUMMARY FOR MRF24J40 (CONTINUED)
Bit 7 r SLPIF SLPIE r r SLPACK r UPDEC r r CCAMODE1 PREVALIDTH3 CSTH2 r RSSIMODE1 CCAEDTH7 Bit 6 UPSECERR WAKEIF WAKEIE r r WAKECNT6 r UPENC r r CCAMODE0 PREVALIDTH2 CSTH1 r RSSIMODE2 CCAEDTH6 Bit 5 BATIND HSYMTMRIF HSYMTMRIE GPIO5 TRISGP5 WAKECNT5 r TXG2CIPHER2 r r CCACSTH3 PREVALIDTH1 CSTH0 r r CCAEDTH5 Bit 4 r SECIF SECIE GPIO4 TRISGP4 WAKECNT4 WAKECNT8 TXG2CIPHER1 r r CCACSTH2 PREVALIDTH0 PRECNT2 r r CCAEDTH4 Bit 3 r RXIF RXIE GPIO3 TRISGP3 WAKECNT3 WAKECNT7 TXG2CIPHER0 r r CCACSTH1 PREDETTH2 PRECNT1 r r CCAEDTH3 Bit 2 r TXG2IF TXG2IE GPIO2 TRISGP2 WAKECNT2 RFRST TXG1CIPHER2 r RXDECINV CCACSTH0 PREDETTH1 PRECNT0 r r CCAEDTH2 Bit 1 r TXG1IF TXG1IE GPIO1 TRISGP1 WAKECNT1 r TXG1CIPHER1 r r r PREDETTH0 r r r CCAEDTH1 Bit 0 r TXNIF TXNIE GPIO0 TRISGP0 WAKECNT0 r Value on POR 0000 0000 0000 0000 1111 1111 0000 0000 0000 0000 0000 0000 0000 0000 Details on Page: 48 49 50 51 51 52 53 54 55 55 56 56 57 — 57 58
0x30 RXSR 0x31 INTSTAT 0x32 INTCON 0x33 GPIO 0x34 TRISGPIO 0x35 SLPACK 0x36 RFCTL 0x37 SECCR2 0x38 BBREG0 0x39 BBREG1 0x3A BBREG2 0x3B BBREG3 0x3C BBREG4 0x3D Reserved 0x3E BBREG6 0x3F CCAEDTH Legend:
TXG1CIPHER0 0000 0000 TURBO r r r r r RSSIRDY CCAEDTH0 0000 0000 0000 0000 0100 1000 1101 1000 1001 1100 0000 0000 0000 0001 0000 0000
r = reserved
TABLE 2-7:
Addr. File Name
LONG ADDRESS CONTROL REGISTER SUMMARY FOR MRF24J40
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Value on POR 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 Details on Page: 59 59 60 60 — 61 61 62 62 63 63 64 — — — 65 65 66 — — — — — — — — — — — —
0x200 RFCON0 0x201 RFCON1 0x202 RFCON2 0x203 RFCON3 0x204 Reserved 0x205 RFCON5 0x206 RFCON6 0x207 RFCON7 0x208 RFCON8 0x209 SLPCAL0 0x20A SLPCAL1 0x20B SLPCAL2 0x20C Reserved 0x20D Reserved 0x20E Reserved 0x20F RFSTATE 0x210 RSSI 0x211 SLPCON0 0x212 Reserved 0x213 Reserved 0x214 Reserved 0x215 Reserved 0x216 Reserved 0x217 Reserved 0x218 Reserved 0x219 Reserved 0x21A Reserved 0x21B Reserved 0x21C Reserved 0x21D Reserved Legend: r = reserved
CHANNEL3 VCOOPT7 PLLEN TXPWRL1 r BATTH3 TXFIL SLPCLKSEL1 r SLPCAL7 SLPCAL15 SLPCALRDY r r r RFSTATE2 RSSI7 r r r r r r r r r r r r r
CHANNEL2 VCOOPT6 r TXPWRL0 r BATTH2 r SLPCLKSEL0 r SLPCAL6 SLPCAL14 r r r r RFSTATE1 RSSI6 r r r r r r r r r r r r r
CHANNEL1 VCOOPT5 r TXPWRS2 r BATTH1 r r r SLPCAL5 SLPCAL13 r r r r RFSTATE0 RSSI5 r r r r r r r r r r r r r
CHANNEL0 VCOOPT4 r TXPWRS1 r BATTH0 20MRECVR r RFVCO SLPCAL4 SLPCAL12 SLPCALEN r r r r RSSI4 r r r r r r r r r r r r r
RFOPT3 VCOOPT3 r TXPWRS0 r r BATEN r r SLPCAL3 SLPCAL11 SLPCAL19 r r r r RSSI3 r r r r r r r r r r r r r
RFOPT2 VCOOPT2 r r r r r r r SLPCAL2 SLPCAL10 SLPCAL18 r r r r RSSI2 r r r r r r r r r r r r r
RFOPT1 VCOOPT1 r r r r r CLKOUTMODE1 r SLPCAL1 SLPCAL9 SLPCAL17 r r r r RSSI1 INTEDGE r r r r r r r r r r r r
RFOPT0 VCOOPT0 r r r r r
CLKOUTMODE0 0000 0000 r SLPCAL0 SLPCAL8 SLPCAL16 r r r r RSSI0 SLPCLKEN r r r r r r r r r r r r 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
DS39776B-page 16
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
TABLE 2-7:
Addr. File Name
LONG ADDRESS CONTROL REGISTER SUMMARY FOR MRF24J40 (CONTINUED)
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Value on POR 0000 0000 0000 0000 0000 0000 0000 0000 0000 1010 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 r r — — — — r r — — — — r r — — — — 0000 0000 0000 0000 ---- ------- ------- ------- ---0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 Details on Page: — — 66 — 67 67 68 68 69 69 70 70 — — — — — 71 72 72 73 73 74 74 75 75 76 76 — — — — — — 77 77 78 78 79 79 80 80 81 81 82 82 83
0x21E Reserved 0x21F Reserved 0x220 SLPCON1 0x221 Reserved 0x222 WAKETIMEL 0x223 WAKETIMEH 0x224 REMCNTL 0x225 REMCNTH 0x226 MAINCNT0 0x227 MAINCNT1 0x228 MAINCNT2 0x229 MAINCNT3 0x22A Reserved 0x22B Reserved 0x22C Reserved 0x22D Reserved 0x22E Reserved 0x22F TESTMODE 0x230 ASSOEADR0 0x231 ASSOEADR1 0x232 ASSOEADR2 0x233 ASSOEADR3 0x234 ASSOEADR4 0x235 ASSOEADR5 0x236 ASSOEADR6 0x237 ASSOEADR7 0x238 ASSOSADR0 0x239 ASSOSADR1 0x23A Reserved 0x23B Reserved 0x23C Unimplemented 0x23D Unimplemented 0x23E Unimplemented 0x23F Unimplemented 0x240 UPNONCE0 0x241 UPNONCE1 0x242 UPNONCE2 0x243 UPNONCE3 0x244 UPNONCE4 0x245 UPNONCE5 0x246 UPNONCE6 0x247 UPNONCE7 0x248 UPNONCE8 0x249 UPNONCE9 0x24A UPNONCE10 0x24B UPNONCE11 0x24C UPNONCE12 Legend: r = reserved
r r r r WAKETIME7 r REMCNT7 REMCNT15 MAINCNT7 MAINCNT15 MAINCNT23 STARTCNT r r r r r r
r r r r WAKETIME6 r REMCNT6 REMCNT14 MAINCNT6 MAINCNT14 MAINCNT22 r r r r r r r
r r CLKOUTEN r WAKETIME5 r REMCNT5 REMCNT13 MAINCNT5 MAINCNT13 MAINCNT21 r r r r r r r
r r SLPCLKDIV4 r WAKETIME4 r REMCNT4 REMCNT12 MAINCNT4 MAINCNT12 MAINCNT20 r r r r r r RSSIWAIT1
r r SLPCLKDIV3 r WAKETIME3 r REMCNT3 REMCNT11 MAINCNT3 MAINCNT11 MAINCNT19 r r r r r r RSSIWAIT0
r r SLPCLKDIV2 r WAKETIME2 WAKETIME10 REMCNT2 REMCNT10 MAINCNT2 MAINCNT10 MAINCNT18 r r r r r r TESTMODE2
r r SLPCLKDIV1 r WAKETIME1 WAKETIME9 REMCNT1 REMCNT9 MAINCNT1 MAINCNT9 MAINCNT17 MAINCNT25 r r r r r TESTMODE1
r r SLPCLKDIV0 r WAKETIME0 WAKETIME8 REMCNT0 REMCNT8 MAINCNT0 MAINCNT8 MAINCNT16 MAINCNT24 r r r r r TESTMODE0
ASSOEADR0 ASSOEADR1 ASSOEADR2 ASSOEADR3 ASSOEADR4 ASSOEADR5 ASSOEADR6 ASSOEADR7 ASSOSADR0 ASSOSADR1 r r — — — — r r — — — — r r — — — — r r — — — — r r — — — — UPNONCE UPNONCE UPNONCE UPNONCE UPNONCE UPNONCE UPNONCE UPNONCE UPNONCE UPNONCE UPNONCE UPNONCE UPNONCE
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 17
MRF24J40
2.15.3 SHORT ADDRESS CONTROL REGISTERS DETAIL RXMCR: RECEIVE MAC CONTROL REGISTER (ADDRESS: 0x00)
R/W-0 r R/W-0 NOACKRSP R/W-0 r R/W-0 PANCOORD R/W-0 COORD R/W-0 ERRPKT R/W-0 PROMI bit 0 r = reserved W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
REGISTER 2-1:
R/W-0 r bit 7 Legend: R = Readable bit -n = Value at POR bit 7-6 bit 5
Reserved: Maintain as ‘0’ NOACKRSP: Automatic Acknowledgement Response bit 1 = Disables automatic Acknowledgement response 0 = Enables automatic Acknowledgement response. Acknowledgements are returned when they are requested (default). Reserved: Maintain as ‘0’ PANCOORD: PAN Coordinator bit 1 = Set device as PAN coordinator 0 = Device is not set as PAN coordinator (default) COORD: Coordinator bit 1 = Set device as coordinator 0 = Device is not set as coordinator (default) ERRPKT: Packet Error Mode bit 1 = Accept all packets including those with CRC error 0 = Accept only packets with good CRC (default) PROMI: Promiscuous Mode bit 1 = Receive all packet types with good CRC 0 = Discard packet when there is a MAC address mismatch, illegal frame type, dPAN/sPAN or MAC short address mismatch (default)
bit 4 bit 3
bit 2
bit 1
bit 0
DS39776B-page 18
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
REGISTER 2-2:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
PANIDL: PAN ID LOW BYTE REGISTER (ADDRESS: 0x01)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0
PAN ID Low Byte (PANIDL)
PANIDL: PAN ID Low Byte bits
REGISTER 2-3:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0
PANIDH: PAN ID HIGH BYTE REGISTER (ADDRESS: 0x02)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0
PAN ID High Byte (PANIDH)
W = Writable bit ‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
PANIDH: PAN ID High Byte bits
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 19
MRF24J40
REGISTER 2-4:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
SADRL: SHORT ADDRESS LOW BYTE REGISTER (ADDRESS: 0x03)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0
Short Address Low Byte (SADRL)
SADRL: Short Address Low Byte bits
REGISTER 2-5:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0
SADRH: SHORT ADDRESS HIGH BYTE REGISTER (ADDRESS: 0x04)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0
Short Address High Byte (SADRH)
W = Writable bit ‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
SADRH: Short Address High Byte bits
DS39776B-page 20
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
REGISTER 2-6:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
EADR0: EXTENDED ADDRESS 0 REGISTER (ADDRESS: 0x05)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0
64-Bit Extended Address bits (EADR)
EADR: 64-Bit Extended Address bits
REGISTER 2-7:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0
EADR1: EXTENDED ADDRESS 1 REGISTER (ADDRESS: 0x06)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0
64-Bit Extended Address bits (EADR)
W = Writable bit ‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
EADR: 64-Bit Extended Address bits
REGISTER 2-8:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0
EADR2: EXTENDED ADDRESS 2 REGISTER (ADDRESS: 0x07)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0
64-Bit Extended Address bits (EADR)
W = Writable bit ‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
EADR: 64-Bit Extended Address bits
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 21
MRF24J40
REGISTER 2-9:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
EADR3: EXTENDED ADDRESS 3 REGISTER (ADDRESS: 0x08)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0
64-Bit Extended Address bits (EADR)
EADR: 64-Bit Extended Address bits
REGISTER 2-10:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0
EADR4: EXTENDED ADDRESS 4 REGISTER (ADDRESS: 0x09)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0
64-Bit Extended Address bits (EADR)
W = Writable bit ‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
EADR: 64-Bit Extended Address bits
REGISTER 2-11:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0
EADR5: EXTENDED ADDRESS 5 REGISTER (ADDRESS: 0x0A)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0
64-Bit Extended Address bits (EADR)
W = Writable bit ‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
EADR: 64-Bit Extended Address bits
DS39776B-page 22
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
REGISTER 2-12:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
EADR6: EXTENDED ADDRESS 6 REGISTER (ADDRESS: 0x0B)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0
64-Bit Extended Address bits (EADR)
EADR: 64-Bit Extended Address bits
REGISTER 2-13:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0
EADR7: EXTENDED ADDRESS 7 REGISTER (ADDRESS: 0x0C)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0
64-Bit Extended Address bits (EADR)
W = Writable bit ‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
EADR: 64-Bit Extended Address bits
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 23
MRF24J40
REGISTER 2-14:
R/W-0 r bit 7 Legend: R = Readable bit -n = Value at POR bit 7 bit 6 r = reserved W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
RXFLUSH: RECEIVE FIFO FLUSH REGISTER (ADDRESS: 0x0D)
R/W-0 R/W-0 WAKEPAD R/W-0 r R/W-0 CMDONLY R/W-0 DATAONLY R/W-0 BCNONLY W-0 RXFLUSH bit 0
WAKEPOL
Reserved: Maintain as ‘0’ WAKEPOL: Wake Signal Polarity bit 1 = Wake signal polarity is active-high 0 = Wake signal polarity is active-low (default) WAKEPAD: Wake I/O Pin Enable bit 1 = Enable wake I/O pin 0 = Disable wake I/O pin (default) Reserved: Maintain as ‘0’ CMDONLY: Command Frame Receive bit 1 = Only command frames are received, all other frames are filtered out 0 = All valid frames are received (default) DATAONLY: Data Frame Receive bit 1 = Only data frames are received, all other frames are filtered out 0 = All valid frames are received (default) BCNONLY: Beacon Frame Receive bit 1 = Only beacon frames are received, all other frames are filtered out 0 = All valid frames are received (default) RXFLUSH: Reset Receive FIFO Address Pointer bit 1 = Resets the RXFIFO Address Pointer to zero. RXFIFO data is not modified. Bit is automatically cleared to ‘0’ by hardware.
bit 5
bit 4 bit 3
bit 2
bit 1
bit 0
DS39776B-page 24
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
REGISTER 2-15:
R/W-1 BO3(1) bit 7 Legend: R = Readable bit -n = Value at POR bit 7-4 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
ORDER: BEACON AND SUPERFRAME ORDER REGISTER (ADDRESS: 0x10)
R/W-1 BO1(1) R/W-1 BO0(1) R/W-1 SO3(1) R/W-1 SO2(1) R/W-1 SO1(1) R/W-1 SO0(1) bit 0
R/W-1 BO2(1)
BO: Beacon Order bits (macBeaconOrder)(1) Specifies how often the coordinator will transmit a beacon.(2) 1111 = The coordinator will not transmit a beacon and the Superframe Order (SO) parameter value is ignored (default) 1110 = 14 … 0000 = 0 SO: Superframe Order bits (macSuperframeOrder)(1) Specifies the length of the active portion of the superframe, including the beacon frame.(2) 1111 = The superframe will not be active following the beacon (i.e., no active portion in the superframe (default)) 1110 = 14 … 0000 = 0 Refer to IEEE 802.15.4™-2003 Standard, Section 7.5.1.1 “Superframe Structure”. PANs that wish to use the superframe structure shall set macBeaconOrder to a value between 0 and 14 and macSuperframeOrder to a value between 0 and the value of macBeaconOrder (i.e., 0 ≤ SO ≤ BO ≤ 14).
bit 3-0
Note 1: 2:
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 25
MRF24J40
REGISTER 2-16:
R/W-0 NOCSMA bit 7 Legend: R = Readable bit -n = Value at POR bit 7 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
TXMCR: CSMA-CA MODE CONTROL REGISTER (ADDRESS: 0x11)
R/W-0 SLOTTED R/W-1 MACMINBE1 R/W-1 MACMINBE0 R/W-1 CSMABF2 R/W-0 CSMABF1 R/W-0 CSMABF0 bit 0
R/W-0 BATLIFEXT
NOCSMA: No Carrier Sense Multiple Access (CSMA) Algorithm bits 1 = Disable CSMA-CA algorithm when transmitting in Unslotted mode with GTSSWITCH (TXPEND 0x21) bit set 0 = Enable CSMA-CA algorithm when transmitting in Unslotted mode with GTSSWITCH (TXPEND 0x21) bit set (default) BATLIFEXT: Battery Life Extension Mode bit (macBattLifeExt) 1 = Enable 0 = Disable (default) SLOTTED: Slotted CSMA-CA Mode bit 1 = Enable Slotted CSMA-CA mode 0 = Disable Slotted CSMA-CA mode (default) MACMINBE: MAC Minimum Backoff Exponent bits (macMinBE) The minimum value of the backoff exponent in the CSMA-CA algorithm. Note that if this value is set to ‘0’, collision avoidance is disabled.(1) Default: 0x3. CSMABF: CSMA Backoff bits (macMaxCSMABackoff) The maximum number of backoffs the CSMA-CA algorithm will attempt before declaring a channel access failure.(1) 111 = Undefined 110 = Undefined 101 = 5 100 = 4 (default) 011 = 3 010 = 2 001 = 1 000 = 0 Refer to IEEE 802.15.4™-2003 Standard, Table 71 – MAC PIB attributes.
bit 6
bit 5
bit 4-3
bit 2-0
Note 1:
DS39776B-page 26
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
REGISTER 2-17:
R/W-0 DRPACK bit 7 Legend: R = Readable bit -n = Value at POR bit 7 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
ACKTMOUT: MAC ACK TIME-OUT DURATION REGISTER (ADDRESS: 0x12)
R/W-0 R/W-1 MAWD5
(1)
R/W-1 MAWD4
(1)
R/W-1 MAWD3
(1)
R/W-0 MAWD2
(1)
R/W-0 MAWD1
(1)
R/W-1 MAWD0(1) bit 0
MAWD6
(1)
DRPACK: Data Request Pending Acknowledgement bit(1) Sets or clears the frame pending bit in the Acknowledgement frame for a received data request MAC command. 1 = Frame pending bit = 1 0 = Frame pending bit = 0 MAWD: macAckWaitDuration bit(2) The maximum number of symbols to wait for an Acknowledgment frame to arrive following a transmitted data or MAC command frame. Units: Symbol period (16 μs). Default value: 0x39. Refer to IEEE 802.15.4™-2003 Standard, Section 5.4.2.2 “Data Transfer from a Coordinator” and Section 7.3 “MAC Command Frames”. Refer to IEEE 802.15.4™-2003 Standard, Table 71: MAC PIB Attributes.
bit 6-0
Note 1: 2:
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 27
MRF24J40
REGISTER 2-18:
R/W-0 GTS1-3 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-4 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
ESLOTG1: GTS1 AND CAP END SLOT REGISTER (ADDRESS: 0x13)
R/W-0 R/W-0 GTS1-1 R/W-0 GTS1-0 R/W-0 CAP3 R/W-0 CAP2 R/W-0 CAP1 R/W-0 CAP0 bit 0
GTS1-2
GTS1-: End Slot of 1st GTS bits 1111 = 15 … 0000 = 0 (default) CAP: Contention Access Period (CAP) End Slot bits 1111 = 15 … 0000 = 0 (default)
bit 3-0
DS39776B-page 28
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
REGISTER 2-19:
R/W-0 TICKP7 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
SYMTICKL: SYMBOL PERIOD TICK LOW BYTE REGISTER (ADDRESS: 0x14)
R/W-1 R/W-0 TICKP5 R/W-0 TICKP4 R/W-0 TICKP3 R/W-0 TICKP2 R/W-0 TICKP1 R/W-0 TICKP0 bit 0
TICKP6
TICKP: Symbol Period Tick bits Number of ticks to define a symbol period. Tick period is based on the system clock frequency of 20 MHz. TICKP is a 9-bit value. The TICKP8 bit is located in SYMTICKH. Units: tick (50 ns). Default value = 0x140 (320 * 50 ns = 16 μs).
REGISTER 2-20:
R/W-0 TXONT6(1) bit 7 Legend: R = Readable bit -n = Value at POR bit 7-1
SYMTICKH: SYMBOL PERIOD TICK HIGH BYTE REGISTER (ADDRESS: 0x15)
R/W-0 TXONT4(1) R/W-1 TXONT3(1) R/W-0 TXONT2(1) R/W-0 TXONT1(1) R/W-0 TXONT0(1) R/W-1 TICKP8 bit 0
R/W-1 TXONT5(1)
W = Writable bit ‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
TXONT: Transmitter Enable On Time Tick bits(1) Transmitter on time before beginning of packet. TXONT is a 9-bit value. The TXONT bits are located in PACON2. Units: tick (50 ns). Default value = 0x028 (40 * 50 ns = 2 μs). TICKP8: Symbol Period Tick bit Number of ticks to define a symbol period. Tick period is based on the system clock frequency of 20 MHz. TICKP is a 9-bit value. The TICKP bits are located in SYMTICKL. Units: tick (50 ns). Default value = 0x140 (320 * 50 ns = 16 μs). Refer to Figure 4-4 for timing diagram.
bit 0
Note 1:
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 29
MRF24J40
REGISTER 2-21:
R/W-0 PAONT7 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
(1)
PACON0: POWER AMPLIFIER CONTROL 0 REGISTER (ADDRESS: 0x16)
R/W-1
(1)
R/W-0 PAONT6
R/W-0
(1)
R/W-1
(1)
R/W-0
(1)
R/W-0
(1)
R/W-1
(1)
PAONT5
PAONT4
PAONT3
PAONT2
PAONT1
PAONT0(1) bit 0
PAONT: Power Amplifier Enable On Time Tick bits(1) Power amplifier on time before beginning of packet. PAONT is a 9-bit value. The PAONT8 bit is located in PACON1. Units: tick (50 ns). Default value = 0x029 (41 * 50 ns = 2.05 μs). Refer to Figure 4-4 for timing diagram.
Note 1:
REGISTER 2-22:
R/W-0 r bit 7 Legend: R = Readable bit -n = Value at POR bit 7-5 bit 4-1 r
PACON1: POWER AMPLIFIER CONTROL 1 REGISTER (ADDRESS: 0x17)
R/W-0 r R/W-0 R/W-0 R/W-0 R/W-1 R/W-0 PAONT8(1) bit 0 r = reserved W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown PAONTS3(1) PAONTS2(1) PAONTS1(1) PAONTS0(1)
R/W-0
Reserved: Maintain as ‘0’ PAONTS: Power Amplifier Enable On Time Symbol bits(1) Power amplifier on time before beginning of packet. Units: symbol period (16 μs). Minimum value: 0x1 (default) (1 * 16 μs = 16 μs). PAONT8: Power Amplifier Enable On Time Tick bit(1) Power amplifier on time before beginning of packet. PAONT is a 9-bit value. The PAONT bits are located in PACON0. Units: tick (50 ns). Default value = 0x029 (41 * 50 ns = 2.05 μs). Refer to Figure 4-4 for timing diagram.
bit 0
Note 1:
DS39776B-page 30
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
REGISTER 2-23:
R/W-1 FIFOEN bit 7 Legend: R = Readable bit -n = Value at POR bit 7 bit 6 bit 5-2 r = reserved W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown r
PACON2: POWER AMPLIFIER CONTROL 2 REGISTER (ADDRESS: 0x18)
R/W-0 TXONTS3
(1)
R/W-0
R/W-0 TXONTS2
(1)
R/W-1 TXONTS1
(1)
R/W-0 TXONTS0
(1)
R/W-0 TXONT8
(1)
R/W-0 TXONT7(1) bit 0
FIFOEN: FIFO Enable bit 1 = Enabled (default). Always maintain this bit as a ‘1’. Reserved: Maintain as ‘0’ TXONTS: Transmitter Enable On Time Symbol bits(1) Transmitter on time before beginning of packet. Units: symbol period (16 μs). Minimum value: 0x1. Default value: 0x2 (2 * 16 μs = 32 μs). Recommended value: 0x6 (6 * 16 μs = 96 μs). TXONT: Transmitter Enable On Time Tick bits(1) Transmitter on time before beginning of packet. TXONT is a 9-bit value. TXONT bits are located in SYMTICKH. Units: tick (50 ns). Default value = 0x028 (40 * 50 ns = 2 μs). Refer to Figure 4-4 for timing diagram.
bit 1-0
Note 1:
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 31
MRF24J40
REGISTER 2-24:
R-0 r bit 7 Legend: R = Readable bit -n = Value at POR bit 7-2 bit 1 r = reserved W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown r
TXBCON0: TRANSMIT BEACON FIFO CONTROL 0 REGISTER (ADDRESS: 0x1A)
R-0 R-0 r R-0 r R-0 r R-0 r R/W-0 TXBSECEN W-0 TXBTRIG bit 0
Reserved: Maintain as ‘0’ TXBSECEN: TX Beacon FIFO Security Enabled bit 1 = Security enabled 0 = Security disabled (default) TXBTRIG: Transmit Frame in TX Beacon FIFO bit 1 = Transmit the frame in the TX Beacon FIFO; bit is automatically cleared by hardware.
bit 0
DS39776B-page 32
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
REGISTER 2-25:
R/W-0 r bit 7 Legend: R = Readable bit -n = Value at POR bit 7-5 bit 4 r = reserved W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown r
TXNCON: TRANSMIT NORMAL FIFO CONTROL REGISTER (ADDRESS: 0x1B)
R/W-0 r R-0 R/W-0 R/W-0 R/W-0 W-0 TXNTRIG bit 0 FPSTAT(1) INDIRECT(4) TXNACKREQ(2,4) TXNSECEN(3,4)
R/W-0
Reserved: Maintain as ‘0’ FPSTAT: Frame Pending Status bit(1) Status of the frame pending bit in the received Acknowledgement frame. 1 = Frame pending bit = 1 0 = Frame pending bit = 0 INDIRECT: Activate Indirect Transmission bit (coordinator only)(4) 1 = Indirect transmission enabled 0 = Indirect transmission disabled (default) TXNACKREQ: TX Normal FIFO Acknowledgement Request bit(2,4) Transmit a frame with Acknowledgement frame expected. If Acknowledgement is not received, retransmit. 1 = Acknowledgement requested 0 = No Acknowledgement requested (default) TXNSECEN: TX Normal FIFO Security Enabled bit(3,4) 1 = Security enabled 0 = Security disabled (default) TXNTRIG: Transmit Frame in TX Normal FIFO bit 1 = Transmit the frame in the TX Normal FIFO; bit is automatically cleared by hardware Refer to IEEE 802.15.4™-2003 Standard, Section 7.2.1.1.3 “Frame Pending Subfield”. Refer to IEEE 802.15.4-2003 Standard, Section 7.2.1.1.4 “Acknowledgement Request Subfield”. Refer to IEEE 802.15.4-2003 Standard, Section 7.2.1.1.2 “Security Enabled Subfield”. Bit is cleared at the next triggering of TXN FIFO.
bit 3
bit 2
bit 1
bit 0
Note 1: 2: 3: 4:
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 33
MRF24J40
REGISTER 2-26:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-6 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
TXG1CON: GTS1 FIFO CONTROL REGISTER (ADDRESS: 0x1C)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 W-0 TXG1TRIG bit 0
TXG1RETRY1 TXG1RETRY0 TXG1SLOT2 TXG1SLOT1 TXG1SLOT0 TXG1ACKREQ TXG1SECEN
TXG1RETRY: TX GTS1 FIFO Retry Times bits Write: retry times of packet Read: number of retry times of the successfully transmitted packet TXG1SLOT: GTS Slot that TX GTS1 FIFO Occupies bits TXG1ACKREQ: TX GTS1 FIFO Acknowledgement Request bit Transmit a frame with Acknowledgement frame expected. If Acknowledgement is not received, retransmit. 1 = Acknowledgement requested 0 = No Acknowledgement requested (default) TXG1SECEN: TX GTS1 FIFO Security Enabled bit 1 = Security enabled 0 = Security disabled (default) TXG1TRIG: Transmit Frame in TX GTS1 FIFO bit Transmit the frame in the TX GTS1 FIFO; bit is automatically cleared by hardware.
bit 5-3 bit 2
bit 1
bit 0
REGISTER 2-27:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-6
TXG2CON: GTS2 FIFO CONTROL REGISTER (ADDRESS: 0x1D)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 W-0 bit 0
TXG2RETRY1 TXG2RETRY0 TXG2SLOT2 TXG2SLOT1 TXG2SLOT0 TXG2ACKREQ TXG2SECEN TXG2TRIG
W = Writable bit ‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
TXG2RETRY: TX GTS2 FIFO Retry Times bits Write: retry times of packet Read: number of retry times of the successfully transmitted packet TXG2SLOT: GTS Slot that TX GTS2 FIFO Occupies bits TXG2ACKREQ: TX GTS2 FIFO Acknowledgement Request bit Transmit a frame with Acknowledgement frame expected. If Acknowledgement is not received, retransmit. 1 = Acknowledgement requested 0 = No Acknowledgement requested (default) TXG2SECEN: TX GTS2 FIFO Security Enabled bit 1 = Security enabled 0 = Security disabled (default) TXG2TRIG: Transmit Frame in TX GTS2 FIFO bit Transmit the frame in the TX GTS2 FIFO; bit is automatically cleared by hardware.
bit 5-3 bit 2
bit 1
bit 0
DS39776B-page 34
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
REGISTER 2-28:
R/W-0 GTS3-3 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-4 bit 3-0 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
ESLOTG23: END SLOT OF GTS3 AND GTS2 REGISTER (ADDRESS: 0x1E)
R/W-0 R/W-0 GTS3-1 R/W-0 GTS3-0 R/W-0 GTS2-3 R/W-0 GTS2-2 R/W-0 GTS2-1 R/W-0 GTS2-0 bit 0
GTS3-2
GTS3-: End Slot of 3rd GTS bits GTS2-: End Slot of 2nd GTS bits
REGISTER 2-29:
R/W-0 GTS5-3 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-4 bit 3-0
ESLOTG45: END SLOT OF GTS5 AND GTS4 REGISTER (ADDRESS: 0x1F)
R/W-0 R/W-0 GTS5-1 R/W-0 GTS5-0 R/W-0 GTS4-3 R/W-0 GTS4-2 R/W-0 GTS4-1 R/W-0 GTS4-0 bit 0
GTS5-2
W = Writable bit ‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
GTS5-: End Slot of 5th GTS bits GTS4-: End Slot of 4th GTS bits
REGISTER 2-30:
R-0 r bit 7 Legend: R = Readable bit -n = Value at POR bit 7-4 bit 3-0
ESLOTG67: END SLOT OF GTS6 REGISTER (ADDRESS: 0x20)
R-0 r R-0 r R-0 r R/W-0 GTS6-3 R/W-0 GTS6-2 R/W-0 GTS6-1 R/W-0 GTS6-0 bit 0 r = reserved W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
Reserved: Maintain as ‘0’ GTS6-: End Slot of 6th GTS bits If 7th GTS exists, the end slot must be 15.
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 35
MRF24J40
REGISTER 2-31:
R/W-1 MLIFS5 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-2 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
TXPEND: TX DATA PENDING REGISTER (ADDRESS: 0x21)
R/W-0 MLIFS3 R/W-0 MLIFS2 R/W-0 MLIFS1 R/W-1 MLIFS0 R/W-0 GTSSWITCH R/W-0 FPACK(1) bit 0
R/W-0 MLIFS4
MLIFS: Minimum Long Interframe Spacing bits The minimum number of symbols forming a Long Interframe Spacing (LIFS) period. Refer to IEEE 802.15.4™-2003 Standard, Section 7.5.1.2 “IFS” and Table 70: MAC Sublayer Constants. MLIFS + RFSTBL = aMinLIFSPeriod = 40 symbols. Units: symbol period (16 μs). Default value: 0x21. Recommended values: MLIFS = 0x1F and RFSTBL = 0x9. GTSSWITCH: Continue TX GTS FIFO Switch in CFP bit 1 = GTS1 and GTS2 FIFO will toggle with each other during CFP 0 = GTS1 and GTS2 FIFO will stop toggling with each other if the transmission fails (default) FPACK: Frame Pending bit in the Acknowledgement Frame bit(1) Sets or clears the frame pending bit in the Acknowledgement frame. 1 = Frame pending bit = 1 0 = Frame pending bit = 0 Refer to IEEE 802.15.4™-2003 Standard, Section 7.2.1.1.3 “Frame Pending Subfield” and Section 7.2.2.3.1 “Acknowledgement Frame MHR Fields”.
bit 1
bit 0
Note 1:
DS39776B-page 36
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
REGISTER 2-32:
R/W-0 IMMWAKE bit 7 Legend: R = Readable bit -n = Value at POR bit 7 r = reserved W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
WAKECON: WAKE CONTROL REGISTER (ADDRESS: 0x22)
R/W-0 REGWAKE R/W-0 r R/W-0 r R/W-0 r R/W-0 r R/W-0 r R/W-0 r bit 0
IMMWAKE: Immediate Wake-up Mode Enable bit 1 = Enable Immediate Wake-up mode 0 = Disable Immediate Wake-up mode (default) REGWAKE: Register Wake-up Signal bit Host processor should set to ‘1’, then clear to ‘0’, to perform wake-up. Reserved: Maintain as ‘0’
bit 6 bit 5-0
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 37
MRF24J40
REGISTER 2-33:
R/W-0 OFFSET7 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
(1)
FRMOFFSET: SUPERFRAME COUNTER OFFSET TO ALIGN BEACON REGISTER (ADDRESS: 0x23)
R/W-0 R/W-0
(1)
R/W-0
(1)
R/W-0
(1)
R/W-0
(1)
R/W-0
(1)
R/W-0
(1)
OFFSET6
OFFSET5
OFFSET4
OFFSET3
OFFSET2
OFFSET1
OFFSET0(1) bit 0
OFFSET: Superframe Counter Offset for Align Air Slot Boundary bits(1) For Beacon-Enabled mode device. Default value: 0x00. Recommended value: 0x15. Refer to Section 3.8.1.6 “Configuring Beacon-Enabled Device” for more information.
Note 1:
DS39776B-page 38
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
REGISTER 2-34:
R-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-6 bit 5 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
TXSTAT: TX MAC STATUS REGISTER (ADDRESS: 0x24)
R-0 R-0 CCAFAIL R-0 TXG2FNT R-0 TXG1FNT R-0 TXG2STAT R-0 TXG1STAT R-0 TXNSTAT bit 0
TXNRETRY1 TXNRETRY0
TXNRETRY: TX Normal FIFO Retry Times bits Number of retrys of the most recent TX Normal FIFO transmission. CCAFAIL: Clear Channel Assessment (CCA) Status of Last Transmission bit 1 = Channel busy 0 = Channel Idle TXG2FNT: TX GTS2 FIFO Transmission failed due to not enough time before the end of GTS bit 1 = Failed 0 = Succeeded TXG1FNT: TX GTS1 FIFO Transmission failed due to not enough time before the end of GTS bit 1 = Failed 0 = Succeeded TXG2STAT: TX GTS2 FIFO Release Status bit 1 = Failed, retry count exceeded 0 = Succeeded TXG1STAT: TX GTS2 FIFO Release Status bit 1 = Failed, retry count exceeded 0 = Succeeded TXNSTAT: TX Normal FIFO Release Status bit 1 = Failed, retry count exceeded 0 = Succeeded
bit 4
bit 3
bit 2
bit 1
bit 0
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 39
MRF24J40
REGISTER 2-35:
R/W-0 TXBMSK bit 7 Legend: R = Readable bit -n = Value at POR bit 7 r = reserved W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
TXBCON1: TRANSMIT BEACON CONTROL 1 REGISTER (ADDRESS: 0x25)
R-0 R/W-1 RSSINUM1 R/W-1 RSSINUM0 R-0 r R-0 r R-0 r R-0 r bit 0
WU/BCN
TXBMSK: TX Beacon FIFO Interrupt Mask bit 1 = TX Beacon FIFO interrupt is masked 0 = TX Beacon FIFO interrupt is not masked (default) WU/BCN: Wake-up/Beacon Interrupt Status bit Indicates if the WAKEIF interrupt was due to beacon start or wake-up. 1 = Beacon start interrupt 0 = Wake-up interrupt RSSINUM: RSSI Average Symbols bits 11 = 8 symbols (default) 10 = 4 symbols 01 = 2 symbols 00 = 1 symbol Reserved: Maintain as ‘0’
bit 6
bit 5-4
bit 3-0
DS39776B-page 40
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
REGISTER 2-36:
R/W-0 r bit 7 Legend: R = Readable bit -n = Value at POR bit 7-4 bit 3 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
GATECLK: GATED CLOCK CONTROL REGISTER (ADDRESS: 0x26)
R/W-0 r R/W-0 r R/W-0 r R/W-0 GTSON R/W-0 r R/W-0 r R/W-0 r bit 0
Reserved: Maintain as ‘0’ GTSON: GTS FIFO Clock Enable bit 1 = Enabled 0 = Disabled (default) Reserved: Maintain as ‘0’
bit 2-0
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 41
MRF24J40
REGISTER 2-37:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-4 r = reserved W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
TXTIME: TX TURNAROUND TIME REGISTER (ADDRESS: 0x27)
R/W-0 R/W-0 R/W-1 r R/W-0 r R/W-0 r R/W-0 r bit 0
R/W-1
TURNTIME3 TURNTIME2 TURNTIME1 TURNTIME0
TURNTIME: Turnaround Time bits Transmission to reception and reception to transmission turnaround time. Refer to IEEE 802.15.4™-2003 Standard, Table 18: PHY Constants and Section 7.5.6.4.2 “Acknowledgment”. TURNTIME + RFSTBL = aTurnaroundTime = 12 symbols. Units: symbol period (16 μs). Default value: 0x4. Minimum value: 0x2. Recommended values: TURNTIME = 0x3 and RFSTBL = 0x9. Reserved: Maintain as 0x8
bit 3-0
DS39776B-page 42
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
REGISTER 2-38:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
HSYMTMRL: HALF SYMBOL TIMER LOW BYTE REGISTER (ADDRESS: 0x28)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0 HSYMTMR5 HSYMTMR4 HSYMTMR3 HSYMTMR2 HSYMTMR1 HSYMTMR0
R/W-0
HSYMTMR7 HSYMTMR6
HSYMTMR: Half Symbol Timer Low Byte bits Units: 8 μs.
REGISTER 2-39:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0
HSYMTMRH: HALF SYMBOL TIMER HIGH BYTE REGISTER (ADDRESS: 0x29)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0
R/W-0
HSYMTMR15 HSYMTMR14 HSYMTMR13 HSYMTMR12 HSYMTMR11 HSYMTMR10 HSYMTMR09 HSYMTMR08
W = Writable bit ‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
HSYMTMR: Half Symbol Timer High Byte bits Units: 8 μs.
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 43
MRF24J40
REGISTER 2-40:
R/W-0 r bit 7 Legend: R = Readable bit -n = Value at POR bit 7-3 bit 2 bit 1 bit 0 r = reserved W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
SOFTRST: SOFTWARE RESET REGISTER (ADDRESS: 0x2A)
R/W-0 r R/W-0 r R/W-0 r R/W-0 r W-0 RSTPWR W-0 RSTBB W-0 RSTMAC bit 0
Reserved: Maintain as ‘0’ RSTPWR: Power Management Reset bit 1 = Reset power management circuitry (bit is automatically cleared to ‘0’ by hardware) RSTBB: Baseband Reset bit 1 = Reset baseband circuitry (bit is automatically cleared to ‘0’ by hardware) RSTMAC: MAC Reset bit 1 = Reset MAC circuitry (bit is automatically cleared to ‘0’ by hardware)
DS39776B-page 44
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
REGISTER 2-41:
W-0 SECIGNORE bit 7 Legend: R = Readable bit -n = Value at POR bit 7 bit 6 bit 5-3 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
SECCON0: SECURITY CONTROL 0 REGISTER (ADDRESS: 0x2C)
W-0 R/W-0 R/W-0 R/W-0 R/W-0 TXNCIPHER2 R/W-0 TXNCIPHER1 R/W-0 TXNCIPHER0 bit 0 RXCIPHER1 RXCIPHER0
SECSTART RXCIPHER2
SECIGNORE: RX Security Decryption Ignore bit 1 = Ignore decryption process SECSTART: RX Security Decryption Start bit 1 = Start decryption process
RXCIPHER: RX FIFO Security Suite Select bits 111 = AES-CBC-MAC-32 110 = AES-CBC-MAC-64 101 = AES-CBC-MAC-128 100 = AES-CCM-32 011 = AES-CCM-64 010 = AES-CCM-128 001 = AES-CTR 000 = None (default) TXNCIPHER: TX Normal FIFO Security Suite Select bits 111 = AES-CBC-MAC-32 110 = AES-CBC-MAC-64 101 = AES-CBC-MAC-128 100 = AES-CCM-32 011 = AES-CCM-64 010 = AES-CCM-128 001 = AES-CTR 000 = None (default)
bit 2-0
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 45
MRF24J40
REGISTER 2-42:
R/W-0 r bit 7 Legend: R = Readable bit -n = Value at POR bit 7 bit 6-4 r = reserved W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
SECCON1: SECURITY CONTROL 1 REGISTER (ADDRESS: 0x2D)
R/W-0 TXBCIPHER1 R/W-0 TXBCIPHER0 R/W-0 r R/W-0 r R/W-0 DISDEC R/W-0 DISENC bit 0
R/W-0 TXBCIPHER2
Reserved: Read as ‘0’ TXBCIPHER: TX Beacon FIFO Security Suite Select bits
111 = AES-CBC-MAC-32 110 = AES-CBC-MAC-64 101 = AES-CBC-MAC-128 100 = AES-CCM-32 011 = AES-CCM-64 010 = AES-CCM-128 001 = AES-CTR 000 = None (default)
bit 3-2 bit 1 bit 0
Reserved: Read as ‘0’ DISDEC: Disable Decryption Function bit 1 = Will not generate a security interrupt if security enabled bit is set in the MAC header DISENC: Disable Encryption Function bit
1 = Will not encrypt packet if transmit security is enabled
DS39776B-page 46
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
REGISTER 2-43:
R/W-0 RFSTBL3 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-4 bit 3-0 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
TXSTBL: TX STABILIZATION REGISTER (ADDRESS: 0x2E)
R/W-1 RFSTBL1 R/W-1 RFSTBL0 R/W-0 MSIFS3 R/W-1 MSIFS2 R/W-0 MSIFS1 R/W-1 MSIFS0 bit 0
R/W-1 RFSTBL2
RFSTBL: VCO Stabilization Period bits Units: symbol period (16 μs). Default value: 0x7. Recommended value: 0x9. MSIFS: Minimum Short Interframe Spacing bits The minimum number of symbols forming a Short Interframe Spacing (SIFS) period. Refer to IEEE 802.15.4™-2003 Standard, Section 7.5.1.2 “IFS” and Table 70: MAC Sublayer Constants. MSIFS + RFSTBL = aMinSIFSPeriod = 12 symbols. Units: symbol period (16 μs). Default value: 0x5. Recommended values: MSIFS = 0x3 and RFSTBL = 0x9.
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 47
MRF24J40
REGISTER 2-44:
R-0 r bit 7 Legend: R = Readable bit -n = Value at POR bit 7 bit 6 r = reserved W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
RXSR: RX MAC STATUS REGISTER (ADDRESS: 0x30)
R-0 BATIND(1) R-0 r R-0 r R-0 r R-0 r R/W-0 r bit 0
R/W-0 UPSECERR
Reserved: Read as ‘0’ UPSECERR: MIC Error in Upper Layer Security Mode bit 1 = MIC error occurred. Write ‘1’ to clear. 0 = MIC error did not occur BATIND: Battery Low-Voltage Indicator bit(1) 1 = Supply voltage is lower than battery low-voltage threshold 0 = Supply voltage is greater than battery low-voltage threshold Reserved: Maintain as ‘0’ Battery low-voltage threshold (BATTH) value set in the RFCON5 (0X205) register and the Battery Monitor Enable (BATEN) bit located in the RFCON6 (0x206) register.
bit 5
bit 4-0 Note 1:
DS39776B-page 48
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
REGISTER 2-45:
RC-0 SLPIF(1) bit 7 Legend: R = Readable bit -n = Value at POR bit 7 RC = Read to clear bit W = Writable bit ‘1’ = Bit is set SLPIF: Sleep Alert Interrupt bit(1) 1 = Sleep alert interrupt occurred 0 = No Sleep alert interrupt occurred WAKEIF: Wake-up Alert Interrupt bit(1) 1 = A wake-up alert interrupt occurred 0 = No wake-up alert interrupt occurred HSYMTMRIF: Half Symbol Timer Interrupt bit(1) 1 = A half symbol timer interrupt occurred 0 = No half symbol timer interrupt occurred SECIF: Security Key Request Interrupt bit(1) 1 = A security key request interrupt occurred 0 = No security key request interrupt occurred RXIF: RX FIFO Reception Interrupt bit(1) 1 = An RX FIFO reception interrupt occurred 0 = No RX FIFO reception interrupt occurred TXG2IF: TX GTS2 FIFO Transmission Interrupt bit(1) 1 = A TX GTS2 FIFO transmission interrupt occurred 0 = No TX GTS2 FIFO transmission interrupt occurred TXG1IF: TX GTS1 FIFO Transmission Interrupt bit(1) 1 = A TX GTS1 FIFO transmission interrupt occurred 0 = No TX GTS1 FIFO transmission interrupt occurred TXNIF: TX Normal FIFO Release Interrupt bit(1) 1 = A TX Normal FIFO transmission interrupt occurred 0 = No TX Normal FIFO transmission interrupt occurred Interrupt bits are cleared to ‘0’ when the INTSTAT register is read. U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
INTSTAT: INTERRUPT STATUS REGISTER (ADDRESS: 0x31)
RC-0 WAKEIF
(1)
RC-0 HSYMTMRIF
(1)
RC-0 SECIF
(1)
RC-0 RXIF
(1)
RC-0 TXG2IF
(1)
RC-0 TXG1IF
(1)
RC-0 TXNIF(1) bit 0
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
Note 1:
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 49
MRF24J40
REGISTER 2-46:
R/W-1 SLPIE bit 7 Legend: R = Readable bit -n = Value at POR bit 7 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
INTCON: INTERRUPT CONTROL REGISTER (ADDRESS: 0x32)
R/W-1 HSYMTMRIE R/W-1 SECIE R/W-1 RXIE R/W-1 TXG2IE R/W-1 TXG1IE R/W-1 TXNIE bit 0
R/W-1 WAKEIE
SLPIE: Sleep Alert Interrupt Enable bit 1 = Disables the Sleep alert interrupt (default) 0 = Enables the Sleep alert interrupt WAKEIE: Wake-up Alert Interrupt Enable bit 1 = Disables the wake-up alert interrupt (default) 0 = Enables the wake-up alert interrupt HSYMTMRIE: Half Symbol Timer Interrupt Enable bit 1 = Disables the half symbol timer interrupt (default) 0 = Enables the half symbol timer interrupt SECIE: Security Key Request Interrupt Enable bit 1 = Disables the security key request interrupt (default) 0 = Enable security key request interrupt RXIE: RX FIFO Reception Interrupt Enable bit 1 = Disables the RX FIFO reception interrupt (default) 0 = Enables the RX FIFO reception interrupt TXG2IE: TX GTS2 FIFO Transmission Interrupt Enable bit 1 = Disables the TX GTS2 FIFO transmission interrupt (default) 0 = Enables the TX GTS2 FIFO transmission interrupt TXG1IE: TX GTS1 FIFO Transmission Interrupt Enable bit 1 = Disables the TX GTS1 FIFO transmission interrupt (default) 0 = Enables the TX GTS1 FIFO transmission interrupt TXNIE: TX Normal FIFO Transmission Interrupt Enable bit 1 = Disables the TX Normal FIFO transmission interrupt (default) 0 = Enables the TX Normal FIFO transmission interrupt
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
DS39776B-page 50
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
REGISTER 2-47:
R/W-0 r bit 7 Legend: R = Readable bit -n = Value at POR bit 7-6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 r = reserved W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
GPIO: GPIO PORT REGISTER (ADDRESS: 0x33)
R/W-0 r R/W-0 GPIO5 R/W-0 GPIO4 R/W-0 GPIO3 R/W-0 GPIO2 R/W-0 GPIO1 R/W-0 GPIO0 bit 0
Reserved: Maintain as ‘0’ GPIO5: General Purpose I/O GPIO5 bit GPIO4: General Purpose I/O GPIO4 bit GPIO3: General Purpose I/O GPIO3 bit GPIO2: General Purpose I/O GPIO2 bit GPIO1: General Purpose I/O GPIO1 bit GPIO0: General Purpose I/O GPIO0 bit
REGISTER 2-48:
R/W-0 r bit 7 Legend: R = Readable bit -n = Value at POR bit 7-6 bit 5
TRISGPIO: GPIO PIN DIRECTION REGISTER (ADDRESS: 0x34)
R/W-0 r R/W-0 TRISGP5 R/W-0 TRISGP4 R/W-0 TRISGP3 R/W-0 TRISGP2 R/W-0 TRISGP1 R/W-0 TRISGP0 bit 0 r = reserved W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
Reserved: Maintain as ‘0’ TRISGP5: General Purpose I/O GPIO5 Direction bit 1 = Output 0 = Input (default) TRISGP4: General Purpose I/O GPIO4 Direction bit 1 = Output 0 = Input (default) TRISGP3: General Purpose I/O GPIO3 Direction bit 1 = Output 0 = Input (default) TRISGP2: General Purpose I/O GPIO2 Direction bit 1 = Output 0 = Input (default) TRISGP1: General Purpose I/O GPIO1 Direction bit 1 = Output 0 = Input (default) TRISGP0: General Purpose I/O GPIO0 Direction bit 1 = Output 0 = Input (default)
bit 4
bit 3
bit 2
bit 1
bit 0
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 51
MRF24J40
REGISTER 2-49:
W-0 SLPACK bit 7 Legend: R = Readable bit -n = Value at POR bit 7 bit 6-0 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
SLPACK: SLEEP ACKNOWLEDGEMENT AND WAKE-UP COUNTER REGISTER (ADDRESS: 0x35)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 WAKECNT2 R/W-0 WAKECNT1 R/W-0 WAKECNT0 bit 0 WAKECNT5 WAKECNT4 WAKECNT3
WAKECNT6
SLPACK: Sleep Acknowledge bit 1 = Places the MRF24J40 to Sleep (automatically cleared to ‘0’ by hardware) WAKECNT: Wake Count bits Main oscillator (20 MHz) start-up timer counter bits. WAKECNT is a 9-bit value. WAKECNT bits are located in RFCTL. Units: Sleep clock (SLPCLK) period.(1) Default value: 0x00. Recommended value: 0x05F. Sleep Clock (SLPCLK) period depends on the Sleep Clock Selection (SLPCLKSEL) RFCON7 and Sleep Clock Divisor (SLPCLKDIV) SLPCON1.
Note 1:
DS39776B-page 52
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
REGISTER 2-50:
W-0 r bit 7 Legend: R = Readable bit -n = Value at POR bit 7-5 bit 4-3 r = reserved W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
RFCTL: RF MODE CONTROL REGISTER (ADDRESS: 0x36)
R/W-0 r R/W-0 r R/W-0 R/W-0 R/W-0 RFRST
(2)
R/W-0 r
R/W-0 r bit 0
WAKECNT8 WAKECNT7
Reserved: Maintain as ‘0’ WAKECNT: Wake Count bits Main oscillator (20 MHz) start-up timer counter bits. WAKECNT is a 9-bit value. WAKECNT bits are located in SLPACK. Units: Sleep clock (SLPCLK) period.(1) Default value: 0x00. Recommended value: 0x05F RFRST: RF State Machine Reset bit(2) 1 = Hold RF state machine in Reset 0 = Normal operation of RF state machine Reserved: Maintain as ‘0’ Sleep clock (SLPCLK) period depends on the Sleep clock selection (SLPCLKSEL) RFCON7 and Sleep clock divisor (SLPCLKDIV) SLPCON1. Perform RF Reset by setting RFRST = 1 and then RFRST = 0. Delay at least 192 μs after performing to allow RF circuitry to calibrate.
bit 2
bit 1-0 Note 1: 2:
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 53
MRF24J40
REGISTER 2-51:
W-0 UPDEC bit 7 Legend: R = Readable bit -n = Value at POR bit 7 bit 6 bit 5-3 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown W-0
SECCR2: SECURITY CONTROL 2 REGISTER (ADDRESS: 0x37)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0
UPENC TXG2CIPHER2 TXG2CIPHER1 TXG2CIPHER0 TXG1CIPHER2 TXG1CIPHER1 TXG1CIPHER0
UPDEC: Upper Layer Security Decryption Mode bit 1 = Perform upper layer decryption using TX Normal FIFO. Automatically cleared to ‘0’ when finished. UPENC: Upper Layer Security Encryption Mode bit
1 = Perform upper layer encryption using TX Normal FIFO. Automatically cleared to ‘0’ when finished.
TXG2CIPHER-: TX GTS2 FIFO Security Suite Select bits
111 = AES-CBC-MAC-32 110 = AES-CBC-MAC-64 101 = AES-CBC-MAC-128 100 = AES-CCM-32 011 = AES-CCM-64 010 = AES-CCM-128 001 = AES-CTR 000 = None (default)
bit 2-0
TXG1CIPHER-: TX GTS1 FIFO Security Suite Select bits
111 = AES-CBC-MAC-32 110 = AES-CBC-MAC-64 101 = AES-CBC-MAC-128 100 = AES-CCM-32 011 = AES-CCM-64 010 = AES-CCM-128 001 = AES-CTR 000 = None (default)
DS39776B-page 54
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
REGISTER 2-52:
R/W-0 r bit 7 Legend: R = Readable bit -n = Value at POR bit 7-1 bit 0 r = reserved W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
BBREG0: BASEBAND 0 REGISTER (ADDRESS: 0x38)
R/W-0 r R/W-0 r R/W-0 r R/W-0 r R/W-0 r R/W-0 r R/W-0 TURBO bit 0
Reserved: Maintain as ‘0’ TURBO: Turbo Mode Enable bit 1 = Turbo mode (625 kbps) 0 = IEEE 802.15.4™ mode (250 kbps)
REGISTER 2-53:
R/W-0 r bit 7 Legend: R = Readable bit -n = Value at POR bit 7-3 bit 2 r
BBREG1: BASEBAND 1 REGISTER (ADDRESS: 0x39)
R/W-0 r R/W-0 r R/W-0 r R/W-0 RXDECINV R/W-0 r R/W-0 r bit 0 r = reserved W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
R/W-0
Reserved: Maintain as ‘0’ RXDECINV: RX Decode Inversion bit 1 = RX decode symbol sign inverted 0 = RX decode symbol sign not inverted (default) Reserved: Maintain as ‘0’
bit 1-0
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 55
MRF24J40
REGISTER 2-54:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-6 r = reserved W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
BBREG2: BASEBAND 2 REGISTER (ADDRESS: 0x3A)
R/W-0 R/W-0 CCACSTH2 R/W-1 CCATCSH1 R/W-0 CCACSTH0 R/W-0 r R/W-0 r bit 0
R/W-1
CCAMODE1 CCAMODE0 CCACSTH3
CCAMODE: Clear Channel Assessment (CCA) Mode bits 11 = CCA Mode 3: Carrier sense with energy above threshold. CCA shall report a busy medium only upon the detection of a signal with the modulation and spreading characteristics of IEEE 802.15.4™ with energy above the Energy Detection (ED) threshold. 10 = CCA Mode 1: Energy above threshold. CCA shall report a busy medium upon detecting any energy above the Energy Detection (ED) threshold. 01 = CCA Mode 2: Carrier sense only. CCA shall report a busy medium only upon the detection of a signal with the modulation and spreading characteristics of IEEE 802.15.4. This signal may be above or below the Energy Detection (ED) threshold (default). 00 = Reserved CCACSTH: Clear Channel Assessment (CCA) Carrier Sense (CS) Threshold bits 1111 = 1110 = Recommended value 1101 = ... 0010 = (default) 0001 = 0000 = Reserved: Maintain as ‘0’
bit 5-2
bit 1-0
REGISTER 2-55:
R/W-1 bit 7
BBREG3: BASEBAND 3 REGISTER (ADDRESS: 0x3B)
R/W-1 R/W-0 R/W-1 R/W-1 R/W-0 PREDETTH1 R/W-0 PREDETTH0 R/W-0
PREVALIDTH3 PREVALIDTH2 PREVALIDTH1 PREVALIDTH0 PREDETTH2
r
bit 0
Legend: R = Readable bit -n = Value at POR
bit 7-4
r = reserved W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
PREVALIDTH: Preamble Search Energy Valid Threshold bits 1101 = IEEE 802.15.4™ (250 kbps) optimized value (default) 0011 = Turbo mode (625 kbps) optimized value PREDETTH: Preamble Search Energy Detection Threshold bits Default value: 0x4.
bit 3-1 bit 0
Reserved: Maintain as ‘0’
DS39776B-page 56
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
REGISTER 2-56:
R/W-1 CSTH2 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-5 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
BBREG4: BASEBAND 4 REGISTER (ADDRESS: 0x3C)
R/W-0 CSTH0 R/W-1 PRECNT2 R/W-1 PRECNT1 R/W-1 PRECNT0 R/W-0 R/W-0
R/W-0 CSTH1
r
r
bit 0
CSTH: Carrier Sense Threshold bits 100 = IEEE 802.15.4™ (250 kbps) optimized value (default) 010 = Turbo mode (625 kbps) optimized value PRECNT: Preamble Counter Threshold bits 111 = Optimized value (default)
bit 4-2 bit 1-0
Reserved: Maintain as ‘0’
REGISTER 2-57:
W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7 bit 6
BBREG6: BASEBAND 6 REGISTER (ADDRESS: 0x3E)
R/W-0 R/W-0 r R/W-0 r R/W-0 r R/W-0 r R/W-0 r R-1 RSSIRDY bit 0 r = reserved W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
RSSIMODE1 RSSIMODE2
RSSIMODE1: RSSI Mode 1 bit 1 = Initiate RSSI calculation (bit is automatically cleared to ‘0’ by hardware) RSSIMODE2: RSSI Mode 2 bit 1 = Calculate RSSI for each received packet. The RSSI value is stored in RXFIFO. 0 = RSSI calculation is not performed for each received packet (default) Reserved: Maintain as ‘0’ RSSIRDY: RSSI Ready Signal for RSSIMODE1 bit If RSSIMODE1 = 1, then 1 = RSSI calculation has finished and the RSSI value is ready 0 = RSSI calculation in progress
bit 5-1 bit 0
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 57
MRF24J40
REGISTER 2-58:
R/W-0 CCAEDTH7 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
CCAEDTH: ENERGY DETECTION THRESHOLD FOR CCA REGISTER (ADDRESS: 0x3F)
R/W-0 CCAEDTH5 R/W-0 CCAEDTH4 R/W-0 CCAEDTH3 R/W-0 CCAEDTH2 R/W-0 CCAEDTH1 R/W-0 CCAEDTH0 bit 0
R/W-0 CCAEDTH6
CCAEDTH: Clear Channel Assessment (CCA) Energy Detection (ED) Mode bits If the in-band signal strength is greater than the threshold, the channel is busy. The 8-bit value can be mapped to a power level according to RSSI. Refer to Section 3.6 “Received Signal Strength Indicator (RSSI)/Energy Detection (ED)”. Default value: 0x00. Recommended value: 0x60 (approximately -69 dBm).
DS39776B-page 58
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
2.15.4 LONG ADDRESS CONTROL REGISTERS DETAIL RFCON0: RF CONTROL 0 REGISTER (ADDRESS: 0x200)
R/W-0 CHANNEL2 R/W-0 R/W-0 R/W-0 RFOPT3 R/W-0 RFOPT2 R/W-0 RFOPT1 R/W-0 RFOPT0 bit 0 CHANNEL1 CHANNEL0
REGISTER 2-59:
R/W-0 CHANNEL3 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-4
W = Writable bit ‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
CHANNEL: Channel Number bits 0000 = Channel 11 (2405 MHz) (default) 0001 = Channel 12 (2410 MHz) 0010 = Channel 13 (2415 MHz) … 1111 = Channel 26 (2480 MHz) RFOPT: RF Optimize Control bits Default value: 0x0. Recommended value: 0x2.
bit 3-0
REGISTER 2-60:
R/W-0 VCOOPT7 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0
RFCON1: RF CONTROL 1 REGISTER (ADDRESS: 0x201)
R/W-0 R/W-0 VCOOPT5 R/W-0 VCOOPT4 R/W-0 VCOOPT3 R/W-0 VCOOPT2 R/W-0 VCOOPT1 R/W-0 VCOOPT0 bit 0
VCOOPT6
W = Writable bit ‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
VCOOPT: VCO Optimize Control bits Default value: 0x0. Recommended value: 0x1.
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 59
MRF24J40
REGISTER 2-61:
R/W-0 PLLEN bit 7 Legend: R = Readable bit -n = Value at POR bit 7 r = reserved W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
(1)
RFCON2: RF CONTROL 2 REGISTER (ADDRESS: 0x202)
R/W-0 r R/W-0 r R/W-0 r R/W-0 r R/W-0 r R/W-0 r R/W-0 r bit 0
PLLEN: PLL Enable bit(1) 1 = Enabled 0 = Disabled (default) Reserved: Maintain as ‘0’ PLL must be enabled for RF reception or transmission.
bit 6-0 Note 1:
REGISTER 2-62:
R/W-0 TXPWRL1 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-6
RFCON3: RF CONTROL 3 REGISTER (ADDRESS: 0x203)
R/W-0 R/W-0 TXPWRS2 R/W-0 TXPWRS1 R/W-0 TXPWRS0 R/W-0 r R/W-0 r R/W-0 r bit 0
TXPWRL0
W = Writable bit ‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
TXPWRL: Large Scale Control for TX Power bits 11 = -30 dB 10 = -20 dB 01 = -10 dB 00 = 0 dB TXPWRS: Small Scale Control for TX Power bits 000 = 0 dB 001 = -0.5 dB 010 = -1.2 dB 011 = -1.9 dB 100 = -2.8 dB 101 = -3.7 dB 110 = -4.9 dB 111 = -6.3 dB Reserved: Maintain as ‘0’
bit 5-3
bit 2-0
DS39776B-page 60
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
REGISTER 2-63:
R/W-0 BATTH3(1) bit 7 Legend: R = Readable bit -n = Value at POR bit 7-4 r = reserved W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
RFCON5: RF CONTROL 5 REGISTER (ADDRESS: 0x205)
R/W-0 R/W-0 BATTH1
(1)
R/W-0 BATTH0
(1)
R/W-0 r
R/W-0 r
R/W-0 r
R/W-0 r bit 0
BATTH2
(1)
BATTH: Battery Low-Voltage Threshold bits(1) 1110 = 3.5V 1101 = 3.3V 1100 = 3.2V 1011 = 3.1V 1010 = 2.8V 1001 = 2.7V 1000 = 2.6V 0111 = 2.5V 0110 = Undefined ... 0000 = Undefined Reserved: Maintain as ‘0’ The Battery Low-Voltage Indicator (BATIND) bit is located in the RXSR (0x30) register and the Battery Monitor Enable (BATEN) bit is located in the RFCON6 (0x206) register.
bit 3-0 Note 1:
REGISTER 2-64:
R/W-0 TXFIL bit 7 Legend: R = Readable bit -n = Value at POR bit 7 bit 6-5 bit 4 r
RFCON6: RF CONTROL 6 REGISTER (ADDRESS: 0x206)
R/W-0 r R/W-0 20MRECVR R/W-0 BATEN(1) R/W-0 r R/W-0 r R/W-0 r bit 0 r = reserved W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
R/W-0
TXFIL: TX Filter Control bit Default value: ‘0’. Recommended value: ‘1’. Reserved: Maintain as ‘0’ 20MRECVR: 20 MHz Clock Recovery Control bits Recovery from Sleep control. 1 = Less than 1 ms (recommended) 0 = Less than 3 ms (default) BATEN: Battery Monitor Enable bit(1) 1 = Enabled 0 = Disabled (default) Reserved: Maintain as ‘0’ The Battery Low-Voltage Threshold (BATTH) bits are located in the RFCON5 (0x205) register and the Battery Low-Voltage Indicator (BATIND) bit is located in the RXSR (0x30) register.
bit 3
bit 2-0 Note 1:
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 61
MRF24J40
REGISTER 2-65:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-6 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
RFCON7: RF CONTROL 7 REGISTER (ADDRESS: 0x207)
R/W-0 R/W-0 r R/W-0 r R/W-0 r R/W-0 r R/W-0 r R/W-0 r bit 0
SLPCLKSEL1 SLPCLKSEL0
SLPCLKSEL: Sleep Clock Selection bits 10 = 100 kHz internal oscillator 01 = 32 kHz external crystal oscillator Reserved: Maintain as ‘0’
bit 5-0
REGISTER 2-66:
R/W-0 — bit 7 Legend: R = Readable bit -n = Value at POR bit 7-5 bit 4 bit 3-0
RFCON8: RF CONTROL 8 REGISTER (ADDRESS: 0x208)
R/W-0 — R/W-0 RFVCO R/W-0 — R/W-0 — R/W-0 — R/W-0 — bit 0 —
R/W-0
W = Writable bit ‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
Reserved: Maintain as ‘0’ RFVCO: VCO Control bit Default value: ‘0’. Recommended value: ‘1’. Reserved: Maintain as ‘0’
DS39776B-page 62
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
REGISTER 2-67:
R-0 SLPCAL7 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
SLPCAL0: SLEEP CALIBRATION 0 REGISTER (ADDRESS: 0x209)
R-0 R-0 SLPCAL5 R-0 SLPCAL4 R-0 SLPCAL3 R-0 SLPCAL2 R-0 SLPCAL1 R-0 SLPCAL0 bit 0
SLPCAL6
SLPCAL: Sleep Calibration Counter bits 20-bit counter to calibrate the Sleep Clock (SLPCLK) period. The counter contains the count of 16 SLPCLK periods. The SLPCLK period depends on the Sleep Clock Selection (SLPCLKSEL), RFCON7 and Sleep Clock Divisor (SLPCLKDIV) SLPCON1 bits. Units: tick (50 ns).
REGISTER 2-68:
R-0 SLPCAL15 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0
SLPCAL1: SLEEP CALIBRATION 1 REGISTER (ADDRESS: 0x20A)
R-0 R-0 SLPCAL13 R-0 SLPCAL12 R-0 SLPCAL11 R-0 SLPCAL10 R-0 SLPCAL9 R-0 SLPCAL8 bit 0
SLPCAL14
W = Writable bit ‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
SLPCAL: Sleep Calibration Counter bits 20-bit counter to calibrate the Sleep Clock (SLPCLK) period. The counter contains the count of 16 SLPCLK periods. The SLPCLK period depends on the Sleep Clock Selection (SLPCLKSEL), RFCON7 and Sleep Clock Divisor (SLPCLKDIV) SLPCON1 bits. Units: tick (50 ns).
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 63
MRF24J40
REGISTER 2-69:
R-0 SLPCALRDY bit 7 Legend: R = Readable bit -n = Value at POR bit 7 bit 6-5 bit 4 bit 3-0 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
SLPCAL2: SLEEP CALIBRATION 2 REGISTER (ADDRESS: 0x20B)
R/W-0 r R/W-0 r W-0 SLPCALEN R-0 SLPCAL19 R-0 SLPCAL18 R-0 SLPCAL17 R-0 SLPCAL16 bit 0
SLPCALRDY: Sleep Calibration Ready bit 1 = Sleep calibration count is complete. Reserved: Maintain as ‘0’ SLPCALEN: Sleep Calibration Enable bit 1 = Starts the Sleep calibration counter. Automatically cleared to ‘0’ by hardware. SLPCAL: Sleep Calibration Counter bits 20-bit counter to calibrate the Sleep Clock (SLPCLK) period. The counter contains the count of 16 SLPCLK periods. The SLPCLK period depends on the Sleep Clock Selection (SLPCLKSEL), RFCON7 and Sleep Clock Divisor (SLPCLKDIV) SLPCON1 bits. Units: tick (50 ns).
DS39776B-page 64
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
REGISTER 2-70:
R-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-5 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
RFSTATE: RF STATE REGISTER (ADDRESS: 0x20F)
R-0 R-0 U-0 — U-0 — U-0 — U-0 — U-0 — bit 0
RFSTATE2(1) RFSTATE1(1) RFSTATE0(1)
RFSTATE: RF State Machine bits(1) 111 = RTSEL2 110 = RTSEL1 101 = RX 100 = TX 011 = CALVCO 010 = SLEEP 001 = CALFIL 000 = RESET Reserved: Maintain as ‘0’
bit 4-0
REGISTER 2-71:
R-0 RSSI7(1) bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0 Note 1:
RSSI: AVERAGED RSSI VALUE REGISTER (ADDRESS: 0x210)
R-0 R-0 RSSI5(1) R-0 RSSI4(1) R-0 RSSI3(1) R-0 RSSI2(1) R-0 RSSI1(1) R-0 RSSI0(1) bit 0
RSSI6(1)
W = Writable bit ‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
RSSI: Averaged RSSI Value bits(1) The number of RSSI samples averaged, set by RSSINUMx (0x25) bits.
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 65
MRF24J40
REGISTER 2-72:
R/W-0 r bit 7 Legend: R = Readable bit -n = Value at POR bit 7-2 bit 1 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
SLPCON0: SLEEP CLOCK CONTROL 0 REGISTER (ADDRESS: 0x211)
R/W-0 r R/W-0 r R/W-0 r R/W-0 r R/W-0 r R/W-0 INTEDGE
(1)
R/W-0 SLPCLKEN bit 0
Reserved: Maintain as ‘0’ INTEDGE: Interrupt Edge Polarity bit(1) 1 = Rising edge 0 = Falling edge (default) SLPCLKEN: Sleep Clock Enable bit 1 = Disabled 0 = Enabled (default) Ensure that the interrupt polarity matches the interrupt pin polarity on the host microcontroller.
bit 0
Note 1:
REGISTER 2-73:
R/W-0 r bit 7 Legend: R = Readable bit -n = Value at POR bit 7-6 bit 5
SLPCON1: SLEEP CLOCK CONTROL 1 REGISTER (ADDRESS: 0x220)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0 r = reserved W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
R/W-0 r
CLKOUTEN SLPCLKDIV4 SLPCLKDIV3 SLPCLKDIV2 SLPCLKDIV1 SLPCLKDIV0
Reserved: Maintain as ‘0’ CLKOUTEN: CLKOUT Pin Enable bit The CLKOUT pin 26 feature has been discontinued. It is recommended that it be disabled. 1 = Disable (recommended) 0 = Enable (default) SLPCLKDIV: Sleep Clock Divisor bits Sleep clock is divided by 2n, where n = SLPCLKDIV.(1) Default value: 0x00. If the Sleep Clock Selection, SLPCLKSEL (0x207 WAKECNT.
Note 1:
REGISTER 2-75:
R/W-0 r bit 7 Legend: R = Readable bit -n = Value at POR bit 7-3 bit 2-0
WAKETIMEH: WAKE-UP TIME MATCH VALUE HIGH REGISTER (ADDRESS: 0x223)
R/W-0 r R/W-0 r R/W-0 r R/W-0 WAKETIME10(1) R/W-0 WAKETIME9(1) R/W-0 WAKETIME8(1) bit 0 r = reserved W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown r
R/W-0
Reserved: Maintain as ‘0’ WAKETIME: Wake-up Time Counted by SLPCLK bits(1) WAKETIME is an 11-bit value that is compared with the Main Counter (MAINCNT) to signal the time to enable (wake-up) the 20 MHz main oscillator when the MRF24J40 is using the Sleep mode timers. Default value: 0x00A. Minimum value: 0x001. Rule: WAKETIME > WAKECNT.
Note 1:
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 67
MRF24J40
REGISTER 2-76:
R/W-0 REMCNT7 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
REMCNTL: REMAIN COUNTER LOW REGISTER (ADDRESS: 0x224)
R/W-0 R/W-0 REMCNT5 R/W-0 REMCNT4 R/W-0 REMCNT3 R/W-0 REMCNT2 R/W-0 REMCNT1 R/W-0 REMCNT0 bit 0
REMCNT6
REMCNT: Remain Counter bits Remain counter is a 16-bit counter. Together with the main counter times events: Beacon Interval (BI) and inactive period for beacon-enabled devices and Sleep interval for nonbeacon-enabled devices. Units: tick (50 ns).
REGISTER 2-77:
R/W-0 REMCNT15 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0
REMCNTH: REMAIN COUNTER HIGH REGISTER (ADDRESS: 0x225)
R/W-0 REMCNT13 R/W-0 REMCNT12 R/W-0 REMCNT11 R/W-0 REMCNT10 R/W-0 REMCNT9 R/W-0 REMCNT8 bit 0
R/W-0 REMCNT14
W = Writable bit ‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
REMCNT: Remain Counter bits Remain counter is a 16-bit counter. Together with the main counter times events: Beacon Interval (BI) and inactive period for beacon-enabled devices and Sleep interval for nonbeacon-enabled devices. Units: tick (50 ns).
DS39776B-page 68
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
REGISTER 2-78:
R/W-0 MAINCNT7 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
MAINCNT0: MAIN COUNTER 0 REGISTER (ADDRESS: 0x226)
R/W-0 MAINCNT5 R/W-0 MAINCNT4 R/W-0 MAINCNT3 R/W-0 MAINCNT2 R/W-0 MAINCNT1 R/W-0 MAINCNT0 bit 0
R/W-0 MAINCNT6
MAINCNT: Main Counter bits Main counter is a 26-bit counter. Together with the remain counter times events: Beacon Interval (BI) and inactive period for beacon-enabled devices and Sleep interval for nonbeacon-enabled devices. Units: SLPCLK.(1) Sleep Clock (SLPCLK) period depends on the Sleep Clock Selection (SLPCLKSEL) RFCON and Sleep Clock Divisor (SLPCLKDIV) CLKCON bits.
Note 1:
REGISTER 2-79:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0
MAINCNT1: MAIN COUNTER 1 REGISTER (ADDRESS: 0x227)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 MAINCNT9 R/W-0 MAINCNT8 bit 0
R/W-0
MAINCNT15 MAINCNT14 MAINCNT13 MAINCNT12 MAINCNT11 MAINCNT10
W = Writable bit ‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
MAINCNT: Main Counter bits Main counter is a 26-bit counter. Together with the remain counter times events: Beacon Interval (BI) and inactive period for beacon-enabled devices and Sleep interval for nonbeacon-enabled devices. Units: SLPCLK.(1) Sleep Clock (SLPCLK) period depends on the Sleep Clock Selection (SLPCLKSEL) RFCON and Sleep Clock Divisor (SLPCLKDIV) CLKCON bits.
Note 1:
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 69
MRF24J40
REGISTER 2-80:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
MAINCNT2: MAIN COUNTER 2 REGISTER (ADDRESS: 0x228)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0
R/W-0
MAINCNT23 MAINCNT22 MAINCNT21 MAINCNT20 MAINCNT19 MAINCNT18 MAINCNT17 MAINCNT16
MAINCNT: Main Counter bits Main counter is a 26-bit counter. Together with the remain counter times events: Beacon Interval (BI) and inactive period for beacon-enabled devices and Sleep interval for nonbeacon-enabled devices. Units: SLPCLK.(1) Sleep Clock (SLPCLK) period depends on the Sleep Clock Selection (SLPCLKSEL) RFCON and Sleep Clock Divisor (SLPCLKDIV) CLKCON bits.
Note 1:
REGISTER 2-81:
W-0 STARTCNT bit 7 Legend: R = Readable bit -n = Value at POR bit 7 r
MAINCNT3: MAIN COUNTER 3 REGISTER (ADDRESS: 0x229)
R/W-0 r R/W-0 r R/W-0 r R/W-0 r R/W-0 MAINCNT25 R/W-0 MAINCNT24 bit 0
R/W-0
W = Writable bit ‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
STARTCNT: Start Sleep Mode Counters bits 1 = Trigger Sleep mode for Nonbeacon Enable mode (BO = 0xF and Slotted = 0). Bit automatically clears to ‘0’. Reserved: Maintain as ‘0’ MAINCNT: Main Counter bits Main counter is a 26-bit counter. Together with the remain counter times events: Beacon Interval (BI) and inactive period for beacon-enabled devices and Sleep interval for nonbeacon-enabled devices. Units: SLPCLK.(1) Sleep Clock (SLPCLK) period depends on the Sleep Clock Selection (SLPCLKSEL) RFCON and Sleep Clock Divisor (SLPCLKDIV) CLKCON bits.
bit 6-2 bit 1-0
Note 1:
DS39776B-page 70
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
REGISTER 2-82:
R/W-0 r bit 7 Legend: R = Readable bit -n = Value at POR bit 7-5 bit 4-3 bit 2-0 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown r
TESTMODE: TEST MODE REGISTER (ADDRESS: 0x22F)
R/W-0 r R/W-0 RSSIWAIT1 R/W-1 R/W-0 R/W-0 R/W-0 bit 0 RSSIWAIT0 TESTMODE2 TESTMODE1 TESTMODE0
R/W-0
Reserved: Maintain as ‘0’ RSSIWAIT: RSSI State Machine Parameter bits 01 = Optimized value (default) TESTMODE: Test Mode bits 111 = GPIO0, GPIO1 and GPIO2 are configured to control an external PA and/or LNA(1) 101 = Single Tone Test mode 000 = Normal operation (default) Refer to Section 4.2 “External PA/LNA Control” for more information.
Note 1:
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 71
MRF24J40
REGISTER 2-83:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
ASSOEADR0: ASSOCIATED COORDINATOR EXTENDED ADDRESS 0 REGISTER (ADDRESS: 0x230)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0
R/W-0
ASSOEADR7 ASSOEADR6 ASSOEADR5 ASSOEADR4 ASSOEADR3 ASSOEADR2 ASSOEADR1 ASSOEADR0
ASSOEADR: 64-Bit Extended Address of Associated Coordinator bits
REGISTER 2-84:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0
ASSOEADR1: ASSOCIATED COORDINATOR EXTENDED ADDRESS 1 REGISTER (ADDRESS: 0x231)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0
R/W-0
ASSOEADR15 ASSOEADR14 ASSOEADR13 ASSOEADR12 ASSOEADR11 ASSOEADR10 ASSOEADR9 ASSOEADR8
W = Writable bit ‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
ASSOEADR: 64-Bit Extended Address of Associated Coordinator bits
DS39776B-page 72
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
REGISTER 2-85:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
ASSOEADR2: ASSOCIATED COORDINATOR EXTENDED ADDRESS 2 REGISTER (ADDRESS: 0x232)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0
ASSOEADR23 ASSOEADR22 ASSOEADR21 ASSOEADR20 ASSOEADR19 ASSOEADR18 ASSOEADR17 ASSOEADR16
ASSOEADR: 64-Bit Extended Address of Associated Coordinator bits
REGISTER 2-86:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0
ASSOEADR3: ASSOCIATED COORDINATOR EXTENDED ADDRESS 3 REGISTER (ADDRESS: 0x233)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0
R/W-0
ASSOEADR31 ASSOEADR30 ASSOEADR29 ASSOEADR28 ASSOEADR27 ASSOEADR26 ASSOEADR25 ASSOEADR24
W = Writable bit ‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
ASSOEADR: 64-Bit Extended Address of Associated Coordinator bits
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 73
MRF24J40
REGISTER 2-87:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
ASSOEADR4: ASSOCIATED COORDINATOR EXTENDED ADDRESS 4 REGISTER (ADDRESS: 0x234)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0
ASSOEADR39 ASSOEADR38 ASSOEADR37 ASSOEADR36 ASSOEADR35 ASSOEADR34 ASSOEADR33 ASSOEADR32
ASSOEADR: 64-Bit Extended Address of Associated Coordinator bits
REGISTER 2-88:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0
ASSOEADR5: ASSOCIATED COORDINATOR EXTENDED ADDRESS 5 REGISTER (ADDRESS: 0x235)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0
R/W-0
ASSOEADR47 ASSOEADR46 ASSOEADR45 ASSOEADR44 ASSOEADR43 ASSOEADR42 ASSOEADR41 ASSOEADR40
W = Writable bit ‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
ASSOEADR: 64-Bit Extended Address of Associated Coordinator bits
DS39776B-page 74
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
REGISTER 2-89:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
ASSOEADR6: ASSOCIATED COORDINATOR EXTENDED ADDRESS 6 REGISTER (ADDRESS: 0x236)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0
R/W-0
ASSOEADR55 ASSOEADR54 ASSOEADR53 ASSOEADR52 ASSOEADR51 ASSOEADR50 ASSOEADR49 ASSOEADR48
ASSOEADR: 64-Bit Extended Address of Associated Coordinator bits
REGISTER 2-90:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0
ASSOEADR7: ASSOCIATED COORDINATOR EXTENDED ADDRESS 7 REGISTER (ADDRESS: 0x237)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0
R/W-0
ASSOEADR63 ASSOEADR62 ASSOEADR61 ASSOEADR60 ASSOEADR59 ASSOEADR58 ASSOEADR57 ASSOEADR56
W = Writable bit ‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
ASSOEADR: 64-Bit Extended Address of Associated Coordinator bits
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 75
MRF24J40
REGISTER 2-91:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
ASSOSADR0: ASSOCIATED COORDINATOR SHORT ADDRESS 0 REGISTER (ADDRESS: 0x238)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0
R/W-0
ASSOSADR7 ASSOSADR6 ASSOSADR5 ASSOSADR4 ASSOSADR3 ASSOSADR2 ASSOSADR1 ASSOSADR0
ASSOSADR: 16-Bit Short Address of Associated Coordinator bits
REGISTER 2-92:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0
ASSOSADR1: ASSOCIATED COORDINATOR SHORT ADDRESS 1 REGISTER (ADDRESS: 0x239)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0
R/W-0
ASSOSADR15 ASSOSADR14 ASSOSADR13 ASSOSADR12 ASSOSADR11 ASSOSADR10 ASSOSADR9 ASSOSADR8
W = Writable bit ‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
ASSOSADR: 16-Bit Short Address of Associated Coordinator bits
DS39776B-page 76
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
REGISTER 2-93:
R/W-0 UPNONCE7 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
UPNONCE0: UPPER NONCE SECURITY 0 REGISTER (ADDRESS: 0x240)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 UPNONCE2 R/W-0 R/W-0 bit 0 UPNONCE1 UPNONCE0
UPNONCE6 UPNONCE5 UPNONCE4 UPNONCE3
UPNONCE: Upper Nonce bits 13-byte nonce value used in security.
REGISTER 2-94:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0
UPNONCE1: UPPER NONCE SECURITY 1 REGISTER (ADDRESS: 0x241)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 UPNONCE9 R/W-0 UPNONCE8 bit 0
R/W-0
UPNONCE15 UPNONCE14 UPNONCE13 UPNONCE12 UPNONCE11 UPNONCE10
W = Writable bit ‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
UPNONCE: Upper Nonce bits 13-byte nonce value used in security.
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 77
MRF24J40
REGISTER 2-95:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
UPNONCE2: UPPER NONCE SECURITY 2 REGISTER (ADDRESS: 0x242)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0
R/W-0
UPNONCE23 UPNONCE22 UPNONCE21 UPNONCE20 UPNONCE19 UPNONCE18 UPNONCE17 UPNONCE16
UPNONCE: Upper Nonce bits 13-byte nonce value used in security.
REGISTER 2-96:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0
UPNONCE3: UPPER NONCE SECURITY 3 REGISTER (ADDRESS: 0x243)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0
R/W-0
UPNONCE31 UPNONCE30 UPNONCE29 UPNONCE28 UPNONCE27 UPNONCE26 UPNONCE25 UPNONCE24
W = Writable bit ‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
UPNONCE: Upper Nonce bits 13-byte nonce value used in security.
DS39776B-page 78
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
REGISTER 2-97:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
UPNONCE4: UPPER NONCE SECURITY 4 REGISTER (ADDRESS: 0x244)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0
R/W-0
UPNONCE39 UPNONCE38 UPNONCE37 UPNONCE36 UPNONCE35 UPNONCE34 UPNONCE33 UPNONCE32
UPNONCE: Upper Nonce bits 13-byte nonce value used in security.
REGISTER 2-98:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0
UPNONCE5: UPPER NONCE SECURITY 5 REGISTER (ADDRESS: 0x245)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0
R/W-0
UPNONCE47 UPNONCE46 UPNONCE45 UPNONCE44 UPNONCE43 UPNONCE42 UPNONCE41 UPNONCE40
W = Writable bit ‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
UPNONCE: Upper Nonce bits 13-byte nonce value used in security.
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 79
MRF24J40
REGISTER 2-99:
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown
UPNONCE6: UPPER NONCE SECURITY 6 REGISTER (ADDRESS: 0x246)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0
R/W-0
UPNONCE55 UPNONCE54 UPNONCE53 UPNONCE52 UPNONCE51 UPNONCE50 UPNONCE49 UPNONCE48
UPNONCE: Upper Nonce bits 13-byte nonce value used in security.
REGISTER 2-100: UPNONCE7: UPPER NONCE SECURITY 7 REGISTER (ADDRESS: 0x247)
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0 UPNONCE63 UPNONCE62 UPNONCE61 UPNONCE60 UPNONCE59 UPNONCE58 UPNONCE57 UPNONCE56
UPNONCE: Upper Nonce bits 13-byte nonce value used in security.
DS39776B-page 80
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
REGISTER 2-101: UPNONCE8: UPPER NONCE SECURITY 8 REGISTER (ADDRESS: 0x248)
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0 UPNONCE71 UPNONCE70 UPNONCE69 UPNONCE68 UPNONCE67 UPNONCE66 UPNONCE65 UPNONCE64
UPNONCE: Upper Nonce bits 13-byte nonce value used in security.
REGISTER 2-102: UPNONCE9: UPPER NONCE SECURITY 9 REGISTER (ADDRESS: 0x249)
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0 UPNONCE79 UPNONCE78 UPNONCE77 UPNONCE76 UPNONCE75 UPNONCE74 UPNONCE73 UPNONCE72
UPNONCE: Upper Nonce bits 13-byte nonce value used in security.
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 81
MRF24J40
REGISTER 2-103: UPNONCE10: UPPER NONCE SECURITY 10 REGISTER (ADDRESS: 0x24A)
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0 UPNONCE87 UPNONCE86 UPNONCE85 UPNONCE84 UPNONCE83 UPNONCE82 UPNONCE81 UPNONCE80
UPNONCE: Upper Nonce bits 13-byte nonce value used in security.
REGISTER 2-104: UPNONCE11: UPPER NONCE SECURITY 11 REGISTER (ADDRESS: 0x24B)
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0 UPNONCE95 UPNONCE94 UPNONCE93 UPNONCE92 UPNONCE91 UPNONCE90 UPNONCE89 UPNONCE88
UPNONCE: Upper Nonce bits 13-byte nonce value used in security.
DS39776B-page 82
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
REGISTER 2-105: UPNONCE12: UPPER NONCE SECURITY 12 REGISTER (ADDRESS: 0x24C)
R/W-0 bit 7 Legend: R = Readable bit -n = Value at POR bit 7-0 W = Writable bit ‘1’ = Bit is set U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared x = Bit is unknown R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 bit 0 UPNONCE103 UPNONCE102 UPNONCE101 UPNONCE100 UPNONCE99 UPNONCE98 UPNONCE97 UPNONCE96
UPNONCE: Upper Nonce bits 13-byte nonce value used in security.
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 83
MRF24J40
NOTES:
DS39776B-page 84
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
3.0
3.1
FUNCTIONAL DESCRIPTION
Reset
The MRF24J40 has four Reset types: • Power-on Reset – The MRF24J40 has built-in Power-on Reset circuitry that will automatically reset all control registers when power is applied. It is recommended to delay 2 ms after a Reset before accessing the MRF24J40 to allow the RF circuitry to start up and stabilize. • RESET Pin – The MRF24J40 can be reset by the host microcontroller by asserting the RESET pin 13 low. All control registers will be reset. The MRF24J40 will be released from Reset approximately 250 μs after RESET is released. The RESET pin has an internal weak pull-up resistor. It is recommended to delay 2 ms after a Reset before accessing the MRF24J40 to allow the RF circuitry to start up and stabilize.
• Software Reset – A Software Reset can be performed by the host microcontroller. The power management circuitry is reset by setting the RSTPWR (0x2A) bit to ‘1’. The control registers retain their values. The baseband circuitry is reset by setting the RSTBB (0x2A) bit to ‘1’. The control registers retain their values. The MAC circuitry is reset by setting the RSTMAC (0x2A) bit to ‘1’. All control registers will be reset. The Resets can be performed individually or together. The bit(s) will be automatically cleared to ‘0’ by hardware. No delay is necessary after a Software Reset. • RF State Machine Reset – Perform an RF State Machine Reset by setting to ‘1’ the RFRST (RFCTL 0x36) bit and then clearing to ‘0’. Delay at least 192 μs after performing to allow the RF circuitry to calibrate. The control registers retain their values. Note: The RF state machine should be Reset after the frequency channel has been changed (RFCON0 0x200).
TABLE 3-1:
Addr. Name
REGISTERS ASSOCIATED WITH RESET
Bit 7 r r Bit 6 r r Bit 5 r r Bit 4 r Bit 3 r Bit 2 RSTPWR RFRST Bit 1 RSTBB r Bit 0 RSTMAC r
0x2A SOFTRST 0x36 RFCTL
WAKECNT8 WAKECNT7
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 85
MRF24J40
3.2 Initialization
Certain control register values must be initialized for basic operations. These values differ from the Power-on Reset values and provide improved operational parameters. These settings are normally made once after a Reset. After initialization, MRF24J40 features can be configured for the application. The steps for initialization are shown in Example 3-1.
EXAMPLE 3-1:
1. 2. 3. 4. 5. 6. 7. 8. 9.
INITIALIZING THE MRF24J40
Example steps to initialize the MRF24J40: SOFTRST (0x2A) = 0x07 – Perform a software Reset. The bits will be automatically cleared to ‘0’ by hardware. PACON2 (0x18) = 0x98 – Initialize FIFOEN = 1 and TXONTS = 0x6. TXSTBL (0x2E) = 0x95 – Initialize RFSTBL = 0x9. RFCON1 (0x201) = 0x01 – Initialize VCOOPT = 0x01. RFCON2 (0x202) = 0x80 – Enable PLL (PLLEN = 1). RFCON6 (0x206) = 0x90 – Initialize TXFIL = 1 and 20MRECVR = 1. RFCON7 (0x207) = 0x80 – Initialize SLPCLKSEL = 0x2 (100 kHz Internal oscillator). RFCON8 (0x208) = 0x10 – Initialize RFVCO = 1. SLPCON1 (0x220) = 0x21 – Initialize CLKOUTEN = 1 and SLPCLKDIV = 0x01.
Configuration for nonbeacon-enabled devices (see Section 3.8 “Beacon-Enabled and Nonbeacon-Enabled Networks”): 10. 11. 12. 13. 14. 15. 16. 17. BBREG2 (0x3A) = 0x80 – Set CCA mode to ED. RSSITHCCA (0x3F) = 0x60 – Set CCA ED threshold. BBREG6 (0x3E) = 0x40 – Set appended RSSI value to RXFIFO. Enable interrupts – See Section 3.3 “Interrupts”. Set channel – See Section 3.4 “Channel Selection”. RFCTL (0x36) = 0x04 – Reset RF state machine. RFCTL (0x36) = 0x00. Delay at least 192 μs.
TABLE 3-2:
Addr. Name 0x18 PACON2 0x2A SOFTRST 0x2E TXSTBL 0x201 RFCON1 0x202 RFCON2 0x206 RFCON6 0x207 RFCON7 0x208 RFCON8 0x220 SLPCON1
REGISTERS ASSOCIATED WITH INITIALIZATION
Bit 7 FIFOEN r RFSTBL3 VCOOPT7 PLLEN TXFIL r r Bit 6 r r RFSTBL2 VCOOPT6 r r r r Bit 5 TXONTS3 r RFSTBL1 VCOOPT5 r r r r Bit 4 TXONTS2 r RFSTBL0 VCOOPT4 r 20MRECVR r RFVCO Bit 3 TXONTS1 r MSIFS3 VCOOPT3 r BATEN r r Bit 2 TXONTS0 RSTPWR MSIFS2 VCOOPT2 r r r r Bit 1 TXONT8 RSTBB MSIFS1 VCOOPT1 r r r r Bit 0 TXONT7 RSTMAC MSIFS0 VCOOPT0 r r r r
SLPCLKSEL1 SLPSCKSEL0
CLKOUTEN SLPCLKDIV4 SLPCLKDIV3 SLPCLKDIV2 SLPCLKDIV1 SLPCLKDIV0
DS39776B-page 86
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
3.3 Interrupts
The MRF24J40 has one interrupt (INT) pin 16 that signals one of eight interrupt events to the host microcontroller. The interrupt structure is shown in Figure 3-1. Interrupts are enabled via the INTCON (0x32) register. Interrupt flags are located in the INTSTAT (0x31) register. The INTSTAT register clears-to-zero upon read. Therefore, the host microcontroller should read and store the INTSTAT register and check the bits to determine which interrupt occurred. The INT pin will continue to signal an interrupt until the INTSTAT register is read. The edge polarity of the INT pin is configured via the INTEDGE bit in the SLPCON0 (0x211) register. Note: The INTEDGE polarity defaults to: 0 = Falling Edge. Ensure that the interrupt polarity matches the interrupt pin polarity of the host microcontroller.
FIGURE 3-1:
MRF24J40 INTERRUPT LOGIC
INTSTAT.SLPIF INTCON.SLPIE
INTSTAT.WAKEIF INTCON.WAKEIE
INTSTAT.HSYMTMRIF INTCON.HSYMTMRIE SLPCON0.INTEDGE INTSTAT.SECIF INTCON.SECIE INT INTSTAT.RXIF INTCON.RXIE
INTSTAT.TXG2IF INTCON.TXG2IE
INTSTAT.TXG1IF INTCON.TXG1IE
INTSTAT.TXNIF INTCON.TXNIE
TABLE 3-3:
Addr. 0x31 0x32 Name INTSTAT INTCON
REGISTERS ASSOCIATED WITH INTERRUPTS
Bit 7 SLPIF SLPIE r Bit 6 Bit 5 Bit 4 SECIF SECIE r Bit 3 RXIF RXIE r Bit 2 TXG2IF TXG2IE r Bit 1 TXG1IF TXG1IE INTEDGE Bit 0 TXNIF TXNIE SLPCKEN WAKEIF HSYMTMRIF WAKEIE HSYMTMRIE r r
0x211 SLPCON0
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 87
MRF24J40
3.4 Channel Selection
TABLE 3-4:
The MRF24J40 is capable of selecting one of sixteen channel frequencies in the 2.4 GHz band. The desired channel is selected by configuring the CHANNEL bits in the RFCON0 (0x200) register. See Table 3-4 for the RFCON0 register setting for channel number and frequency. Note: Perform an RF State Machine Reset (see Section 3.1 “Reset”) after a channel frequency change. Then, delay at least 192 μs after the RF State Machine Reset, to allow the RF circuitry to calibrate.
CHANNEL SELECTION RFCON0 (0x200) REGISTER SETTING
Frequency 2.405 GHz 2.410 GHz 2.415 GHz 2.420 GHz 2.425 GHz 2.430 GHz 2.435 GHz 2.440 GHz 2.445 GHz 2.450 GHz 2.455 GHz 2.460 GHz 2.465 GHz 2.470 GHz 2.475 GHz 2.480 GHz Set Value 0x02 0x12 0x22 0x32 0x42 0x52 0x62 0x72 0x82 0x92 0xA2 0xB2 0xC2 0xD2 0xE2 0xF2
Channel Number 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
TABLE 3-5:
Addr. Name 0x36 RFCTL
REGISTERS ASSOCIATED WITH CHANNEL SELECTION
Bit 7 r Bit 6 r Bit 5 r Bit 4 Bit 3 RFOPT3 Bit 2 RFRST Bit 1 r Bit 0 r WAKECNT8 WAKECNT7
0x200 RFCON0 CHANNEL3 CHANNEL2 CHANNEL1 CHANNEL0
RFOPT2 RFOPT1 RFOPT0
DS39776B-page 88
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
3.5 Clear Channel Assessment (CCA)
3.5.3
The CCA signal is an indication to the MAC layer from the PHY layer as to whether the medium is busy or idle. The MRF24J40 provides three methods of performing CCA. Refer to IEEE 802.15.4-2003 Standard, Section 6.7.9 “CCA”.
CCA MODE 3: CARRIER SENSE WITH ENERGY ABOVE THRESHOLD
CCA reports a busy medium only upon detection of a signal with modulation or spreading characteristics of IEEE 802.15.4 with energy above the ED threshold. 1. Program CCAMODE 0x3A to the value, ‘11’. Program CCACSTH 0x3A with the CCA carrier sense threshold. Program CCAEDTH 0x3F with the CCA ED threshold. The 8-bit CCAEDTH threshold can be mapped to a power level according to RSSI. Refer to Section 3.6 “Received Signal Strength Indicator (RSSI)/Energy Detection (ED)”.
3.5.1
CCA MODE 1: ENERGY ABOVE THRESHOLD
2. 3.
CCA reports a busy medium upon detecting energy above the Energy Detection (ED) threshold. 1. 2. Program CCAEDTH 0x3A to the value, ‘10’. Program CCAMODE 0x3F with CCA ED threshold value (RSSI value). The 8-bit CCAEDTH threshold can be mapped to a power level according to RSSI. Refer to Section 3.6 “Received Signal Strength Indicator (RSSI)/Energy Detection (ED)”.
3.5.2
CCA MODE 2: CARRIER SENSE ONLY
CCA reports a busy medium only upon detection of a signal with the modulation and spreading characteristics of IEEE 802.15.4. This signal may or may not be above the ED threshold. 1. 2. Program CCAMODE 0x3A to the value, ‘01’. Program CCACSTH 0x3A with the CCA carrier sense threshold (units).
TABLE 3-6:
Addr. Name 0x3A BBREG2
REGISTERS ASSOCIATED WITH CCA
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 r Bit 0 r CCAMODE1 CCAMODE0 CCACSTH3 CCACSTH2 CCACSTH1 CCACSTH0
0x3F CCAEDTH CCAEDTH7 CCAEDTH6 CCAEDTH5 CCAEDTH4 CCAEDTH3 CCAEDTH2 CCAEDTH1 CCAEDTH0
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 89
MRF24J40
3.6 Received Signal Strength Indicator (RSSI)/Energy Detection (ED)
3.6.1 RSSI FIRMWARE REQUEST (RSSI MODE1)
In this mode, the host microcontroller sends a request to calculate RSSI, then waits until it is done and then reads the RSSI value. The steps are: 1. 2. 3. Set RSSIMODE1 0x3E – Initiate RSSI calculation. Wait until RSSIRDY 0x3E is set to ‘1’ – RSSI calculation is complete. Read RSSI 0x210 – The RSSI register contains the averaged RSSI received power level for 8 symbol periods.
RSSI/ED are an estimate of the received signal power within the bandwidth of an IEEE 802.15.4 channel. The RSSI value is an 8-bit value ranging from 0-255. The mapping between the RSSI values with the received power level is shown in Figure 3-3 and is shown in tabular form in Table 3-8. The number of symbols to average can be changed by programming the RSSINUM (TXBCON1 0x25) bits. The programmer can obtain the RSSI/ED value in one of two methods.
3.6.2
APPENDED RSSI TO THE RECEIVED PACKET (RSSI MODE 2)
The RSSI value is appended at the end of each successfully received packet. To enable RSSI Mode 2, set RSSIMODE2 = 1 (0x3E). The RSSI value will be appended to the RXFIFO as shown in Figure 3-2.
FIGURE 3-2:
1 Octet Frame Length
PACKET FORMAT IN RX FIFO
N Octets Header M Octets Payload 2 Octets FCS 1 Octet LQI 1 Octet RSSI
TABLE 3-7:
Addr. Name
REGISTERS ASSOCIATED WITH RSSI/ED
Bit 7 TXBMSK RSSI7 Bit 6 WU/BCN RSSI6 Bit 5 Bit 4 Bit 3 r r RSSI3 Bit 2 r r RSSI2 Bit 1 r r RSSI1 Bit 0 r RSSIRDY RSSI0
0x25 TXBCON1 0x3E BBREG6 0x210 RSSI
RSSINUM1 RSSINUM0 r RSSI5 r RSSI4
RSSIMODE1 RSSIMODE2
DS39776B-page 90
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
FIGURE 3-3: RSSI vs. RECEIVED POWER (dBm)
300
250
200
150 RSSI 100
50
0 -120 -100 -80 -60 -40 -20 -50 Received Power (dBm) 0
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 91
MRF24J40
RSSI versus received power (dB) is shown in tabular form in Table 3-8.
TABLE 3-8:
RSSI vs. RECEIVED POWER (dB) (CONTINUED)
RSSI Value (hex) 0x8F 0x94 0x99 0x9F 0xA5 0xAA 0xB0 0xB7 0xBC 0xC1 0xC6 0xCB 0xCF 0xD4 0xD8 0xDD 0xE1 0xE4 0xE9 0xEF 0xF5 0xFA 0xFD 0xFE 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF RSSI Value (dec) 143 148 153 159 165 170 176 183 188 193 198 203 207 212 216 221 225 228 233 239 245 250 253 254 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
TABLE 3-8:
RSSI vs. RECEIVED POWER (dB)
RSSI Value (hex) 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x1 0x2 0x5 0x9 0x0D 0x12 0x17 0x1B 0x20 0x25 0x2B 0x30 0x35 0x3A 0x3F 0x44 0x49 0x4E 0x53 0x59 0x5F 0x64 0x6B 0x6F 0x75 0x79 0x7D 0x81 0x85 0x8A RSSI Value (dec) 0 0 0 0 0 0 0 0 0 0 0 1 2 5 9 13 18 23 27 32 37 43 48 53 58 63 68 73 78 83 89 95 100 107 111 117 121 125 129 133 138
Received Power (dBm) -59 -58 -57 -56 -55 -54 -53 -52 -51 -50 -49 -48 -47 -46 -45 -44 -43 -42 -41 -40 -39 -38 -37 -36 -35 -34 -33 -32 -31 -30 -29 -28 -27 -26 -25 -24 -23 -22 -21 -20
Received Power (dBm) -100 -99 -98 -97 -96 -95 -94 -93 -92 -91 -90 -89 -88 -87 -86 -85 -84 -83 -82 -81 -80 -79 -78 -77 -76 -75 -74 -73 -72 -71 -70 -69 -68 -67 -66 -65 -64 -63 -62 -61 -60
DS39776B-page 92
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
3.7 Link Quality Indication (LQI) 3.8
Link Quality Indication (LQI) is a characterization of strength or quality of a received packet. Several metrics, for example, RSSI, Signal to Noise Ratio (SNR), RSSI combined with SNR, etc., can be used for measuring link quality. Using RSSI or SNR alone may not be the best way to estimate the quality of a link. The received RSSI value will be a very high value if a packet is received with greater signal strength or even if an interferer is present in the channel. Hence, for better approximation of link quality, the MRF24J40 reports the correlation degree between spreading sequences and the incoming chips during the reception of a packet. This correlation value is directly mapped to a range of 0-255 (256 values), where an LQI value of 0 indicates that the quality of the link is very low, and an LQI value of 255 indicates the quality of the link is very high. The correlation degree between spreading sequences and incoming chips is computed over a period of 3 symbol periods during the reception of the preamble of a packet. The LQI is reported along with each received packet in the RX FIFO as shown in Figure 3-2.
Beacon-Enabled and Nonbeacon-Enabled Networks
The IEEE 802.15.4 Standard defines two modes of operation: • Beacon-enabled network • Nonbeacon-enabled network
3.8.1
BEACON-ENABLED NETWORK
In a beacon-enabled network, beacons will be transmitted periodically by the PAN coordinator. These beacons are mainly used to provide synchronization services between all the devices in the PAN and also to support other extended features, like Guaranteed Time Slots (GTS), a Quality of Service (QoS) mechanism for the IEEE 802.15.4 Standard. The PAN coordinator defines the structure of the superframe using beacons.
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 93
MRF24J40
3.8.1.1 Superframe Structure
The superframe structure is shown in Figure 3-4. A superframe is bounded by the transmission of a beacon frame and can have an active and inactive portion. The coordinator will interact with its PAN only during the active portion of the superframe, and during the inactive portion of the superframe, the coordinator can go to a low-power mode. The active portion of the superframe is divided into 16 equally spaced slots and is composed of three parts: a beacon, a Contention Access Period (CAP) and an optional Contention Free Period (CFP). The structure of the superframe depends on the values of Beacon Order (BO) and Superframe Order (SO). The CFP, if present, follows immediately after the CAP and extends to the end of active portion of the superframe. Any allocated GTSs shall be located in the CFP of the active portion of the superframe. All the frames transmitted in the CAP, except Acknowledgement frames and data frames that immediately follow the data request command, must use slotted CSMA-CA. Refer to Section 3.9 “Carrier Sense Multiple Access-Collision Avoidance (CSMA-CA) Algorithm” for more information.
FIGURE 3-4:
SUPERFRAME STRUCTURE
Backoff Period (aUnitBackoffPeriod = 20 symbols)
CAP End Slot = ESLOTG1 (0x13) Beacon GTS End Slots = ESLOTG23 (0x1E), ESLOTG45 (0x1F), ESLOT67 (0x20) Slot
G T S 2
Beacon
0
1
2
3
4
5
6
7
8
GTS1
GTS3
Inactive Portion
0
1
2
3
4
5
6
7
8
9 10 11 12 13 14 15
CAP
CFP
Active Portion
Inactive Portion
Superframe Duration (SD) = aBaseSuperframeDuration * 2SO symbols (SO – ORDER 0x10)
SD
Beacon Interval (BI) = aBaseSuperframeDuration * 2BO symbols (BO – ORDER 0x10)
BI
DS39776B-page 94
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
3.8.1.2 BO and SO 3.8.1.3 GTS
Values of Beacon Order (BO) and Superframe Order (SO) determine the Beacon Interval (BI) and Superframe Duration (SD). Beacon Interval (BI) in terms of BO can be expressed as:
BI = aBaseSuperframeduration * 2BO
If a device wants to transmit or receive during CFP, it sends out a “GTS request” in the CAP to the PAN coordinator. The PAN coordinator broadcasts the address of the device number for that device in the beacon frame if resources are available. To support GTS operation, MRF24J40 uses TXGTS1FIFO and TXGTS2FIFO. The TXGTS1FIFO and TXGTS2FIFO are ping-pong FIFOs and can be assigned to different GTS slots or to the same slots. If both are assigned to the same slot, they take turns for transmission within that slot. TXGTS1FIFO and TXGTS2FIFO can be triggered ahead of their slot time, but transmission from the FIFO will take place exactly at the assigned slot time. Refer to Section 3.12 “Transmission” for information on how to transmit a data frame using the TXGTSxFIFOs.
Similarly, Superframe Duration (SD) in terms of SO can be expressed as:
SD = aBaseSuperframeduration * 2SO
where aBaseSuperframeduration = 960 symbols. BO and SO can be configured by programming the BO (0x10) bits and SO (0x10) bits in the ORDER register. For beacon-enabled networks, the values of BO and SO should be in the range, 0 ≤ SO ≤ BO ≤ 14. If the values of BO and SO are equal, then the superframe does not have any inactive portion. A Beacon Interval can be as short as 15 μs or a long as 251 seconds based on the values of BO and SO.
FIGURE 3-5:
GTSFIFO STATE DIAGRAM
GTSSWITCH = 1 Switch TXGTSxFIFO if Transmit Error GTSSWITCH = 0 Hold and wait TXGTSxFIFO if Transmit Error
Wait for GTS Slot TXGTS1FIFO TXGTS1FIFO Transmit Error (clear TXG1TRIG and TXG2TRIG)
Wait for GTS Slot
Transmit Complete or Transmit Error (clear TXG1TRIG)
Transmit Complete or Transmit Error (clear TXG2TRIG)
Transmit Complete
Transmit Complete
Hold and Wait until Next GTS
TXGTS2FIFO Wait for GTS Slot Wait for GTS Slot
TXGTS2FIFO Transmit Error (clear TXG1TRIG and TXG2TRIG)
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 95
MRF24J40
3.8.1.4 Configuring Beacon-Enabled PAN Coordinator 3.8.1.5 Configuring Beacon-Enabled GTS Settings for PAN Coordinator
The following steps configure the MRF24J40 as a coordinator in a beacon-enabled network: 1. 2. 3. 4. 5. Set the PANCOORD (RXMCR 0x00) bit = 1 to configure as PAN coordinator. Set the SLOTTED (TXMCR 0x11) bit = 1 to use Slotted CSMA-CA mode. Load the beacon frame into the TXBFIFO (0x080-0x0FF). Set the TXBMSK (TXBCON1 0x25) bit = 1 to mask the beacon interrupt mask. Program the CAP end slot (ESLOTG1 0x13) value. If the coordinator supports Guaranteed Time Slot operation, refer to Section 3.8.1.5 “Configuring Beacon-Enabled GTS Settings for PAN Coordinator” below. Calibrate the Sleep Clock (SLPCLK) frequency. Refer to S ection 3.15.1.2 “Sleep Clock Calibration” . Set WAKECNT (SLPACK 0x35) value = 0x5F to set the main oscillator (20 MHz) start-up timer value. Program the Beacon Interval into the Main Counter, MAINCNT (0x229, 0x228, 0x227, 0x226), and Remain Counter, REMCNT (0x225, 0x224), according to BO and SO values. Refer to Section 3.15.1.3 “Sleep Mode Counters”. Configure the BO (ORDER 0x10) and SO (ORDER 0x10) values. After configuring BO and SO, the beacon frame will be sent immediately. The following steps configure the MRF24J40 as a coordinator in a beacon-enabled network with Guaranteed Time Slots: 1. 2. Set the GTSON (GATECLK 0x26 ) bit = 1 to enable the GTS FIFO clock. Based on the number of GTSs that are active for the current superframe, program the end slot value of each GTS into the ESLOT registers as shown in Table 3-9.
TABLE 3-9:
GTS Number
CAP GTS1 GTS2 GTS3 GTS4 GTS5 GTS6 GTS7
PROGRAMMING END SLOT VALUES
Register
ESLOTG1 0x13 ESLOTG1 0x13 ESLOTG23 0x1E ESLOTG23 0x1E ESLOTG45 0x1F ESLOTG45 0x1F ESLOTG67 0x20 If 7th GTS exists, the end slot be 15 must
6.
7.
8.
3.
9.
Set the GTSSWITCH (TXPEND 0x21) bit = 1 so that if a TXGTS1FIFO or TXGTS2FIFO transmission error occurs, it will switch to another TXGTSxFIFO.
DS39776B-page 96
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
3.8.1.6 Configuring Beacon-Enabled Device 3.8.2 NONBEACON-ENABLED NETWORK
The following steps configure the MRF24J40 as a device in a beacon-enabled network: 1. 2. 3. Set the SLOTTED (TXMCR 0x11) bit = 1 to use Slotted CSMA-CA mode. Set the OFFSET (FRMOFFSET 0x23) value = 0x15 for optimum timing alignment. Calibrate the Sleep Clock (SLPCLK) frequency. Refer to Section 3.15.1.2 “Sleep Clock Calibration”. Program the associated coordinator’s 64-bit extended address to the ASSOEADR registers (0x230-0x237). Program the associated coordinator’s 16-bit short address to the ASSOSADR registers (0x238-0x239). A nonbeacon-enabled network does not transmit a beacon unless it receives a beacon request, and hence, does not have any superframe structure. A nonbeacon-enabled network uses unslotted CSMA-CA to access the medium. The unslotted CSMA-CA is explained in Section 3.9 “Carrier Sense Multiple Access-Collision Avoidance (CSMA-CA) Algorithm”. For nonbeacon-enabled networks, both BO and SO are set to 15. Guaranteed Time Slots (GTS) are not supported, and generally, devices require less computing power as there are no strict timing requirements that need to be met.
4.
5.
3.8.2.1
Configuring Nonbeacon-Enabled PAN Coordinator
Note:
The device will align its beacon frame with the associated coordinator’s beacon frame only when the source address matches the ASSOEADR or ASSOSADR value.
The following steps configure the MRF24J40 as a coordinator in a nonbeacon-enabled network: 1. 2. 3. 4. Set the PANCOORD (RXMCR 0x00) bit = 1 to configure as the PAN coordinator. Clear the SLOTTED (TXMCR 0x11) bit = 0 to configure Unslotted CSMA-CA mode. Configure BO (ORDER 0x10) value = 0xF. Configure SO (ORDER 0x10) value = 0xF.
6.
7.
Parse the received associated coordinator’s beacon frame and extract the values of BO and SO. Calculate the inactive period and program the Main Counter, MAINCNT (0x229, 0x228, 0x227, 0x226), and Remain Counter, REMCNT (0x225, 0x224), according to the BO and SO values. Refer to Section 3.15.1.3 “Sleep Mode Counters”. Program the CAP end slot (ESLOTG1 0x13) value.
3.8.2.2
Configuring Nonbeacon-Enabled Device
The following steps configure the MRF24J40 as a device in a nonbeacon-enabled network: 1. 2. Clear the PANCOORD (RXMCR 0x00) bit = 0 to configure as device. Clear the SLOTTED (TXMCR 0x11) bit = 0 to use Unslotted CSMA-CA mode.
3.8.1.7
Configuring Beacon-Enabled GTS Settings for Device
The following steps configure the MRF24J40 as a device in a beacon-enabled network with Guaranteed Time Slots: 1. 2. Set the GTSON (GATECLK 0x26) bit = 1 to enable the GTS FIFO clock. Parse the received beacon frame and obtain the GTS allocation information. Program the end slot value of the CAP and each GTS into the ESLOT registers, as shown in Table 3-9. Set the GTSSWITCH (TXPEND 0x21) bit = 1 so that if a TXGTS1FIFO or TXGTS2FIFO transmission error occurs, it will switch to another TXGTSxFIFO.
3.
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 97
MRF24J40
TABLE 3-10:
Addr. Name
REGISTERS ASSOCIATED WITH SETTING UP BEACON-ENABLED AND NONBEACON-ENABLED NETWORKS
Bit 7 r BO3 NOCSMA GTS1-3 GTS3-3 GTS5-3 r MLIFS5 OFFSET7 TXBMSK r SLPACK REMCNT7 REMCNT15 MAINCNT7 MAINCNT15 MAINCNT23 STARTCNT ASSOEADR7 Bit 6 r BO2 BATLIFEXT GTS1-2 GTS3-2 GTS5-2 r MLIFS4 OFFSET6 WU/BCN r WAKECNT6 REMCNT6 REMCNT14 MAINCNT6 MAINCNT14 MAINCNT22 r ASSOEADR6 Bit 5 NOACKRSP BO1 SLOTTED GTS1-1 GTS3-1 GTS5-1 r MLIFS3 OFFSET5 RSSINUM1 r WAKECNT5 REMCNT5 REMCNT13 MAINCNT5 MAINCNT13 MAINCNT21 r ASSOEADR5 Bit 4 r BO0 MACMINBE1 GTS1-0 GTS3-0 GTS5-0 r MLIFS2 OFFSET4 RSSINUM0 r WAKECNT4 REMCNT4 REMCNT12 MAINCNT4 MAINCNT12 MAINCNT20 r ASSOEADR4 Bit 3 PANCOORD SO3 MACMINB0 CAP3 GTS2-3 GTS4-3 GTS6-3 MLIFS1 OFFSET3 r GTSON WAKECNT3 REMCNT3 REMCNT11 MAINCNT3 MAINCNT11 MAINCNT19 r ASSOEADR3 Bit 2 COORD SO2 CSMABF2 CAP2 GTS2-2 GTS4-2 GTS6-2 MLIFS0 OFFSET2 r r WAKECNT2 REMCNT2 REMCNT10 MAINCNT2 MAINCNT10 MAINCNT18 r ASSOEADR2 Bit 1 ERRPKT SO1 CSMABF1 CAP1 GTS2-1 GTS4-1 GTS6-1 GTSSWITCH OFFSET1 r r WAKECNT1 REMCNT1 REMCNT9 MAINCNT1 MAINCNT9 MAINCNT17 MAINCNT25 ASSOEADR1 Bit 0 PROMI SO0 CSMABF0 CAP0 GTS2-0 GTS4-0 GTS6-0 FPACK OFFSET0 r r WAKECNT0 REMCNT0 REMCNT8 MAINCNT0 MAINCNT8 MAINCNT16 MAINCNT24 ASSOEADR0 ASSOEADR8
0x00 RXMCR 0x10 ORDER 0x11 TXMCR 0x13 ESLOTG1 0x1E ESLOTG23 0x1F ESLOTG45 0x20 ESLOTG67 0x21 TXPEND 0x23 FRMOFFSET 0x25 TXBCON1 0x26 GATECLK 0x35 SLPACK 0x224 REMCNTL 0x225 REMCNTH 0x226 MAINCNT0 0x227 MAINCNT1 0x228 MAINCNT2 0x229 MAINCNT3 0x230 ASSOEADR0
0x231 ASSOEADR1 ASSOEADR15 ASSOEADR14 ASSOEADR13 ASSOEADR12 ASSOEADR11 ASSOEADR10 ASSOEADR9
0x232 ASSOEADR2 ASSOEADR23 ASSOEADR22 ASSOEADR21 ASSOEADR20 ASSOEADR19 ASSOEADR18 ASSOEADR17 ASSOEADR16 0x233 ASSOEADR3 ASSOEADR31 ASSOEADR30 ASSOEADR29 ASSOEADR28 ASSOEADR27 ASSOEADR26 ASSOEADR25 ASSOEADR24 0x234 ASSOEADR4 ASSOEADR39 ASSOEADR38 ASSOEADR37 ASSOEADR36 ASSOEADR35 ASSOEADR34 ASSOEADR33 ASSOEADR32 0x235 ASSOEADR5 ASSOEADR47 ASSOEADR46 ASSOEADR45 ASSOEADR44 ASSOEADR43 ASSOEADR42 ASSOEADR41 ASSOEADR40 0x236 ASSOEADR6 ASSOEADR55 ASSOEADR54 ASSOEADR53 ASSOEADR52 ASSOEADR51 ASSOEADR50 ASSOEADR49 ASSOEADR48 0x237 ASSOEADR7 ASSOEADR63 ASSOEADR62 ASSOEADR61 ASSOEADR60 ASSOEADR59 ASSOEADR58 ASSOEADR57 ASSOEADR56 0x238 ASSOSADR0 ASSOSADR7 ASSOSADR6 ASSOSADR5 ASSOSADR4 ASSOSADR3 ASSOSADR2 ASSOSADR1 ASSOSADR0 ASSOSADR8
0x239 ASSOSADR1 ASSOSADR15 ASSOSADR14 ASSOSADR13 ASSOSADR12 ASSOSADR11 ASSOSADR10 ASSOSADR9
DS39776B-page 98
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
3.9 Carrier Sense Multiple Access-Collision Avoidance (CSMA-CA) Algorithm
IEEE 802.15.4-2003, Section 7.5.1.3 “The CSMA-CA Algorithm” for more information. This section covers the two modes and their settings.
MRF24J40 supports both unslotted and slotted CSMA-CA mechanisms, as defined in the IEEE 802.15.4 Standard. In both modes, the CSMA-CA algorithm is implemented using units of time called backoff periods. In slotted CSMA-CA, the backoff period boundaries of every device on the PAN shall be aligned with the superframe slot boundaries of the PAN coordinator. In unslotted CSMA-CA, the backoff periods of one device are not related in time to the backoff periods of any other device in the PAN. Refer to
Note:
Acknowledgment and beacon frames are sent without using a CSMA-CA mechanism.
3.9.1
UNSLOTTED CSMA-CA MODE
Figure 3-6 shows the unslotted CSMA-CA algorithm. This mode is used in a nonbeacon-enabled network where the backoff periods of one device are not related in time to the backoff periods of any other device in the network. Refer to IEEE 802.15.4-2003, Section 7.5.1.3 “The CSMA-CA Algorithm” for more information. Configuring the MRF24J40 for nonbeacon-enabled network operation is covered in Section 3.8.2 “Nonbeacon-Enabled Network” .
FIGURE 3-6:
UNSLOTTED CSMA-CA ALGORITHM
Start
NB = 0, BE = macMinBE
macMinBE MACMINBE (TXMCR 0x11)
Delay for Random (2BE – 1) Backoff Periods
Perform CCA
Channel Idle?
Y
N
NB = NB + 1, BE = min(BE + 1, aMaxBE)
N
macMaxCSMABackoffs CSMABF (TXMCR 0x11)
NB > macMaxCSMABackoffs
Y
FAILURE (Report Channel Access Failure to Host Microcontroller) Transmit Pending Packet (SUCCESS)
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 99
MRF24J40
To configure the MRF24J40 for Unslotted CSMA-CA mode, clear SLOTTED (TXMCR 0x11) bit = 0. The macMinBE and macMaxCSMABackoff values in the MRF24J40 are set to the IEEE 802.15.4 Standard defaults. To program their values: • macMinBE – Program MACMINBE (TXMCR 0x11) bits to a value between 0 and 3 (the IEEE 802.15.4 Standard default is 3). • macMaxCSMABackoff – Program CSMABF (TXMCR 0x11) bits to a value between 0 and 5 (the IEEE 802.15.4 Standard default is 4).
3.9.2
SLOTTED CSMA-CA MODE
Figure 3-7 shows the slotted CSMA-CA algorithm. This mode is used on a beacon-enabled network where the backoff period boundaries of every device on the network shall be aligned with the superframe slot boundaries of the PAN coordinator. Refer to IEEE 802.15.4-2003, Section 7.5.1.3 “The CSMA-CA Algorithm” for more information. Configuring the MRF24J40 for beacon-enabled network operation is covered in Section 3.8.1 “Beacon-Enabled Network” .
FIGURE 3-7:
SLOTTED CSMA-CA ALGORITHM
Start
NB = 0, CW = 2
Battery Life Extension BATLIFEXT (TXMCR 0x11)
Battery Life Extension?
Y BE = lesser(2, macMinBE)
N macMinBE MACMINBE (TXMCR 0x11) BE = macMinBE
Locate for Backoff Period Boundary
Delay for Random (2BE – 1) Unit Backoff Periods
Perform CCA on Backoff Period Boundary
Y Channel Idle?
N CW = 2, NB = NB + 1, BE = min(BE+1, aMaxBE) CW = CW – 1
N NB > macMaxCSMABackoffs? macMaxCSMABackoffs CSMABF (TXMCR 0x11) Y FAILURE (Report Channel Access Failure to Host Microcontroller) Transmit Pending Packet (SUCCESS) CW = 0?
N
Y
DS39776B-page 100
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
To configure the MRF24J40 for Slotted CSMA-CA mode, set SLOTTED (TXMCR 0x11) bit = 1. To program the battery life extension bit in the Slotted CSMA-CA mode, set BATLIFEXT (TXMCR 0x11) bit = 1. The macMinBE and macMaxCSMABackoff values are set to the IEEE 802.15.4 Standard defaults. To change their values: • macMinBE – Program MACMINBE (TXMCR 0x11) bits to a value between 0 and 3 (the default is 3). • macMaxCSMABackoff – Program CSMABF (TXMCR 0x11) bits to a value between 0 and 5 (the default is 4).
TABLE 3-11:
Addr. Name 0x11 TXMCR
REGISTERS ASSOCIATED WITH CSMA-CA
Bit 7 NOCSMA Bit 6 BATLIFEXT Bit 5 SLOTTED Bit 4 MACMINBE1 Bit 3 MACMINB0 Bit 2 CSMABF2 Bit 1 CSMABF1 Bit 0 CSMABF0
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 101
MRF24J40
3.10 Interframe Spacing (IFS)
Interframe Spacing (IFS) allows the MAC sublayer time to process data received by the PHY. The length of the IFS period depends on the size of the frame that is to be transmitted. Frames up to aMaxSIFSFrameSize (18 octets) in length shall be followed by a SIFS period of at least aMinSIFSPeriod (12) symbols. Frames with lengths greater than aMaxSIFSFrameSize shall be followed by a LIFS period of at least aMinLIFSPeriod (40) symbols. If the transmission requires an Acknowledgment, the IFS shall follow the Acknowledgment frame. Figure 3-8 shows the relationship between frames and IFS periods. Refer to IEEE 802.15.4-2003, Section 7.5.1.2 “IFS” for more information. The IEEE 802.15.4 Specification defines aMinSIFSPeriod as a constant value of 12 symbol periods. The aMinSIFSPeriod can be programmed by the MSIFS (TXSTBL 0x2E) and RFSTBL (TXSTBL 0x2E) bits, where aMinSIFSPeriod = MSIFS + RFSTBL. The IEEE 802.15.4 Specification defines aMinLIFSPeriod as a constant value of 40 symbol periods. The aMinLIFSPeriod can be programmed by the MLIFS (TXPEND 0x21) and RFSTBL (TXSTBL 0x2E) bits, where aMinLIFSPeriod = MLFS + RFSTBL. The IEEE 802.15.4 Specification defines aTurnaroundTime as a constant value of 12 symbol periods. The aTurnaroundTime can be programmed by the TURNTIME (TXTIME 0x27) and RFSTBL (TXSTBL 0x2E) bits, where aTurnaroundTime = TURNTIME + RFSTBL.
FIGURE 3-8:
INTERFRAME SPACING (IFS)
Acknowledged Transmission:
Long Frame tack ACK LIFS Short Frame tack ACK SIFS
Unacknowledged Transmission:
Long Frame LIFS Short Frame SIFS
≤ Where aTurnaroundTime ≤ tack = (aTurnaroundTime + aUnitBackoffPeriod) =
TABLE 3-12:
Addr. Name 0x21 TXPEND 0x27 TXTIME 0x2E TXSTBL
REGISTERS ASSOCIATED WITH INTERFRAME SPACING
Bit 7 MLIFS5 TURNTIME3 RFSTBL3 Bit 6 MLIFS4 TURNTIME2 RFSTBL2 Bit 5 MLIFS3 TURNTIME1 RFSTBL1 Bit 4 MLIFS2 TURNTIME0 RFSTBL0 Bit 3 MLIFS1 r MSIFS3 Bit 2 MLIFS0 r MSIFS2 Bit 1 GTSSWITCH r MSIFS1 Bit 0 FPACK r MSIFS0
DS39776B-page 102
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
3.11 Reception
An IEEE 802.15.4 compliant packet is prefixed with a Synchronization Header (SHR) containing the preamble sequence and Start-of-Frame Delimiter (SFD) fields. The preamble sequence enables the receiver to achieve symbol synchronization. The MRF24J40 monitors incoming signals and looks for the preamble of IEEE 802.15.4 packets. When a valid synchronization is obtained, the entire packet is demodulated and the CRC is calculated and checked. The packet is accepted or rejected depending on the reception mode and frame filter, and placed in the RXFIFO buffer. When the packet is placed in the RXFIFO, a Receive Interrupt (RXIF 0x31) is issued. The RXFIFO address mapping is shown in Figure 3-9. The following sections detail the reception operation of the MRF24J40.
FIGURE 3-9:
From Air On Air Packet
PACKET RECEPTION
PPDU
4 PHY Packet Structure
1 SFD
1 Frame Length PHR
5 - 127 PSDU PHY Payload
2 LQI
2 RSSI
octets
Preamble
SHR Packet to RXMAC 1 To RXFIFO RXFIFO RXFIFO Address:
Frame Length (m+n+2)
m Header (MHR) 0x301 to (0x301 + m – 1)
n Data Payload (MSDU) (0x301 + m) to (0x301 + m + n – 1)
2 FCS
1 LQI
1 RSSI
octets
0x300
(0x301 + m + n + 3) (0x301 + m + n + 2) (0x301 + m + n) to (0x301 + m + n + 1)
Fields appended by RXMAC Fields removed by RXMAC
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 103
MRF24J40
3.11.1 RECEPTION MODES TABLE 3-14:
All Frames Command Only Data Only Beacon Only
FRAME FORMAT FILTER
RXFLUSH (0x0D)
000 (default) 100 010 001
The MRF24J40 can be configured for one of three different Reception modes as shown in Table 3-13. An explanation of each of the modes follows.
Filter Mode
TABLE 3-13:
Normal Error Promiscuous
RECEPTION MODES
RXMCR (0x00)
00 (default) 10 01
Receive Mode
3.11.3
ACKNOWLEDGMENT REQUEST
3.11.1.1
Normal Mode
Normal mode accepts only packets with a good CRC and satisfies the requirements of the IEEE 802.15.4 Specification, Section 7.5.6.2 “Reception and Rejection”: 1. 2. The frame type subfield of the frame control field shall not contain an illegal frame type. If the frame type indicates that the frame is a beacon frame, the source PAN identifier shall match macPANId unless macPANID is equal to 0xFFFF, in which case, the beacon frame will be accepted regardless of the source PAN identifier. If a destination PAN identifier is included in the frame, it shall match macPANId or shall be the broadcast PAN identifier (0xFFFF). If a short destination address is included in the frame, it shall match either macShortAddress or the broadcast address (0xFFFF). Otherwise, if an extended destination address is included in the frame, it shall match aExtendedAddress. If only source addressing fields are included in a data or MAC command frame, the frame shall be accepted only if the device is a PAN coordinator and the source PAN identifier matches macPANId.
If the received packet has the Acknowledgment request bit set to ‘1’ (bit 5 of the Frame Control Field – refer to IEEE 802.15.4 Standard, Section 7.2.1.1 “Frame Control Field”), the TXMAC circuitry will send an Acknowledgment packet automatically. This feature minimizes the processing duties of the host microcontroller and keeps the Acknowledgment timing within the IEEE 802.15.4 Specification. The sequence number field of the Acknowledgment frame will contain the value of the sequence number of the received frame for which the Acknowledgment is to be sent. Refer to Section 3.13 “Acknowledgement” for more information.
3.11.4
RECEIVE INTERRUPT
3.
4.
Once the packet is accepted, depending on the Reception mode (Normal, Error or Promiscuous) and frame format (all, command, data or beacon), it is placed in the RXFIFO buffer and a Receive Interrupt (RXIF 0x31) is issued.
Note:
5.
The INTSTAT (0x31) register clears-to-zero upon read. Therefore, the host microcontroller should read and store the INTSTAT register and check the bits to determine which interrupt occurred. Refer to Section 3.3 “Interrupts” for more information.
3.11.1.2
Error Mode
Error mode accepts packets with good or bad CRC.
3.11.1.3
Promiscuous Mode
Promiscuous mode accepts all packets with a good CRC.
3.11.2
FRAME FORMAT FILTER
Data is placed into the RXFIFO buffer as shown in Figure 3-9. The host processor reads the RXFIFO via the SPI port by reading addresses, 0x300-0x38F. Address, 0x300, contains the received packet frame length which includes the header length, data payload length, plus 2 for the FCS bytes. An LQI and RSSI value comes after the FCS. Refer to Section 3.6 “Received Signal Strength Indicator (RSSI)/Energy Detection (ED)” and Section 3.7 “Link Quality Indication (LQI)” for more information.
Once the packet has been accepted, depending on the Reception mode above, the frame format is filtered according to Table 3-14. Command, data or beacon only frames can be filtered and placed in the RXFIFO buffer. All frames (default) can be selected placing all frame formats (command, data and beacon) in the RXFIFO.
DS39776B-page 104
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
The RXFIFO is a 128-byte dual port buffer. The RXMAC circuitry places the packet into the RXFIFO sequentially, byte by byte, using an internal pointer. The internal pointer is reset one of three ways: 1. 2. When the host microcontroller reads the first byte of the packet. Manually by setting the RXFLUSH (0x0D) bit. The bit is automatically cleared to ‘0’ by hardware. Software Reset (see Section 3.1 “Reset” for more information). The RXFIFO can only hold one packet at a time. It is highly recommended that the host microcontroller read the entire RXFIFO without interruption so that received packets are not missed.
Note:
3.
When the first byte of the RXFIFO is read, the MRF24J40 is ready to receive the next packet. To avoid receiving a packet while the RXFIFO is being read, set the Receive Decode Inversion (RXDECINV) bit (0x39) to ‘1’ to disable the MRF24J40 from receiving a packet off the air. Once the data is read from the RXFIFO, the RXDECINV should be cleared to ‘0’ to enable packet reception.
Example 3-2 shows example steps to read the RXFIFO.
EXAMPLE 3-2:
1. 2. 3. 4. 5. 6. 7.
STEPS TO READ RXFIFO
Example steps to read the RXFIFO: Receive RXIF interrupt. Disable host microcontroller interrupts. Set RXDECINV = 1; disable receiving packets off air. Read address, 0x300; get RXFIFO frame length value. Read RXFIFO addresses, 0x301 through (0x300 + Frame Length + 2); read packet data plus LQI and RSSI. Clear RXDECINV = 0; enable receiving packets. Enable host microcontroller interrupts.
3.11.5
SECURITY
If the received packet has the security enabled bit set to ‘1’ (bit 3 of the frame control field; refer to IEEE 802.15.4 Standard, Section 7.2.1.1 “Frame Control Field”) a
Security Interrupt (SECIF 0x31) is issued. The host microcontroller can then decide to decrypt or ignore the packet. See Section 3.17 “Security” for more information.
TABLE 3-15:
Addr. Name 0x00 RXMCR 0x0D RXFLUSH 0x2A SOFTRST 0x31 INSTAT 0x32 INTCON 0x39 BBREG1
REGISTERS ASSOCIATED WITH RECEPTION
Bit 7 r r r SLPIF SLPIE r Bit 6 r WAKEPOL r WAKEIF WAKEIE r Bit 5 NOACKRSP WAKEPAD r HSYMTMRIF HSYMTMRIE r Bit 4 r r r SECIF SECIE r Bit 3 PANCOORD CMDONLY r RXIF RXIE r Bit 2 COORD DATAONLY RSTPWR TXG2IF TXG2IE RXDECINV Bit 1 ERRPKT BCNONLY RSTBB TXG1IF TXG1IE r Bit 0 PROMI RXFLUSH RSTMAC TXNIF TXNIE r
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 105
MRF24J40
3.12 Transmission
IEEE 802.15.4 Standard defines four frame types: Acknowledgment, Data, Beacon and MAC Command frame. The transmission of the Acknowledgment frame is handled automatically in hardware by the MRF24J40 and is covered in Section 3.13 “Acknowledgement”. Hardware management of the transmission of data, beacon and MAC command frames are handled in four transmit (TX) FIFOs. Each TX FIFO has a specific purpose depending on if the MRF24J40 is configured for Beacon or Nonbeacon-Enabled mode. Configuring the MRF24J40 for beacon-enabled network operation is covered in Section 3.8.1 “Beacon-Enabled Network”. Configuring the MRF24J40 for nonbeacon-enabled network operation is covered in Section 3.8.2 “Nonbeacon-Enabled Network”. The four TX FIFOs are: TX Normal FIFO – Used for the transmission of data and MAC command frames during the Contention Access Phase (CAP) of the superframe if the device is operating in Beacon-Enabled mode and for all transmissions when the device is operating in Nonbeacon-Enabled mode. TX Beacon FIFO – Used for the transmission of the beacon frames. TX GTS1 FIFO and TX GTS2 FIFO – Used for the transmission of data during the Contention Free Period (CFP) of the superframe if the device is operating in Beacon-Enabled mode. Refer to Section 3.8.1 “Beacon-Enabled Network” for more information about guaranteed time slots in Beacon-Enabled mode. Figure 3-10 summarizes the memory map for each of the TX FIFOs. Each TX FIFO occupies 128 bytes of memory and can hold one frame at a time. Figure 3-11 shows the flow of data from the TX FIFO to on air packet and summarizes the data, beacon and MAC command frames.
FIGURE 3-10:
MEMORY MAP OF TX FIFOS
Long Address Memory Space
0x000 TX Normal FIFO 0x07F 0x080 TX Beacon FIFO 0x0FF 0x100 TX GTS1 FIFO 0x17F 0x180 TX GTS2 FIFO 0x1FF 128 bytes 128 bytes 128 bytes 128 bytes
DS39776B-page 106
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
FIGURE 3-11: PACKET TRANSMISSION
1 From TX FIFO TX FIFO Header Length (m) 1 Frame Length (m + n) m Header Header n Data Payload Payload octets
2 Data Frame Format Frame Control
1
Sequence Number
4 – 20 Addressing Fields
n Data Payload MSDU
2 FCS MFR n–1 2 FCS MFR n–m–k–2 Beacon Payload 2 FCS MFR
octets
MHR 2 MAC Command Frame Format Frame Control 1
Sequence Number
4 – 20 Addressing Fields
1 Command Type
octets
Command Payload MSDU
MHR 2 Beacon Frame Format Frame Control 1
Sequence Number
4 – 10 Addressing Fields
2
Superframe Specification
k GTS Fields
m Pending Address Fields MSDU 8 – 127 PSDU
octets
MHR 4 PHY Packet Structure 1 SFD 1 Frame Length PHR
octets
Preamble
SHR
PHY Payload
To Air
On Air Packet
PPDU
Fields appended by TXMAC Fields appended by TX baseband
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 107
MRF24J40
3.12.1 TX FIFOs FRAME STRUCTURE
The TX FIFOs are divided into four fields: Header length – Used primarily in Security mode and contains the length, in octets (bytes), of the MAC Header (MHR). In Unsecure mode, this field is ignored. transmitted using in-line security, the Message Integrity Code (MIC) will be appended in the data payload by the MRF24J40. Refer to Section 3.17 “Security” for more information about transmitting and receiving data in Security mode. In Beacon-Enabled mode, the MRF24J40 will handle superframe timing, transmission of the beacon and data packets during CAP and CFP.
Note:
The header length field as implemented in the MRF24J40 is 5-bits long. Therefore, the header length maximum value is 31 octets (bytes).
3.12.2
TX NORMAL FIFO
Frame length – Contains the length, in octets (bytes), of the MAC Header (MHR) and data payload. Header – Contains the MAC Header (MHR). Payload – Contains the data payload. When the individual TX FIFO is triggered, the MRF24J40 will handle transmitting the packet using the CSMA-CA algorithm, Acknowledgment of the packet (optional), retransmit if Acknowledgment not received within required time period and interframe spacing. The MRF24J40 will add the Synchronization Header (SHR), PHY Header (PHR) and Frame Check Sequence (FCS) automatically. If a packet is to be
In Beacon-Enabled mode, the TX Normal FIFO is used for the transmission of data and MAC command frames during the Contention Access Phase (CAP) of the superframe. In Nonbeacon-Enabled mode, the TX Normal FIFO is used for all transmissions. To transmit a packet in the TX Normal FIFO, perform the following steps: 1. The host processor loads the TX Normal FIFO with IEEE 802.15.4 compliant data or MAC command frame using the format shown in Figure 3-12.
FIGURE 3-12:
octets Packet Structure
FIGURE 3-12: TX NORMAL FIFO FORMAT
1 Header Length (m) 1 Frame Length (m + n) m Header n Payload
TX Normal FIFO Memory Address
0x000
0x001
0x002 – (0x002 + m – 1)
(0x002 + m) – (0x002 + m + n – 1)
2.
3.
If the packet requires an Acknowledgment, the Acknowledgment request bit in the frame control field should be set to ‘1’ in the MAC Header (MHR) when the host microcontroller loads the TX Normal FIFO, and set the TXNACKREQ (TXNCON 0x1B) bit = 1. Refer to Section 3.13 “Acknowledgement” for more information about Acknowledgment configuration. If the frame is to be encrypted, the security enabled bit in the frame control field should be set to ‘1’ in the MAC Header (MHR) when the host microcontroller loads the TX Normal FIFO, and set the TXNSECEN (TXNCON 0x1B) bit = 1. Refer to Section 3.17 “Security” for more information about Security modes.
4.
5.
Transmit the packet by setting the TXNTRIG (TXNCON 0x1B) bit = 1. The bit will be automatically cleared by hardware. A TXNIF (INTSTAT 0x31) interrupt will be issued. The TXNSTAT (TXSTAT 0x24) bit indicates the status of the transmission: TXNSTAT = 1: Transmission was successful TXNSTAT = 0: Transmission failed, retry count exceeded The number of retries of the most recent transmission is contained in the TXNRETRY (TXSTAT 0x24) bits. The CCAFAIL (TXSTAT 0x24) bit = 1 indicates if the failed transmission was due to the channel busy (CSMA-CA timed out).
DS39776B-page 108
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
3.12.3 TX BEACON FIFO
In Beacon-Enabled mode, the TX Beacon FIFO is used for the transmission of beacon frames during the beacon slot of the superframe. In Nonbeacon-Enabled mode, the TX Beacon FIFO is used for the transmission of a beacon frame at the time it is triggered (transmitted). To transmit a packet in the TX Beacon FIFO, perform the following steps: 1. The host processor loads the TX Beacon FIFO with an IEEE 802.15.4 compliant beacon frame using the format shown in Figure 3-13.
FIGURE 3-13:
octets Packet Structure
TX BEACON FIFO FORMAT
1 Header Length (m) 1 Frame Length (m + n) m Header n Payload
TX Beacon FIFO Memory Address
0x080
0x081
0x082 – (0x082 + m – 1)
(0x082 + m) – (0x082 + m + n – 1)
2.
If the beacon frame is to be encrypted, the security enabled bit in the frame control field should be set to ‘1’ in the MAC Header (MHR) when the host microcontroller loads the TX Beacon FIFO, and set the TXBSECEN (TXBCON 0x1A) bit = 1. Refer to Section 3.17 “Security” for more information about Security modes.
3.
Transmit the packet by setting the TXBTRIG (TXBCON 0x1A) bit = 1. The bit will be automatically cleared by hardware. If the MRF24J40 is configured for Beacon-Enabled mode, the beacon frame will be transmitted at the beacon slot time at the beginning of the superframe. In Nonbeacon-Enabled mode, the beacon frame is transmitted at the time of triggering.
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 109
MRF24J40
3.12.4 TX GTSx FIFO
In Beacon-Enabled mode, the TX GTSx FIFOs are used for the transmission of data or MAC command frames during the CFP of the superframe. Refer to Section 3.8.1 “Beacon-Enabled Network” for more information about guaranteed time slots in Beacon-Enabled mode. To transmit a packet in the TX GTSx FIFO, perform the following steps: 1. The host processor loads the respective TX GTSx FIFO with an IEEE 802.15.4 compliant data or MAC command frame using the format shown in Figure 3-14.
FIGURE 3-14:
octets Packet Structure
TX GTS1 AND GTS2 FIFOS FORMAT
1 Header Length (m) 1 Frame Length (m + n) m Header n Payload
TX GTS1 FIFO Memory Address
0x100
0x101
0x102 – (0x102 + m – 1)
(0x102 + m) – (0x102 + m + n – 1)
TX GTS2 FIFO Memory Address
0x180
0x181
0x182 – (0x182 + m – 1)
(0x182 + m) – (0x182 + m + n – 1)
2.
3.
4.
5.
If the packet requires an Acknowledgment, the Acknowledgment request bit in the frame control field should be set to ‘1’ in the MAC Header (MHR) when the host microcontroller loads the respective TX GTSx FIFO, and set the TXG1ACKREQ (TXG1CON 0x1C) or TXG2ACKREQ (TXG2CON 0x1D) bit = 1. Refer to Section 3.13 “Acknowledgement” for more information about Acknowledgment configuration. Program the number of retry times for the respective TX GTSx FIFO in the TXG1RETRY (TXG1CON 0x1C) or TXG2RETRY (TXG2CON 0x1D) bits. If the frame is to be encrypted, the security enabled bit in the frame control field should be set to ‘1’ in the MAC Header (MHR) when the host microcontroller loads the TX GTSx FIFO, and set the TXG1SECEN (TXG1CON 0x1C) or TXG2SECEN (TXG2CON 0x1D) bit = 1. Refer to Section 3.17 “Security” for more information about Security modes. Program the slot number for the respective TX GTSx FIFO in the TXG1SLOT (TXG1CON 0x1C or TXG2SLOT (TXG2CON 0x1D) bits.
6.
7.
Transmit the packet in the respective TX GTSx FIFO by setting the TXG1TRIG (TXG1CON 0x1C) or TXG2TRIG (TXG2CON 0x1D) bit = 1. The bit will be automatically cleared by hardware. The packet will be transmitted at the corresponding slot time of the superframe. A TXG1IF (INTSTAT 0x31) or TXG2IF (INTSTAT 0x31) interrupt will be issued. The TXG1STAT (TXSTAT 0x24) or TXG2STAT (TXSTAT 0x24) bit indicates the status of the transmission: TXGxSTAT = 1: Transmission was successful TXGxSTAT = 0: Transmission failed, retry count exceeded The number of retries of the most recent transmission is contained in the TXG1RETRY (TXG1CON 0x1C) or TXG2RETRY (TXG2CON 0x1D) bits. The CCAFAIL (TXSTAT 0x24) bit = 1 indicates if the failed transmission was due to the channel busy (CSMA-CA timed out). The TXG1FNT (TXSTAT 0x24) or TXG2FNT (TXSTAT 0x24) bit = 1 indicates if the TX GTSx FIFO transmission failed due to not enough time to transmit in the guaranteed time slot.
DS39776B-page 110
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
TABLE 3-16:
Addr. Name 0x1A TXBCON0 0x1B TXNCON 0x1C TXG1CON 0x1D TXG2CON 0x24 TXSTAT 0x31 INTSTAT 0x32 INTCON
REGISTERS ASSOCIATED WITH TRANSMISSION
Bit 7 r r Bit 6 r r Bit 5 r r TXG1SLOT2 TXG2SLOT2 CCAFAIL HSYMTMRIF HSYMTMRIE Bit 4 r FPSTAT TXG1SLOT1 TXG2SLOT1 TXG2FNT SECIF SECIE Bit 3 r INDIRECT TXG1SLOT0 TXG2SLOT0 TXG1FNT RXIF RXIE Bit 2 r TXNACKREQ TXG1ACKREQ TXG2ACKREQ TXG2STAT TXG2IF TXG2IE Bit 1 TXBSECEN TXNSECEN TXG1SECEN TXG2SECEN TXG1STAT TXG1IF TXG1IE Bit 0 TXBTRIG TXNTRIG TXG1TRIG TXG2TRIG TXNSTAT TXNIF TXNIE
TXG1RETRY1 TXG1RETRY0 TXG2RETRY1 TXG2RETRY0 TXNRETRY1 SLPIF SLPIE TXNRETRY0 WAKEIF WAKEIE
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 111
MRF24J40
3.13 Acknowledgement
An Acknowledgment frame is used for confirming successful frame reception. The successful reception of a data or MAC command frame can be optionally confirmed with an Acknowledgment frame. If the originator does not receive an Acknowledgment after, at most macAckWaitDuration (54) symbols, it assumes that the transmission was unsuccessful and retries the frame transmission. The turnaround time from the reception of the packet to the transmission of the Acknowledgment shall be less than aTurnaroundTime (12) symbols. Acknowledgment frames are sent without using a CSMA-CA mechanism. Refer to IEEE 802.15.4-2003 Standard, Section 7.5.6.4 “Use of Acknowledgments” for more information. The MRF24J40 provides hardware support for: • Acknowledgment Request – Originator • Acknowledgment Request – Recipient • Reception of Acknowledgment with Frame Pending bit • Transmission of Acknowledgment with Frame Pending bit These features are explained below. The MRF24J40 features hardware retransmit. It will automatically retransmit the packet if an Acknowledgment has not been received. The Acknowledgment request bit in the frame control field should be programmed into the transmit FIFO of interest and the applicable xACKREQ bit should be set: • TXNACKREQ (TXNCON 0x1B) – When the TX Normal FIFO transmits a frame, an Acknowledgment frame is expected. If an Acknowledgment is not received, retransmit. • TXG1ACKREQ (TXG1CON 0x1C) – When the TX GTS1 FIFO transmits a frame, an Acknowledgment frame is expected. If an Acknowledgment is not received, retransmit. • TXG2ACKREQ (TXG2CON 0x1D) – When the TX GTS2 FIFO transmits a frame, an Acknowledgment frame is expected. If an Acknowledgment is not received, retransmit. When the frame is transmitted, the MRF24J40 will expect an Acknowledgment frame within macAckWaitDuration. If an Acknowledgment is not received, it will retransmit aMaxFrameRetries. The macAckWaitDuration value can be programmed by the MAWD (ACKTMOUT 0x12) bits. The aMaxFrameRetries value is a constant and not configurable. The number of retry times of the most recent TXNFIFO transmission can be read in the TXNRETRY (TXSTAT 0x24) bits. The number of retry times for the TX GTS1 FIFO and TX GTS2 FIFO can be programmed or read in the TXG1RETRY (TXG1CON 0x1C) and TXG2RETRY (TXG2CON 0x1D) bits.
3.13.1
ACKNOWLEDGMENT REQUEST – ORIGINATOR
A data or MAC command frame, transmitted by an originator with the Acknowledgment request subfield in its frame control field set to ‘1’, shall be Acknowledged by the recipient. The originator shall wait for at most macAckWaitDuration (54) symbols for the corresponding Acknowledgment frame to be received. If an Acknowledgment is received, the transmission is successful. If an Acknowledgment is not received, the originator shall conclude that the transmission failed. If the transmission was direct, the originator shall retransmit the data or MAC command frame and wait. If an Acknowledgment is not received after aMaxFrameRetries (3) transmissions, the originator shall assume the transmission has failed and notify the upper layers of the failure.
DS39776B-page 112
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
3.13.2 ACKNOWLEDGMENT REQUEST – RECIPIENT
The MRF24J40 features hardware automatic Acknowledgment. It will automatically Acknowledge a frame if the received frame has the Acknowledgment request subfield in the frame control field set to ‘1’. This will maintain the RX-TX timing requirements of the IEEE 802.15.4 Specification. Automatic Acknowledgment is enabled by clearing the NOACKRSP (RXMCR 0x00) bit = 0. To disable automatic Acknowledgment, set the NOACKRSP (RXMCR 0x00) bit = 1. The transmission of an Acknowledgment frame in a nonbeacon-enabled network, or in the CFP, shall commence aTurnaroundTime (12) symbols after the reception of the data or MAC command frame. The transmission of an Acknowledgment frame in the CAP shall commence at a backoff slot boundary. In this case, the transmission of an Acknowledgment frame shall commence between aTurnaroundTime and (aTurnaroundTime + aUnitBackoffPeriod) symbols after the reception of the data or MAC command frame. The IEEE 802.15.4 Specification defines aTurnaroundTime as a constant value of 12 symbol periods. The aTurnaroundTime can be programmed by the TURNTIME (TXTIME 0x27) and RFSTBL (TXSTBL 0x2E) bits where aTurnaroundTime = TURNTIME + RFSTBL.
3.13.3
RECEPTION OF ACKNOWLEDGMENT WITH FRAME PENDING BIT
The status of the frame pending bit in the frame control field of the received Acknowledgment frame is reflected in the FPSTAT (TXNCON 0x1B) bit.
3.13.4
TRANSMISSION OF ACKNOWLEDGMENT WITH FRAME PENDING BIT
The frame pending bit in the frame control field of an Acknowledgment frame indicates that a device has additional data to send to the recipient following the current transfer. Refer to IEEE 802.15.4-2003 Standard, Section 7.2.1.1.3 “Frame Pending Subfield”. Acknowledgment of a data request MAC command – In response to a data request MAC command, if the MRF24J40 has additional (pending) data, it can set the frame pending bit of the Acknowledgment frame by setting DRPACK (ACKTMOUT 0x12) = 1. This will only set the frame pending bit for an Acknowledgment of a data request MAC command.
TABLE 3-17:
Addr. Name 0x00 RXMCR 0x12 ACKTMOUT 0x1B TXNCON 0x1C TXG1CON 0x1D TXG2CON 0x21 TXPEND 0x24 TXSTAT 0x27 TXTIME 0x2E TXSTBL
REGISTERS ASSOCIATED WITH ACKNOWLEDGEMENT
Bit 7 r DRPACK r Bit 6 r MAWD6 r Bit 5 NOACKRSP MAWD5 r Bit 4 r MAWD4 FPSTAT TXG1SLOT1 TXG2SLOT1 MLIFS2 TXG2FNT TURNTIME0 RFSTBL0 Bit 3 PANCOORD MAWD3 INDIRECT TXG1SLOT0 TXG2SLOT0 MLIFS1 TXG1FNT r MSIFS3 Bit 2 COORD MAWD2 TXNACKREQ TXG1ACKREQ TXG2ACKREQ MLIFS0 TXG2STAT r MSIFS2 Bit 1 ERRPKT MAWD1 TXNSECEN TXG1SECEN TXG2SECEN GTSSWITCH TXG1STAT r MSIFS1 Bit 0 PROMI MAWD0 TXNTRIG TXG1TRIG TXG2TRIG FPACK TXNSTAT r MSIFS0
TXG1RETRY1 TXG1RETRY0 TXG1SLOT2 TXG2RETRY1 TXG2RETRY0 TXG2SLOT2 MLIFS5 TXNRETRY1 TURNTIME3 RFSTBL3 MLIFS4 TXNRETRY0 TURNTIME2 RFSTBL2 MLIFS3 CCAFAIL TURNTIME1 RFSTBL1
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 113
MRF24J40
3.14 Battery Monitor
1. 2. 3. The MRF24J40 provides a battery monitor feature to monitor the system supplied voltage. A threshold voltage level (BATTH) can be set and the system supplied voltage can be monitored by the Battery Low Indicator (BATIND) to determine if the voltage is above or below the threshold. The following steps set the threshold and enable battery monitoring: Set the battery monitor threshold (BATTH) voltage in the RFCON5 (0x205) register. Enable battery monitoring by setting BATEN = 1 in the RFCON6 (0x206) register. Periodically, monitor the Battery Low Indicator (BATIND) bit in the RXSR (0x30) register to determine if the system supply voltage is above or below the battery monitor threshold (BATTH).
TABLE 3-18:
Addr. Name
0x30 RXSR 0x205 RFCON5 0x206 RFCON6
REGISTERS ASSOCIATED WITH POWER MANAGEMENT
Bit 7
r BATTH3 TXFIL
Bit 6
UPSECERR BATTH2 r
Bit 5
BATIND BATTH1 r
Bit 4
r BATTH0
Bit 3
r r
Bit 2
r r r
Bit 1
r r r
Bit 0
r r r
20MRECVR BATEN
DS39776B-page 114
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
3.15 Sleep
3.15.1.1 Sleep Clock Generation
The MRF24J40 can be placed into a low-current Sleep mode. During Sleep, the 20 MHz main oscillator is turned off, disabling the RF, baseband and MAC circuitry. Data is retained in the control and FIFO registers and the MRF24J40 is accessible via the SPI port. There are two Sleep modes: • Timed Sleep Mode • Immediate Sleep and Wake Mode Figure 3-15 shows the Sleep clock generation circuitry. The Sleep Clock (SLPCLK) frequency is selectable between a 100 kHz internal oscillator or a 32 kHz external crystal oscillator. The Sleep Clock Enable (SLPCLKEN) bit in the SLPCON0 (0x211) register can enable (SLPCLKEN = 0; default setting) or disable (SLPCLKEN = 1) the Sleep clock oscillators. The SLPCLK frequency can be further divided by the Sleep Clock Divisor (SLPCLKDIV) 0x220 bits. The SLPCLK frequency can be calibrated; the procedure is listed in Section 3.15.1.2 “Sleep Clock Calibration” below.
3.15.1
TIMED SLEEP MODE
The Timed Sleep Mode uses several counters to time events for the Sleep and wake-up of the MRF24J40. The following sections cover Sleep clock generation, calibration and counters.
FIGURE 3-15:
SLEEP CLOCK GENERATION
SLPCALEN (SLPCAL2 0x20B) SLPCALRDY (SLPCAL2 0x20B)
MAINCLK LPOSC2
Sleep Calibration Counter (SLPCAL)
32 kHz External Oscillator
LPOSC1 EN 01 Count 16 SLPCLK Periods
Sleep Clock Divisor (SLPCLKDIV) 100 kHz Internal Oscillator
EN 10
SLPCLK
SLPCLKSEL (RFCON7 0x207) SLPCLKEN (SLPCON0 0x211)
The 100 kHz internal oscillator requires no external components. However, it is not as accurate or stable as the 32 kHz external crystal oscillator. It is recommended that it be calibrated before use. See Section 3.15.1.2 “Sleep Clock Calibration” below for the Sleep clock calibration procedure. To select the 100 kHz internal oscillator as the source of SLPCLK, set the SLPCLKSEL bits (RFCON7 0x207 to ‘10’)
The 32 kHz external crystal oscillator provides better frequency accuracy and stability than the 100 kHz internal oscillator. The 32 kHz external crystal oscillator external circuitry is explained in detail in Section 2.7 “32 kHz External Crystal Oscillator”. To select the 32 kHz external crystal oscillator as the source of SLPCLK, set the SLPCLKSEL bits (RFCON7 0x207) to ‘01’.
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 115
MRF24J40
3.15.1.2 Sleep Clock Calibration
The SLPCLK frequency is calibrated by a 20-bit SLPCAL register clocked by the 20 MHz main oscillator (50 ns period). Sixteen samples of the SLPCLK are counted and stored in the SLPCAL register. To perform SLPCLK calibration: 1. 2. Select the source of SLPCLK. Begin calibration by setting the SLPCALEN bit (SLPCAL2 0x20B) to ‘1’. Sixteen samples of the SLPCLK are counted and stored in the SLPCAL register. Calibration is complete when the SLPCALRDY bit (SLPCAL2 0x20B) is set to ‘1’. Wake Time (0x223, 0x222) – An 11-bit value that is compared with the main counter value to signal the time to enable (wake-up) the 20 MHz main oscillator. Table 3-20 gives the recommended values for WAKETIME depending on the SLPCLK frequency. Wake Count (0x36, 0x35) – A 9-bit counter clocked by SLPCLK. During the time the wake counter is counting, the 20 MHz main oscillator is starting up, stabilizing and disabled to the RF, baseband and MAC circuitry. The recommended wake count period is 2 ms to allow the 20 MHz main oscillator to stabilize. Table 3-20 gives the recommended values for WAKECNT depending on the SLPCLK frequency.
3.
The 20-bit SLPCAL value is contained in registers, SLPCAL2, SLPCAL1 and SLPCAL0 (0x20B, 0x20A and 0x209). The Sleep clock period is calculated as follows:
PSLPCAL = SLPCAL * 50 ns/16
TABLE 3-19:
Mode
Beacon-Enabled Coordinator
MAIN AND REMAIN COUNTER TIMED EVENTS
Timed Event
Beacon Interval (BI) Inactive Period Sleep Interval
The SLPCLK frequency can be slowed by setting the Sleep Clock Division (SLPCLKDIV) bits (SLPCON1 0x220).
Beacon-Enabled Device Nonbeacon-Enabled Coordinator or Device
3.15.1.3
Sleep Mode Counters
Figure 3-16 shows the Sleep mode counters. A summary of the counters are: Main Counter (0x229, 0x228, 0x227, 0x226) – A 26-bit counter clocked by SLPCLK. Together with the Remain Counter times events as listed in Table 3-19. Remain Counter (0x225, 0x224) – A 16-bit counter clocked by MAINCLK. Together with the Main Counter times events as listed in Table 3-19.
TABLE 3-20:
WAKE TIME AND WAKE COUNT RECOMMENDED VALUES
WAKETIME WAKECNT (2.1 ms) (2 ms)
0x0D2 0x045 0x0C8 0x042
SLPCLK SLPCLKDIV Source
100 kHz 32 kHz 0x01 0x00
DS39776B-page 116
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
FIGURE 3-16: SLEEP MODE COUNTERS
OSC1 OSC2
Wake Time (WAKETIME)
Compare
EN
20 MHz Main Oscillator
MAINCLK
EN SLPCLK
Main Counter (MAINCNT)
MAINCNT = 0 EN SLPCLK
Wake Count (WAKECNT)
WAKECNT = 0 WAKEIF WAKEIFIE
EN MAINCLK
Remain Counter (REMCNT)
REMCNT = 0
Beacon Interval (Beacon-Enabled Coordinator) Inactive Period (Beacon-Enabled Device)
Beacon-Enabled mode (BO ≠ 15, SLOTTED = 1) ? SLPACK (SLPACK 0x35)
Nonbeacon-Enabled mode (BO = 15, SLOTTED = 0) STARTCNT (MAINCNT3 0x229)
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 117
MRF24J40
Beacon-Enabled Coordinator mode – Figure 3-17 shows the Sleep time line for Beacon-Enabled Coordinator mode. In this mode, the sum of the main and remain counters is the Beacon Interval (BI) of the superframe. The MRF24J40 will transmit a beacon packet every:
Beacon Interval = (MAINCNT * SLPCLK Period) + (REMCNT * 50 ns)
The MRF24J40 alerts the host processor on the boundary of the active and inactive portion via a Sleep Alert Interrupt (SLPIF 0x31). The host microcontroller Acknowledges the interrupt (SLPACK 0x35), at which time, the MRF24J40 turns off the 20 MHz main oscillator. As the main counter counts, when WAKETIME = MAINCNT, the 20 MHz main oscillator is turned on. The wake counter counts as the 20 MHz main oscillator stabilizes and MAINCLK is disabled. The MRF24J40 alerts the host processor with a wake-up alert interrupt (0x31).
FIGURE 3-17:
Beacon
BEACON-ENABLED COORDINATOR SLEEP TIME LINE
Time Beacon
Beacon Interval (BI) Active Portion Superframe Duration (SD) Sleep Acknowledge SLPACK (0x35) Inactive Portion
Sleep Alert Interrupt SLPIF (0x31)
Wake-up Alert Interrupt WAKEIF (0x31)
Remain Counter Counts
Main Counter Counts
Wake Counter Counts (~2 ms)
Remain Counter Counts
20 MHz Main Oscillator Turned OFF WAKETIME = MAINCNT 20 MHz Main Oscillator Turned ON 20 MHz Main Oscillator Stable
Low-Current Sleep Period
DS39776B-page 118
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
Beacon-Enabled Device mode – Figure 3-18 shows the Sleep time line for Beacon-Enabled Device mode. In this mode, the sum of the main and remain counters is the inactive period of the superframe. The MRF24J40 will time the inactive period:
Inactive Period = (MAINCNT * SLPCLK Period) + (REMCNT * 50 ns)
The MRF24J40 alerts the host processor on the boundary of the active and inactive portion via a Sleep Alert Interrupt (SLPIF 0x31). The host microcontroller Acknowledges the interrupt (SLPACK 0x35), at which time, the MRF24J40 turns off the 20 MHz main oscillator. As the main counter counts, when WAKETIME = MAINCNT, the 20 MHz main oscillator is turned on. The wake counter counts as the 20 MHz main oscillator stabilizes. The MRF24J40 alerts the host processor with a wake-up alert interrupt (0x31).
FIGURE 3-18:
Beacon
BEACON-ENABLED DEVICE SLEEP TIME LINE
Time Beacon
Beacon Interval (BI) Active Portion Superframe Duration (SD) Sleep Acknowledge SLPACK (0x35) Inactive Portion
Sleep Alert Interrupt SLPIF (0x31)
Wake-up Alert Interrupt WAKEIF (0x31)
Remain Counter Counts
Main Counter Counts
Wake Counter Counts (~2 ms)
Remain Counter Counts
20 MHz Main Oscillator Turned OFF WAKETIME = MAINCNT 20 MHz Main Oscillator Turned ON 20 MHz Main Oscillator Stable
Low-Current Sleep Period
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 119
MRF24J40
Nonbeacon-Enabled (Coordinator or Device) mode – Figure 3-19 shows the Sleep time line for Nonbeacon-Enabled (Coordinator or Device) mode. In this mode, the host processor puts the MRF24J40 to Sleep
by setting the STARTCNT (0x229) bit. At the end of the Sleep interval, the MRF24J40 alerts the host processor with a wake-up alert interrupt (0x31).
Sleep Interval = (MAINCNT * SLPCLK Period) – WAKETIME + [(REMCNT * 50 ns)/2]
FIGURE 3-19:
NONBEACON-ENABLED (COORDINATOR OR DEVICE) SLEEP TIME LINE
Time Wake-up Alert Interrupt WAKEIF (0x31)
Remain Counter Counts
Main Counter Counts
Wake Counter Counts (~2 ms)
Remain Counter Counts
20 MHz Main Oscillator Turned OFF WAKETIME = MAINCNT 20 MHz Main Oscillator Turned ON 20 MHz Main Oscillator Stable
Low-Current Sleep Period
DS39776B-page 120
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
3.15.2 IMMEDIATE SLEEP AND WAKE-UP MODE
Wake-up can be performed in one of two methods: 1. Wake-up on WAKE pin 15. To enable the WAKE pin, set the WAKEPAD (0x0D) bit to ‘1’ and set the WAKE pin polarity. Set the WAKEPOL (0x0D) bit to ‘1’ for active-high signal, or clear to ‘0’ for active-low signal. Wake-up on register. To wake up the MRF24J40 from Sleep via the SPI port, set the REGWAKE (0x22) bit to ‘1’ and then clear to ‘0’. In the Immediate Sleep and Wake-up mode, the host microcontroller places the MRF24J40 to Sleep and wakes it up. To enable the Immediate Wake-up mode, set the IMMWAKE (0x22) bit to ‘1’. To place the MRF24J40 to Sleep immediately, perform the following two steps: 1. Perform a Power Management Reset by setting the RSTPWR (0x2A) bit to ‘1’. The bit will be automatically cleared to ‘0’ by hardware. Put the MRF24J40 to Sleep immediately by setting the SLPACK (0x35) bit to ‘1’. The bit will be automatically cleared to ‘0’ by hardware. or 2.
After wake-up, delay at least 2 ms to allow 20 MHz main oscillator time to stabilize before transmitting or receiving. Example 3-3 summarizes the steps to prepare the MRF24J40 for wake-up on WAKE pin and placing to Sleep.
2.
EXAMPLE 3-3:
IMMEDIATE SLEEP AND WAKE
The steps to prepare the MRF24J40 for immediate sleep and wake up on WAKE pin Prepare WAKE pin: 1. WAKE pin = low 2. RXCON (0x0D) = 0x60 – Enable WAKE pin and set polarity to active-high 3. WAKECON (0x22) = 0x80 – Enable Immediate Wake-up mode Put to Sleep: 4. SOFTRST (0x2A) = 0x04 – Perform a Power Management Reset 5. SLPACK (0x35) = 0x80 – Put MRF24J40 to Sleep immediately To Wake: 6. WAKE pin = high – Wake-up MRF24J40 7. Delay 2 ms to allow 20 MHz main oscillator time to stabilize before transmitting or receiving.
TABLE 3-21:
Addr. Name 0x31 INSTAT 0x32 INTCON 0x35 SLPACK 0x36 RFCTL 0x207 RFCON7 0x20B SLPCAL2 0x211 SLPCON0 0x220 SLPCON1 0x223 WAKETIMEH 0x224 REMCNTL 0x225 REMCNTH 0x226 MAINCNT0 0x227 MAINCNT1 0x228 MAINCNT2 0x229 MAINCNT3
REGISTERS ASSOCIATED WITH SLEEP
Bit 7 SLPIF SLPIE SLPACK r SLPCALRDY r r r REMCNT7 REMCNT15 MAINCNT7 MAINCNT15 MAINCNT23 STARTCNT Bit 6 WAKEIF WAKEIE WAKECNT6 r r r r r REMCNT6 REMCNT14 MAINCNT6 Bit 5 HSYMTMRIF HSYMTMRIE r r r r r REMCNT5 REMCNT13 MAINCNT5 Bit 4 SECIF SECIE Bit 3 RXIF RXIE Bit 2 TXG2IF TXG2IE WAKECNT2 RFRST r SLPCAL18 r Bit 1 TXG1IF TXG1IE WAKECNT1 r r SLPCAL17 INTEDGE r SLPCAL16 SLPCLKEN Bit 0 TXNIF TXNIE WAKECNT0
WAKECNT5 WAKECNT4 WAKECNT3 WAKECNT8 WAKECNT7 r SLPCALEN r r REMCNT4 REMCNT12 MAINCNT4 r SLPCAL19 r r REMCNT3 REMCNT11 MAINCNT3
SLPCLKSEL1 SLPCLKSEL0
CLKOUTEN SLPCLKDIV4 SLPCLKDIV3 SLPCLKDIV2 SLPCLKDIV1 SLPCLKDIV0 WAKETIME10 WAKETIME9 WAKETIME8 REMCNT2 REMCNT10 MAINCNT2 MAINCNT10 MAINCNT18 r REMCNT1 REMCNT9 MAINCNT1 MAINCNT9 REMCNT0 REMCNT8 MAINCNT0 MAINCNT8
MAINCNT14 MAINCNT13 MAINCNT12 MAINCNT11 MAINCNT22 MAINCNT21 MAINCNT20 MAINCNT19 r r r r
MAINCNT17 MAINCNT16 MAINCNT25 MAINCNT24
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 121
MRF24J40
3.16 MAC Timer
Many features of the IEEE 802.15.4-2003 Standard are based on a symbol period of 16 μs. A 16-bit MAC timer is provided to generate interrupts configurable in multiples of 8 μs. The MAC timer begins counting down when a value is written to the HSYMTMRH (0x29) register. A HSYMTMRIF (0x31) interrupt is generated when the count reaches zero.
TABLE 3-22:
Addr. Name 0x28 HSYMTMRL 0x31 INSTAT 0x32 INTCON
REGISTERS ASSOCIATED WITH THE MAC TIMER
Bit 7 HSYMTMR7 SLPIF SLPIE Bit 6 HSYMTMR6 WAKEIF WAKEIE Bit 5 HSYMTMR5 HSYMTMRIF HSYMTMRIE Bit 4 HSYMTMR4 SECIF SECIE Bit 3 HSYMTMR3 RXIF RXIE Bit 2 Bit 1 Bit 0 HSYMTMR2 HSYMTMR1 HSYMTMR0 TXG2IF TXG2IE TXG1IF TXG1IE TXNIF TXNIE
0x29 HSYMTMRH HSYMTMR15 HSYMTMR14 HSYMTMR13 HSYMTMR12 HSYMTMR11 HSYMTMR10 HSYMTMR9 HSYMTMR8
DS39776B-page 122
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
3.17 Security
FIGURE 3-20:
The MRF24J40 provides a hardware security engine that implements the Advanced Encryption Standard, 128-bit (AES-128) according to the IEEE 802.15.4-2003 Standard. The MRF24J40 supports seven security suites which provide a group of security operations designed to provide security services on MAC and upper layer frames. • • • • • • • AES-CTR AES-CCM-128 AES-CCM-64 AES-CCM-32 AES-CRC-MAC-128 AES-CRC-MAC-64 AES-CRC-MAC-32
MEMORY MAP OF SECURITY KEY FIFO
Long Address Memory Space
0x280 0x28F 0x290 0x29F 0x2A0 0x2AF 0x2B0 0x2BF
TX Normal FIFO Security Key TX GTS1 FIFO Security Key TX GTS2 FIFO/ TX Beacon FIFO Security Key RX FIFO Security Key
16 bytes
16 bytes
16 bytes
Security keys are stored in the Security Key FIFO. Four security keys, three for encryption and one for decryption, are stored in the memory locations shown in Figure 3-20. The security engine can be used for the encryption and decryption of MAC sublayer frames for transmission and reception of secured frames and provide security encryption and decryption services to the upper layers. These functions are described in the following subsections.
16 bytes
Note:
The TX GTS2 FIFO and TX Beacon FIFO share the same security key memory location.
3.17.1
MAC SUBLAYER TRANSMIT ENCRYPTION
A frame can be encrypted and transmitted from each of the TX FIFOs. Table 3-23 lists the TX FIFO and associated security key memory address and control register bits.
TABLE 3-23:
TX FIFO
TX Normal FIFO TX GTS1 FIFO TX GTS2 FIFO TX Beacon FIFO
ENCRYPTION SECURITY KEY AND CONTROL REGISTER BITS
Security Key Memory Address
0x280-0x28F 0x290-0x29F 0x2A0-0x2AF 0x2A0-0x2AF
Security Suite Select Bits
TXNCIPHER (SECCON0 0x2C) TXG1CIPHER (SECCR2 0x37) TXG2CIPHER (SECCR2 0x37) TXBCIPHER (SECCON1 0x2D)
Security Enable Bits
TXNSECEN (TXNCON 0x1B) TXG1SECEN (TXG1CON 0x1C) TXG2SECEN (TXG2CON 0x1D) TXBCNSECEN (TXBCON 0x1A)
Trigger Bit
TXNTRIG (TXNCON 0x1B) TXG1TRIG (TXG1CON 0x1C) TXG2TRIG (TXG2CON 0x1D) TXBCNTRIG (TXBCON 0x1A)
Note:
The TX GTS2 FIFO and TX Beacon FIFO share the same security key memory location.
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 123
MRF24J40
To transmit a secured frame, perform the following steps: 1. The host processor loads one of the four TX FIFOs with an IEEE 802.15.4 compliant frame to be encrypted using the format shown in Figure 3-21.
FIGURE 3-21:
1 TX FIFO Header Length (m) 1
SECURITY TX FIFO FORMAT
m Header Header n Data Payload octets
Frame Length (m + n)
2 MAC Sublayer Encryption (Transmit) Frame Control
1
Sequence Number
4 – 20 Addressing Fields
4
Frame Counter
1
Key Sequence Counter
n–5 Encrypted Payload MSDU
4/8/16
Integrity Code
2 FCS MFR
octets
MHR
Fields appended by TXMAC
2.
3.
Program the corresponding TX FIFO 128-bit security key into the Security Key FIFO memory address, as shown in Table 3-23. Select the security suite for the corresponding TX FIFO and program the security select bits as shown in Table 3-23. The security suite selection values are shown in Table 3-24.
TX Normal FIFO – A TXNIF (INTSTAT 0x31) interrupt will be issued. The TXNSTAT (TXSTAT 0x24) bit indicates the status of the transmission:
TXNSTAT = 0: Transmission was successful TXNSTAT = 1: Transmission failed, retry count exceeded The number of retries of the most recent transmission is contained in the TXNRETRY (TXSTAT 0x24) bits. The CCAFAIL (TXSTAT 0x24) bit = 1 indicates if the failed transmission was due to the channel busy (CSMA-CA timed out).
TABLE 3-24:
SECURITY SUITE SELECTION VALUE
Security Suite Select Bits (see Table 3-23)
000 001 010 011 100 101 110 111
Mode
None AES-CTR AES-CCM-128 AES-CCM-64 AES-CCM-32 AES-CBC-MAC-128 AES-CBC-MAC-64 AES-CBC-MAC-32 4.
TX GTSx FIFO – A TXG1IF (INTSTAT 0x31) or TXG2IF (INTSTAT 0x31) interrupt will be issued. The TXG1STAT (TXSTAT 0x24) or TXG2STAT (TXSTAT 0x24) bit indicates the status of the transmission:
TXGxSTAT = 1: Transmission was successful TXGxSTAT = 0: Transmission failed, retry count exceeded The number of retries of the most recent transmission is contained in the TXG1RETRY (TXG1CON 0x1C) or TXG2RETRY (TXG2CON 0x1D) bits. The CCAFAIL (TXSTAT 0x24) bit = 1 indicates if the failed transmission was due to the channel busy (CSMA-CA timed out). The TXG1FNT (TXSTAT 0x24) or TXG2FNT (TXSTAT 0x24) bit = 1 indicates if TX GTSx FIFO transmission failed due to not enough time to transmit in the guaranteed time slot.
5.
Encrypt and transmit the packet by setting the Security Enable (TXxSECEN) = 1 and Trigger (TXxTRIG) bits = 1 for the respective TX FIFO, as shown in Table 3-23. Depending on which TX FIFO the secure packet was transmit from, the status of the transmission is read:
DS39776B-page 124
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
3.17.2 MAC SUBLAYER RECEIVE DECRYPTION
To receive and decrypt a secured frame from the RXFIFO, perform the following steps: 1. When a packet is received and the security enable bit = 1 in the frame control field, the MRF24J40 issues a Security Interrupt, SECIF (INTSTAT 0x31). The Security Interrupt indicates to the host microcontroller that the received frame was secured. The host microcontroller can choose to decrypt or ignore the frame. The format of the received frame is shown in Example 3-22.
FIGURE 3-22:
1 RXFIFO RXFIFO Address:
Frame Length (m+n+2)
SECURITY RX FIFO FORMAT
m Header (MHR) 0x301 to (0x301 + m – 1) n Data Payload (MSDU) (0x301 + m) to (0x301 + m + n – 1) (0x301 + m + n + 3) (0x301 + m + n + 2) (0x301 + m + n) to (0x301 + m + n + 1) 2 FCS 1 LQI 1 RSSI octets
0x300
2.
3.
If the decryption should be ignored, set the SECIGNORE (SECCON0 0x2C) bit = 1. The encrypted packet can be discarded or read from the RXFIFO and processed in the upper layers. The host microcontroller loads the security key into the RX FIFO Security Key memory location as shown in Table 3-25.
4.
5. 6.
Select the security suite and program the RXCIPHER (SECCON0 0x2C) bits. The security suite selection values are shown in Table 3-24. Start the decryption by setting the SECSTART (SECCON0 0x2C) bit = 1. When the decryption process is complete, a Receive Interrupt (RXIF 0x31) is issued.
TABLE 3-25:
DECRYPTION SECURITY KEY AND CONTROL REGISTER BITS
Security Key Memory Address
0x2B0-0x2BF
FIFO
RX FIFO
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 125
MRF24J40
3.17.3 UPPER LAYER ENCRYPTION
Note:
To encrypt an upper layer frame, perform the following steps: 1. The host microcontroller loads the TXNFIFO with the upper layer frame for encryption into the TXNFIFO using the format shown in Figure 3-23. The header length field indicates the number of octets (bytes) that is not encrypted. The header length field, as implemented in the MRF24J40, is 5 bits long. Therefore, the header length maximum value is 31 octets (bytes). This conforms to the IEEE 802.15.4-2003 Specification. However, it does not conform to the IEEE 802.15.4-2006 Standard. The work around is to: - Use a header length no longer than 31 octets (bytes) - Implement a security algorithm in the upper layers
FIGURE 3-23:
1 TX FIFO Header Length (m)
UPPER LAYER ENCRYPTION AND DECRYPTION FORMAT
1 Frame Length (m + n) m Header Header n Data Payload octets
m Upper Layer Encryption Upper Layer Security Header
n Upper Layer Encrypted Payload
octets
2.
3.
4.
5.
The host microcontroller loads the 13-byte NONCE value into the UPNONCE12 through UPNONCE0 (0x240 through 0x24C) registers. Program the 128-bit security key into the TX Normal FIFO Security Key FIFO memory address, 0x280 through 0x28F. Select the security suite and program the TXNCIPHER (SECCON0 0x2C) bits. The security suite selection values are shown in Table 3-24. Enable Upper Layer Security Encryption mode by setting the UPENC (SECCR2 0x37) bit = 1.
6. 7.
8.
Encrypt the frame by setting the TXNTRIG (TXNCON 0x1B) bit to 1. A TXNIF (INTSTAT 0x31) interrupt will be issued. The TXNSTAT (TXSTAT 0x24) bit = 0 indicates the encryption has completed. The encrypted frame is available in the TXNFIFO and can be read by the host microcontroller.
Application Hint: The encryption can be checked by decrypting the frame data (see next section) and comparing it to the original frame data.
DS39776B-page 126
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
3.17.4 UPPER LAYER DECRYPTION
3. To decrypt an upper layer frame, perform the following steps: 1. The host microcontroller loads the TXNFIFO with the upper layer frame for decryption into the TXNFIFO using the format shown in Figure 3-23. The header length field indicates the number of octets (bytes) that are not encrypted. The host microcontroller loads the 13-byte NONCE value into the UPNONCE12 through UPNONCE0 (0x240 through 0x24C) registers. Program the 128-bit security key into the TX Normal FIFO Security Key FIFO memory address, 0x280 through 0x28F. Select the security suite and program the TXNCIPHER (SECCON0 0x2C) bits. The security suite selection values are shown in Table 3-24. Enable Upper Layer Security Decryption mode by setting the UPDEC (SECCR2 0x37) bit = 1. Encrypt the frame by setting the TXNTRIG (TXNCON 0x1B) bit to 1. A TXNIF (INTSTAT 0x31) interrupt will be issued. The TXNSTAT (TXSTAT 0x24) bit = 0 indicates the encryption has completed. Check if a MIC error occurred by reading the UPSECERR (0x30) bit: UPSECERR = 0: No MIC error UPSECERR = 1: MIC error occurred; write ‘1’ to clear error 9. The decrypted frame is available in the TXNFIFO and can be read by the host microcontroller.
4.
5. 6. 7.
2.
Note:
The header length field, as implemented in the MRF24J40, is 5-bits long. Therefore, the header length maximum value is 31 octets (bytes). This conforms to the IEEE 802.15.4-2003 Specification. However, it does not conform to the IEEE 802.15.4-2006 Standard. The work around is to: - Use a header length no longer than 31 octets (bytes) - Implement a security algorithm in the upper layers
8.
TABLE 3-26:
Addr. Name 0x1A TXBCON0 0x1B TXNCON 0x1C TXG1CON 0x1D TXG2CON 0x24 TXSTAT 0x2C SECCON0 0x2D SECCON1 0x30 RXSR 0x31 INTSTAT 0x32 INTCON 0x37 SECCR2 0x240 UPNONCE0 0x241 UPNONCE1 0x242 UPNONCE2 0x243 UPNONCE3 0x244 UPNONCE4 0x245 UPNONCE5 0x246 UPNONCE6 0x247 UPNONCE7 0x248 UPNONCE8 0x249 UPNONCE9 0x24A UPNONCE10 0x24B UPNONCE11 0x24C UPNONCE12
REGISTERS ASSOCIATED WITH SECURITY
Bit 7 r r Bit 6 r r Bit 5 r r TXG1SLOT2 TXG2SLOT2 CCAFAIL RXCIPHER2 Bit 4 r FPSTAT TXG1SLOT1 TXG2SLOT1 TXG2FNT RXCIPHER1 TXBCIPHER0 r SECIF SECIE Bit 3 r INDIRECT TXG1SLOT0 TXG2SLOT0 TXG1FNT RXCIPHER0 r r RXIF RXIE Bit 2 r TXNACKREQ TXG1ACKREQ TXG2ACKREQ TXG2STAT TXNCIPHER2 r r TXG2IF TXG2IE Bit 1 TXBSECEN TXNSECEN TXG1SECEN TXG2SECEN TXG1STAT TXNCIPHER1 DISDEC r TXG1IF TXG1IE Bit 0 TXBTRIG TXNTRIG TXG1TRIG TXG2TRIG TXNSTAT TXNCIPHER0 DISENC r TXNIF TXNIE
TXG1RETRY1 TXG1RETRY0 TXG2RETRY1 TXG2RETRY0 TXNRETRY1 SECIGNORE r r SLPIF SLPIE UPDEC TXNRETRY0 SECSTART
TXBCIPHER2 TXBCIPHER1 UPSECERR WAKEIF WAKEIE UPENC BATIND HSYMTMRIF HSYMTMRIE
TXG2CIPHER2 TXG2CIPHER1 TXG2CIPHER0 TXG1CIPHER2 TXG1CIPHER1 TXG1CIPHER0 UPNONCE UPNONCE UPNONCE UPNONCE UPNONCE UPNONCE UPNONCE UPNONCE UPNONCE UPNONCE UPNONCE UPNONCE UPNONCE
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 127
MRF24J40
3.18 Turbo Mode
1. 2. 3. 4. The MRF24J40 provides a Turbo mode to transmit and receive at 625 kbps (2.5 times 250 kbps). This mode enables higher data rates for proprietary protocols. To configure the MRF24J40 for Turbo mode, perform the following steps: Enable Turbo mode by setting the TURBO (BBREG0 0x38) bit = 1. Set the baseband parameter, PREVALIDTH (BBREG3 0x3B) bits = 0011. Set baseband parameter, CSTH (BBREG4 0x3C) bits = 010. Perform a baseband circuitry Reset, RSTBB (SOFTRST 0x2A) = 1.
TABLE 3-27:
Addr. Name 0x2A SOFTRST 0x38 BBREG0 0x3B BBREG3 0x3C BBREG4
REGISTERS ASSOCIATED WITH TURBO MODE
Bit 7 r r Bit 6 r r Bit 5 r r Bit 4 r r Bit 3 r r PREDETTH2 PRECNT1 Bit 2 RSTPWR r PREDETTH1 PRECNT0 Bit 1 RSTBB r PREDETTH0 r Bit 0 RSTMAC TURBO r r
PREVALIDTH3 PREVALIDTH2 PREVALIDTH1 PREVALIDTH0 CSTH2 CSTH1 CSTH0 PRECNT2
DS39776B-page 128
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
4.0
4.1
APPLICATIONS
Antenna/Balun
Figure 4-1 is an example of the circuit diagram of a balun to match to a 50Ω antenna. A balun is the impedance transformer from unbalanced input of the PCB antenna and the balanced input of the RF transceiver (pins RFP and RFN).
Figure 4-2 shows the measured impedance of the balun where the center of the band is very close to 50Ω. When using low tolerance components (i.e., ±5%) along with an appropriate ground, the impedance will remain close to the 50Ω measurement.
FIGURE 4-1:
EXAMPLE BALUN CIRCUIT DIAGRAM
+V C12 0.01 μF
L2 10 nH 50Ω ANT L4 4.7 nH C15 0.5 pF RFP C14 0.5 pF L1 10 nH C17 0.3 pF C16 0.5 pF L3 5.6 nH C2 0.5 pF
RFN
FIGURE 4-2:
BALUN CIRCUIT MEASURED IMPEDANCE
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 129
MRF24J40
4.2 External PA/LNA Control
TABLE 4-1:
External PA, LNA and RF switches can be controlled by the MRF24J40 internal RF state machine. Figure 4-3 shows a typical application circuit with external PA, LNA and RF switches. Setting TESTMODE (0x22F) bits to ‘111’ will configure pins, GPIO0, GPIO1 and GPIO2, to operate according to Table 4-1. The external PA/LNA timing diagram is shown in Figure 4-4.
GPIO EXTERNAL PA/LNA SIGNALING
Receive
Low Low High
GPIO
GPIO0 GPIO1 GPIO2
Transmit
High High Low
Maximum Current Source
4 ma 1 ma 1 ma
FIGURE 4-3:
Antenna
EXTERNAL PA/LNA BLOCK DIAGRAM
RF Switch
LNA Enable
RF Switch
LNA
Balun
PA
PA Enable
RFP RFN
MRF24J40
GPIO0 GPIO1 GPIO2
DS39776B-page 130
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
FIGURE 4-4: EXTERNAL PA/LNA TIMING DIAGRAM
Time
Receive
Transmit
Beginning of Transmit
Beginning of Packet
GPIO0
GPIO1
GPIO2 tPAON
18 µs
tTXON
98 µs
tRFSTBL
144 µs
RF Stabilization Time (tRFSTBL) = RFSTBL * 16 µs 144 µs = 9 * 16 µs Transmit On Time (tTXON) = TXONTS * 16 µs + TXONT * 50 ns 98 µs = 6 * 16 µs + 40 * 50 ns PA On Time (tPAON) = PAONTS * 16 µs + PAONT + 50 ns 18.05 µs = 1 * 16 µs + 41 * 50 ns
Rule: trfstbl > ttxon > tpaon
TABLE 4-2:
Addr. Name
REGISTERS ASSOCIATED WITH EXTERNAL PA/LNA
Bit 7 Bit 6 Bit 5 TXONT6 PAONT5 r TXONTS3 r Bit 4 TXONT6 PAONT4 PAONTS3 TXONTS2 RFSTBL0 Bit 3 TXONT6 PAONT3 PAONTS2 TXONTS1 MSIFS3 Bit 2 TXONT6 PAONT2 PAONTS1 TXONTS0 MSIFS2 Bit 1 TXONT6 PAONT1 PAONTS0 TXONT8 MSIFS1 Bit 0 TICKP8 PAONT0 PAONT8 TXONT7 MSIFS0 TXONT6 TXONT6 PAONT7 r FIFOEN r PAONT6 r r r
0x15 SYMTICKH 0x16 PACON0 0x17 PACON1 0x18 PACON2 0x2E TXSTBL 0x22F TESTMODE
RFSTBL3 RFSTBL2 RFSTBL1
RSSIWAIT1 RSSIWAIT0 TESTMODE2 TESTMODE1 TESTMODE0
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 131
MRF24J40
4.3 PCB Layout Design
The following guidelines are intended to aid users in high-frequency PCB layout design. The printed circuit board is comprised of four basic FR4 layers: signal layout, RF ground, power line routing and ground (see Figure 4-5). The guidelines will explain the requirements of these layers.
FIGURE 4-5:
FOUR BASIC COPPER FR4 LAYERS
Signal Layout, Thickness = 1.8 mils Dielectric ε = 4.5, Thickness = 7 mils
RF Ground, Thickness = 1.2 mils
Dielectric ε = 4.5, Thickness = 19 mils
Power Line Routing, Thickness = 1.2 mils Dielectric ε = 4.5, Thickness = 7 mils Ground, Thickness = 1.8 mils
Note:
Care should be taken with all ground lines to prevent breakage.
• It is important to keep the original PCB thickness since any change will affect antenna performance (see total thickness of dielectric) or microstrip lines characteristic impedance. • The first layer width of a 50Ω characteristic impedance microstrip line is 12 mils. • Avoid having microstrip lines longer than 2.5 cm, since that line might get very close to a quarter wave length of the working frequency of the board which is 3.0 cm, and start behaving as an antenna. • Except for the antenna layout, avoid sharp corners since they can act as an antenna. Round corners will eliminate possible future EMI problems. • Digital lines by definition are prone to be very noisy when handling periodic waveforms and fast clock/switching rates. Avoid laying out a RF signal close to any digital lines.
• A via filled ground patch underneath the IC transceiver is mandatory. • A power supply must be distributed to each pin in a star topology and low-ESR capacitors must be placed at each pin for proper decoupling noise. • Thorough decoupling on each power pin is beneficial for reducing in-band transceiver noise, particularly when this noise degrades performance. Usually, low value caps (27-47 pF) combined with large value caps (100 nF) will cover a large spectrum of frequency. • Passive components (inductors) must be in the high-frequency category and the SRF (Self-Resonant Frequency) should be at least two times higher than the operating frequency.
DS39776B-page 132
Preliminary
© 2008 Microchip Technology Inc.
4.4
4.4.1
MRF24J40 Schematic and Bill of Materials
SCHEMATIC
C12 0.01 μF
C13 47 pF L2 10 nH 1 2 3 4 5 6 7 8 9 10
40 39 38 NC 37 36 35 34 33 32 31
L4 4.7 nH C17 0.3 pF C16 0.5 pF
C15 0.5 pF
C14 0.5 pF
LCAP VDD NC VDD GND VDD OSC1 OCS2 VDD VDD
C2 0.5 pF
GPIO2 GPIO3 RESET GND WAKE INT SDO SDI SCK CS
11 12 13 14 15 16 17 18 19 20
© 2008 Microchip Technology Inc.
FIGURE 4-6:
MRF24J40 SCHEMATIC
VIN
C6 47 pF
VIN
C19 20 pF
C7 0.01 μF C8 1 μF VIN 50Ω Antenna
VIN
X1
20.00 MHz VIN
C18 20 pF C9 100 pF VIN
C5 47 pF
Preliminary
DS39776B-page 133
C4 47 pF
0.01 μF
L1 10 nH L3 5.6 nH
VDD RFP RFN VDD VDD GND GPIO0 GPIO1 GPIO5 GPIO4
NC NC LPOSC1 LPOSC2 IC1 NC MRF24J40/ML GND GND NC GND VDD
30 NC 29 NC 28 NC 27 NC 26 NC 25 24 23 NC 22 21
VIN
C3 0.01 μF
MRF24J40
CS VIN SCK SDI VIN INT WAKE RESET VIN 5 VCC 1 OE 2A GND 3 Y4 IC2 NC7SZ125P5X SDO
C10 47 pF C11 0.1 μF Note: NP = Not Placed.
VIN
R1 NP
MRF24J40
4.4.2 BILL OF MATERIALS MRF24J40 BILL OF MATERIALS
Description
Chip Capacitor 0402 COG 0.5P Chip Capacitor 0402 X7R 10N Chip Capacitor 0402 COG 47P Chip Capacitor 0402 COG 47P Chip Capacitor 0402 COG 47P Chip Capacitor 0402 X7R 10N Chip Capacitor 0402 X5R 1U Chip Capacitor 0402 COG 100P Chip Capacitor 0402 COG 47P Chip Capacitor 0402 X5R 100N Chip Capacitor 0402 X5R 100N Chip Capacitor 0402 COG 47P Chip Capacitor 0402 COG 0.5P Chip Capacitor 0402 COG 0.5P Chip Capacitor 0402 COG 0.5P Chip Capacitor 0402 COG 0.3P Chip Capacitor 0402 COG 20P Chip Capacitor 0402 COG 20P MRF24J40-I/ML Buffer, SC70 Package, NC7S7125PSX Chip Inductor 0402 10N Chip Inductor 0402 10N Chip Inductor 0402 5.6N Chip Inductor 0402 4.7N Not Placed 20 MHz Crystal
TABLE 4-3:
Designator
C2 C3 C4 C5 C6 C7 C8 C9 C10 C11 C12 C13 C14 C15 C16 C17 C18 C19 IC1 IC2 L1 L2 L3 L4 R1 X1
DS39776B-page 134
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
5.0 ELECTRICAL CHARACTERISTICS
Absolute Maximum Ratings(†)
Ambient temperature under bias.............................................................................................................. -40°C to +85°C Storage temperature .............................................................................................................................. -65°C to +150°C Voltage on any combined digital and analog pin with respect to VSS (except VDD)........................ -0.3V to (VDD + 0.3V) Voltage on VDD with respect to VSS ............................................................................................................ -0.3V to 3.6V Maximum output current sunk by GPIO1-GPIO5 pins ..............................................................................................1 mA Maximum output current sourced by GPIO1-GPIO5 pins .........................................................................................1 mA Maximum output current sunk by GPIO0 pin ............................................................................................................4 mA Maximum output current sourced by GPIO0 pin .......................................................................................................4 mA
† NOTICE: Stresses above those listed under “Absolute Maximum Ratings” may cause permanent damage to the device. This is a stress rating only and functional operation of the device at those or any other conditions above those indicated in the operation listings of this specification is not implied. Exposure to maximum rating conditions for extended periods may affect device reliability.
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 135
MRF24J40
TABLE 5-1: RECOMMENDED OPERATING CONDITIONS
Parameters
Ambient Operating Temperature Supply Voltage for RF, Analog and Digital Circuits Supply Voltage for Digital I/O Input High Voltage (VIH) Input Low Voltage (VIL)
Min
-40 2.4 2.4 0.5 x VDD -0.3
Typ
— — 3.3 — —
Max
+85 3.6 3.6 VDD + 0.3 0.2 x VDD
Units
°C V V V V
TABLE 5-2:
CURRENT CONSUMPTION
Typical Values: TA = 25°C, VDD = 3.3V
Chip Mode
Sleep TX RX
Condition
Sleep Clock Disabled At maximum output power
Min
— — —
Typ
2 23 19
Max
— — —
Units
μA
mA mA
TABLE 5-3:
RECEIVER AC CHARACTERISTICS
Typical Values: TA = 25°C, VDD = 3.3V, LO Frequency = 2.445 GHz
Parameters
RF Input Frequency RF Sensitivity Maximum RF Input LO Leakage Noise Figure (including matching) Adjacent Channel Rejection Alternate Channel Rejection RSSI Range RSSI Error @ +/- 5 MHz
Condition
Min
2.405
Typ
— -95 — -60 8 — — 50 —
Max
2.480 — — — — — — — 5
Units
GHz dBm dBm dBm dB dB dB dB dB
At antenna input with O-QPSK signal and 3.5 dB front end loss is assumed LNA at high gain Measured at balun matching network input at frequency 2.405-2.48 GHz
— +5 — — 30 40 — -5
@ +/- 10 MHz
DS39776B-page 136
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
TABLE 5-4: TRANSMITTER AC CHARACTERISTICS
Typical Values: TA = 25°C, VDD = 3.3V, LO Frequency = 2.445 GHz
Parameters
RF Carrier Frequency Maximum RF Output Power RF Output Power Control Range TX Gain Control Resolution Carrier Suppression TX Spectrum Mask for O-QPSK Signal TX EVM
Condition
Min
2.405 — —
Typ
— 0 36 1.25 -30 — 13
Max
2.480 — — — — — —
Units
GHz dBm dB dB dBc dBm %
Programmed by register Offset frequency > 3.5 MHz, at 0 dBm output power
— — -33 —
FIGURE 5-1:
82 CS
EXAMPLE SPI SLAVE MODE TIMING
70 SCK
80 SDO
MSb
bit 6 - - - - - - 1
LSb
SDI
MSb In 74
bit 6 - - - - 1
LSb In
TABLE 5-5:
Param No.
70 71 72 74 75 76 78 80 82 83
EXAMPLE SPI SLAVE MODE REQUIREMENTS
Characteristic
CS ↓ to SCK ↑ Input SCK Input High Time SCK Input Low Time SDO Data Output Rise Time SDO Data Output Fall Time SCK Output Rise Time (Master mode) Single Byte Single Byte
Symbol
TSSL2SCH TSCH TSCL TSCH2DIL TDOR TDOF TSCR
Min
50 50 50 25 — — — 50 50 50
Max Units Conditions
— — — — 25 25 25 — — — ns ns ns ns ns ns ns ns ns ns
Hold Time of SDI Data Input to SCK Edge
TSCH2DOV, SDO Data Output Valid after SCK Edge TSCL2DOV TSSL2DOV TSCL2SSH SDO Data Output Valid after CS ↓ Edge CS ↑ after SCK Edge
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 137
MRF24J40
NOTES:
DS39776B-page 138
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
6.0
6.1
PACKAGING INFORMATION
Package Marking Information
40-Lead QFN
Example
XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX YYWWNNN
MRF24J40 -I/ML e3 0810017
Legend: XX...X Y YY WW NNN
e3
*
Product-specific information Year code (last digit of calendar year) Year code (last 2 digits of calendar year) Week code (week of January 1 is week ‘01’) Alphanumeric traceability code Pb-free JEDEC designator for Matte Tin (Sn) This package is Pb-free. The Pb-free JEDEC designator ( e3 ) can be found on the outer packaging for this package.
Note:
In the event the full Microchip part number cannot be marked on one line, it will be carried over to the next line, thus limiting the number of available characters for customer-specific information.
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 139
MRF24J40
6.2 Package Details
The following sections give the technical details of the packages.
40-Lead Plastic Quad Flat, No Lead Package (ML) – 6x6x0.9 mm Body [QFN] with 0.40 mm Contact Length
Note: For the most current package drawings, please see the Microchip Packaging Specification located at http://www.microchip.com/packaging
D EXPOSED PAD
D2
e
E
E2 b
2 1 N NOTE 1 TOP VIEW
2 1 N L BOTTOM VIEW
K
A
A3
A1
Units Dimension Limits Number of Pins Pitch Overall Height Standoff Contact Thickness Overall Width Exposed Pad Width Overall Length Exposed Pad Length Contact Width Contact Length N e A A1 A3 E E2 D D2 b L 4.50 0.18 0.30 4.50 0.80 0.00 MIN
MILLIMETERS NOM 40 0.50 BSC 0.90 0.02 0.20 REF 6.00 BSC 4.65 6.00 BSC 4.65 0.25 0.40 4.80 0.30 0.50 – 4.80 1.00 0.05 MAX
Contact-to-Exposed Pad K 0.20 – Notes: 1. Pin 1 visual index feature may vary, but must be located within the hatched area. 2. Package is saw singulated. 3. Dimensioning and tolerancing per ASME Y14.5M. BSC: Basic Dimension. Theoretically exact value shown without tolerances. REF: Reference Dimension, usually without tolerance, for information purposes only.
Microchip Technology Drawing C04-118C
DS39776B-page 140
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
APPENDIX A:
October 2008
Entire data sheet rewrite.
REVISION HISTORY
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 141
MRF24J40
NOTES:
DS39776B-page 142
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
INDEX
A
Absolute Maximum Ratings ............................................. 135 AC Characteristics Receiver ................................................................... 136 Transmitter ............................................................... 137 Acknowledgement ............................................................ 112 Associated Registers ............................................... 113 Antenna/Balun ................................................................. 129 Applications ...................................................................... 129 External PA/LNA Control ......................................... 130 External PA/LNA Associated Registers ............................................... 131
G
Generation ....................................................................... 115 GTSFIFO State Diagram ................................................... 95
H
Hardware Description .......................................................... 5
I
IEEE 802.15.4-2003 Standard ............................................. 4 Impedance Measured ................................................................. 129 Initialization ........................................................................ 86 Associated Registers ................................................. 86 Interframe Spacing (IFS) ................................................. 102 Associated Registers ............................................... 102 Internet Address .............................................................. 146 Interrupts ........................................................................... 87
B
Battery Monitor ................................................................. 114 Beacon-Enabled Network .................................................. 93 Bill of Materials ................................................................. 134 Block Diagrams 20 MHz Main Oscillator Crystal Circuit ........................ 8 32 kHz External Oscillator Crystal Circuit .................... 9 Beacon-Enabled Coordinator Sleep Time Line ........ 118 Beacon-Enabled Device Sleep Time Line ............... 119 Example Circuit ........................................................ 129 External PA/LNA ...................................................... 130 IEEE 802.15.4 PHY Packet and MAC Frame Structure ................................................... 4 Interrupt Logic ............................................................ 87 MRF24J40 Architecture ............................................... 6 Nonbeacon-Enabled (Coordinator or Device) Sleep Time Line ............................................... 120 Sleep Clock Generation ........................................... 115 Sleep Mode Counters .............................................. 117 Superframe Structure ................................................. 94 Wireless Node .............................................................. 3
L
Link Quality Indication (LQI) .............................................. 93 Long Address Control Register Summary ......................... 16
M
MAC Timer ....................................................................... 122 Associated Registers ............................................... 122 Memory Map ...................................................................... 11 Memory Organization ........................................................ 11 Long Address Register Interface ............................... 13 Short Address Register Interface .............................. 12 Microchip Internet Web Site ............................................. 146
N
Nonbeacon-Enabled Network ............................................ 93
C
CCA Associated Registers ................................................. 89 Mode 1 ....................................................................... 89 Mode 2 ....................................................................... 89 Mode 3 ....................................................................... 89 Channel Selection .............................................................. 88 Associated Registers ................................................. 88 Clear Channel Assessment (CCA) .................................... 89 Control Register Description .............................................. 14 Control Registers Mapping, Long Address ............................................. 14 Mapping, Short Address ............................................ 14 CSMA-CA .......................................................................... 99 Associated Registers ............................................... 101 Slotted Mode ............................................................ 100 Unslotted Mode .......................................................... 99 Current Consumption ....................................................... 136 Customer Change Notification Service ............................ 146 Customer Notification Service .......................................... 146 Customer Support ............................................................ 146
O
Oscillator 100 kHz Internal .......................................................... 9 20 MHz Main ............................................................... 8 23 kHz External Crystal ............................................... 8
P
Packaging ........................................................................ 139 Details ...................................................................... 140 Marking .................................................................... 139 PCB Layout Design .......................................................... 132 Phase Lock Loop (PLL) ....................................................... 8 Pin Descriptions ................................................................... 7 CS (Serial Interface Enable) ........................................ 7 GND (Ground, Digital Circuit) ...................................... 7 GND (Ground, PLL) ..................................................... 7 GND (Guard Ring Ground) .......................................... 7 GPIO0 (External PA Enable) ....................................... 7 GPIO1 (External TX/RX Switch Control) ..................... 7 GPIO2 (External TX/RX Switch Control) ..................... 7 GPIO3 (General Purpose Digital I/O) .......................... 7 GPIO4 (General Purpose Digital I/O) .......................... 7 GPIO5 (General Purpose Digital I/O) .......................... 7 INT (Interrupt Pin) ........................................................ 7 LCAP (PLL Loop Filter External Capacitor) ................. 7 LPOSC1 (32 kHz Crystal Input) ................................... 7 LPOSC2 (32 kHz Crystal Input) ................................... 7 NC (No Connection) .................................................... 7
D
Device Overview ............................................................ 3, 85
E
Electrical Characteristics .................................................. 135 Energy Detection (ED) ....................................................... 90 Errata ................................................................................... 2 Example SPI Slave Mode Requirements ......................... 137
© 2006 Microchip Technology Inc.
Preliminary
DS39776A-page 143
MRF24J40
OSC1 (20 MHz Crystal Input) ...................................... 7 OSC2 (20 MHz Crystal Input) ...................................... 7 RESET (Global Hardware Reset Active-Low) .............. 7 RFN (Differential RF Pin, Negative) ............................. 7 RFP (Differential RF Pin, Positive) ............................... 7 SCK (Serial Interface Clock) ........................................ 7 SDI (Serial Interface Data Input) .................................. 7 SDO (Serial Interface Data Output) ............................. 7 VDD (Charge Pump Power Supply) .............................. 7 VDD (Digital Circuit Power Supply) ............................... 7 VDD (Guard Ring Power Supply) .................................. 7 VDD (PLL Power Supply) .............................................. 7 VDD (Power Supply, Analog Circuit) ............................. 7 VDD (Power Supply, Band Gap Reference Circuit) ................................................ 7 VDD (RF Power Supply) ............................................... 7 VDD (VCO Supply) ....................................................... 7 WAKE (External Wake-up Trigger) .............................. 7 Pins General Purpose Input/Output (GPIO) ......................... 9 Interrupt (INT) .............................................................. 9 Reset (RESET) ............................................................ 9 Serial Peripheral Interface (SPI) ................................ 10 Wake (WAKE) .............................................................. 9 Power and Ground Pins ....................................................... 8 Power Management Associated Registers ............................................... 114 Proprietary Protocols MiWi ............................................................................. 1 MiWi P2P ..................................................................... 1 ZigBee .......................................................................... 1 Proprietary Wireless Networking Protocols .......................... 1 ASSOSADR1 (Associated Coordinator Short Address 1) ................................................ 76 BBREG0 (Baseband 0) .............................................. 55 BBREG1 (Baseband 1) .............................................. 55 BBREG2 (Baseband 2) .............................................. 56 BBREG3 (Baseband 3) .............................................. 56 BBREG4 (Baseband 4) .............................................. 57 BBREG6 (Baseband 6) .............................................. 57 CCAEDTH (Energy Detection Threshold for CCA) ............................................ 58 EADR0 (Extended Address 0) ................................... 21 EADR1 (Extended Address 1) ................................... 21 EADR2 (Extended Address 2) ................................... 21 EADR3 (Extended Address 3) ................................... 22 EADR4 (Extended Address 4) ................................... 22 EADR5 (Extended Address 5) ................................... 22 EADR6 (Extended Address 6) ................................... 23 EADR7 (Extended Address 7) ................................... 23 ESLOTG1 (GTS1 and CAP End Slot) ....................... 28 ESLOTG23 (End Slot of GTS3 and GTS2) ............... 35 ESLOTG45 (End Slot of GTS5 and GTS4) ............... 35 ESLOTG67 (End Slot of GTS6) ................................. 35 FRMOFFSET (Superframe Counter Offset to Align Beacon) ................................................ 38 GATECLK (Gated Clock Control) .............................. 41 GPIO (GPIO Port) ...................................................... 51 HSYMTMRH (Half Symbol Timer High Byte) ............ 43 HSYMTMRL (Half Symbol Timer Low Byte) .............. 43 INTCON (Interrupt Control) ........................................ 50 INTSTAT (Interrupt Status) ........................................ 49 MAINCNT0 (Main Counter 0) .................................... 69 MAINCNT1 (Main Counter 1) .................................... 69 MAINCNT2 (Main Counter 2) .................................... 70 MAINCNT3 (Main Counter 3) .................................... 70 ORDER (Beacon and Superframe Order) ................. 25 PACON0 (Power Amplifier Control 0) ........................ 30 PACON1 (Power Amplifier Control 1) ........................ 30 PACON2 (Power Amplifier Control 2) ........................ 31 PANIDH (PAN ID High Byte) ..................................... 19 PANIDL (PAN ID Low Byte) ....................................... 19 REMCNTH (Remain Counter High) ........................... 68 REMCNTL (Remain Counter Low) ............................ 68 RFCON0 (RF Control 0) ............................................ 59 RFCON1 (RF Control 1) ............................................ 59 RFCON2 (RF Control 2) ............................................ 60 RFCON3 (RF Control 3) ............................................ 60 RFCON5 (RF Control 5) ............................................ 61 RFCON6 (RF Control 6) ............................................ 61 RFCON7 (RF Control 7) ............................................ 62 RFCON8 (RF Control 8) ............................................ 62 RFCTL (RF Mode Control) ........................................ 53 RFSTATE (RF State) ................................................. 65 RSSI (Averaged RSSI Value) .................................... 65 RXFLUSH (Receive FIFO Flush) ............................... 24 RXMCR (Receive MAC Control) ................................ 18 RXSR (RX MAC Status) ............................................ 48 SADRH (Short Address High Byte) ........................... 20 SADRL (Short Address Low Byte) ............................. 20 SECCON0 (Security Control 0) ................................. 45 SECCON1 (Security Control 1) ................................. 46 SECCR2 (Security Control 2) .................................... 54 SLPACK (Sleep Acknowledgement and Wake-up Counter) ............................................. 52 SLPCAL0 (Sleep Calibration 0) ................................. 63 SLPCAL1 (Sleep Calibration 1) ................................. 63
R
Reader Response ............................................................ 147 Received Signal Strength Indicator (RSSI) ........................ 90 Reception ......................................................................... 103 Acknowledgement Request ..................................... 104 Associated Registers ............................................... 105 Interrupt .................................................................... 104 Modes ...................................................................... 104 Error ................................................................. 104 Normal ............................................................. 104 Promiscuous .................................................... 104 Recommended Operating Conditions .............................. 136 Registers ACKTMOUT (MAC ACK Time-out Duration) ............. 27 ASSOEADR0 (Associated Coordinator Extended Address 0) ......................................... 72 ASSOEADR1 (Associated Coordinator Extended Address 1) ......................................... 72 ASSOEADR2 (Associated Coordinator Extended Address 2) ......................................... 73 ASSOEADR3 (Associated Coordinator Extended Address 3) ......................................... 73 ASSOEADR4 (Associated Coordinator Extended Address 4) ......................................... 74 ASSOEADR5 (Associated Coordinator Extended Address 5) ......................................... 74 ASSOEADR6 (Associated Coordinator Extended Address 6) ......................................... 75 ASSOEADR7 (Associated Coordinator Extended Address 7) ......................................... 75 ASSOSADR0 (Associated Coordinator Short Address 0) ................................................ 76
DS39776A-page 144
Preliminary
© 2006 Microchip Technology Inc.
MRF24J40
SLPCAL2 (Sleep Calibration 2) ................................. 64 SLPCON0 (Sleep Clock Control 0) ............................ 66 SLPCON1 (Sleep Clock Control 1) ............................ 66 SOFTRST (Software Reset) ...................................... 44 SYMTICKH (Symbol Period Tick High Byte) ............. 29 SYMTICKL (Symbol Period Tick Low Byte) ............... 29 TESTMODE (Test Mode) ........................................... 71 TRISGPIO (GPIO Pin Direction) ................................ 51 TXBCON0 (Transmit Beacon FIFO Control 0) ........... 32 TXBCON1 (Transmit Beacon Control 1) .................... 40 TXG1CON (GTS1 FIFO Control) ............................... 34 TXG2CON (GTS2 FIFO Control) ............................... 34 TXMCR (CSMA-CA Mode Control) ............................ 26 TXNCON (Transmit Normal FIFO Control) ................ 33 TXPEND (TX Data Pending) ...................................... 36 TXSTAT (TX MAC Status) ......................................... 39 TXSTBL (TX Stabilization) ......................................... 47 TXTIME (TX Turnaround Time) ................................. 42 UPNONCE0 (Upper Nonce Security 0) ..................... 77 UPNONCE1 (Upper Nonce Security 1) ..................... 77 UPNONCE10 (Upper Nonce Security 10) ................. 82 UPNONCE11 (Upper Nonce Security 11) ................. 82 UPNONCE12 (Upper Nonce Security 12) ................. 83 UPNONCE2 (Upper Nonce Security 2) ..................... 78 UPNONCE3 (Upper Nonce Security 3) ..................... 78 UPNONCE4 (Upper Nonce Security 4) ..................... 79 UPNONCE5 (Upper Nonce Security 5) ..................... 79 UPNONCE6 (Upper Nonce Security 6) ..................... 80 UPNONCE7 (Upper Nonce Security 7) ..................... 80 UPNONCE8 (Upper Nonce Security 8) ..................... 81 UPNONCE9 (Upper Nonce Security 9) ..................... 81 WAKECON (Wake Control) ....................................... 37 WAKETIMEH (Wake-up Time Match Value High) ........................................................ 67 WAKETIMEL (Wake-up Time Match Value Low) ......................................................... 67 Reset .................................................................................. 85 Associated Registers ................................................. 85 Revision History ............................................................... 141 RF Transceiver ................................................................ 129 RSSI Mode 1 ....................................................................... 90 Mode 2 ....................................................................... 90 RSSI/ED Associated Registers ................................................. 90
S
Schematic ........................................................................ 133 Security ............................................................................ 123 MAC Sublayer Receive Decryption ......................... 125 MAC Sublayer Transmit Encryption ........................ 123 Memory Map ............................................................ 123 Upper Layer Decryption ........................................... 127 Upper Layer Encryption ........................................... 126 Security Associated Registers ............................................... 127 Setting Up Beacon-Enabled/Nonbeacon-Enabled Networks Associated Registers ................................................. 98 Short Address Control Register Summary ......................... 15 Sleep ............................................................................... 115 Associated Registers ............................................... 121 Sleep Timer Beacon-Enabled Coordinator Mode ........................ 118 Beacon-Enabled Device Mode ................................ 119 Immediate Sleep and Wake-up Mode ..................... 121 Nonbeacon-Enabled (Coordinator or Device) Mode .................................................. 120 Timed Sleep Mode .................................................. 115
T
Timing Diagrams Example SPI Slave Mode ........................................ 137 External PA/LNA ...................................................... 131 Long Address Read ................................................... 13 Long Address Write ................................................... 13 Short Address Read .................................................. 12 Short Address Write .................................................. 12 SPI Port Read (Output) ............................................. 10 SPI Port Write (Input) ................................................ 10 Transmission ................................................................... 106 Associated Registers ............................................... 111 Turbo Mode ..................................................................... 128 Associated Registers ............................................... 128 TX Beacon FIFO .............................................................. 109 TX FIFOs Frame Structure .............................................. 108 TX GTSx FIFO ................................................................. 110 TX Normal FIFO .............................................................. 108
W
WWW Address ................................................................ 146 WWW, On-Line Support ...................................................... 2
© 2006 Microchip Technology Inc.
Preliminary
DS39776A-page 145
MRF24J40
NOTES:
DS39776A-page 146
Preliminary
© 2006 Microchip Technology Inc.
MRF24J40
THE MICROCHIP WEB SITE
Microchip provides online support via our WWW site at www.microchip.com. This web site is used as a means to make files and information easily available to customers. Accessible by using your favorite Internet browser, the web site contains the following information: • Product Support – Data sheets and errata, application notes and sample programs, design resources, user’s guides and hardware support documents, latest software releases and archived software • General Technical Support – Frequently Asked Questions (FAQ), technical support requests, online discussion groups, Microchip consultant program member listing • Business of Microchip – Product selector and ordering guides, latest Microchip press releases, listing of seminars and events, listings of Microchip sales offices, distributors and factory representatives
CUSTOMER SUPPORT
Users of Microchip products can receive assistance through several channels: • • • • • Distributor or Representative Local Sales Office Field Application Engineer (FAE) Technical Support Development Systems Information Line
Customers should contact their distributor, representative or field application engineer (FAE) for support. Local sales offices are also available to help customers. A listing of sales offices and locations is included in the back of this document.
Technical support is available through the web site at: http://support.microchip.com
CUSTOMER CHANGE NOTIFICATION SERVICE
Microchip’s customer notification service helps keep customers current on Microchip products. Subscribers will receive e-mail notification whenever there are changes, updates, revisions or errata related to a specified product family or development tool of interest. To register, access the Microchip web site at www.microchip.com, click on Customer Change Notification and follow the registration instructions.
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 147
MRF24J40
READER RESPONSE
It is our intention to provide you with the best documentation possible to ensure successful use of your Microchip product. If you wish to provide your comments on organization, clarity, subject matter, and ways in which our documentation can better serve you, please FAX your comments to the Technical Publications Manager at (480) 792-4150. Please list the following information, and use this outline to provide us with your comments about this document. To: RE: Technical Publications Manager Reader Response Total Pages Sent ________
From: Name Company Address City / State / ZIP / Country Telephone: (_______) _________ - _________ Application (optional): Would you like a reply? Device: MRF24J40 Questions: 1. What are the best features of this document? Y N Literature Number: DS39776B FAX: (______) _________ - _________
2. How does this document meet your hardware and software development needs?
3. Do you find the organization of this document easy to follow? If not, why?
4. What additions to the document do you think would enhance the structure and subject?
5. What deletions from the document could be made without affecting the overall usefulness?
6. Is there any incorrect or misleading information (what and where)?
7. How would you improve this document?
DS39776B-page 148
Preliminary
© 2008 Microchip Technology Inc.
MRF24J40
PRODUCT IDENTIFICATION SYSTEM
To order or obtain information, e.g., on pricing or delivery, refer to the factory or the listed sales office.
PART NO. Device X Temperature Range /XX Package XXX Pattern
Example: a) b) MRF24J40-I/ML: Industrial temperature, QFN package. MRF24J40T-I/ML: Industrial temperature, QFN package, tape and reel.
Device
MRF24J40: IEEE 802.15.4™ 2.4 GHz RF Transceiver = -40°C to +85°C (Industrial)
Temperature Range
I
Package
ML = QFN (Plastic Quad Flat, No Lead) T = Tape and Reel
© 2008 Microchip Technology Inc.
Preliminary
DS39776B-page 149
WORLDWIDE SALES AND SERVICE
AMERICAS
Corporate Office 2355 West Chandler Blvd. Chandler, AZ 85224-6199 Tel: 480-792-7200 Fax: 480-792-7277 Technical Support: http://support.microchip.com Web Address: www.microchip.com Atlanta Duluth, GA Tel: 678-957-9614 Fax: 678-957-1455 Boston Westborough, MA Tel: 774-760-0087 Fax: 774-760-0088 Chicago Itasca, IL Tel: 630-285-0071 Fax: 630-285-0075 Dallas Addison, TX Tel: 972-818-7423 Fax: 972-818-2924 Detroit Farmington Hills, MI Tel: 248-538-2250 Fax: 248-538-2260 Kokomo Kokomo, IN Tel: 765-864-8360 Fax: 765-864-8387 Los Angeles Mission Viejo, CA Tel: 949-462-9523 Fax: 949-462-9608 Santa Clara Santa Clara, CA Tel: 408-961-6444 Fax: 408-961-6445 Toronto Mississauga, Ontario, Canada Tel: 905-673-0699 Fax: 905-673-6509
ASIA/PACIFIC
Asia Pacific Office Suites 3707-14, 37th Floor Tower 6, The Gateway Harbour City, Kowloon Hong Kong Tel: 852-2401-1200 Fax: 852-2401-3431 Australia - Sydney Tel: 61-2-9868-6733 Fax: 61-2-9868-6755 China - Beijing Tel: 86-10-8528-2100 Fax: 86-10-8528-2104 China - Chengdu Tel: 86-28-8665-5511 Fax: 86-28-8665-7889 China - Hong Kong SAR Tel: 852-2401-1200 Fax: 852-2401-3431 China - Nanjing Tel: 86-25-8473-2460 Fax: 86-25-8473-2470 China - Qingdao Tel: 86-532-8502-7355 Fax: 86-532-8502-7205 China - Shanghai Tel: 86-21-5407-5533 Fax: 86-21-5407-5066 China - Shenyang Tel: 86-24-2334-2829 Fax: 86-24-2334-2393 China - Shenzhen Tel: 86-755-8203-2660 Fax: 86-755-8203-1760 China - Wuhan Tel: 86-27-5980-5300 Fax: 86-27-5980-5118 China - Xiamen Tel: 86-592-2388138 Fax: 86-592-2388130 China - Xian Tel: 86-29-8833-7252 Fax: 86-29-8833-7256 China - Zhuhai Tel: 86-756-3210040 Fax: 86-756-3210049
ASIA/PACIFIC
India - Bangalore Tel: 91-80-4182-8400 Fax: 91-80-4182-8422 India - New Delhi Tel: 91-11-4160-8631 Fax: 91-11-4160-8632 India - Pune Tel: 91-20-2566-1512 Fax: 91-20-2566-1513 Japan - Yokohama Tel: 81-45-471- 6166 Fax: 81-45-471-6122 Korea - Daegu Tel: 82-53-744-4301 Fax: 82-53-744-4302 Korea - Seoul Tel: 82-2-554-7200 Fax: 82-2-558-5932 or 82-2-558-5934 Malaysia - Kuala Lumpur Tel: 60-3-6201-9857 Fax: 60-3-6201-9859 Malaysia - Penang Tel: 60-4-227-8870 Fax: 60-4-227-4068 Philippines - Manila Tel: 63-2-634-9065 Fax: 63-2-634-9069 Singapore Tel: 65-6334-8870 Fax: 65-6334-8850 Taiwan - Hsin Chu Tel: 886-3-572-9526 Fax: 886-3-572-6459 Taiwan - Kaohsiung Tel: 886-7-536-4818 Fax: 886-7-536-4803 Taiwan - Taipei Tel: 886-2-2500-6610 Fax: 886-2-2508-0102 Thailand - Bangkok Tel: 66-2-694-1351 Fax: 66-2-694-1350
EUROPE
Austria - Wels Tel: 43-7242-2244-39 Fax: 43-7242-2244-393 Denmark - Copenhagen Tel: 45-4450-2828 Fax: 45-4485-2829 France - Paris Tel: 33-1-69-53-63-20 Fax: 33-1-69-30-90-79 Germany - Munich Tel: 49-89-627-144-0 Fax: 49-89-627-144-44 Italy - Milan Tel: 39-0331-742611 Fax: 39-0331-466781 Netherlands - Drunen Tel: 31-416-690399 Fax: 31-416-690340 Spain - Madrid Tel: 34-91-708-08-90 Fax: 34-91-708-08-91 UK - Wokingham Tel: 44-118-921-5869 Fax: 44-118-921-5820
01/02/08
DS39776B-page 150
Preliminary
© 2008 Microchip Technology Inc.