all | frequencies |
|
|
|
|
exhibits | applications |
---|---|---|---|---|---|---|---|
manuals |
app s | submitted / available | |||||||
---|---|---|---|---|---|---|---|---|
1 2 |
|
Antenna Data | Users Manual | 172.00 KiB | ||||
1 2 |
|
Datasheet | Users Manual | 273.91 KiB | ||||
1 2 |
|
User Manual | Users Manual | 254.36 KiB | ||||
1 2 |
|
manual | Users Manual | 904.78 KiB | ||||
1 2 | Attestation Statements | |||||||
1 2 | Block Diagram | |||||||
1 2 | Parts List/Tune Up Info | |||||||
1 2 | ID Label/Location Info | |||||||
1 2 | Internal Photos | |||||||
1 2 | External Photos | |||||||
1 2 | Cover Letter(s) | |||||||
1 2 | Operational Description | |||||||
1 2 | Cover Letter(s) | |||||||
1 2 | Test Report | |||||||
1 2 | Schematics | |||||||
1 2 | Cover Letter(s) | |||||||
1 2 | Cover Letter(s) | |||||||
1 2 | Cover Letter(s) | |||||||
1 2 | Cover Letter(s) | |||||||
1 2 | Cover Letter(s) | |||||||
1 2 | Cover Letter(s) | |||||||
1 2 | Cover Letter(s) | |||||||
1 2 | Cover Letter(s) | |||||||
1 2 | Cover Letter(s) | |||||||
1 2 | Cover Letter(s) | |||||||
1 2 | Internal Photos | native | ||||||
1 2 | Attestation Statements | |||||||
1 2 | External Photos | native | ||||||
1 2 | External Photos | native | ||||||
1 2 | ID Label/Location Info | |||||||
1 2 | RF Exposure Info | |||||||
1 2 | Parts List/Tune Up Info | |||||||
1 2 | Test Report | |||||||
1 2 | Test Setup Photos | native |
1 2 | Antenna Data | Users Manual | 172.00 KiB |
Rev. Patch Antenna Model No.: E-0360-AT 1.0 Date Feb. 06, 2009 Mechanical Drawing Electrical Specification Frequency Range Impedance V.S.W.R. Radiation Gain Polarization 2.4~2.5GHz 50 2.0 Directional 18dBi Vertical Mechanical Specification Connector Type Material Cable Dimension Water Proof Weight Environmental Specification RP N Jack (Brass) ABS
360x220x40mm IP68 1430g (est.) Operating Temp Storage Temp Substance
- 20 ~ + 70
- 30 ~ + 85 RoHS Compliant Unit: mm 2375 Zanker Rd., #240, San Jose, CA 95131 Phone: 408 383-0688 Fax: 408 383-0388
1 2 | Datasheet | Users Manual | 273.91 KiB |
Data Sheet JN5139-xxx-Myy IEEE802.15.4/ZigBee Module Family Overview The JN5139-xxx-Myy family is a range of surface mount modules that enable users to implement systems using IEEE802.15.4, 6LoWPAN, JenNet or ZigBee with minimum time to market and at the lowest cost. They remove the need for expensive and lengthy development of custom RF board designs and test suites. The modules use Jennics JN5139 wireless microcontroller to provide a comprehensive solution with high radio performance and all RF components included. All that is required to develop and manufacture wireless control or sensing products is to connect a power supply and peripherals such as switches, actuators and sensors, considerably simplifying product development. Three basic hardware module variants are available: JN5139-xxx-M00 with an integrated antenna, JN5139-xxx-M01/M03 with an antenna connector and JN5139-
xxx-M02/M04 with a power amplifier and LNA for extended range. Variants are available either with a ZigBee network stack (JN5139-Z01-Myy) or supporting the other stacks (JN5139-001-Myy). Module Block Diagram XTAL JN5139 chip RAM 96kB ROM 192kB 2.4GHz Radio O-QPSK Modem RISC CPU External Antenna Ceramic Antenna Balun M00 Option Connector Balun M01/03 Option Connector Balun PA / LNA M02/04 Option Power Management IEEE802.15.4 MAC Accelerator 128-bit AES Encryption Accelerator 128kB Serial Flash Memory SPI 2-wire serial Timers UARTs 12-bit ADC, comparators 11-bit DACs, temp sensor Power Benefits
Microminiature module solutions
Ready to use in products
Minimises product development time
No RF test required for systems
Compliant with FCC part 15 rules, IC Canada, ETSI ETS 300-328 and Japan ARIB STD-
T66
Production volumes supplied pre-programmed with application software Applications
Robust and secure low power wireless applications
Wireless sensor networks, particularly IEEE802.15.4 /
ZigBee systems
Home and commercial building automation
Home networks
Toys and gaming peripherals
Telemetry and utilities Industrial systems
(e.g. AMR) Features: Module
2.4GHz IEEE802.15.4 & ZigBee compatible
2.7-3.6V operation
Sleep current (with active sleep timer) 2.6A
JN5139-xxx-M00/01/03 up to 1km range (ext antenna) M00: on board antenna M01: SMA connector M03: uFl connector o Receiver sensitivity 96dBm o TX power +2.5dBm o TX current 37mA o RX current 37mA o 18x30mm
JN5139-xxx-M02/04 up to 4km range M02: SMA connector M04: uFl connector o Receiver sensitivity -100dBm o 19dBm TX power o TX current 125mA o RX current 45mA o 18x41mm Features: Microcontroller
16MHz 32-bit RISC CPU
96kB RAM, 192kB ROM
4-input 12-bit ADC, 2 11-bit DACs, 2 comparators, temperature sensor
2 Application timer/counters, 3 system timers
2 UARTs (one for in-system debug)
SPI port with 5 selects
2-wire serial interface
21 GPIO
Evaluation kits available with full, unlimited, Software Development Kit Temperature range
-20C to +70C Lead-free and RoHS compliant JN-DS-JN5139-xxx-Myy 1v5 Jennic 2009 Jennic Contents 1. Introduction 1.1. Variants 1.2. Regulatory Approvals 2. Specifications 3. Product Development 3.1. JN5139 Single Chip Wireless Microcontroller 4. Pin Configurations 4.1. Pin Assignment 4.2. Pin Descriptions 4.2.1 4.2.2 Power Supplies SPI Memory Connections 5. Electrical Characteristics 5.1. Maximum Ratings 5.2. Reflow Profile 5.3. Operating Conditions Appendix A Additional Information A.1 Outline Drawing A.2 Module PCB Footprint A.3 Ordering Information A.4 Tape and Reel Information:
A.4.1 Tape Orientation and dimensions A.4.2 Cover tape details A.4.3 Leader and Trailer A.4.4 Reel Dimensions:
A.5 Related Documents A.6 Federal Communication Commission Interference Statement A.6.1 Antennas approved by FCC for use with JN5139 modules A.6.2 High Power Module usage limitation A.6.3 FCC End Product Labelling A.7 European R & TTE Directive 1999/5/EC Statement A.8 Industry Canada Statement A.8.1 Industry Canada End Product Labelling A.9 RoHS Compliance A.10 Status Information A.11 Disclaimers A.12 Version Control 3 3 3 4 6 6 7 8 9 9 9 10 10 10 11 12 12 17 18 19 19 19 20 20 21 21 22 23 23 24 25 25 25 26 26 27 ii JN-DS-JN5139-xxx-Myy 1v5 Jennic 2009 Jennic 1. Introduction The JN5139-xxx-Myy module family provides designers with a ready made component which allows IEEE802.15.4 [1]
wireless applications, using Jennics JenNet networking protocol or ZigBee, to be quickly and easily included in product designs. The modules integrate all of the RF components required, removing the need to perform expensive RF design and test. Products can be designed by simply connecting sensors and switches to the module IO pins. The modules use Jennics single chip IEEE802.15.4 Wireless Microcontroller, allowing designers to make use of the extensive chip development support material. Hence, this range of modules allows designers to bring wireless applications to market in the minimum time with significantly reduced development effort and cost. Three module hardware variants are available: JN5139-xxx-M00 (standard module with on board ceramic antenna), JN5139-xxx-M01 (standard module with SMA connector for use with external antennae recommended for evaluation use) and JN5139-xxx-M02 (high RF power, improved sensitivity module for evaluation of extended range applications). For volume production applications, uFL connector variants are provided (-M03 standard power and M04 high power). These devices, together with the M00 variants have FCC modular approvals. Each of these modules can be supplied with a range of protocol stacks, including JenNet for most tree and linear networks, IEEE802.15.4 protocol for point-to-point and star applications and a ZigBee mesh networking stack. The variants available are described below. 1.1. Variants Variant Description FCCID Industry Canada ID JN5139-001-M00 IEEE802.15.4 stack, ceramic antenna TYOJN5139M0 JN5139-Z01-M00 ZigBee stack, ceramic antenna TYOJN5139M0 JN5139-001-M01 JN5139-Z01-M01 JN5139-001-M02 JN5139-Z01-M02 IEEE802.15.4 stack, SMA connector - for evaluation ZigBee stack, SMA connector for evaluation High Power, IEEE802.15.4 stack, SMA connector for evaluation High Power, ZigBee stack, SMA connector for evaluation N/A N/A N/A N/A JN5139-001-M03 IEEE802.15.4 stack, uFl connector TYOJN5139M3 JN5139-Z01-M03 ZigBee stack, uFl connector TYOJN5139M3 JN5139-001-M04 High Power, IEEE802.15.4 stack, uFl connector TYOJN5139M4 IC: 7438A-CYO5139M0 IC: 7438A-CYO5139M0 IC: 7438A-CYO5139M6 IC: 7438A-CYO5139M6 IC: 7438A-CYO5139M4 IC: 7438A-CYO5139M4 IC: 7438A-CYO5139M6 IC: 7438A-CYO5139M6 IC: 7438A-CYO5139M4 JN5139-Z01-M04 High Power, ZigBee stack, uFl connector TYOJN5139M4 IC: 7438A-CYO5139M4 1.2. Regulatory Approvals All module types have been tested against the requirements of European standard ETS 300 328 v1.7.1 and a Notified Body statement of opinion for this standard is available on request. The High Power modules with M02 or M04 suffix are approved for use in Europe with reduced output power: +10dBm EIRP is the maximum permitted in Europe. They must not be used with PHY_PIB_ATTR_TX_POWER set above 50 See [3] JN-RM-2002 802.15.4 Stack API. Additionally, modules with M00, M03 and M04 suffixes have received FCC Modular Approvals, in compliance with CFR 47 FCC part 15 regulations and in accordance to FCC Public notice DA00-1407. The modules are approved for use with a number of antennase, refer to section A.6.1 for details. See Appendix A.6 for details on the conditions applying to this modular approval. The modular approvals notice and test reports are available on request. The high power module variant is classified as mobile device pursuant with FCC 2.1091 and must not be used at a distance of less than 20 cm (8) from any person. In addition, all modules have Industry Canada RSS 210 Issue 7 (June 2007) certification. Jennic 2009 JN-DS-JN5139-xxx-Myy 1v5 3 Jennic 2. Specifications Most specification parameters for the modules are specified in the chip datasheet - JN-DS- JN513x Wireless Microcontroller Datasheet, [2]. Where there are differences, the parameters are defined here. VDD=3.0V @ +25C Deep sleep current Sleep current Radio transmit current Radio receive current Typical DC Characteristics Notes JN5139-xxx-
M00/01/03 JN5139-xxx-
M02/04 1.3uA 2.6uA 37mA 37mA 1.3uA 2.6uA With active sleep timer 125mA CPU in doze, radio transmitting 45mA CPU in doze, radio receiving Centre frequency accuracy
+/-25ppm
+/-25ppm Additional +/-15ppm allowance for temperature and ageing Typical RF Characteristics Notes Receive sensitivity
-96dBm
-102dBm Nominal for 1% PER, as per 802.15.4 section 6.5.3.3 (Note 1) Maximum Transmit power
+1dBm 17.5dBm Nominal (Note 1) Maximum Transmit power [Boost Mode]
+2.5dBm N/A
(Note 1) Transmit power at 3.6V 19dBm With Vdd=3.6V Maximum input signal
+10dBm
+10dBm For 1% PER, measured as sensitivity RSSI range
-95 to -10
-105 to -20 dBm dBm RF Port impedance SMA/uFl connector 50 ohm 50 ohm 2.4 - 2.5GHz VSWR (max) 2:1 2:1 2.4 - 2.5GHz Peripherals Notes 5 selects 3 selects 250kHz - 16MHz Master SPI port Slave SPI port Two UARTs Two-wire serial I/F (compatible with SMbus & I2C) Two programmable Timer/Counters with capture/compare facility, Tick timer Two programmable Sleep Timers Digital IO lines (multiplexed with UARTs, timers and SPI selects) Four channel Analogue-to-Digital converter Two channel Digital-to-Analogue converter Two programmable analogue comparators Internal temperature sensor and battery monitor
21
250kHz - 8MHz 16550 compatible Up to 400kHz 16MHz clock 32kHz clock 19 12-bit, up to 100ks/s 11-bit, up to 100ks/s Ultra low power mode for sleep
4 JN-DS-JN5139-xxx-Myy 1v5 Jennic 2009 The performance of all peripherals is defined in the JN-DS- JN513x Wireless Microcontroller Datasheet [2]
Note 1: Sensitivity is defined for conducted measurements on connectorised modules. Modules with an integrated antenna have approximately 4 dB less e.i.r.p and reciprocal receive sensitivity. Jennic Jennic 2009 JN-DS-JN5139-xxx-Myy 1v5 5 Jennic 3. Product Development Jennic supplies all the development tools and networking stacks needed to enable end product development to occur quickly and efficiently. These are all freely available from Jennics support website: http://www.jennic.com/support/ . A range of evaluation/developer kits is also available, allowing products to be quickly breadboarded. Efficient development of software applications is enabled by the provision of a complete, unlimited, software developer kit. Together with the available libraries for the JenNet networking stack, the IEEE802.15.4 MAC and the ZigBee network stack, this package provides everything required to develop application code and to trial it with hardware representative of the final module. The modules can be user programmed both in development and in production using software supplied by Jennic. They can also be supplied ready loaded with customer defined software if required. Access to the on-chip peripherals, MAC and network stack software is provided through specific APIs. This information is available on the Jennic support website, together with many example applications, user guides, reference manuals and application notes. 3.1. JN5139 Single Chip Wireless Microcontroller The JN5139-xxx-Myy series is constructed around the JN5139 single chip wireless microcontroller, which includes the radio system, a 32-bit RISC CPU, ROM and RAM memory and a range of analogue and digital peripherals. The chip is described fully in JN-DS- JN513x Wireless Microcontroller Datasheet [2]. The module also includes a 1Mbit serial flash memory which holds the application code that is loaded into the JN5139 during the boot sequence. 6 JN-DS-JN5139-xxx-Myy 1v5 Jennic 2009 4. Pin Configurations Jennic a J1 n n e t n A ADC4 DAC1 DAC2 COMP2+
COMP2-
SPICLK SPIMISO SPIMOSI SPISSZ DIO0/SPISEL1 DIO1/SPISEL2 DIO2/SPISEL3 SPISSM SPISWP DIO3/SPISEL4 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 41 40 39 ADC3 ADC2 ADC1 38 COMP1+
37 36 35 34 33 COMP1-
DIO20/RXD1 DIO19/TXD1 DIO18/RTS1 DIO17/CTS1 32 DIO16 31 30 29 28 DIO15/SIF_D DIO14/SIF_CLK RESETN DIO13/TIM1_OUT 27 DIO12/TIM1_CAP 0 S T C 4 O D I
0 S T R 5 O D I
0 D X T 6 O D I
D D V D N G A S S V 0 D X R 7 O D I
I T G 0 M T 8 O D I
P A C _ 0 M T 9 O D I
I T U O _ 0 M T 0 1 O D I
I I T G 1 M T 1 1 O D I
Figure 1: Pin Configuration (top view) Note that the same basic pin configuration applies for all module designs. However, DIO3/SPISEL4 and DIO2/SPISEL3 are not available on the high power modules. Jennic 2009 JN-DS-JN5139-xxx-Myy 1v5 7 Jennic 4.1. Pin Assignment Pin Signal Function Alternative Function 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 ADC4 DAC1 DAC2 COMP2+
COMP2-
Analogue to Digital input Digital to Analogue output Digital to Analogue output Comparator 2 inputs SPICLK SPI master clock out SPIMISO SPI Master In/Slave Out SPIMOSI SPI Master Out/Slave In SPISSZ SPI select from module - SS0 (output) SPISEL1 SPI Slave Select1 (output) General Purpose Digital I/O DIO0 SPISEL2 SPI Slave Select2 (output) General Purpose Digital I/O DIO1 SPISEL3*
SPI Slave Select3 (output) General Purpose Digital I/O DIO2 *
SPISSM SPI select to FLASH (input) SPISWP FLASH write protect (input) SPISEL4*
SPI Slave Select4 (output) General Purpose Digital I/O DIO3*
CTS0 RTS0 TXD0 UART0 Clear To Send (input) General Purpose Digital I/O DIO4 UART0 Request To Send (output) General Purpose Digital I/O DIO5 UART0 Transmit Data (output) General Purpose Digital I/O DIO6 RXD0 UART0 Receive Data (input) General Purpose Digital I/O DIO7 TIM0GT Timer0 clock/gate (input) General Purpose Digital I/O DIO8 TIM0_CAP Timer0 capture (input) General Purpose Digital I/O DIO9 TIM0_OUT Timer0 PWM (output) General Purpose Digital I/O DIO10 TIM1GT Timer1 clock/gate (input) General Purpose Digital I/O DIO11 VDD GND 3V power Digital ground VSSA Analogue ground TIM1_CAP Timer1 capture (input) General Purpose Digital I/O DIO12 TIM1_OUT Timer1 PWM (output) General Purpose Digital I/O DIO13 RESETN Active low reset SIF_CLK Serial Interface clock / Intelligent peripheral clock General Purpose Digital I/O DIO14 8 JN-DS-JN5139-xxx-Myy 1v5 Jennic 2009 Jennic Pin Signal Function Alternative Function 31 32 33 SIF_D Serial Interface data / Intelligent peripheral data out (output) General Purpose Digital I/O DIO15 DIO 16 Intelligent peripheral device data in (input) General Purpose Digital I/O CTS1 UART1 Clear To Send (input) / Intelligent peripheral device select (input) General Purpose Digital I/O DIO17 34a RTS1 UART1 Request To Send (output) / Intelligent peripheral interrupt (output) General Purpose Digital I/O DIO18 35 36 37 38 39 40 41 TXD1 UART1 Transmit Data (output) General Purpose Digital I/O DIO19 RXD1 UART1 Receive Data (input) General Purpose Digital I/O DIO20 COMP1-
COMP1+
ADC1 ADC2 ADC3 Comparator 1 inputs Analogue to Digital input Analogue to Digital input Analogue to Digital input
*: These two pins are not connected for High power modules 4.2. Pin Descriptions All pins behave as described in the JN-DS- JN513x Wireless Microcontroller Datasheet [2], with the exception of the following:
4.2.1 Power Supplies A single power supply pin, VDD is provided. Separate analogue (VSSA) and digital (GND) grounds are provided. These should be connected together at the module pins. 4.2.2 SPI Memory Connections SPISWP is a write protect pin for the serial flash memory. This should be held low to inhibit writes to the flash device. SPISSZ is connected to SPI Slave Select 0 on the JN5139. SPISSM is connected to the Slave Select pin on the memory. This configuration allows the flash memory device to be programmed using an external SPI programmer if required. For programming in this mode, the JN5139 should be held in reset by taking RESETN low. The memory can also be programmed over the UART by using the flash programmer software provided by Jennic. This is available as part of the Software Developer kit and libraries available from Jennics support website www.jennic.com/support. To enter this programming mode, SPIMISO (pin 7) should be held low whilst the chip is reset. Once programming has finished, the chip should be reset, when it will execute the new code downloaded. For normal operation of the module and programming over the UART, SPISSZ should be connected to SPISSM. Jennic 2009 JN-DS-JN5139-xxx-Myy 1v5 9 Jennic 5. Electrical Characteristics In most cases, the Electrical Characteristics are the same for both module and chip. They are described in detail in the chip datasheet. Where there are differences, they are detailed below. 5.1. Maximum Ratings Exceeding these conditions will result in damage to the device. Parameter Device supply voltage VDD Voltage on analogue pins: ADC1-4, DAC1-2, COMP1-, COMP1+, COMP2-, COMP2+, DIO9, DIO10, SPISSM, SPISWP, SPICLK, SPIMOSI, SPIMISO, Voltage on 5v tolerant digital pins: SPISSZ, DIO0-
DIO8, DIO11-DIO20, RESETN Min
-0.3V
-0.3V Max 3.6V VDD + 0.3V
-0.3V Lower of (VDD + 2V) and 5.5V 150C 260C Storage temperature Reflow soldering temperature according to IPC/JEDEC J-STD-020C
-40C This device is sensitive to ESD and should only be handled using ESD precautions. 5.2. Reflow Profile For reflow soldering, it is recommended to follow the reflow profile in Figure 2 as a guide, as well as the paste manufacturers guidelines on peak flow temperature, soak times, time above liquidus and ramp rates. Temperature 25~160 C 160~190 C
> 220 C 230~Pk. Pk. Temp
(235C) Target Time (s) 90~130 30~60 20~50 10~15 160~270 Figure 2: Recommended solder reflow profile 10 JN-DS-JN5139-xxx-Myy 1v5 Jennic 2009 5.3. Operating Conditions Supply VDD Ambient temperature range Min 2.7V
-20C Jennic Max 3.6V 70C Jennic 2009 JN-DS-JN5139-xxx-Myy 1v5 11 Jennic Appendix A Additional Information A.1 Outline Drawing 18mm J1 a n n e t n A 30mm 1.27 mm 2.54 mm 2.54 mm 2.76 mm Thickness: 3.5mm Figure 3 JN5139-xxx-M00 Outline Drawing 12 JN-DS-JN5139-xxx-Myy 1v5 Jennic 2009 Jennic 18mm 9.74mm 4.59 mm 30mm 1.27 mm 2.54 mm 2.54 mm 2.76 mm Thickness: 3.5mm over can, 10.8mm at SMA connector Figure 4 JN5139-xxx-M01 Outline Drawing Jennic 2009 JN-DS-JN5139-xxx-Myy 1v5 13 18mm 9.76mm 6.58 mm Jennic 30mm 1.27 mm 2.54 mm 2.54 mm 2.76 mm Thickness: 3.5mm Figure 5 JN5139-xxx-M03 Outline Drawing 14 JN-DS-JN5139-xxx-Myy 1v5 Jennic 2009 Jennic 18mm 7.2mm 4.32 mm 41mm 1.27 mm 2.54 mm
. 2.54 mm 2.76 mm Thickness: 3.5mm over can, 10.8mm at SMA connector. Figure 6 JN5139-xxx-M02 Outline Drawing Jennic 2009 JN-DS-JN5139-xxx-Myy 1v5 15 18mm 7.2mm 4.05mm Jennic 40.5mm 1.27 mm 2.54 mm
. 2.54 mm 2.76 mm Thickness: 3.5mm Figure 7 JN5139-xxx-M04 Outline Drawing 16 JN-DS-JN5139-xxx-Myy 1v5 Jennic 2009 A.2 Module PCB Footprint Jennic Dimensions in mm Note: All modules have the same footprint. Figure 8 Module PCB footprint RF note for M00 modules with ceramic antenna: No components, ground plane or tracks on any layer of the mother board should be placed within 20mm of the 3 free sides of the antenna. Tracks etc may be placed adjacent to the can, but should not extend past the can towards the antenna end of the module for 20mm from the antenna. Jennic 2009 JN-DS-JN5139-xxx-Myy 1v5 17 Jennic A.3 Ordering Information JN5139 - XXX - MY1Y2 Y3 Y4 Label line 1: IC ID Number Label line 2: FCC ID Number Label line 3: Part Name Label line 4: Barcode Label Label line 5: YYWWTNNNNN (see below) Identifier Description Format YY WW T NNNNN Year Week Module type Serial Number 06(example) 45(example) Shipping X T V Tape mounted samples up to 50 pieces Tape Mounted 500pieces reel (00, 03, 04 modules only) Tape Mounted 200pieces reel (01,02 modules only) Temp Range / Device Status blank -20C to +70C, qualified Module Type 00 01 02 03 04 Standard Power, Ceramic antenna Standard Power, SMA connector High Power, SMA connector Standard Power, uFl connector use for new designs High power, uFl connector use for new designs Software Variant 001 Z01 ZigBee Stack IEEE802.15.4 Stack IC: 7438A-CYO5139M0 FCC ID: TYOJN5139M0 JN51XX-XXX-XXX JENNIC YYWWTNNNNN Figure 9: Example module labelling for FCC approved modules 18 JN-DS-JN5139-xxx-Myy 1v5 Jennic 2009 Jennic A.4 Tape and Reel Information:
A.4.1 Tape Orientation and dimensions All dimensions are in mm Module type:
A B W F E P0 P1 P2 T Cover Tape width (W) JN5139-xxx-M00/03 18.4 30.4 44 20.2 1.75 4.0 2.0 24.0 3.4 37.5 JN5139-xxx-M01 18.4 30.4 56 26.2 1.75 4.0 2.0 24.0 11.2 49.5 JN5139-xxx-M02 18.5 41.5 56 26.2 1.75 4.0 2.0 24.0 11.1 49.5 JN5139-xxx-M04 18.5 40.9 56 26.2 1.75 4.0 2.0 24.0 3.4 49.5 Tolerance 0.1 0.1 0.3 0.1
+0.1 0.1 0.1 0.1 0.1 0.1 A.4.2 Cover tape details Thickness (T) 0.061mm Surface resistivity (component side) 104 to 107 Ohms/sq Surface resistivity (component side) Non-conductive Backing type:
Adhesive type:
Polyester PSA Sealing:
Room ambient Jennic 2009 JN-DS-JN5139-xxx-Myy 1v5 19 Jennic A.4.3 Leader and Trailer 300 MM 300 MM A.4.4 Reel Dimensions:
Module type:
A B C N W (min) JN5139-xxx-M00/03 330 1.0 2.20.5 13 0.2 100 +0.1 44.5 0.3 JN5139-xxx-M01/02/04 330 1.0 2.20.5 13 0.2 100 +0.1 56.5 0.3 Dimensions in mm 20 JN-DS-JN5139-xxx-Myy 1v5 Jennic 2009 Jennic A.5 Related Documents
[1] IEEE Std 802.15.4-2003 IEEE Standard for Information Technology Part 15.4 Wireless Medium Access Control
(MAC) and Physical Layer (PHY) Specifications for Low-Rate Wireless Personal Area Networks (LR-WPANs)
[2] JN-DS- JN513x Wireless Microcontroller Datasheet
[3] JN-RM-2002 802.15.4 Stack API A.6 Federal Communication Commission Interference Statement This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to Part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference in a residential installation. This equipment generates, uses, and can radiate radio frequency energy and, if not installed and used in accordance with the instructions, may cause harmful interference to radio communications. However, there is no guarantee that interference will not occur in a particular installation. If this equipment does cause harmful interference to radio or television reception, which can be determined by turning the equipment off and on, the user is encouraged to try to correct the interference by one of the following measures:
- Reorient or relocate the receiving antenna.
- Increase the separation between the equipment and receiver.
- Connect the equipment into an outlet on a circuit different from that to which the receiver is connected.
- Consult the dealer or an experienced radio/TV technician for help. This device complies with Part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) This device may not cause harmful interference, and (2) this device must accept any interference received, including interference that may cause undesired operation. FCC Caution: Any changes or modifications not expressly approved by the party responsible for compliance could void the user's authority to operate this equipment. WARNING!
FCC Radiation Exposure Statement:
This portable equipment with its antenna complies with FCCs RF radiation exposure limits set forth for an uncontrolled environment. To maintain compliance follow the instructions below;
1. This transmitter must not be co-located or operating in conjunction with any other antenna or transmitter. 2. Avoid direct contact to the antenna, or keep it to a minimum while using this equipment. This transmitter module is authorized to be used in other devices only by OEM integrators under the following condition:
The transmitter module must not be co-located with any other antenna or transmitter. As long as the above condition is met, further transmitter testing will not be required. However, the OEM integrator is still responsible for testing their end product for any additional compliance requirements required with this module installed (for example, digital device emissions, PC peripheral requirements, etc.). Jennic 2009 JN-DS-JN5139-xxx-Myy 1v5 21 Jennic A.6.1 Antennas approved by FCC for use with JN5139 modules Brand Model Number Description Gain (dBi) Connector type 1 Aveslink Technology, Inc E-0360-AT Patch Antenna - outdoor 2 Aveslink Technology, Inc E-0260-AT Patch Antenna - outdoor 3 Aveslink Technology, Inc E-1050-AT Vertical - outdoor colinear 4 Aveslink Technology, Inc E-1040-AT Vertical - outdoor colinear 5 Aveslink Technology, Inc E-0100-AC Patch Antenna - flying lead 6 Aveslink Technology, Inc E-1030-AT Vertical - outdoor colinear 7 Aveslink Technology, Inc E-1020-AT Vertical - outdoor colinear 8 Aveslink Technology, Inc E-1710-GC 9 Aveslink Technology, Inc E-1710-GM 10 Aveslink Technology, Inc E-1511-GC Vertical - swivel Vertical - swivel Vertical - swivel 11 Aveslink Technology, Inc E-0030-AA Patch Antenna - flying lead 12 Aveslink Technology, Inc E-0030-AC Patch Antenna - flying lead 13 Aveslink Technology, Inc E-1204-AC Ceiling antenna - flying lead 14 Aveslink Technology, Inc E-1520-CA Vertical - bulkhead- flying lead 15 Aveslink Technology, Inc E-1520-GC Vertical - swivel 16 Aveslink Technology, Inc E-1450-GC Vertical-swivel mount 17 18 Nearson S152CL-L-PX-2450S Vertical - knuckle-flying lead Antenna Factor ANT-2.4-CW-RCL Vertical - knuckle antenna 19 Aveslink Technology, Inc E-0901-AA Embedded - flying lead 20 21 22 Antenna Factor ANT-2.4-CW-RCT-RP Vertical - knuckle antenna Antennova 2010B6090-01 Vertical - knuckle antenna Hyperlink Technology HG2402RD-RSF Vertical - knuckle antenna 23 Aveslink Technology, Inc E-0005-AC Vertical- flying lead 24 Aveslink Technology, Inc E-2411-GC Vertical - swivel 25 Aveslink Technology, Inc E-2410-CA Vertical - bulkhead- flying lead 26 Aveslink Technology, Inc E-2410-GC Vertical - swivel 27 Aveslink Technology, Inc E-2820-CA Vertical - bulkhead- flying lead 28 Aveslink Technology, Inc E-2820-GC Vertical - swivel 29 Aveslink Technology, Inc E-0903-AX Embedded - nickel silver strip 30 Aveslink Technology, Inc E-0904-AX Embedded - nickel silver strip 31 Embedded Antenna Design FBKR35068-RS-KR Vertical - knuckle antenna 32 33 34 Nearson S131CL-L-PX-2450S Vertical - knuckle-flying lead Laird Technologies WRR2400-IP04 Vertical - knuckle-flying lead Laird Technologies WRR2400-RPSMA Vertical - knuckle-flying lead 35 Aveslink Technology, Inc E-6170-DA Vertical - right angle 36 Laird Technologies WCR2400-SMRP Vertical - knuckle antenna 18 15 15 12 10 9 7 7 7 5 4 4 4 4 4 4 4 2.9 2.5 2.2 2.2 2.2 2 2 2 2 2 2 2 2 2 2 1.5 1.3 1 1 RP-N 1 RP-N 1 RP-N RP-N RP-SMA RP-N RP-N RP-SMA RP-TNC RP-SMA uFL RP-SMA RP-SMA uFL RP-SMA RP-SMA uFL RP-SMA uFL RP-SMA RP-SMA RP-SMA RP-SMA RP-SMA uFL RP-SMA uFL RP-SMA None None RP-SMA uFL uFL RP-SMA uFL RP-SMA These antennae or versions with alternative connectors may be used to meet European regulations, provided the gain is less than 4.4dBi. 1 These antennas may not be used with High Power Modules 22 JN-DS-JN5139-xxx-Myy 1v5 Jennic 2009 Jennic This device has been designed to operate with the antennas listed above. Antennas not included in this list or having a gain greater than 18 dBi are strictly prohibited for use with this device. The required antenna impedance is 50ohms. A.6.2 High Power Module usage limitation The high power module variants are classified as mobile device pursuant with FCC 2.1091 and must not be used at a distance of < 20 cm (8) from any nearby people. IMPORTANT NOTE: In the event that these conditions can not be met (for certain configurations or co-location with another transmitter), then the FCC authorization is no longer considered valid and the FCC ID can not be used on the final product. In these circumstances, the OEM integrator will be responsible for re-evaluating the end product
(including the transmitter) and obtaining a separate FCC authorization. The OEM integrator has to be aware not to provide information to the end user regarding how to install or remove this RF module in the user manual of the end product. The user manual for the end product must include the following information in a prominent location;
To comply with FCCs RF radiation exposure requirements, the antenna(s) used for this transmitter must not be co-
located or operating in conjunction with any other antenna or transmitter. A.6.3 FCC End Product Labelling The final end product should be labelled in a visible area with the following:
Contains TX FCC ID: TYOJN5139M0, TYOJN5139M3 or TYOJN5139M4 to reflect the version of the module being used inside the product. Jennic 2009 JN-DS-JN5139-xxx-Myy 1v5 23 Jennic A.7 European R & TTE Directive 1999/5/EC Statement All modules listed in this datasheet are compliant with ETSI EN 300 328V1.7.1 (2006/05) and are subject to Notified Body Opinion RU1548/9025 Issue 2. The modules are approved for use with the antennas listed in the following table. The high power modules M02 and M04 are limited to an antenna with a gain of 2.2 dBi or less. Brand Model Number Description Gain Connector type Antenna Factor Antenna Factor ANT-2.4-CW-RCL Vertical - knuckle antenna 2.9dBi RP-SMA ANT-2.4-CW-RCT-SS Vertical - knuckle antenna Laird Technologies WCR2400-SMA Vertical - knuckle antenna Laird Technologies WRR2400-IP04 Vertical - knuckle-flying lead 1.5dBi uFL 2.2dBi 1.0dBi SMA SMA 2.0dBi 4.4dBi Embedded Antenna Design BKR2400 Vertical - knuckle antenna Antennova Nearson Nearson Titanis Vertical - knuckle antenna S131CL-L-PX-2450S Vertical - knuckle-flying lead 2.0dBi S152CL-L-PX-2450S Vertical - knuckle-flying lead 4.0dBi Aveslink Technology, Inc E-0030-AA Patch Antenna - flying lead Aveslink Technology, Inc E-0030-AB Patch Antenna - flying lead Aveslink Technology, Inc E-1204-AB Ceiling antenna - flying lead Aveslink Technology, Inc E-0005-AB Vertical- flying lead Aveslink Technology, Inc E-1450-GB Vertical-swivel mount Aveslink Technology, Inc E-1450-GC Vertical-swivel mount 4dBi 4dBi 4dBi 2dBi 4dBi 4dBi Aveslink Technology, Inc E-1520-CA Vertical - bulkhead- flying lead 4dBi Aveslink Technology, Inc E-1520-GB Vertical - swivel Aveslink Technology, Inc E-1520-GC Vertical - swivel Aveslink Technology, Inc E-2411-GB Vertical - swivel 4dBi 4dBi 2dBi Aveslink Technology, Inc E-2410-CA Vertical - bulkhead- flying lead 2dBi Aveslink Technology, Inc E-2410-GB Vertical - swivel Aveslink Technology, Inc E-2410-GC Vertical - swivel Aveslink Technology, Inc E-2410-HA Vertical - swivel -flying lead 2dBi 2dBi 2dBi Aveslink Technology, Inc E-2820-CA Vertical - bulkhead- flying lead 2dBi Aveslink Technology, Inc E-2820-GB Vertical - swivel Aveslink Technology, Inc E-2820-GC Vertical - swivel Aveslink Technology, Inc E-6170-DA Vertical - right angle 2dBi 2dBi 1dBi Aveslink Technology, Inc E-0901-AA Embedded - flying lead 2.5dBi SMA SMA uFL uFL uFL SMA SMA SMA SMA RP-SMA uFL SMA RP-SMA SMA uFL SMA RP-SMA uFL uFL SMA RP-SMA uFL uFL Hyperlink Technologies HG2402RD-RSF Vertical tilt and swivel 2.2dBi RP-SMA 24 JN-DS-JN5139-xxx-Myy 1v5 Jennic 2009 A.8 Industry Canada Statement To reduce potential radio interference to other users, the antenna type and its gain should be so chosen that the equivalent isotropically radiated power (e.i.r.p.) is not more than that permitted for successful communication. These modules have been designed to operate with antennas having a maximum gain of 4.4 dBi. Antennas having a gain greater than 4.4 dBi are strictly prohibited for use with this device. The required antenna impedance is 50 ohms. The following table shows the approved list of antennas:
Jennic Brand Model Number Description Antenna Factor ANT-2.4-CW-RCL Knuckle Antenna Antenna Factor ANT-2.4-CW-RCT-RP Knuckle Antenna Centurion Centurion Nearson Nearson Nearson WCR2400-SMRP Knuckle Antenna WRR2400-SMRP Knuckle Antenna S131CL-L-PX-2450S Knuckle Antenna 2.0 dBi S141AH-2450 Knuckle Antenna S152CL-L-PX-2450S Knuckle Antenna Hyperlink Technologies HG2402RD-RSF Knuckle Antenna Gain 2.9 dBi 2.2 dBi 1.0 dBi 1.3 dBi 2.0 dBi 4.0 dBi 2.2 dBi As long as the above condition is met, further transmitter testing will not be required. However, the OEM integrator is still responsible for testing their end-product for any additional compliance requirements required with this module installed (for example, digital device emissions, PC peripheral requirements, etc). A.8.1 Industry Canada End Product Labelling For Industry Canada purposes the following should be used. Contains Industry Canada ID IC: 7438A-CYO5139M0, IC: 7438A-CYO5139M4 or IC: 7438A-CYO5139M6 to reflect the version of the module being used inside the product. A.9 RoHS Compliance JN5139-xxx-Myy devices meet the requirements of Directive 2002/95/EC of the European Parliament and of the Council on the Restriction of Hazardous Substance (RoHS). The JN5139-xxx-M00, M03 and M04 modules are fully compliant with the Chinese RoHS requirements SJ/T11363-
2006. Further information can be found on the Jennic support website at www.jennic.com/support Jennic 2009 JN-DS-JN5139-xxx-Myy 1v5 25 Jennic A.10 Status Information The status of this Data Sheet is Production. Jennic products progress according to the following format:
Advanced The Data Sheet shows the specification of a product in planning or in development. The functionality and electrical performance specifications are target values and may be used as a guide to the final specification. Jennic reserves the right to make changes to the product specification at anytime without notice. Preliminary The Data Sheet shows the specification of a product that is in production, but is not yet fully qualified. The functionality of the product is final. The electrical performance specifications are target values and may used as a guide to the final specification. Modules are identified with an R1 suffix, for example JN5139-Z01-M00R1. Jennic reserves the right to make changes to the product specification at anytime without notice. Production This is the final Data Sheet for the product. All functional and electrical performance specifications, including minimum and maximum values are final. This Data Sheet supersedes all previous document versions. Jennic reserves the right to make changes to the product specification at anytime to improve its performance. A.11 Disclaimers The contents of this document are subject to change without notice. Jennic reserves the right to make changes, without notice, in the products, including circuits and/or software, described or contained herein in order to improve design and/or performance. Information contained in this document regarding device applications and the like is intended through suggestion only and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. Jennic warrants performance of its hardware products to the specifications applicable at the time of sale in accordance with Jennics standard warranty. Testing and other quality control techniques are used to the extent Jennic deems necessary to support this warranty. Except where mandatory by government requirements, testing of all parameters of each product is not necessarily performed. Jennic assumes no responsibility or liability for the use of any of these products, conveys no license or title under any patent, copyright, or mask work right to these products, and makes no representations or warranties that these products are free from patent, copyright, or mask work infringement, unless otherwise specified. Jennic products are not intended for use in life support systems, appliances or systems where malfunction of these products can reasonably be expected to result in personal injury, death or severe property or environmental damage. Jennic customers using or selling these products for use in such applications do so at their own risk and agree to fully indemnify Jennic for any damages resulting from such use. All trademarks are the property of their respective owners. 26 JN-DS-JN5139-xxx-Myy 1v5 Jennic 2009 Jennic A.12 Version Control Version Notes 1.0 1.1 1.2 1.3 1.4 1.5 1st Issue of Advanced Datasheet Update to correct connector positions on drawings and typo on module numbering. 000 modules now read 001. Updated to preliminary status, solder reflow profile and antenna lists added. Increased length of M02 variants Updated part numbering and addition of Industry Canada approvals Minor specification updates Updated to Production status, updated antenna information and other minor specification updates Jennic Ltd Furnival Street Sheffield S1 4QT United Kingdom Tel: +44 (0)114 281 2655 Fax: +44 (0) 114 281 2951 E-mail: info@jennic.com For the contact details of your local Jennic office or distributor, refer to the Jennic web site:
www.jennic.com Jennic 2009 JN-DS-JN5139-xxx-Myy 1v5 27
1 2 | User Manual | Users Manual | 254.36 KiB |
Advanced Information Advanced Data Sheet JN5139-xxx-Myy IEEE802.15.4/ZigBee Module Family Overview The JN5139-xxx-Myy family is a range of surface mount modules that enable users to implement IEEE802.15.4 or ZigBee compliant systems with minimum time to market and at the lowest cost. They remove the need for expensive and lengthy development of custom RF board designs and test suites. The modules use Jennics JN5139 wireless microcontroller to provide a comprehensive solution with high radio performance and all RF components included. All that is required to develop and manufacture wireless control or sensing products is to connect a power supply and peripherals such as switches, actuators and sensors, considerably simplifying product development. Three basic hardware module variants are available: JN5139-xxx-M00 with an integrated antenna, JN5139-xxx-M01/M03 with an antenna connector and JN5139-
xxx-M02/M04 with a power amplifier and LNA for extended range. Each variant can be provided pre-programmed with a ZigBee network stack (JN5139-Z01-Myy). Module Block Diagram External Antenna Ceramic Antenna Balun M00 Option Connector Balun M01/03 Option Connector Balun PA / LNA M02/04 Option XTAL JN5139 chip RAM 96kB ROM 192kB 2.4GHz Radio O-QPSK Modem RISC CPU IEEE802.15.4 MAC Accelerator Power Management 128-bit AES Encryption Accelerator 128kB Serial Flash Memory SPI 2-wire serial Timers UARTs 12-bit ADC, comparators 11-bit DACs, temp sensor Power Benefits Microminiature module solutions Ready to use in products Minimises product development time No RF test required for systems Compliant with FCC part 15 rules, ETSI ETS 300-328 and Japan ARIB STD-T66 Production volumes supplied pre-programmed with application software Applications Robust and secure low power wireless applications Wireless sensor networks, particularly IEEE802.15.4 /
ZigBee systems Home and commercial building automation Home networks Toys and gaming peripherals Telemetry and utilities Industrial systems
(e.g. AMR) Features: Module 2.4GHz IEEE802.15.4 & ZigBee compliant 2.7-3.6V operation Sleep current (with active sleep timer) 2A JN5139-xxx-M00/01/03
> 1km range M00 has on board antenna M01 has SMA connector M03 has uFl connector o Receiver sensitivity -97dBm o TX power +3dBm o TX current < 39mA o RX current < 39mA o 18x30mm JN5139-xxx-M02/04
> 4km range M02 has SMA connector M04 has uFl connector o Receiver sensitivity -100dBm o 19dBm TX power o TX current < 120mA o RX current < 45mA o 18x40.5mm Features: Microcontroller 16MHz 32-bit RISC CPU 96kB RAM, 192kB ROM 4-input 12-bit ADC, 2 11-bit DACs, 2 comparators, temperature sensor 2 Application timer/counters, 3 system timers 2 UARTs (one for in-system debug) SPI port with 5 selects 2-wire serial interface 21 GPIO Evaluation kits available with full, unlimited, Software Development Kit Industrial temperature range
(-20C to +70C) Lead-free and RoHS compliant Preliminary - JN-DS-JN5139-xxx-Myy v1.1 Jennic 2007 JN5139 Single Chip Wireless Microcontroller Jennic Contents 1. Introduction 1.1. Variants 1.2. Regulatory Approvals 2. Specifications 3. Product Development 3.1. 4. Pin Configurations 4.1. Pin Assignment 4.2. Pin Descriptions 4.3. Power Supplies 4.4. SPI Memory Connections 5. Electrical Characteristics 5.1. Maximum Ratings 5.2. Operating Conditions Appendix A Additional Information A.1 Outline Drawing A.2 Module PCB Footprint A.3 Ordering Information A.4 Tape and Reel Information:
A.4.1 Tape Orientation and dimensions A.4.2 Cover tape details A.4.3 Leader and Trailer A.4.4 Reel Dimensions:
A.5 Related Documents A.6 Federal Communication Commission Interference Statement A.7 RoHS Compliance A.8 Status Information A.9 Disclaimers A.10 Version Control A.11 Contact Details 3 3 3 4 5 5 6 7 8 8 8 9 9 9 10 10 15 16 17 17 17 18 18 19 19 20 20 21 21 22 ii Preliminary - JN-DS-JN5139-xxx-Myy v1.1 Jennic 2007 Jennic 1. Introduction The JN5139-xxx-Myy module family provides designers with a ready made component which allows IEEE802.15.4 [1]
wireless applications, including ZigBee, to be quickly and easily included in product designs. The modules integrate all of the RF components, removing the need to perform expensive RF design and test. Products can be designed by simply connecting sensors and switches to the module IO pins. The modules use Jennics single chip IEEE802.15.4 Wireless Microcontroller, allowing designers to make use of the extensive chip development support material. Hence, this range of modules allows designers to bring wireless applications to market in the minimum time with significantly reduced development effort and cost. Three basic module hardware variants are available: JN5139-xxx-M00 (standard module with on board ceramic antenna), JN5139-xxx-M01 (standard module with SMA connector for use with external antennae) and JN5139-xxx-
M02 (high RF power, improved sensitivity module for extended range applications). uFL connector variants are provided (-M03 standard power and M04 high power) for FCC approved products and for applications where a small connector size is required. Each of these modules can be supplied with a range of protocol stacks, including a simple IEEE802.15.4 protocol for point to point and star applications and a ZigBee mesh networking stack. The variants available are described below. 1.1. Variants Variant JN5139-001-M00 JN5139-Z01-M00 JN5139-001-M01 JN5139-Z01-M01 JN5139-001-M02 JN5139-Z01-M02 JN5139-001-M03 JN5139-Z01-M03 JN5139-001-M04 JN5139-Z01-M04 Description JN5139 Module (IEEE802.15.4 stack, ceramic antenna) JN5139 Module (ZigBee stack, ceramic antenna) JN5139 Module (IEEE802.15.4 stack, SMA connector) JN5139 Module (ZigBee stack, SMA connector) JN5139 Module (High Power (18.5dBm), IEEE802.15.4 stack, SMA connector) JN5139 Module (High Power (18.5dBm), ZigBee stack, SMA connector) JN5139 Module (IEEE802.15.4 stack, uFl connector) JN5139 Module (ZigBee stack, uFl connector) JN5139 Module (High Power (18.5dBm), IEEE802.15.4 stack, uFl connector) JN5139 Module (High Power (18.5dBm), ZigBee stack, uFl connector) 1.2. Regulatory Approvals All module types have been tested against the requirements of European standard ETS 300 328 and a certificate of compliance to this standard is available on request. The High Power modules with M02 suffix are approved for use in Europe with reduced output power. They must not be used with PHY_PIB_ATTR_TX_POWER set above 3 See [4]. Additionally, modules with M00, M03 and M04 suffixes have received FCC Modular Approvals, in compliance with CFR 47 FCC part 15 regulations and in accordance to FCC Public notice DA00-1407. The modules are approved for use with the following half wave dipole antenna families: EAD BKR2400 series, Antenna Factor RCT and RCL series, Centurion WCR2400 & WRR2400, GigaAnt Titanis and Nearson Models 131, 141 & 145. See Appendix A.6 for details on the conditions applying to this modular approval. The high power module variant is classified as mobile device pursuant with FCC 2.1091 and must not be used at a distance of < 20 cm (8) from any nearby people. Jennic 2007 Preliminary - JN-DS-JN5139-xxx-Myy v1.1 3 Jennic 2. Specifications Most specification parameters for the modules are specified in JN-DS-JN513x Datasheet for JN5139 single chip wireless microcontroller, [2]. Where there are differences, the parameters are defined here. VDD=3.0V @ +25C Typical DC Characteristics Deep sleep current Sleep current Radio transmit current Radio receive current JN5139-xxx-
M00/01/03
<1uA
<2uA 40mA 40mA JN5139-xxx-
M02/04
<1uA
<2uA 120mA 45mA Centre frequency accuracy
+/-25ppm
+/-25ppm Typical RF Characteristics Receive sensitivity Max. Transmit power Transmit power at 3.6V Maximum input signal RSSI range RF Port impedance SMA/uFl connector VSWR (max) Peripherals Master SPI port with five select outputs Slave SPI port Two UARTs Two-wire serial I/F (compatible with SMbus & I2C) Two programmable Timer/Counters with capture/compare facility, Tick timer Two programmable Sleep Timers Twenty-one digital IO lines (multiplexed with UARTs, timers and SPI selects) Four-channel, 12-bit, Analogue-to-Digital converter Two 11-bit Digital-to-Analogue converters Two programmable analogue comparators Internal temperature sensor and battery monitor
-96.5dBm
-100dBm
+2.5dBm
-10dBm
-95 to -10 dBm 50 ohm 2:1 18dBm 19dBm
-15dBm
-115 to -20 dBm 50 ohm 2:1 Notes With active sleep timer CPU in doze, radio transmitting CPU in doze, radio receiving Additional +/-15ppm allowance for temperature and aging Notes Nominal for 1% PER, as per 802.15.4 section 6.5.3.3 Nominal With Vdd=3.6V For 1% PER, measured as sensitivity 2.4 - 2.5GHz 2.4 - 2.5GHz Notes 250kHz - 16MHz 250kHz - 16MHz 16550 compatible Up to 400kHz 16MHz clock 32kHz clock Up to 100ks/s Up to 100ks/s Ultra low power mode for sleep 4 Preliminary - JN-DS-JN5139-xxx-Myy v1.1 Jennic 2007 Jennic 3. Product Development Jennic supplies all the development tools and networking stacks needed to enable end product development to occur quickly and efficiently. These are all freely available from Jennics support website: http://www.jennic.com/support/ . A range of evaluation/developer kits is also available, allowing products to be quickly breadboarded. Efficient development of software applications is enabled by the provision of a complete, unlimited, software developer kit. Together with the available libraries for the IEEE802.15.4 MAC and the ZigBee network stack, this package provides everything required to develop application code and to trial it with hardware representative of the final module. The modules can be programmed by the user, for both development and production, using Jennic supplied software. They can also be supplied ready loaded with customer defined software if required. The JN-UG-3007 Flash Loader User Guide [5], describes how to put the module into programming mode, download software onto it and to load individual MAC addresses. Access to the on-chip peripherals, MAC and ZigBee stack software is provided through specific APIs. These are described in the JN-RM-2001 Hardware Peripheral Library Reference Manual [3], JN-RM-
2002 Stack Software Reference Manual [4] and JN-RM-2014 ZigBee Application Development API Reference Manual [6]. Additional information is available on the Jennic support website. 3.1. JN5139 Single Chip Wireless Microcontroller The JN5139-xxx-Myy series is constructed around the JN5139 single chip wireless microcontroller, which includes the radio system, a 32-bit RISC CPU, ROM and RAM memory and a range of analogue and digital peripherals. The chip is described fully in JN-DS-JN513x Datasheet for JN5139 single chip wireless microcontroller [2]. Jennic 2007 Preliminary - JN-DS-JN5139-xxx-Myy v1.1 5 Jennic 4. Pin Configurations a J1 n n e t n A ADC4 DAC1 DAC2 COMP2+
COMP2-
SPICLK SPIMISO SPIMOSI SPISSZ DIO0/SPISEL1 DIO1/SPISEL2 DIO2/SPISEL3 SPISSM SPISWP DIO3/SPISEL4 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 D D V D N G A S S V 0 S T C 4 O D I
0 S T R 5 O D I
0 D X T 6 O D I
0 D X R 7 O D I
I T G 0 M T 8 O D I
P A C _ 0 M T 9 O D I
I I T G 1 M T 1 1 O D I
T U O _ 0 M T
0 1 O D I I 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 ADC3 ADC2 ADC1 COMP1+
COMP1-
DIO20/RXD1 DIO19/TXD1 DIO18/RTS1 DIO17/CTS1 DIO16 DIO15/SIF_D DIO14/SIF_CLK RESETN DIO13/TIM1_OUT DIO12/TIM1_CAP Figure 1: Pin Configuration (top view) Note that the same basic pin configuration applies for all module designs. However, DIO3/SPISEL4 and DIO2/SPISEL3 are not available with high power modules. 6 Preliminary - JN-DS-JN5139-xxx-Myy v1.1 Jennic 2007 4.1. Pin Assignment Function Pin Signal Jennic Alternative Function ADC4 DAC1 DAC2 COMP2+
COMP2-
SPICLK Analogue to Digital input Digital to Analogue output Digital to Analogue output Comparator 2 inputs SPI master clock out SPIMISO SPI Master In/Slave Out SPIMOSI SPI Master Out/Slave In SPISSZ SPI select from module - SS0 (output) SPISEL1 SPI Slave Select1 (output) SPISEL2 SPI Slave Select2 (output) General Purpose Digital I/O DIO0 General Purpose Digital I/O DIO1 SPISEL3*
SPI Slave Select3 (output) General Purpose Digital I/O DIO2 *
SPISSM SPI select to FLASH (input) SPISWP FLASH write protect (input) SPI Slave Select4 (output) General Purpose Digital I/O DIO3*
UART0 Clear To Send (input) General Purpose Digital I/O DIO4 UART0 Request To Send (output) General Purpose Digital I/O DIO5 UART0 Transmit Data (output) General Purpose Digital I/O DIO6 SPISEL4*
Hi CTS0 t RTS0 TXD0 RXD0 UART0 Receive Data (input) TIM0GT Timer0 clock/gate (input) TIM0_CAP Timer0 capture (input) TIM0_OUT Timer0 PWM (output) TIM1GT Timer1 clock/gate (input) VDD GND VSSA 3V power Digital ground Analogue ground TIM1_CAP Timer1 capture (input) TIM1_OUT Timer1 PWM (output) RESETN Active low reset General Purpose Digital I/O DIO7 General Purpose Digital I/O DIO8 General Purpose Digital I/O DIO9 General Purpose Digital I/O DIO10 General Purpose Digital I/O DIO11 General Purpose Digital I/O DIO12 General Purpose Digital I/O DIO13 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 SIF_CLK Serial Interface clock / Intelligent peripheral clock General Purpose Digital I/O DIO14 Jennic 2007 Preliminary - JN-DS-JN5139-xxx-Myy v1.1 7 Jennic Pin Signal Function 31 32 33 34 35 36 37 38 39 40 41 SIF_D DIO 16 CTS1 RTS1 TXD1 RXD1 COMP1-
COMP1+
ADC1 ADC2 ADC3 Serial Interface data / Intelligent peripheral data t Intelligent peripheral device select Alternative Function General Purpose Digital I/O DIO15 General Purpose Digital I/O UART1 Clear To Send (input) General Purpose Digital I/O DIO17 UART1 Request To Send (output) General Purpose Digital I/O DIO18 UART1 Transmit Data (output) General Purpose Digital I/O DIO19 UART1 Receive Data (input) General Purpose Digital I/O DIO20 Comparator 1 inputs Analogue to Digital input Analogue to Digital input Analogue to Digital input
*: These two pins are not connected for High power modules 4.2. Pin Descriptions All pins behave as described in the JN513x datasheet [2], with the exception of the following:
4.3. Power Supplies A single power supply pin, VDD is provided. Separate analogue (VSSA) and digital (GND) grounds are provided. These should be connected together at the module pins. 4.4. SPI Memory Connections SPISWP is a write protect pin for the serial flash memory. This should be held low to inhibit writes to the flash device. SPISSZ is connected to SPI Slave Select 0 on the JN5139. SPISSM is connected to the Slave Select pin on the memory. This configuration allows the flash memory device to be programmed using an external SPI programmer if required. For programming in this mode, the JN5139 should be held in reset by taking RESETN low. The memory can also be programmed over the UART by using the programming mode described in JN-UG-3007 Flash Loader User Guide [5]. For normal operation of the module and programming over the UART, SPISSZ should be connected to SPISSM. 8 Preliminary - JN-DS-JN5139-xxx-Myy v1.1 Jennic 2007 5. Electrical Characteristics In most cases, the Electrical Characteristics are the same for both module and chip. They are described in detail in the chip datasheet. Where there are differences, they are detailed below. Jennic 5.1. Maximum Ratings Exceeding these conditions will result in damage to the device. Parameter Device supply voltage VDD Voltage on analogue pins ADC1-4, DAC1-2, COMP1+, COMP1-, COMP2+, COMP2-, SPICLK, SPIMOSI, SPIMISO, SPISSM, SPISWP Voltage on 5V tolerant digital pins DIO-DIO20, RESETN, SPISSZ Storage temperature Solder reflow temperature (According to IPC/JEDEC J-STD-020C) Min
-0.3V
-0.3V
-0.3V
-40C Max 3.6V VDD + 0.3V VDD + 2V or 5.5V, whichever is the lesser 150C 260 C This device is sensitive to ESD and should only be handled using ESD precautions. 5.2. Operating Conditions Supply VDD Ambient temperature range Min 2.7V
-20C Max 3.6V 70C Jennic 2007 Preliminary - JN-DS-JN5139-xxx-Myy v1.1 9 Jennic Appendix A Additional Information A.1 Outline Drawing 18mm J1 a n n e t n A 30mm Thickness: 3.5mm 10 1.27 mm 2.54 mm 2.54 mm 2.79 mm JN5139-xxx-M00 Outline Drawing Preliminary - JN-DS-JN5139-xxx-Myy v1.1 Jennic 2007 Jennic 18mm 9.74mm 4.59mm 30mm 1.27 mm 2.54 mm 2.54 mm 2.79 mm Thickness: 3.5mm over can, 10.6mm at SMA connector JN5139-xxx-M01 Outline Drawing Jennic 2007 Preliminary - JN-DS-JN5139-xxx-Myy v1.1 11 Jennic 30mm 18mm 9.76mm 6.58mm 1.27 mm 2.54 mm 2.54 mm Thickness: 3.5mm 2.79 mm JN5139-xxx-M03 Outline Drawing 12 Preliminary - JN-DS-JN5139-xxx-Myy v1.1 Jennic 2007 Jennic 18mm 7.2mm 4.05mm 40.5mm
. 2.54 mm 1.27 mm 2.54 mm 2.79 mm Thickness: 3.5mm over can, 10.6mm at SMA connector. Note that early versions of this board will be 40mm long but the SMA connector will remain in the same location with respect to the pcb pads. JN5139-xxx-M02 Outline Drawing Jennic 2007 Preliminary - JN-DS-JN5139-xxx-Myy v1.1 13 Jennic 40.5mm
. 2.54 mm Thickness: 3.5mm 18mm 7.2mm 3.99mm 1.27 mm 2.54 mm 2.79 mm JN5139-xxx-M04 Outline Drawing 14 Preliminary - JN-DS-JN5139-xxx-Myy v1.1 Jennic 2007 A.2 Module PCB Footprint 18mm Jennic 1.27 mm 2.54 mm 2.54mm All Pads are 0.9mm square on 1.27mm pitch Note: All modules have the same footprint. RF note for M00 modules with ceramic antenna: No components, ground plane or tracks on any layer of the mother board should be placed within 20mm of the 3 free sides of the antenna. Tracks etc may be placed adjacent to the can, but should not extend past the can towards the antenna end of the module for 20mm from the antenna. Jennic 2007 Preliminary - JN-DS-JN5139-xxx-Myy v1.1 15 Jennic A.3 Ordering Information Part Numbering:
JN5139 - XXX - MY1Y2 Y3 Y4 Shipping R T V Box (10 modules per pack) Tape Mounted 500pcs (00 module only) Tape Mounted 200pcs (01,02,03,04 modules only) Temp Range / Device Status D
-20C to +70C, Qualified Module Type 00 01 02 03 04 Standard Power, Ceramic antenna Standard Power, SMA connector High Power, SMA connector Standard Power, uFl connector High power, uFl connector Software Variant 001 Z01 ZigBee Stack IEEE802.15.4 Stack 16 Preliminary - JN-DS-JN5139-xxx-Myy v1.1 Jennic 2007 A.4 Tape and Reel Information:
A.4.1 Tape Orientation and dimensions Jennic Module type:
A B JN5139-xxx-M00/03 18.4 30.4 JN5139-xxx-M01 18.4 30.4 JN5139-xxx-M02 18.5 40.5 JN5139-xxx-M04 18.5 40.9 W 44 56 56 56 F E P0 P1 P2 T Cover Tape width (W) 20.2 1.75 20.2 1.75 20.2 1.75 20.2 1.75 4.0 4.0 4.0 4.0 2.0 2.0 2.0 2.0 24.0 3.4 37.5 24.0 11.4 49.5 24.0 11.4 49.5 24.0 3.4 49.5 Tolerance 0.1 0.1 0.3 0.1
+0.1 0.1 0.1 0.1 0.1 0.1 A.4.2 Cover tape details Thickness (T) 0.061mm Surface resistivity (component side) 104 to 107 Ohms/sq Surface resistivity (component side) Non-conductive Backing type:
Adhesive type:
Sealing:
Polyester PSA Room ambient Jennic 2007 Preliminary - JN-DS-JN5139-xxx-Myy v1.1 17 Jennic A.4.3 Leader and Trailer 300 MM A.4.4 Reel Dimensions:
300 MM Module type:
JN5139-xxx-M00 JN5139-xxx-
M01/02/03/04 A 330 1.0 330 1.0 B 2.20.5 2.20.5 C 13 0.2 13 0.2 N 100 +0.1 100 +0.1 W (min) 44.5 0.3 56.5 0.3 18 Preliminary - JN-DS-JN5139-xxx-Myy v1.1 Jennic 2007 A.5 Related Documents
[1] IEEE Std 802.15.4-2003 IEEE Standard for Information Technology Part 15.4 Wireless Medium Access Control
(MAC) and Physical Layer (PHY) Specifications for Low-Rate Wireless Personal Area Networks (LR-WPANs) Jennic
[2] JN-DS-JN513x Datasheet for JN5139 single chip wireless microcontroller
[3] JN-RM-2001 Hardware Peripheral Library Reference Manual
[4] JN-RM-2002 Stack Software Reference Manual
[5] JN-UG-3007 Flash Loader User Guide
[6] JN-RM-2014 ZigBee Application Development API Reference Manual A.6 Federal Communication Commission Interference Statement This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to Part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference in a residential installation. This equipment generates, uses, and can radiate radio frequency energy and, if not installed and used in accordance with the instructions, may cause harmful interference to radio communications. However, there is no guarantee that interference will not occur in a particular installation. If this equipment does cause harmful interference to radio or television reception, which can be determined by turning the equipment off and on, the user is encouraged to try to correct the interference by one of the following measures:
- Reorient or relocate the receiving antenna.
- Increase the separation between the equipment and receiver.
- Connect the equipment into an outlet on a circuit different from that to which the receiver is connected.
- Consult the dealer or an experienced radio/TV technician for help. This device complies with Part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) This device may not cause harmful interference, and (2) this device must accept any interference received, including interference that may cause undesired operation. FCC Caution: Any changes or modifications not expressly approved by the party responsible for compliance could void the user's authority to operate this equipment. WARNING!
FCC Radiation Exposure Statement:
This portable equipment with its antenna complies with FCCs RF radiation exposure limits set forth for an uncontrolled environment. To maintain compliance follow the instructions below;
1. This transmitter must not be co-located or operating in conjunction with any other antenna or transmitter. 2. Avoid direct contact to the antenna, or keep it to a minimum while using this equipment. This transmitter module is authorized to be used in other devices only by OEM integrators under the following condition:
The transmitter module must not be co-located with any other antenna or transmitter. Jennic 2007 Preliminary - JN-DS-JN5139-xxx-Myy v1.1 19 Jennic As long as the above condition is met, further transmitter testing will not be required. However, the OEM integrator is still responsible for testing their end-product for any additional compliance requirements required with this module installed (for example, digital device emissions, PC peripheral requirements, etc.). High Power Module usage limitation The high power module variants are classified as mobile device pursuant with FCC 2.1091 and must not be used at a distance of < 20 cm (8) from any nearby people. IMPORTANT NOTE: In the event that these conditions can not be met (for certain configurations or co-location with another transmitter), then the FCC authorization is no longer considered valid and the FCC ID can not be used on the final product. In these circumstances, the OEM integrator will be responsible for re-evaluating the end product
(including the transmitter) and obtaining a separate FCC authorization. The OEM integrator has to be aware not to provide information to the end user regarding how to install or remove this RF module in the user manual of the end product. The user manual for the end product must include the following information in a prominent location;
To comply with FCCs RF radiation exposure requirements, the antenna(s) used for this transmitter must not be co-
located or operating in conjunction with any other antenna or transmitter. A.7 RoHS Compliance JN5139-xxx-Myy devices meet the requirements of Directive 2002/95/EC of the European Parliament and of the Council on the Restriction of Hazardous Substance (RoHS). A.8 Status Information The status of this Data Sheet is Advanced. Jennic products progress according to the following format:
Advanced The Data Sheet shows the specification of a product in planning or in development. The functionality and electrical performance specifications are target values and may be used as a guide to the final specification. Jennic reserves the right to make changes to the product specification at anytime without notice. Preliminary The Data Sheet shows the specification of a product that is in production, but is not yet fully qualified. The functionality of the product is final. The electrical performance specifications are target values and may used as a guide to the final specification. Modules are identified with an R suffix, for example JN5139-Z01-M00R. Jennic reserves the right to make changes to the product specification at anytime without notice. Production This is the final Data Sheet for the product. 20 Preliminary - JN-DS-JN5139-xxx-Myy v1.1 Jennic 2007 Jennic All functional and electrical performance specifications, including minimum and maximum values are final. This Data Sheet supersedes all previous document versions. Jennic reserves the right to make changes to the product specification at anytime to improve its performance. A.9 Disclaimers The contents of this document are subject to change without notice. Jennic reserves the right to make changes, without notice, in the products, including circuits and/or software, described or contained herein in order to improve design and/or performance. Information contained in this document regarding device applications and the like is intended through suggestion only and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. Jennic assumes no responsibility or liability for the use of any of these products, conveys no license or title under any patent, copyright, or mask work right to these products, and makes no representations or warranties that these products are free from patent, copyright, or mask work infringement, unless otherwise specified. Jennic products are not intended for use in life support systems, appliances or systems where malfunction of these products can reasonably be expected to result in personal injury, death or severe property or environmental damage. Jennic customers using or selling these products for use in such applications do so at their own risk and agree to fully indemnify Jennic for any damages resulting from such use. All trademarks are the property of their respective owners. A.10 Version Control Version Notes 1st Issue of Advanced Datasheet Update to correct connector positions on drawings and typo on module numbering. 000 modules now read 001. 1.0 1.1 Jennic 2007 Preliminary - JN-DS-JN5139-xxx-Myy v1.1 21 Jennic A.11 Contact Details Corporate Headquarters Jennic Ltd, Furnival Street Sheffield S1 4QT, UK Tel: +44 (0)114 281 2655 Fax: +44 (0) 114 281 2951 info@jennic.com www.jennic.com Jennic Ltd Japan Osakaya building 4F 1-11-8 Higashigotanda Shinagawa-ku Tokyo 141-0022, Japan Tel: +81 3 5449 7501 Fax: +81 3 5449 0741 info@jp.jennic.com www.jennic.com Jennic Ltd Taiwan 19F-1, 182, Sec.2 Tun Hwa S. Road. Taipei 106, Taiwan Tel: +886 2 2735 7357 Fax: +886 2 2739 5687 info@tw.jennic.com www.jennic.com Jennic America Inc - East Coast Office 1322 Scott Street, Suite 203 Point Loma, CA 92106, USA Tel: +619 223 2215 Fax: +619 223 2081 info@us.jennic.com www.jennic.com Jennic America Inc - West Coast Office 1060 First Avenue, Suite 400 King of Prussia, PA 19406, USA Tel: +1 484 868 0222 Fax: +1 484 971 5015 info@us.jennic.com www.jennic.com Jennic Ltd Korea 701, 7th Floor, Kunam Bldg., 831-37, Yeoksam-Dong, Kangnam-ku Seoul 135-080 Korea Tel: +82 2 552 5325 Fax: +82 2 3453 8802 info@kr.jennic.com www.jennic.com 22 Preliminary - JN-DS-JN5139-xxx-Myy v1.1 Jennic 2007
1 2 | manual | Users Manual | 904.78 KiB |
Data Sheet JN5139 IEEE802.15.4 and ZigBee Wireless Microcontrollers Overview The JN5139 is a low power, low cost wireless microcontroller suitable for IEEE802.15.4 and ZigBee applications. The device integrates a 32-bit RISC processor, with a fully compliant 2.4GHz IEEE802.15.4 transceiver, 192kB of ROM, 96kB of RAM, and a rich mixture of analogue and digital peripherals. The cost sensitive ROM/RAM architecture supports the storage of system software, tables and application code/data. An external flash memory may be used to store application code that can be bootloaded into internal RAM and executed at runtime. including protocol stacks, routing The device integrates hardware MAC and AES encryption accelerators, power saving and timed sleep modes, and mechanisms for security key and program code encryption. These features all make for a highly efficient, low power, single chip wireless microcontroller for battery-powered applications. Block Diagram RAM 96kB ROM 192kB SPI Bootloader Flash 2.4GHz Radio O-QPSK Modem 32-bit RISC CPU 48-byte OTP eFuse IEEE802.15.4 MAC Accelerator 128-bit AES Encryption Accelerator Power Management 2-wire serial Timers UARTs 12-bit ADC, comparators 11-bit DACs, temp sensor XTAL Benefits Single chip integrates transceiver and microcontroller for wireless sensor networks Cost sensitive ROM/RAM architecture, meets needs for volume application System BOM is low in component count and cost Hardware MAC ensures low power consumption and low processor overhead Extensive user peripherals Pin compatible with JN5121 for easy migration Applications Robust and secure low power wireless applications Wireless sensor networks, particularly IEEE802.15.4 and ZigBee systems Home and commercial building automation Toys and gaming peripherals Remote Control Telemetry and utilities Industrial systems
(e.g. AMR) Features: Transceiver MAC accelerator with packet 2.4GHz IEEE802.15.4 compliant 128-bit AES security processor formatting, CRCs, address check, auto-acks, timers Integrated power management and sleep oscillator for low power On-chip power regulation for 2.2V to 3.6V battery operation Deep sleep current 60nA Sleep current with active sleep timer 1.2A Needs minimum of external components (< US$1 cost) Rx current 37mA Tx current 38mA Receiver sensitivity -97dBm Transmit power +3dBm Features: Microcontroller 32-bit RISC processor sustains 16MIPs with low power 192kB ROM stores system code including IEEE802.15.4 MAC 96kB RAM stores system data and optionally bootloaded program code 48-byte OTP eFuse supporting AES based code encryption feature 4-input 12-bit ADC, 2 11-bit DACs, 2 comparators 2 Application timer/counters, 3 system timers 2 UARTs (one for debug) SPI port with 5 selects 2-wire serial interface Up to 21 DIO Industrial temperature range
(-40C to +85C) 8x8mm 56-lead QFN Lead-free and RoHS compliant Jennic 2008 JN-DS-JN5139 v1.5 1 Jennic Jennic Jennic Jennic 1 Introduction 1.1 Wireless Microcontroller 1.2 Wireless Transceiver 1.3 1.4 1.5 RISC CPU and Memory Peripherals Block Diagram Pin Assignment Pin Descriptions 2 Pin Configurations 2.1 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 Power Supplies Reset 16MHz System Clock Radio Analogue Peripherals Digital Input/Output 3 CPU ROM RAM OTP eFuse Memory External Memory 4 Memory Organisation 4.1 4.2 4.3 4.4 4.4.1 4.5 4.6 Peripherals Unused Memory Addresses Secure External Memory Encryption 5 System Clocks 5.1 5.2 16MHz Oscillator 32kHz Oscillator 6 Reset 6.1 6.2 6.3 Internal Power-on Reset External Reset Software Reset System Calls Processor Exceptions 7 Interrupt System 7.1 7.2 7.2.1 7.2.2 7.2.3 7.3 Bus Error Alignment Illegal Instruction Hardware Interrupts Radio 8 Wireless Transceiver 8.1 8.1.1 8.1.2 8.2 Modem 8.3 8.3.1 Baseband Processor Transmit Radio External components Antenna Diversity 6 6 6 6 7 8 9 10 11 11 11 11 11 11 12 13 14 15 15 16 16 16 17 17 18 18 18 19 19 20 20 21 21 21 21 21 21 22 23 23 24 24 25 26 26 2 JN-DS-JN5139 v1.5 Jennic 2008 8.3.2 8.3.3 8.3.4 8.3.5 8.4 Reception Auto Acknowledge Beacon Generation Security Security Coprocessor 9 Digital Input/Output 10 Serial Peripheral Interface 11 Intelligent Peripheral Interface 11.1 Data Transfer Format 11.2 11.3 Remote Processor Initiated Data Transfer JN5139 Initiated Data Transfer Pulse Width Modulation Mode Capture Mode Counter / Timer Mode Delta-Sigma Mode Timer / Counter Application 12 Timers 12.1 Peripheral Timer / Counters 12.1.1 12.1.2 12.1.3 12.1.4 12.1.5 12.2 Tick Timer 12.3 Wakeup Timers 12.3.1 12.3.2 RC Oscillator Calibration External 32kHz Clock Source 13 Serial Communications 13.1 13.2 UART Application Interrupts 14 Two-Wire Serial interface 14.1 Connecting Devices 14.2 Multi-Master Operation 14.3 Clock Stretching 15 Analogue Peripherals 15.1 Analogue to Digital Converter 15.1.1 15.1.2 15.1.3 15.2 Digital to Analogue Converter Operation 15.2.1 15.3 Comparators Operation Supply Monitor Temperature Sensor Power Domains 16 Power Management and Sleep Modes 16.1 Operating Modes 16.1.1 16.2 Active Processing Mode 16.2.1 16.3 Sleep Mode 16.3.1 Wakeup Timer Event 16.3.2 CPU Doze DIO Event Jennic Jennic Jennic Jennic 27 27 27 27 27 29 30 33 33 34 34 35 35 36 36 37 37 37 39 39 40 40 41 42 42 43 44 44 44 45 46 46 46 46 47 47 47 48 48 48 48 48 48 49 49 Jennic 2008 JN-DS-JN5139 v1.5 3 Jennic Jennic Jennic Jennic 16.3.3 16.4 Deep Sleep Mode Comparator Event Operating Conditions DC Current Consumption I/O Characteristics 17 Electrical Characteristics 17.1 Maximum ratings 17.2 DC Electrical Characteristics 17.2.1 17.2.2 17.2.3 17.3 AC Characteristics 17.3.1 17.3.2 17.3.3 17.3.4 17.3.5 17.3.6 17.3.7 17.3.8 17.3.9 17.3.10 Comparators 17.3.11 17.3.12 Radio Transceiver Reset SPI Timing Two-wire serial interface Power Down and Wake-Up timings 32kHz Oscillator 16MHz Crystal Oscillator Bandgap Reference Analogue to Digital Converters Digital to Analogue Converters Temperature Sensor 56pin QFN Package Drawing PCB Decal Appendix A Mechanical and Ordering Information A.1 A.2 A.3 Ordering Information A.4 A.5 A.5.1 A.5.2 A.5.3 A.6 Tape Orientation and Dimensions Reel Information: 7 Reel Dry Pack Requirement for Moisture Sensitive Material Device Package Marking Tape and Reel Information PCB Design and Reflow Profile Crystal Oscillator 16MHz Oscillator Applications Information Crystal Equivalent Circuit Crystal Load Capacitance Crystal ESR and Required Transconductance Appendix B Development Support B.1 B.1.1 B.1.2 B.1.3 B.2 B.3 B.3.1 B.3.2 B.3.3 B.3.4 B.3.5 B.3.6 B.3.7 B.3.8 B.3.9 B.3.10 B.3.11 Typical Application Schematic PCB Requirements Supply Decoupling Reference Oscillator Requirements Reference Oscillator Layout Considerations VCO Tune Circuit Component Specifications VCO Tune Circuit Layout Considerations Radio Front-End Antennae Ground Planes Manufacturing Considerations 49 49 50 50 50 50 51 52 52 52 53 54 54 55 55 56 56 57 58 58 59 63 63 64 65 66 67 67 68 69 70 71 71 71 72 72 74 75 75 76 77 77 77 77 78 78 78 78 79 4 JN-DS-JN5139 v1.5 Jennic 2008 B.3.12 B.3.13 B.3.14 B.3.15 B.3.16 B.3.17 B.3.18 Bespoke Solutions - PCB Layout Suggestions Using a Balun Decoupling Capacitors Internal Regulator Smoothing Capacitors VREF IBIAS EMC Appendix C Related Documents RoHS Compliance Status Information Disclaimers Version Control Contact Details Jennic Jennic Jennic Jennic 80 81 81 82 82 82 82 83 83 83 83 84 84 85 Jennic 2008 JN-DS-JN5139 v1.5 5 Jennic Jennic Jennic Jennic 1 Introduction The JN5139 is an IEEE802.15.4 wireless microcontroller that provides a fully integrated solution for applications using the IEEE802.15.4 standard in the 2.4 - 2.5GHz ISM frequency band [1], including ZigBee. It includes all of the functionality required to meet the IEEE802.15.4 specification and has additional processor capability to run a wide range of applications including but not limited to Remote Control, Home and Building Automation, Toys and Gaming. The device includes a Wireless Transceiver, RISC CPU, on-chip memory and an extensive range of peripherals. 1.1 Wireless Microcontroller Applications that transfer data wirelessly tend to be more complex than wired ones. Wireless protocols make stringent demands on frequencies, data formats, timing of data transfers, security and other issues. Application development must consider the requirements of the wireless network in addition to the product functionality and user interfaces. To minimise this complexity, Jennic provides a series of software libraries and interfaces that control the transceiver and peripherals of the JN5139. These libraries and interfaces remove the need for the developer to understand wireless protocols and greatly simplifies the programming complexities of power modes, interrupts and hardware functionality. In view of the above, the register details of the JN5139 are not provided in the datasheet. 1.2 Wireless Transceiver The Wireless Transceiver is highly integrated and, together with the integrated IEEE802.15.4 MAC library contained in ROM requires little knowledge of RF or wireless design. The Wireless Transceiver comprises a low-IF 2.45GHz radio, an O-QPSK modem, a baseband controller and a security coprocessor. The radio has a 200 resistive differential antenna port that includes all the required matching components on-chip, allowing a differential antenna to be connected directly to the port, minimising the system BOM costs. Connection to a single ported antenna can be achieved using a 200/50 2.45GHz balun. In addition, the radio also provides an output to control transmit-receive switching of external devices such as power amplifiers allowing applications that require increased transmit power to be realised very easily. The Security coprocessor provides hardware-based 128-bit AES-CCM, CBC(1), CTR and CCM* processing as specified by the IEEE802.15.4 standard. It does this in-band on packets during transmission and reception, requiring minimal intervention from the CPU. It is also available for off-line use under software control for encrypting and decrypting packets generated by software layers such as Zigbee and user applications. This means that these algorithms can be off-loaded by the CPU, increasing the processor bandwidth available for user applications. The transceiver elements (radio, modem and baseband) work together to provide IEEE802.15.4 Medium Access Control under the control of a protocol stack.
(1) AES-CBC processing is only available off-line for use under software control. 1.3 RISC CPU and Memory A 32-bit RISC CPU allows software to be run on-chip, its processing power being shared between the IEEE802.15.4 MAC protocol, other higher layer protocols and the user application. The JN5139 has a unified memory architecture, code memory, data memory, peripheral devices and I/O ports are organized within the same linear address space. The device contains 192kBytes of ROM, 96kBytes of RAM and a 48-byte OTP eFuse memory. 6 JN-DS-JN5139 v1.5 Jennic 2008 Jennic Jennic Jennic Jennic 1.4 Peripherals The following peripherals are available on-chip:
Master SPI port with five select outputs Two UARTs Two programmable Timer/Counters with capture/compare facility Two programmable Sleep Timers and a Tick Timer Two-wire serial interface (compatible with SMbus and I2C) Slave SPI port (shared with digital I/O) Twenty-one digital I/O lines (multiplexed with UARTs, timers and SPI selects) Four-channel, 12-bit, Analogue-to-Digital converter Two 11-bit Digital-to-Analogue converters Two programmable analogue comparators Internal temperature sensor and battery monitor Jennic 2008 JN-DS-JN5139 v1.5 7 Jennic Jennic Jennic Jennic 1.5 Block Diagram Tick Timer Programmable Interrupt Controller From Peripherals 32-bit RISC CPU RAM 96kB ROM 192kB OTP eFuse 48-byte Voltage Regulators 1.8V VB_xx VDD1 VDD2 RESETN XTALIN XTALOUT COMP1M COMP1P COMP2M COMP2P DAC1 DAC2 ADC1 ADC2 ADC3 ADC4 M U X 32kHz Osc Reset Wakeup WT1 WT0 Clock Generator Comparator1 Comparator2 DAC1 DAC2 Supply Monitor ADC Temperature Sensor SPI UART0 UART1 Timer0 Timer1 2-Wire Serial Interface Intelligent Peripheral Wireless Transceiver Security Coprocessor Baseband Controller Modem Radio SPICLK SPIMOSI SPIMISO SPISEL0 DIO0/SPISEL1 DIO1/SPISEL2 DIO2/SPISEL3/RFRX DIO3/SPISEL4/RFTX DIO4/CTS0 DIO5/RTS0 DIO6/TXD0 DIO7/RXD0 DIO17/CTS1/IP_SEL DIO18/RTS1/IP_INT DIO19/TXD1 DIO20/RXD1 DIO8/TIM0CK_GT DIO9/TIM0CAP/CLK32K DIO10/TIM0OUT DIO11/TIM1CK_GT DIO12/TIM1CAP DIO13/TIM1OUT DIO14/SIF_CLK/IP_CLK DIO15/SIF_D/IP_DO DIO16/IP_DI M U X RFM RFP VCOTUNE IBIAS Figure 1: JN5139 Block Diagram 8 JN-DS-JN5139 v1.5 Jennic 2008 2 Pin Configurations Jennic Jennic Jennic Jennic K L C _ P I
I K L C _ F S 4 1 O D I
K 2 3 K L C P A C 0 M T 9 O D I
I T G _ K C 1 M T 1 1 O D I
I I T U O 0 M T 0 1 O D I
I P A C 1 M T 2 1 O D I
T G _ K C 0 M T 8 O D I
I 2 D D V 0 D X R 7 O D I
0 D X T 6 O D I
0 S T R 5 O D I
0 S T C 4 O D I
X T F R 4 L E S P S 3 O D I
I I T U O 1 M T 3 1 O D I
O D _ P I
I
D _ F S 5 1 O D I DIO16/IP_DI DIO17/CTS1/IP_SEL VB_DIG2 DIO18/RTS1/IP_INT DIO19/TXD1 DIO20/RXD1 VSS2 RESETN VSS3 VSSS XTALOUT XTALIN VB_SYN VCOTUNE 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 5 5 5 4 5 3 5 2 5 1 5 0 5 9 4 8 4 7 4 6 4 5 4 4 4 3 4 PADDLE 5 1 6 1 7 1 8 1 9 1 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 1 D D V O C V _ B V M 1 P M O C P 1 P M O C S A B I I P F R F R _ B V M F R F E R V 1 C D A 2 C D A 3 C D A 4 C D A A _ B V Figure 2: 56-pin QFN Configuration (top view) 42 41 40 39 38 37 36 35 34 33 32 31 30 29 DIO2/SPISEL3/RFRX DIO1/SPISEL2 VB_MEM VSS1 DIO0/SPISEL1 SPISEL0 SPIMOSI VB_DIG1 SPIMISO SPICLK COMP2M COMP2P DAC2 DAC1
Note: Please refer to Appendix B.3.11 for important applications information regarding the connection of the PADDLE to the PCB. Jennic 2008 JN-DS-JN5139 v1.5 9 Jennic Jennic Jennic Jennic 2.1 Pin Assignment Pin No Power supplies Description 3, 13, 15, 21 28, 35, 40 VB_DIG2, VB_SYN, VB_VCO, VB_RF, VB_A, VB_DIG1, VB_MEM Regulated supply voltage 16, 49 VDD1, VDD2 Device supplies: VDD1 for analogue, VDD2 for digital 7,9,10,39, PADDLE VSS2, VSS3, VSSS, VSS1, VSSA Device grounds 8 RESETN 11, 12 XTALOUT, XTALIN General Reset output/input System crystal oscillator 14 19 20, 22 Radio VCOTUNE IBIAS RFP, RFM VCO tuning RC network Bias current control Differential antenna port Analogue Peripheral I/O 24, 25, 26, 27 ADC1, ADC2, ADC3, ADC4 ADC inputs 23 29, 30 VREF DAC1, DAC2 Analogue peripheral reference voltage DAC outputs 17, 18, 31, 32 COMP1M, COMP1P, COMP2P, COMP2M Comparator inputs 33 36 34 37 38 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 1 2 4 5 6 Digital I/O Primary Function Alternate Function SPICLK SPIMOSI SPIMISO SPISEL0 SPI Clock SPI Master Out Slave In SPI Master In Slave Out SPI Slave Select Output 0 DIO0 DIO1 DIO2 DIO3 DIO4 DIO5 DIO6 DIO7 DIO8 DIO9 DIO10 DIO11 DIO12 DIO13 DIO14 DIO15 DIO16 DIO17 DIO18 DIO19 DIO20 SPISEL1 SPISEL2 SPISEL3, RFRX SPISEL4, RFTX CTS0 RTS0 TXD0 RXD0 DIO0 or SPI Slave Select Output 1 DIO1 or SPI Slave Select Output 2 DIO2 or SPI Slave Select Output 3 or Radio Receive Control Output DIO3 or SPI Slave Select Output 4 or Radio Transmit Control Output DIO4 or UART 0 Clear To Send Input DIO5 or UART 0 Request To Send Output DIO6 or UART 0 Transmit Data Output DIO7 or UART 0 Receive Data Input TIM0CK_GT DIO8 or Timer0 Clock/Gate Input TIM0CAP,CLK32K DIO9 or Timer0 Capture Input or CLK32K TIM0OUT DIO10 or Timer0 PWM Output TIM1CK_GT DIO11 or Timer1 Clock/Gate Input TIM1CAP DIO12 or Timer1 Capture Input or Antenna Diversity Output TIM1OUT DIO13 or Timer1 PWM Output SIF_CLK, IP_CLK DIO14 or Serial Interface Clock or Intelligent Peripheral Clock Input SIF_D, IP_DO DIO15 or Serial Interface Data or Intelligent Peripheral Data Out IP_DI DIO16 or Intelligent Peripheral Data In CTS1, IP_SEL RTS1, IP_INT DIO17 or UART 1 Clear To Send Input or Intelligent Peripheral Device Select Input DIO18 or UART 1 Request To Send Output or Intelligent Peripheral Interrupt Output TXD1 RXD1 DIO19 or UART 1 Transmit Data Output DIO20 or UART 1 Receive Data Input 10 JN-DS-JN5139 v1.5 Jennic 2008 Jennic Jennic Jennic Jennic 2.2 Pin Descriptions 2.2.1 Power Supplies The device is powered from the VDD1 and VDD2 pins, each being decoupled with a 100nF ceramic capacitor. VDD1 is the power supply to the analogue circuitry; it should be decoupled to analogue ground. VDD2 is the power supply for the digital circuitry; it should be decoupled to digital ground. A 10uF tantalum capacitor is required at the common ground star point of analogue and digital supplies. Decoupling pins for the internal 1.8V regulators are provided which require a 100nF capacitor located as close to the device as practical. VB_VCO, VB_RF, VB_A and VB_SYN should be decoupled to analogue ground, while VB_MEM, VB_DIG1 and VB_DIG2 should be decoupled to digital ground. VB_SYN and VB_RF also require an additional 47pF capacitor. See also Appendix B for connection details. VSSA is the analogue ground, connected to the paddle of the device, while VSSS, VSS1, VSS2, VSS3 are digital ground pins. 2.2.2 Reset RESETN is a bi-directional active low reset pin that is connected to a 40k internal pull-up resistor. It may be pulled low by an external circuit, or can be driven low by the JN5139 if an internal reset is generated. Typically, it will be used to provide a system reset signal. Refer to section 6.2, External Reset, for more details. 2.2.3 16MHz System Clock A crystal connected between XTALIN and XTALOUT drives the system clock. A capacitor to analogue ground is required on each of these pins. Refer to section 5.1 16MHz Oscillator for more details. 2.2.4 Radio A 200 balanced antenna (such as a printed circuit antenna) can be connected directly to the radio interface pins RFM and RFP. A single-ended 50 antenna such as a ceramic type or SMA connector for an external antenna requires the addition of a 200/50 2.45GHz balun transformer connected to the antenna pins. The balun differential port should be connected to the antenna port with 200 balanced controlled impedance track. A 50 controlled impedance track should be used to connect the unbalanced port of the balun to the antenna to ensure good impedance matching and reduce losses and reflections. A simple external loop filter circuit consisting of two capacitors and a resistor is connected to VCOTUNE. Refer to section 8.1 Radio for more details. An external resistor (43k) is required between IBIAS and analogue ground to set various bias currents and references within the radio. 2.2.5 Analogue Peripherals Several of the analogue peripherals require a reference voltage to use as part of their operations. They can use either an internal reference voltage or an external reference connected to VREF. This voltage is referenced to analogue ground and the performance of the analogue peripherals is dependant on the quality of this reference. There are four ADC inputs, two comparator inputs and two DAC outputs. The analogue I/O pins on the JN5139 can have signals applied up to 0.3v higher than VDD1. A schematic view of the analogue I/O cell is shown in Figure 3 Analogue I/O Cell. In reset and deep sleep, the analogue peripherals are all off and the DAC outputs are in a high impedance state. In sleep, the ADC and DACs are off, with the DAC outputs in a high impedance state and the comparator may optionally be used as a wakeup. Unused ADC and comparator inputs should be left unconnected. Jennic 2008 JN-DS-JN5139 v1.5 11 Jennic Jennic Jennic Jennic VDD1 Analogue I/O Pin Analogue Peripheral VSSA Figure 3 Analogue I/O Cell 2.2.6 Digital Input/Output Digital I/O pins on the JN5139 can have signals applied up to 2V higher than VDD2 (with the exception of pins DIO9 and DIO10 that are 3V tolerant) and are therefore TTL-compatible with VDD2 > 3V. For other DC properties of these pins see section 17.2.3 I/O Characteristics. When used in their primary function all Digital Input/Output pins are bi-directional and are connected to weak internal pull up resistors (40k nominal) that can be disabled. When used in their secondary function (selected when the appropriate peripheral block is enabled) then their direction is fixed by the function. The pull up resistor is enabled or disabled independently of the function and direction. A schematic view of the digital I/O cell is in Figure 4: DIO Pin Equivalent Schematic. VDD2 Pu OE RPU O I RPROT IE DIO[x] Pin VSS Figure 4: DIO Pin Equivalent Schematic Each DIO pin configuration is programmed through software library calls. The configuration includes the direction of each pin, input or output. When a peripheral that uses the cell as part of its I/O is enabled, then the pin state will be automatically configured by the peripheral. The use of the pull-up resistor Rpu for each pin can be configured, the default state from reset is enabled. In reset, the digital peripherals are all off and the DIO pins are set as high-impedance inputs. During sleep and deep sleep, the DIO pins retain both their input/output state and output level that was set as sleep commences. If the DIO pins were enabled as inputs and the interrupts were enabled these pins may be used to wake up the JN5139 from sleep. 12 JN-DS-JN5139 v1.5 Jennic 2008 Jennic Jennic Jennic Jennic 3 CPU The CPU of the JN5139 is a 32-bit load and store RISC processor. It has been architected for three key requirements:
Low power consumption for battery powered applications High performance to implement a wireless protocol at the same time as complex applications Efficient coding of high-level languages such as C provided with the Jennic Software Developers Kit It features a linear 32-bit logical address space with unified memory architecture, accessing both code and data in the same address space. Registers for peripheral units, such as the timers, UARTs and the baseband processor are also mapped into this space. The CPU contains a block of 32 32-bit General-Purpose (GP) registers together with a small number of special purpose registers which are used to store processor state and control interrupt handling. The contents of any GP register can be loaded from or stored to memory, while arithmetic and logical operations, shift and rotate operations, and signed and unsigned comparisons can be performed either between two registers and stored in a third, or between registers and a constant carried in the instruction. Operations between general or special-purpose registers execute in one cycle (16MHz) while those that access memory require a further cycle to allow the memory to respond. The instruction set manipulates 8, 16 and 32-bit data, stored in big-endian format; this means that programs can use objects of these sizes very efficiently. Manipulation of 32-bit quantities is particularly useful for protocols and high-
end applications allowing algorithms to be implemented in fewer instructions than on smaller word-size processors, and to execute in fewer clock cycles. The instruction set is designed for the efficient implementation of high-level languages such as C. Access to fields in complex data structures is very efficient due to the provision of several addressing modes, together with the ability to be able to use any of the GP registers to contain the address of objects. Subroutine parameter passing is also made more efficient by using GP registers rather than pushing objects on the stack. The recommended programming method for the JN5139 is by using C, which is supported by a software developer kit comprising a C compiler, linker and debugger. The CPU architecture also contains features that make the processor suitable for embedded, real-time applications. In some applications, it may be necessary to use a real-time operating system to allow multiple tasks to run on the processor. Embedded applications require efficient handling of external hardware events. Exception processing (including reset and interrupt handling) is enhanced by the inclusion of a number of special-purpose registers into which the PC and status register contents are copied as part of the operation of the exception hardware. This means that the essential registers for exception handling are stored in one cycle, rather than the slower method of pushing them onto the processor stack. The PC is also loaded with the vector address for the exception that occurred, allowing the handler to start executing in the next cycle. To improve power consumption a number of power-saving modes are implemented in the JN5139, described more fully in section 16 - Power Management and Sleep Modes. One of these modes is the CPU doze mode; under software control, the processor can be shut down and on an interrupt will wake up to service the request. Jennic 2008 JN-DS-JN5139 v1.5 13 Jennic Jennic Jennic Jennic 4 Memory Organisation This section describes the different memories found within the JN5139. The device contains ROM, RAM, OTP eFuse memory, the wireless transceiver and peripherals all within the same linear address space. 0xFFFFFFFF 0xF0018000 RAM
(96kB) 0xF0000000 Unpopulated Peripherals 0x10000000 0x04018000 0x04000000 0x00030000 0x00000000 RAM Echo ROM
(192kB) Intelligent Peripheral Memory Block Intelligent Peripheral SPI 2-Wire Interface Timer1 Timer0 UART1 UART0 GPIO Analogue Peripherals PHY Controller Security Coprocessor Baseband Controller System Controller 0xEFFFFFFF 0x980001FF 0x98000000 0x90000013 0x90000000 0x8000001B 0x80000000 0x70000013 0x70000000 0x6000001B 0x60000000 0x5000001B 0x50000000 0x4000007F 0x40000000 0x3000007F 0x30000000 0x2000000B 0x20000000 0x10000F2B 0x10000F00 0x10000E5F 0x10000E00 0x10000DFF 0x10000C00 0x100009FF 0x10000400 0x100000FF 0x10000000 Figure 5: JN5139 Memory Map 14 JN-DS-JN5139 v1.5 Jennic 2008 4.1 ROM The ROM is 192K bytes in size, organized as 48k x 32-bit words and can be accessed by the CPU in a single clock cycle. The ROM contents include bootloader to allow external Flash memory contents to be bootloaded into RAM at runtime, a default interrupt vector table, an interrupt manager, IEEE802.15.4 MAC and assorted APIs for interfacing to the MAC and on-chip hardware peripherals. The operation of the boot loader is described in detail in Application Note JN-AN-1003 Boot Loader Operation [2]. The interrupt manager routes interrupt calls to the applications soft interrupt vector table contained within RAM. Section 7 contains further information regarding the handling of interrupts. Typical ROM contents are shown in Figure 6. Jennic Jennic Jennic Jennic 0x0002FFFF 0x00000000 Unused APIs IEEE802.15.4 MAC Boot Loader Interrupt Manager Interrupt Vectors Figure 6: ROM contents 4.2 RAM The JN5139 contains 96k bytes of high speed RAM organized as 24k x 32-bit. It can be used for both code and data storage and is accessed by the CPU in a single clock cycle. At reset, a boot loader controls the loading of segments of code and data from an external memory connected to the SPI port, into RAM. Software can control the power supply to the RAM allowing the contents to be maintained during a sleep period when other parts of the device are un-powered. Typical RAM contents are shown in Figure 7. 0x04018000 0x04017800 0x04001020 0x04001000 0x04000FF4 0x04000FD0 0x04000000 CPU Stack (Grows down) 2k Bytes Application
Networking Stack MAC Address OAD Data FLASH Header Data MAC Data Interrupt Vector Table 92k Bytes 32 Bytes 12 Bytes 24 Bytes 4K Bytes Figure 7: RAM Contents Jennic 2008 JN-DS-JN5139 v1.5 15 Jennic Jennic Jennic Jennic 4.3 OTP eFuse Memory The JN5139 contains 48-bytes of eFuse memory; this is one time programmable memory that is organised as 12 x 32-bit words, 4 words are reserved by Jennic and 4 words are reserved for future use. The remaining 4 words are fully user programmable, designed to allow for the storage of a 128-bit encryption key for secure external memory encryption (see section 4.4.1) For full details on how to program and use the eFuse memory, please refer to application note JN-AN-1062 Using OTP eFuse Memory [3]. Alternatively, Jennic can provide an eFuse programming service for customers that wish to use the eFuse but do not wish to undertake this for themselves. For further details of this service, please contact your local Jennic sales office. 4.4 External Memory An external memory with an SPI interface may be used to provide storage for program code and data for the device when external power is removed. The memory is connected to the SPI interface using select line SPISEL0; this select line is dedicated to the external memory interface and is not available for use with other external devices. See Figure 8 for connection details. JN5139 SPISEL0 SPIMISO SPIMOSI SPICLK Serial Memory SS SDO SDI CLK Figure 8: Connecting External Serial Memory At reset, the contents of this memory are copied into RAM by the software boot loader. The Flash memory devices that are supported as standard through the JN5139 bootloader are given in Table 1. Jennic recommends that where possible one of these devices should be selected. Manufacturer Device Number ST Microelectronics M25P10-A SST (Silicon Storage Technology) 25VF010 Table 1: Supported Flash Memories Applications wishing to use an alternate Flash memory device should refer to application note JN-AN-1038 Programming Flash devices not supported by the JN51xx ROM-based bootloader [4]. This application note provides guidance on developing an interface to an alternate device. 4.4.1 Secure External Memory Encryption The contents of the external serial memory may be securely encrypted to protect against system cloning or intrusion. The AES security processor combined with a user programmable 128-bit encryption key is used to encrypt the contents of the external memory. The encryption key is stored in eFuse. When bootloading program code from external serial memory, the JN5139 automatically accesses the encryption key to execute the decryption process. User program code does not need to handle any of the decryption process; it is a transparent process. 16 JN-DS-JN5139 v1.5 Jennic 2008 With encryption enabled, the speed of bootloading code from external Flash memory is halved. Jennic Jennic Jennic Jennic 4.5 Peripherals All peripherals have their registers mapped into the memory space. Access to these registers requires 3 clock cycles. Applications have access to the peripherals through the software libraries that present a high-level view of the peripherals functions through a series of dedicated software routines. These routines provide both a tested method for using the peripherals and allow bug-free application code to be developed more rapidly. 4.6 Unused Memory Addresses Any attempt to access an unpopulated memory area will result in a bus error exception (interrupt) being generated. Jennic 2008 JN-DS-JN5139 v1.5 17 Jennic Jennic Jennic Jennic 5 System Clocks Two separate oscillators are used to provide system clocks: a crystal-controlled 16MHz oscillator, using an external crystal and an internal, RC-based 32kHz oscillator. 5.1 16MHz Oscillator The JN5139 contains the necessary on-chip components to build a 16 MHz reference oscillator with the addition of an external crystal resonator and two tuning capacitors. The schematic of these components are shown in Figure 9. The two capacitors, C1 and C2, should be 15pF 5% and use a COG dielectric. Due to the small size of these capacitors, it is important to keep the traces to the external components as short as possible. The on-chip transconductance amplifier is compensated for temperature variation, and is self-biasing by means of the internal resistor R1. The electrical specification of the oscillator can be found in section 17.3.6. For detailed application support and specification of the crystal required see Appendix B.1. JN5139 XTALIN R1 XTALOUT C1 C2 Figure 9: Crystal oscillator connections The clock generated by this oscillator provides the reference for most of the JN5139 subsystems, including the transceiver, processor, memory and digital and analogue peripherals. 5.2 32kHz Oscillator The internal 32kHz RC oscillator requires no external components. It provides a low speed clock for use in sleep mode. The clock is used for timing the length of a sleep period (see section 16 Power Management and Sleep Modes) and also to generate the system clock used internally during reset. The internal timing components of the oscillator have a wide tolerance due to manufacturing process variation and so the oscillator runs nominally at 32kHz 30%. To make this useful as a timing source for accurate wakeup from sleep, a frequency calibration factor derived from the more accurate 16MHz oscillator may be applied. The calibration factor is derived through software, details can be found in section 12.3.1. For detailed electrical specifications, see section 17.3.5. 18 JN-DS-JN5139 v1.5 Jennic 2008 Jennic Jennic Jennic Jennic 6 Reset A system reset initialises the device to a predefined state and forces the CPU to start program execution from the reset vector. The reset process that the JN5139 goes through is as follows. When power is applied, the 32kHz oscillator starts up and stabilises, which takes approximately 100sec. At this point, the 16MHz crystal oscillator is enabled and power is applied to the processor and digital logic. The logic blocks are held in reset until the 16MHz crystal oscillator stabilises, which typically takes 2.5ms. Once the oscillator is up and running the internal reset is removed from the CPU and peripheral logic and the CPU starts to run code beginning at the reset vector, consisting of initialisation code and then optionally the resident Boot Loader (described in JN-AN-1003 Boot Loader Operation [2]). Section 17.3.1 provides detailed electrical data and timing. The JN5139 has three sources of reset:
Internal Power-on Reset External Reset Software Reset
Note: When the device exits a reset condition, device operating parameters (voltage, frequency, temperature, etc.) must be met to ensure operation. If these conditions are not met, then the device must be held in reset until the operating conditions are met. (See section 17.3.1) 6.1 Internal Power-on Reset For the majority of applications the internal power-on reset is capable of generating the required reset signal. When power is applied to the device, the power-on reset circuit monitors the rise of the VDD supply. When VDD reaches the specified threshold, the reset signal is generated and can be observed as a rising edge on the RESETN pin. This signal is held internally until the power supply and oscillator stabilisation time has elapsed, at which point the internal reset signal is then removed and the CPU is allowed to run. VDD Internal RESET RESETN Pin Figure 10: Internal Power-on Reset If the application requires a power supply reset to be used, i.e. removing and then applying VDD, it is important that the device decoupling capacitors are completely discharged before the VDD is re-applied. Failure to do so may inhibit Jennic 2008 JN-DS-JN5139 v1.5 19 Jennic Jennic Jennic Jennic the operation of the internal power-on reset circuit. If complete discharge is difficult to achieve then it is recommended that the external reset circuit, as shown in Figure 11, be used. VDD R1 10k C1 100nF JN5139 RESETN Figure 11: External Reset Generation The external resistor and capacitor provide a simple reset operation when connected to the RESETN pin. 6.2 External Reset An external reset is generated by a low level on the RESETN pin. Reset pulses longer than the minimum pulse width will generate a reset during active or sleep modes. Shorter pulses are not guaranteed to generate a reset. The JN5139 is held in reset while the RESETN pin is low and when the applied signal reaches the Reset Threshold Voltage (VRST) on its positive edge, the internal reset process starts. Multiple devices may connect to the RESETN pin in an open-collector mode. The JN5139 has an internal pull-up resistor although an external pull-up resistor is recommended when multiple devices connect to the RESETN pin. The pin is an input for an external reset and an output during the power-on reset and software reset. No devices should drive the RESETN pin high. RESETN pin VRST Reset Internal Reset Figure 12: External Reset 6.3 Software Reset The RESETN line can be driven low by the JN5139 to provide a reset to other devices in the system (e.g. external sensors) without resetting itself. When the RESETN line is not driven it will pull back high through either the internal pull-up resistor or any external circuitry. It is essential to ensure that the RESETN line pulls back high within 100sec after the JN5139 stops driving the line (careful consideration should be taken for any capacitance on this line). A system reset can be triggered at any time through software control. For example this can be executed within a users application, upon detection of a system failure. When performing the reset, the RESETN pin is driven low for 1sec; depending on the external components this may or may not be visible on the pin. 20 JN-DS-JN5139 v1.5 Jennic 2008 7 Interrupt System The interrupt system on the JN5139 is a hardware-vectored interrupt system. The JN5139 provides several interrupt sources, some associated with CPU operations (CPU exceptions) and others which are used by hardware in the device. When an interrupt occurs the CPU stops executing the current program and loads its program counter with a fixed hardware address specific to that interrupt. The interrupt handler or interrupt service routine is stored at this location and is run on the next CPU cycle. Execution of interrupt service routines is always performed in supervisor mode. Interrupt sources and their vector locations are listed in Table 2 below:
Jennic Jennic Jennic Jennic Interrupt Source Vector Location Interrupt Definition Reset Bus Error Tick Timer Alignment Illegal Instruction 0x100 0x200 0x500 0x600 0x700 Software or hardware reset Bus error or attempt to access invalid physical address Tick Timer expiry Load/Store to naturally not aligned location Illegal instruction in instruction stream Hardware Interrupts 0x800 Hardware Interrupt System Call Trap 0xC00 0xE00 System Call Initiated by software (l.sys instruction) Caused by l.trap instruction Table 2: Interrupt Vectors 7.1 System Calls Executing the l.sys instruction causes a system call interrupt to be generated. The purpose of this interrupt is to allow a task to switch into supervisor mode when a real time operating system is in use, see section 3 for further details. It also allows a software interrupt to be issued, as does execution of the l.trap instruction. 7.2 Processor Exceptions 7.2.1 Bus Error A bus error exception is generated when software attempts to access a memory address that does not exist, or is not populated with memory or peripheral registers. 7.2.2 Alignment Alignment exceptions are generated when software attempts to access objects that are not aligned to natural word boundaries. 16-bit objects must be stored on even byte boundaries, while 32-bit objects must be stored on quad byte boundaries. For instance, attempting to read a 16-bit object from address 0xFFF1 will trigger an alignment exception as will a read of a 32-bit object from 0xFFF1, 0xFFF2 or 0xFFF3. Examples of legal 32-bit object addresses are 0xFFF0, 0xFFF4, 0xFFF8 etc. 7.2.3 Illegal Instruction If the CPU reads an unrecognised instruction from memory as part of its instruction fetch, it will cause an illegal instruction exception. Jennic 2008 JN-DS-JN5139 v1.5 21 Jennic Jennic Jennic Jennic 7.3 Hardware Interrupts Hardware interrupts generated from the transceiver, analogue or digital peripherals and DIO pins are individually masked using the Programmable Interrupt Controller (PIC). Management of interrupts is provided in the peripherals library. Further details of interrupts are provided for the functions in their respective sections in this datasheet. Interrupts are used to wake the JN5139 from sleep. The peripherals, baseband controller, security coprocessor and PIC are powered down during sleep but the DIO interrupts and optionally the wake-up timers and analogue comparator interrupts remain powered to bring the JN5139 out of sleep. Wake-up Timers Baseband Controller Security Coprocessor DIO Pins UART0 UART1 Timer0 Timer1 2-wire Serial Interface SPI Controller Intelligent Peripheral Analogue Peripheral Programmable Interrupt Controller Hardware Interrupt Figure 13: Programmable Interrupt Controller 22 JN-DS-JN5139 v1.5 Jennic 2008 8 Wireless Transceiver The wireless transceiver comprises a 2.45GHz radio, an O-QPSK modem, a baseband processor, a security coprocessor and PHY controller. These blocks, with protocol software provided as a library, implement an IEEE802.15.4 standards-based wireless transceiver that transmits and receives data over the air in the unlicensed 2.4GHz band. 8.1 Radio Jennic Jennic Jennic Jennic PA LOI LOQ PA Power TX RX Calibration DAC IDATA DAC QDATA VGA PA (I) Trim VGA PA (Q) Trim LOI LOQ VGA1 VGA2 ADC 90 0 PLL VCO Calibration Reference
& BIAS LNA LOQ LOI IF DATA AGC Figure 14: Radio Architecture The radio comprises a low-IF receive path and a direct up-conversion transmit path, which converge at the TX/RX switch. This switch includes the necessary matching components such that a 200 differential antenna may be directly connected without external components. Alternatively, a balun can be used for single ended antennas. The 16MHz crystal oscillator feeds a divider, which provides the frequency synthesiser with a reference frequency. The synthesiser contains programmable feedback dividers, phase detector, charge pump and internal Voltage Controlled Oscillator (VCO). The VCO has no external components, and includes calibration circuitry to compensate for differences in internal component values due to process and temperature variations. The VCO is controlled by a Phase Locked Loop (PLL) that has a loop filter comprising 3 external components. A programmable charge pump is also used to tune the loop characteristic. Finally, quadrature (I and Q) local oscillator signals for the mixer drives are derived. The receiver chain starts with the low noise amplifier / mixer combination whose outputs are passed to the polyphase bandpass filter. This filter provides the channel definition as well as image frequency rejection. The signal is then passed to two variable gain amplifier blocks. The gain control for these stages and the bandpass filter is derived in the automatic gain control (AGC) block within the Modem. The signal is conditioned with the anti-alias low pass filter before being converted to a digital signal with a flash ADC. In the transmit direction, the digital I and Q streams from the Modem are passed to I and Q quadrature DAC blocks which are buffered and low-pass filtered, before being applied to the modulator mixers. The summed 2.4 GHz signal is then passed to the RF Power Amplifier (PA), whose power control can be selected from one of six settings. The output of the PA drives the antenna via the RX/TX switch. Jennic 2008 JN-DS-JN5139 v1.5 23 Jennic Jennic Jennic Jennic 8.1.1 Radio External components The VCO loop filter requires three external components and the IBIAS pin requires one external component as shown in Figure 15. These components should be placed close to the JN5139 pins and analogue ground. VCOTUNE 15 19 4k7 1%
VB_VCO 3n3F 100nF IBIAS 43k 1%
330pF VSSA VSSA Figure 15: VCO Loop Filter and IBIAS The radio is powered from a number of internal 1.8V regulators fed from the analogue supply VDD1, in order to provide good noise isolation between the digital logic of the JN5139 and the analogue blocks. These regulators are also controlled by the baseband controller and protocol software to minimise power consumption. Decoupling for internal regulators is required as described in section 2.2.1, Power Supplies. 8.1.2 Antenna Diversity Support is provided for antenna diversity. Antenna diversity is a technique that maximises the performance of an antenna system. It allows the radio to switch between two antennas that have very low correlation between their received signals. Typically, this is achieved by spacing two antennas around 0.25 wavelengths apart or by using two orthogonal polarisations. So, if a packet is transmitted and no acknowledgement is received, the radio system can switch to the other antenna for the retry, with a different probability of success. The JN513x provides an output on DIO12 that is asserted on odd numbered retries that can be used to control an antenna switch; this enables antenna diversity to be implemented easily (see Figure 16 and Figure 17) Antenna A Antenna B ADO (DIO[12]) SEL SELB A B COM Device RF Port RF Switch: Single-Pole, Double-Throw (SPDT) Figure 16 Simple Antenna Diversity Implementation using External RF Switch JN-DS-JN5139 v1.5 Jennic 2008 24 Jennic Jennic Jennic Jennic ADO (DIO[12]) TX Active RX Active 1st TX-RX Cycle 2nd TX-RX Cycle (1st Retry) Figure 17 Antenna Diversity ADO Signal for TX with Acknowledgement 8.2 Modem The Modem performs all the necessary modulation and spreading functions required for digital transmission and reception of data at 250kbps in the 2450MHz radio frequency band in compliance with the IEEE802.15.4 standard. Gain IF Signal I Q RX O-QPSK Demodulation AGC Symbol Detection
(Despreading) RX Data Interface Pulse Shaping TX O-QPSK Modulation I Q I Q Spreading TX Data Interface Figure 18: Modem Architecture The transmitter receives symbols from the baseband processor and uses the spreading function to map each unique 4-bit symbol to a 32-chip Pseudo-random Noise (PN) sequence. Offset-QPSK modulation and half-sine pulse shaping is applied to the resultant spreading sequence to produce two independent quadrature phase signals (I and Q), which are subsequently converted to analogue voltages in the radio transmit path. The Automatic Gain Control (AGC) monitors the received signal level and adjusts the gain of the amplifiers in the radio receiver to ensure that the optimum signal amplitude is maintained during reception. The demodulator performs digital IF down-conversion and matched filtering and is extremely tolerant to carrier frequency offsets in excess of 80ppm without suffering any significant degradation in performance. Jennic 2008 JN-DS-JN5139 v1.5 25 Jennic Jennic Jennic Jennic Symbol detection and synchronization is performed using direct sequence correlation techniques in conjunction with searches for the Preamble and Start-of-Frame Delimiter (SFD) fields contained in the transmitted IEEE 802.15.4 Synchronization Header (SHR). Features are provided to support network channel selection algorithms include Energy Detection (ED), Link Quality Indication (LQI) and fully programmable Clear Channel Assessment (CCA). The Modem provides a digital Receive Signal Strength Indication (RSSI) that facilitates the implementation of the IEEE 802.15.4 ED function. The LQI is defined in the IEEE 802.15.4 standard as a characterization of the strength and/or data quality of a received packet. The Modem produces a signal quality metric based upon correlation magnitudes, which may be used in conjunction with the ED value to formulate the LQI. The CCA capability of the Modem supports all modes of operation defined in the IEEE 802.15.4 standard, namely Energy above ED threshold, Carrier Sense and Carrier Sense and/or energy above ED threshold. 8.3 Baseband Processor The baseband processor provides all time-critical functions of the IEEE802.15.4 MAC layer. Dedicated hardware guarantees air interface timing is precise. The MAC layer hardware/software partitioning enables software to implement the sequencing of events required by the protocol and to schedule timed events with millisecond resolution, and the hardware to implement specific events with microsecond timing resolution. The protocol software layer performs the higher-layer aspects of the protocol, sending management and data messages between endpoint and coordinator nodes, using the services provided by the baseband processor. Tx Bitstream Append Checksum Serialiser Status Supervisor Radio Protocol Timing Engine CSMA CCA Backoff Control Encrypt Port AES AES Codec Codec Inline Security Rx Bitstream Verify Checksum Control Deserialiser Decrypt Port Tx/Rx Frame Buffer Protocol Timers Figure 19: Baseband Processor Processor Bus 8.3.1 Transmit A transmission is performed by software writing the data to be transferred into the Tx/Rx Frame Buffer, together with parameters such as the destination address and the number of retries allowed, and programming one of the protocol timers to indicate the time at which the frame is to be sent. This time will be determined by the software tracking the higher-layer aspects of the protocol such as superframe timing and slot boundaries. Once the packet is prepared and protocol timer set, the supervisor block controls the transmission. When the scheduled time arrives, the supervisor controls the sequencing of the radio and modem to perform the type of transmission required. It can perform all the 26 JN-DS-JN5139 v1.5 Jennic 2008 Jennic Jennic Jennic Jennic algorithms required by IEEE802.15.4 such as CSMA/CA including retries and random backoffs without processor intervention. When the transmission begins, the header of the frame is constructed from the parameters programmed by the software and sent with the frame data through the serialiser to the Modem. At the same time, the radio is prepared for transmission. During the passage of the bitstream to the modem, it passes through a CRC checksum generator that calculates the checksum on-the-fly, and appends it to the end of the frame. If using slotted access, it is possible for a transmission to overrun the time in its allocated slot; the Baseband Processor handles this situation autonomously and notifies the protocol software via interrupt, rather than requiring it to handle the overrun explicitly. 8.3.2 Reception In a reception, the radio is set to receive on a particular channel. On receipt of data from the modem, the frame is directed into the Tx/Rx Frame Buffer where both header and frame data can be read by the protocol software. An interrupt may be provided on receipt of the frame header. As the frame data is being received from the modem it is passed through a checksum generator; at the end of the reception the checksum result is compared with the checksum at the end of the message to ensure that the data has been received correctly. During reception, the modem determines the Link Quality, which is made available at the end of the reception as part of the requirements of IEEE802.15.4. 8.3.3 Auto Acknowledge Part of the protocol allows for transmitted frames to be acknowledged by the destination sending an acknowledge packet within a very short window after the transmitted frame has been received. The JN5139 baseband processor can automatically construct and send the acknowledgement packet without processor intervention and hence avoid the protocol software being involved in time-critical processing within the acknowledge sequence. The JN5139 baseband processor can also request an acknowledge for packets being transmitted and handle the reception of acknowledged packets without processor intervention. 8.3.4 Beacon Generation In beaconing networks, the baseband processor can automatically generate and send beacon frames; the repetition rate of the beacons is programmed by the CPU, and the baseband then constructs the beacon contents from data delivered by the CPU. The baseband processor schedules the beacons and transmits them without CPU intervention. 8.3.5 Security The baseband processor supports the transmission and reception of secured frames using the Advanced Encryption Standard (AES) algorithm transparently to the CPU. This is done by passing incoming and outgoing data through an in-line security engine that is able to perform encryption and decryption operations on-the-fly, resulting in minimal processor intervention. The CPU must provide the appropriate encrypt/decrypt keys for the transmission or reception. On transmission, the key can be programmed at the same time as the rest of the frame data and setup information. During reception, the CPU must look up the key and provide it from information held in the header of the incoming frame. However, the hardware of the security engine can process data much faster than the incoming frame data rate. This means that it is possible to allow the CPU to receive the interrupt from the header of an incoming packet, read where the frame originated, look up the key and program it to the security hardware before the end of the frame has arrived. By providing a small amount of buffering to store incoming data while the lookup process is taking place, the security engine can catch up processing the frame so that when the frame arrives in the receive frame buffer it is fully decrypted. 8.4 Security Coprocessor As well as being used during in-line encryption/decryption operations over a streaming interface and in external memory encryption, it is also possible to use the AES core as a coprocessor to the CPU of the JN5139. To allow the hardware to be shared between the two interfaces an arbiter ensures that the streaming interface to the AES core always has priority, to ensure that in-line processing can take place at any time. Jennic 2008 JN-DS-JN5139 v1.5 27 Jennic Jennic Jennic Jennic Some protocols (for example ZigBee) require that security operations can be performed on buffered data rather than in-line. A hardware implementation of the encryption engine significantly speeds up the processing of the contents of these buffers. The Security Coprocessor can be accessed through software to allow the contents of memory buffers to be transformed. Information such as the type of security operation to be performed and the encrypt/decrypt key to be used must also be provided. Processor Interface In-line Interface r e t i b r A AES Block Encrpytion Controller AES Encoder Figure 20: Security Coprocessor Architecture n o i t a r e n e G y e K 28 JN-DS-JN5139 v1.5 Jennic 2008 9 Digital Input/Output There are 21 Digital I/O (DIO) pins, which can be configured as either an input or an output, and each has a selectable internal pull-up resistor. Most DIO pins are multiplexed with alternate peripheral features of the device. Once a peripheral is enabled it takes precedence over the device pins. Refer to the individual module sections for a full description of the alternate peripherals functions. Following a reset (and whilst the reset input is held low), all peripherals are off and the DIO pins are configured as inputs with the internals pull-ups turned on. Jennic Jennic Jennic Jennic SPI Port SPISEL<4:0>
SPICLK, MOSI, MISO SPISEL<0>
DIO<20:0>
MUX Chip Pins UART 0 UART 1 Counter/Timer 0 Counter/Timer 1 2-Wire Serial Interface Intelligent Peripheral RFTX TxD RxD RTS CTS TxD RxD RTS CTS TIM0CK_GT TIM0CAP TIM0OUT TIM1CK_GT TIM1CAP TIM1OUT SIF_CLK SIF_D IP_CLK IP_DI IP_DO IP_SEL IP_INT RFTX Processor Bus
(Address, Data, Interrupts) GPIO Data / Direction Registers DIO<20:0>
Figure 21: DIO Block Diagram When a peripheral is not enabled, the DIO pins associated with it can be used as digital inputs or outputs. Each pin can be controlled individually by setting the direction and then reading or writing to the pin. The individual pull-up resistors, RPU, can also be enabled or disabled as needed. These are generally configured once after reset depending on the external components and functionality. The setting is held through sleep cycles. When configured as an input each pin can be used to generate an interrupt upon a change of state (selectable transition either from low to high or high to low); the interrupt can be enabled or disabled. When the device is sleeping, these interrupts become events that can be used to wake the device up. The interrupt transition edges can be configured, and interrupts can be enabled and/or masked. Equally the status of the interrupt may be read. See section 16 Power Management and Sleep Modes for further details on sleep and wakeup. Where a pin is configured for output but is read as an input, then the output pin state will be read back. Jennic 2008 JN-DS-JN5139 v1.5 29 Jennic Jennic Jennic Jennic 10 Serial Peripheral Interface The Serial Peripheral Interface (SPI) allows high-speed synchronous data transfer between the JN5139 and peripheral devices. The JN5139 operates as a master on the SPI bus and all other devices connected to the SPI are expected to be slave devices under the control of the JN5139 CPU. The SPI includes the following features:
Full-duplex, three-wire synchronous data transfer Programmable bit rates up to 16Mbps Programmable transaction size of 8,16 or 32 bits Supports standard SPI modes 0, 1, 2, 3 to allow control over the relationship between clock and transmit /
receive data Automatic slave select generation (up to 5 slaves) Maskable transaction complete interrupt LSB First or MSB First Data Transfer 16 MHz Clock Divider 31 15 7 Data Buffer 0 e g d E k c o C l t c e e S l I V D a t a D SPI Bus Cycle Controller N E L _ R A H C B S L Select Latch SPICLK SPIMISO SPIMOSI SPISEL [4..0]
Figure 22: SPI Block Diagram The SPI bus employs a simple shift register data transfer scheme. Data is clocked out of and into the active devices in a first-in, first-out fashion allowing SPI devices to transmit and receive data simultaneously. There are three dedicated pins SPICLK, SPIMOSI, SPIMISO that are shared across all devices on the bus. Master-
Out-Slave-In or Master-In-Slave-Out data transfer is relative to the clock signal SPICLK generated by the JN5139. The JN5139 provides five slave selects, SPISEL0 to SPISEL4 to allow five SPI peripherals on the bus. SPISEL0 is a dedicated pin and SPISEL1 to 4, are alternate functions of pins DIO0 to 3 respectively. This allows a serial flash memory to be connected to SPISEL0 and download to internal RAM via software from reset. The interface can transfer 8, 16 or 32 bits without software intervention and can keep the slave select lines asserted between transfers when required, to enable longer transfers to be performed. 30 JN-DS-JN5139 v1.5 Jennic 2008 Slave 0 Slave 1 Slave 2 Slave 3 Slave 4 Flash S S User S S User S S User S S User S S Defined O S C I S Defined O S C I S Memory O S C I S Defined O S C I S Defined O S C I S SPISEL1 SPISEL2 SPISEL0 SPISEL3 SPISEL4 7 3 8 3 1 4 2 4 3 4 JN5139 SPIMOSI SPICLK SPIMISO 36 33 34 Jennic Jennic Jennic Jennic Figure 23: Typical JN5139 SPI Peripheral Connection The data transfer rate on the SPI bus is determined by the SPICLK signal. The JN5139 supports transfers at selectable data rates from 16MHz to 250kHz selected by a clock divider. Both SPICLK clock phase and polarity are configurable. The clock polarity controls if SCLK is high or low between transfers (and hence the polarity of the first clock edge in a transfer). The clock phase and polarity determines which edge of SPICLK is used by the JN5139 to present new data on the SPIMOSI line; the opposite edge will be used to read data from the SPIMISO line. SPICLK Polarity Phase Mode Description 0 0 1 1 0 1 0 1 0 SPICLK is low when idle the first edge is positive. Valid data is output on SPIMOSI before the first clock and changes every negative edge. SPIMISO is sampled every positive edge. 1 SPICLK is low when idle the first edge is positive. Valid data is output on SPIMOSI every positive edge. SPIMISO is sampled every negative edge. 2 SPICLK is high when idle the first edge is negative. Valid data is output on SPIMOSI before the first clock edge and is changed every positive edge. SPIMISO is sampled every negative edge. 3 SPICLK is high when idle the first edge is negative. Valid data is output on SPIMOSI every negative edge. SPIMISO is sampled every positive edge. Table 3 SPI Configurations If more than one SPISEL line is to be used in a system they must be used in numerical order, for instance if 3 SPI select lines are to be used, they must be SPISEL0, 1 and 2. A SPISEL line can be configured to automatically deassert between transactions if required, or it may stay asserted over a number of transactions. For devices such as memories where a large amount of data can be received by the master by continually providing SPICLK transitions, the ability for the select line to stay asserted is an advantage since it keeps the slave enabled over the whole of the transfer. Jennic 2008 JN-DS-JN5139 v1.5 31 Jennic Jennic Jennic Jennic A transaction commences with the SPI bus being set to the correct configuration, and then the slave device is selected. Upon commencement of transmission (8, 16 or 32 bits) data is placed in the FIFO data buffer and clocked out, at the same time generating the corresponding SPICLK transitions. Since the transfer is full-duplex, the same number of data bits is being received from the slave as it transmits. The data that is received during this transmission can be read 8, 16 or 32 bits. If the master simply needs to provide a number of SPICLK transitions to allow data to be sent from a slave, it should perform transmit using dummy data. An interrupt can be generated when the transaction has completed or alternatively the interface can be polled. If a slave device wishes to signal the JN5139 indicating that it has data to provide, it may be connected to one of the DIO pins that can be enabled as an interrupt. 32 JN-DS-JN5139 v1.5 Jennic 2008 Jennic Jennic Jennic Jennic 11 Intelligent Peripheral Interface The Intelligent Peripheral (IP) Interface is provided for systems that are more complex, where there is a processor that requires a wireless peripheral. As an example, the JN5139 may provide a complete IEEE802.15.4, ZigBee or other wireless network to a phone, computer, PDA, set-top box or games console. No resources are required from the main processor compared to a transceiver as the complete wireless protocol may be run on the internal JN5139 CPU. The wireless peripheral may be controlled via one of the UARTs but the IP interface is intended to provide a high-speed, low-processor-overhead interface. The intelligent peripheral interface is a SPI slave interface and uses pins shared with other DIO signals. The interface is designed to allow message passing and data transfer. Data received and transmitted on the IP interface is copied directly to and from a dedicated area of memory without intervention from the CPU. This memory area, the intelligent peripheral memory block, contains 64 32-bit word receive and transmit buffers. JN5139 Intelligent Peripheral Interface IP_INT IP_DO IP_DI IP_SEL IP_CLK SPIINT SPIMISO SPIMOSI SPISEL SPICLK System Processor
(e.g. in cellphone, computer) SPI MASTER CPU Figure 24: Intelligent Peripheral Connection The interface functions as a SPI slave. It is possible to select the clock edge of IP_CLK on which data on the IP_DIN line of the interface is sampled, and the state of data output IP_DOUT is changed. The order of transmission is MSB first. The IP_DO data output is tri-stated when the device is inactive, i.e. the device is not selected via IP_SEL. An interrupt output line IP_INT is available so that the JN5139 can indicate to an external master that it has data to transfer. The IP interface signals IP_CLK, IP_DO, IP_DI, IP_SEL, IP_INT are alternate functions of pins DIO14 to 18 respectively. 11.1 Data Transfer Format Transfers are started by the remote processor asserting the IP_SEL line and terminated by the remote processor de-
asserting IP_SEL. Data transfers are bi-directional and traffic in both directions has a format of status byte, data length byte (of the number of 32-bit words to transfer) and data packet (from the receive and transmit buffers). The first byte transferred in either direction is a status byte with the following format:
Bit Field Description 7:2 RSVD Reserved, set to 0. 1 0 TXQ 1: Data queued for transmission RXRDY 1: Buffer ready to receive data Table 4: IP Status Byte Format If data is queued for transmission and the recipient has indicated that they are ready for it (RXRDY in incoming status byte was 1), the next byte to be transmitted is the data length in words. If either the JN5139 or the remote processor Jennic 2008 JN-DS-JN5139 v1.5 33 Jennic Jennic Jennic Jennic has no data to transfer, then the data length should be set to zero. The transaction can be terminated by the master after the status byte has been sent if it is not possible to send data in either direction. This may be because neither party has data to send or because the receiver does not have a buffer available. If the data length is non-zero, the data in the JN5139 transmit memory buffer is sent, beginning at the start of the buffer. At the same time that data bytes are being sent from the transmit buffer, the JN5139 receive buffer is being filled with incoming data, beginning from the start of the buffer. The remote processor, acting as the master, must determine the larger of its incoming or outgoing data transfers and deassert IP_SEL when all of the transmit and receive data has been transferred. The data is transferred into or out of the buffers starting from the lowest address in the buffer, and each word is assembled with the MSB first on the serial data lines. IP_SEL IP_CLK IP_DI IP_DO Status (8 bit) padding (8 bit) data length or 0s (8 bit) N words of data padding (8 bit) Status (8 bit) data length or 0s (8 bit) N words of data Figure 25: Intelligent Peripheral Data Transfer Waveforms 11.2 JN5139 Initiated Data Transfer To send data, the data is written into either buffer 0 or 1 of the intelligent peripheral memory area. Then the buffer number is written together with the data length. If the call is successful, the interrupt line IP_INT will signal to the remote processor that there is a message ready to be sent from the JN5139. When a remote processor starts a transfer to the JN5139 by deasserting IP_SEL, then IP_INT is deasserted. If the transfer is unsuccessful and the data is not output then IP_INT is reasserted after the transfer to indicate that data is still waiting to be sent. The interface can be configured to generate an internal interrupt whenever a transaction completes (for example IP_SEL becomes inactive after a transfer starts). It is also possible to mask the interrupt. The end of the transmission can be signalled by an interrupt, or the interface can be polled. To receive data the interface must be firstly initialised and when this is done, the bit RXRDY sent in the status byte from the IP block will show that data can be received by the JN5139. Successful data arrival can be indicated by an interrupt, or the interface can be polled. To send and receive at the same time, the transmit and receive buffers must be set to be different. 11.3 Remote Processor Initiated Data Transfer The remote processor (master) may initiate a transfer to send data to the JN5139 by asserting the slave select pin, IP_SEL, and generating its status byte on IP_DI with TXRDY set. After receiving the status byte from the JN5139, it should check that the JN5139 has a buffer ready by reading the RXRDY bit. If the RXRDY bit is 0 indicating that the JN5139 cannot accept data, it should terminate the transfer by deasserting IP_SEL unless it is receiving data from the JN5139. If the RXRDY bit is 1, indicating that the JN5139 can accept data, then the master should generate a further 8 clocks on IP_CLK in order to transfer its own message length on IP_DI. The master should continue clocking the interface until sufficient clocks have been generated to send all the data specified in the length field to the JN5139. The master should then deassert IP_SEL to show the transfer is complete. The master may initiate a transfer to read data from the JN5139 by asserting the slave select pin, IP_SEL, and generating its status byte on IP_DI with RXRDY set. After receiving the status byte from the JN5139, it should check that the JN5139 has a buffer ready by reading the TXRDY bit. If the TXRDY bit is 0, indicating that the JN5139 does not have data to send, it should terminate the transfer by deasserting IP_SEL unless it is transmitting data to the JN5139. If the TXRDY bit is 1, indicating that the JN5139 can send data, then the master should generate a further 8 clocks on IP_CLK in order to receive the message length on IP_DO. The master should continue clocking the interface until sufficient clocks have been generated to receive all the data specified in the length field from the JN5139. The master should then deassert IP_SEL to show the transfer is complete. Data can be sent in both directions at once and the master must ensure both transfers have completed before deasserting IP_SEL. 34 JN-DS-JN5139 v1.5 Jennic 2008 Jennic Jennic Jennic Jennic 12 Timers 12.1 Peripheral Timer / Counters Two general-purpose timer / counter units are available that can be independently configured to operate in one of five modes. The timers have the following features:
16-bit prescaler, divides system clock by 2 prescale value as the clock to the timer Clocked from internal system clock 16-bit counter, 16-bit Rise and Fall (period) registers Timer: can generate interrupts off Rise and Fall counts. Can be gated by external signal Counter: counts number of transitions on external event signal. Can use low-high, high-low or both transitions PWM/Single pulse: outputs repeating Pulse Width Modulation signal or a single pulse. Can set period and mark-space ratio Capture: measures times between transitions of an applied signal. Delta-Sigma: Return-To-Zero (RTZ) and Non-Return-to-Zero (NRZ) modes Int Enable INT Interrupt Generator
S R PWM/Delta-
Sigma OE TIMxOUT TIMxCAP Capture Generator Capture Enable Rise Fall Gate Delta-Sigma PWM/
Sys Clk Prescaler Counter PWM/
Reset Gate TIMxCK_GT Reset Generator Edge Select S/w Reset System Reset Single Shot Figure 26: Timer Unit Block Diagram The clock source for the timer unit is fed from the 16MHz system clock. This clock passes to a 16-bit prescaler where a value of 0 leaves the clock unmodified and other values divide it by 2 prescale value. For example, a prescale value of 2 applied to the 16MHz system clock source results in a timer clock of 4MHz. The value of the prescaler is set through software. Jennic 2008 JN-DS-JN5139 v1.5 35 Jennic Jennic Jennic Jennic The counter is optionally gated by a signal on the clock / gate input (TIMxCK_GT). If the gate function is selected the counter is frozen when the clock/gate input is high. An interrupt can be generated when the counter is equal to the value in either of the High or Low registers. The internal Output Enable (OE) signal enables or disables the timer output. The Timer 0 signals CK_GT, CAP and OUT are alternate functions of pins DIO8, 9 and 10 respectively and Timer 1 signals CK_GT, CAP and OUT are alternate functions of pins DIO11, 12, and 13 respectively. Selection of either the Timer or DIOx functionality is made through software, in either case the timer still functions internally. 12.1.1 Pulse Width Modulation Mode Pulse Width Modulation (PWM) mode allows the user to specify an overall cycle time and pulse length within the cycle. The pulse can be generated either as a single shot or as a train of pulses with a repetition rate determined by the cycle time. In this mode, the cycletime and low periods of the PWM output signal can be set by the values of two independent 16-bit registers (Fall and Rise). The counter increments and its output is compared to the 16-bit Rise and Fall registers. When the counter is equal to the Rise register, the PWM output is set to high; when the counter reaches the Fall value, the output returns to low. In continuous mode, when the counter reaches the Fall value, it will reset and the cycle repeats. The PWM waveform is available on TIMxOUT when the output driver is enabled. Rise Fall Figure 27: PWM Output Timings 12.1.2 Capture Mode The capture mode can be used to measure the time between transitions of a signal applied to the capture input
(TIMxCAP). When the capture is started, on the next low-to-high transition of the captured signal, the count value is stored in the Rise register, and on the following high-to-low transition, the counter value is stored in the Fall register. The pulse width is the difference in counts in the two registers multiplied by the driving clock (in all cases this must be the 16MHz clock and so the prescaler must be set to 0). Upon reading the capture registers the counter is stopped. The values in the High and Low registers will be updated whenever there is a corresponding transition on the capture input, and the value stored will be relative to when the mode was started. Therefore, if multiple pulses are seen on TIMxCAP before the counter is stopped only the last pulse width will be stored. CLK CAPT Rise Fall 9 tRISE 5 3 4 tRISE tFALL tFALL Capture Mode Enabled x 9 3 x 14 7 Figure 28: Capture Mode 36 JN-DS-JN5139 v1.5 Jennic 2008 Jennic Jennic Jennic Jennic 12.1.3 Counter / Timer Mode The counter/timer can be used to generate timing or count interrupts for software to use. As a timer the clock source is from the system clock, prescaled if required. The timer period is programmed into the Fall register and the Fall register match interrupt enabled. The timer is started as either a single-shot or a repeating timer, and generates an interrupt when the counter reaches the Fall register value. When used to count external events on TIMxCK_GT the clock source is selected from the input pin and the number of events programmed into the Fall register. The Fall register match interrupt is enabled and the counter started, usually in single shot mode. An interrupt is generated when the programmed number of low-to-high transitions is seen on the input pin. 12.1.4 Delta-Sigma Mode A separate delta-sigma mode is available, allowing a low speed delta-sigma DAC to be implemented with up to 16-bit resolution. This requires that a resistor-capacitor network is placed between the output DIO pin and digital ground. A stream of pulses with digital voltage levels is generated which is integrated by the RC network to give an analogue voltage. A conversion time is defined in terms of a number of clock cycles. The width of the pulses generated is the period of a clock cycle. The number of pulses output in the cycle, together with the integrator RC values will determine the resulting analogue voltage. For example, generating approximately half the number of pulses that make up a complete conversion period will produce a voltage on the RC output of VDD1/2, provided the RC time constant is chosen correctly. During a conversion, the pulses will be pseudo-randomly dispersed throughout the cycle in order to produce a steady voltage on the output of the RC network. The output signal is asserted for the number of clock periods defined in the High register, with the total period being 216 cycles. For the same value in the High register the pattern of pulses on subsequent cycles is different, due to the pseudo-random distribution. The delta-sigma convertor output can operate in a Return-To-Zero (RTZ) or a Non-Return-to-Zero (NRZ) mode. The NRZ mode will allow several pulses to be output next to each other. The RTZ mode ensures that each pulse is separated from the next by at least one period. This improves linearity if the rise and fall times of the output are different to one another. Essentially, the output signal is low on every other output clock period, and the conversion cycle time is twice the NRZ cycle time ie 217 clocks. The integrated output will only reach half VDD2 in RTZ mode, since even at full scale only half the cycle contains pulses. Figure 29 and Figure 30 illustrate the difference between RTZ and NRZ for the same programmed number of pulses. 1 2 3 N 1 2 3 N 217 Conversion cycle 1 Conversion cycle 2 Figure 29: Return To Zero Mode in Operation 1 2 3 N 1 2 3 N Conversion cycle 1 216 Conversion cycle 2 Figure 30: Non-Return to Zero Mode 12.1.5 Timer / Counter Application Figure 31 shows an application of the JN5139 timers to provide closed loop speed control. Timer 0 is configured in PWM mode to provide a variable mark-space ratio switching waveform to the gate of the NFET. This in turn controls the power in the DC motor. Jennic 2008 JN-DS-JN5139 v1.5 37 Jennic Jennic Jennic Jennic Timer 1 is configured to count the rising edge events on the clk/gate pin over a constant period. This converts the tacho pulse stream output into a count proportional to the motor speed. This value is then used by the application software executing the control algorithm.
+12V JN5139 1N4007 M Tacho Timer 0 Timer 1 CLK/GATE CAPTURE PWM CLK/GATE CAPTURE PWM 48 50 51 52 53 54 IRF521 1 pulse/rev Figure 31: Closed Loop PWM Speed Control Using JN5139 Timers 38 JN-DS-JN5139 v1.5 Jennic 2008 12.2 Tick Timer The JN5139 contains a hardware timer that can be used for generating timing interrupts to software. It may be used to implement regular events such as ticks for software timers or an operating system, as a high-precision timing reference or can be used to implement system monitor timeouts as used in a watchdog timer. Features include:
Jennic Jennic Jennic Jennic 32-bit counter 28-bit match value Maskable timer interrupt Single-shot, Restartable or Continuous modes of operation SysClk
Run Match Value Counter Reset Mode Control Mode Match
Tick Timer Interrupt
Int Enable Figure 32: Tick Timer The Tick Timer is clocked from the 16MHz CPU clock, which is fed to a 32-bit wide resettable up-counter, gated by a signal from the mode control block. A match register allows comparison between the counter and a programmed value. The match value, measured in 16MHz clock cycles is programmed through software, in the range 0 to 0x0FFFFFFF. The output of the comparison can be used to generate an interrupt if the interrupt is enabled and used in controlling the counter in the different modes. Upon configuring the timer mode, the counter is also reset. If the mode is programmed as single shot, the counter begins to count from zero until the match value is reached. The match signal will be generated which will cause an interrupt if enabled, and the counter will stop counting. The counter is restarted by reprogramming the mode. If the mode is programmed as restartable, the operation of the counter is the same as for the single shot mode, except that when the match value is reached the counter is reset and begins counting from zero. An interrupt will be generated when the match value is reached if it is enabled. Continuous mode operation is similar to restartable, except that when the match value is reached, the counter is not reset but continues to count. An interrupt will be generated when the match value is reached if enabled. In CPU doze mode the tick timer is not clocked and therefore cannot be used as a wakeup source. 12.3 Wakeup Timers Two 32-bit wakeup timers driven from the 32kHz internal clock are available in the JN5139. They may run during sleep periods when the majority of the rest of the device is powered down, to time sleep periods or other long period timings that may be required by the application. The wakeup timers do not run during deep sleep and may optionally be disabled in sleep mode through software control. When a wakeup timer expires it typically generates an interrupt, Jennic 2008 JN-DS-JN5139 v1.5 39 Jennic Jennic Jennic Jennic if the device is asleep then the interrupt may be used as an event to end the sleep period. See Section 16 for further details on how they are used during sleep periods. Features include:
32-bit down-counter Optionally runs during sleep periods Clocked from 32 kHz RC oscillator A wakeup timer consists of a 32-bit down counter clocked from the 32 kHz internal clock. An interrupt or wakeup event can be generated when the counter reaches zero. On reaching zero the counter will continue to count down until stopped, which allows the latency in responding to the interrupt to be measured. If an interrupt or wakeup event is required, the timer interrupt should be enabled before loading the count value for the period. Once the count value is loaded and counter started, the counter begins to count down; the counter can be stopped at any time through software control. The counter will remain at the value it contained when the timer was stopped and no interrupt will be generated. The status of the timers can be read to indicate if the timers are running and/or have expired; this is useful when the timer interrupts are masked. If a timer has expired then the expired status will be reset by the function. 12.3.1 RC Oscillator Calibration The RC oscillator used to time sleep periods is designed to require very little power to operate and be self-contained, requiring no external timing components and hence is lower cost. As a consequence of using on-chip resistors and capacitors, the inherent absolute accuracy and temperature coefficient is lower than that of a crystal oscillator, but once calibrated the accuracy approaches that of a crystal oscillator. Sleep time periods should be as close to the desired time as possible in order to allow the device to wake up in time for important events, for example beacon transmissions in the IEEE802.15.4 protocol. If the sleep time is accurate, the device can be programmed to wake up very close to the calculated time of the event and so keep current consumption to a minimum. If the sleep time is less accurate, it will be necessary to wake up earlier in order to be certain the event will be captured. If the device wakes earlier, it will be awake for longer and so reduce battery life. In order to allow sleep time periods to be as close to the desired length as possible, the true frequency of the RC oscillator needs to be determined to better than the initial 30% accuracy. The calibration factor can then be used to calculate the true number of nominal 32kHz periods needed to make up a particular sleep time. A calibration reference timer, clocked from the crystal oscillator, is provided to allow comparisons to be made between the RC clock and the 16MHz crystal oscillator when the JN5139 is awake. Operation is as follows:
Wakeup timer0 is disabled and programmed with a number of 32kHz ticks Timer0 event status must be cleared Calibration mode is enabled which causes the Calibration Reference counter to be zeroed. Both counters start counting, the wakeup timer decrementing and the calibration counter incrementing When the wakeup timer reaches zero the Reference Counter is stopped, allowing software to read the number of 16MHz clock ticks generated during the time represented by the number of 32kHz ticks programmed in the wakeup timer. The true period of the 32kHz clock can thus be determined and used when programming a wakeup timer to achieve a better accuracy and hence more accurate sleep periods For a RC oscillator running at exactly 32kHz the value returned by the calibration procedure should be 10000, for a calibration period of twenty 32kHz clock periods. If the oscillator is running faster than 32kHz the count will be less than 10000, if running slower the value will be higher. For a calibration count of 9000, indicating that the RC oscillator period is running at approximately 35kHz, to time for a period of 2 seconds the timer should be loaded with 71,111
((10000/9000) x (32000 x 2)) rather than 64000. 12.3.2 External 32kHz Clock Source It is possible to change the source of the 32kHz clock used for the sleep timers to an externally supplied 32kHz reference clock on the CLK32K input (DIO9). This mode could allow the timer clock to be sourced from a very stable oscillator module, allowing more accurate sleep cycle timings. (See section 17.2.3 I/O Characteristics, DIO9 is a 3V tolerant input) 40 JN-DS-JN5139 v1.5 Jennic 2008 Jennic Jennic Jennic Jennic 13 Serial Communications The JN5139 has two independent Universal Asynchronous Receiver / Transmitter (UART) serial communication interfaces. These provide similar operating features to the industry standard 16550A device operating in FIFO mode. Each interface performs serial-to-parallel conversion on incoming serial data and parallel-to-serial conversion on outgoing data from the CPU to external devices. In both directions, a 16-byte deep FIFO buffer allows the CPU to read and write multiple characters on each transaction. This means that the CPU is freed from handling data on a character-by-character basis, with the associated high processor overhead. The UARTs have the following features:
Emulates behaviour of industry standard NS16450 and NS16550A UARTs 16 byte transmit and receive FIFO buffers reduce interrupts to CPU, with direct access to fill levels of each Adds / deletes standard start, stop and parity communication bits to or from the serial data Independently controlled transmit, receive, status and data sent interrupts Optional modem flow control signals CTS and RTS Fully programmable data formats: baud rate, start, stop and parity settings False start bit detection, parity, framing and FIFO overrun error detect and break indication Internal diagnostic capabilities: loop-back controls for communications link fault isolation Flow control by software or automatically by hardware Internal Interrupt Interrupt Logic RTS CTS Modem Signals Logic Divisor Latch Register s Line Status Register Line Control Register FIFO Control Register Interrupt ID Register Interrupt Enable Register Modem Status Register Modem Control Register s u B r o s s e c o r P Baud Generator Logic Receiver Logic Receiver FIFO Receiver Shift Register RXD Transmitter Logic Transmitter FIFO Transmitter Shift Register TXD Figure 33 UART Block Diagram The serial interface contains programmable fields that can be used to set number of data bits (5, 6,7 or 8), even, odd, set-at-1, set-at-0 or no-parity detection and generation of single or multiple stop bit, (for 5 bit data, multiple is 1.5 stop bits; for 6, 7 or 8 data bits, multiple is 2 bits). The baud rate is programmable up to 1Mbps, standard baud rates such as 4800, 9600, 19.2k, 38.4k etc. can be configured. Two hardware flow control signals are provided: Clear-To-Send (CTS) and Request-To-Send (RTS). CTS is an indication sent by an external device to the UART that it is ready to receive data. RTS is an indication sent by the UART to the external device that it is ready to receive data. RTS is controlled from software, while the value of CTS can be read. Monitoring and control of CTS and RTS is a software activity, normally performed as part of interrupt processing. The signals do not control parts of the UART hardware, but simply indicate to software the state of the UART external interface. Alternatively, the Automatic Flow Control mode can be set where the hardware controls the Jennic 2008 JN-DS-JN5139 v1.5 41 Jennic Jennic Jennic Jennic value of the generated RTS (negated if the receive FIFO fill level is 15 and another character starts to be received, and asserted when the receive FIFO is read), and only transmits data when the incoming CTS is asserted. Characters are read one byte at a time from the Receive FIFO and are written to the Transmit FIFO. The Transmit and Receive FIFOs can be cleared and reset independently of each other. The status of the transmitter can be checked to see if it is empty, and if there is a character being transmitted. The status of the receiver can also be checked, indicating if conditions such as parity error, framing error or break indication have occurred. It also shows if an overrun error occurred (receive buffer full and another character arrives) and if there is data held in the receive FIFO. UART 0 signals CTS, RTS, TXD and RXD are alternate functions of pins DIO4, 5, 6 and 7 respectively and UART 1 signals CTS, RTS, TXD and RXD are alternate functions of pins DIO17, 18, 19 and 20 respectively. If CTS and RTS are not required on the devices external pins, then they may be disabled, this allows the alternate DIOx to be used instead. Note: The hardware flow control within the UART block negates RTS when the receive FIFO is about to become full, this occurs when the UART has started receiving the last byte that it can accept. In some instances it has been observed that remote devices that are transmitting data do not respond quickly enough to the de-asserted CTS and continue to transmit data. In these instances the data will be lost in a receive FIFO overflow. 13.1 Interrupts Interrupt generation can be controlled for the UART block, and is divided into four categories:
Received Data Available: Is set when data in the Rx FIFO queue reaches a particular level (the trigger level can be configured as 1, 4, 8 or 14) or if no character has been received for 4 character times. Transmit FIFO Empty: set when the last character from the Tx FIFO is read and starts to be transmitted. Receiver Line Status: set when one of the following occur (1) Parity Error - the character at the head of the receive FIFO has been received with a parity error, (2) Overrun Error - the Rx FIFO is full and another character has been received at the Receiver shift register, (3) Framing Error - the character at the head of the receive FIFO does not have a valid stop bit and (4) Break Interrupt occurs when the RxD line has been held low for an entire character. Modem Status: Generated when the CTS (Clear To Send) input control line changes. 13.2 UART Application The following example shows the UART connected to a 9-pin connector compatible with a PC. The software developer kit uses such an interface as the debugger interface between the JN5139 and a PC. As the JN5139 device pins do not provide the RS232 line voltage a level shifter is used. JN5139 UART0 TXD CTS RXD RTS 46 44 47 45 RS232 Level Shifter PC COM Port 1 6 5 9 Pin Signal 1 2 3 4 5 6 7 8 9 CD RD TD DTR SG DSR RTS CTS RI Figure 34 JN5139 Serial Communication Link 42 JN-DS-JN5139 v1.5 Jennic 2008 14 Two-Wire Serial interface The JN5139 includes an industry standard two-wire synchronous serial interface (SIF) that provides a simple and efficient method of data exchange between devices. The system uses a serial data line (SIF_D) and a serial clock line (SIF_CLK) to perform bi-directional data transfers and includes the following features:
Compatible with both I2C and SMbus peripherals (master only mode) Jennic Jennic Jennic Jennic Software programmable clock frequency Clock stretching and wait state generation Software programmable acknowledge bit Interrupt or bit-polling driven byte-by-byte data-transfers Bus busy detection Support for 7 and 10 bit addressing modes P r o c e s s o r B u s Prescale Register Command Register Status Register Transmit Register Receive Register Clock Generator Byte Command Controller Bit Command Controller SIF_CLK SIF_D Data I/O Shift Register Figure 35: SIF Block Diagram The prescale register allows the interface to be configured to operate at up to 400kbit/s. The clock generator handles the clock stretching required by some slave devices. The Byte Command Controller handles traffic at the byte level. It takes data from the Command Register and translates it into sequences based on the transmission of a single byte. By setting the start, stop, read, write and acknowledge control bits in the command register it is possible to generate read or write sequences on the bus. The data I/O shift register contains the data associated with the current transfer. During a read operation, data is shifted into this register from the SIF_D line. When the read is complete the byte is copied into the receive register and can be accessed. During a write operation the contents of the transmit register are copied into the shift register and then onto the SIF_D line. It is possible to generate an interrupt upon the completion of a byte transmission or reception. If interrupt-driven communication is not desired it is possible to poll the status of the interface. The first byte of data transferred by the device after a start bit is the slave address. The JN5139 supports both 7-bit and 10-bit slave addresses by generating either one or two address transfers. Only the slave with a matching address will respond by returning an acknowledge bit. Jennic 2008 JN-DS-JN5139 v1.5 43 Jennic Jennic Jennic Jennic 14.1 Connecting Devices The clock and data lines, SIF_D and SIF_CLK, are alternate functions of DIO lines 15 and 14 respectively. The serial interface function of these pins is selected when the interface is enabled. They are both bi-directional lines, connected internally to the positive supply voltage via weak (45k) programmable pull-up resistors. However, it is recommended that external 4.7k pull-ups be used for reliable operation at high bus speeds, as shown in Figure 36. When the bus is free, both lines are HIGH. The output stages of devices connected to the bus must have an open-
drain or open-collector in order to perform the wired-AND function. The number of devices connected to the bus is solely dependent on the bus capacitance limit of 400pF. JN5139 SIF_CLK SIF_D SIF 55 56 RP RP Vdd Pullup Resistors D1_IN CLK1_IN D2_IN CLK2_IN CLK1_OUT D2_OUT CLK2_OUT D1_OUT DEVICE 1 DEVICE 2 Figure 36: Connection Details 14.2 Clock Stretching Slave devices can use clock stretching to slow down the transfer bit rate. After the master has driven SIF_CLK low, the slave can drive SIF_CLK low for the required period and then release it. If the slaves SIF_CLK low period is greater than the masters low period the resulting SIF_CLK bus signal low period is stretched thus inserting wait states. Clock held low by Slave SIF_CLK SIF_CLK SIF_CLK Master SIF_CLK Slave SIF_CLK Wired-AND SIF_CLK Figure 38: Clock Stretching 44 JN-DS-JN5139 v1.5 Jennic 2008 15 Analogue Peripherals The JN5139 contains a number of analogue peripherals allowing the direct connection of a wide range of external sensors, switches and actuators. Jennic Jennic Jennic Jennic Vref Supply Voltage
(VDD1) Internal Reference Vref select Chip Boundary VREF ADC1 ADC2 ADC3 ADC4 COMP1P COMP1M COMP2P COMP2M DAC1 DAC2 ADC Temp Sensor Comparator 1 Comparator 2 DAC1 DAC2 Processor Bus Figure 39: On-chip Analogue Peripherals In order to provide good isolation from digital noise, the analogue peripherals are powered by a separate regulator, supplied from the analogue supply VDD1 and referenced to analogue ground VSSA. The ADC and DAC reference Vref can be selected between an internal bandgap reference or an external voltage reference supplied to the VREF pin. Jennic 2008 JN-DS-JN5139 v1.5 45 Jennic Jennic Jennic Jennic 15.1 Analogue to Digital Converter The 12-bit analogue to digital converter (ADC) uses a successive approximation design to perform high accuracy conversions as typically required in wireless sensor network applications. It has six multiplexed single-ended input channels: four available externally, one connected to an internal temperature sensor, and one connected to an internal supply monitoring circuit. 15.1.1 Operation The input range of the ADC can be set between 0V to either the reference voltage or twice the reference voltage. The reference can be either taken from the internal voltage reference or from the external voltage applied to the VREF pin. For example, an external reference of 1.2V supplied to VREF may be used to set the ADC range between 0V and 2.4V. VREF Gain Setting Maximum Input Range Supply Voltage Range (VDD) 1.2V 1.6V 1.2V 1.6V 0 0 1 1 1.2V 1.6V 2.4V 3.2V 2.2V - 3.6V 2.2V - 3.6V 2.6V - 3.6V 3.4V - 3.6V Table 5 ADC Reference and Gain Settings The input clock to the ADC is 16MHz and is divided down to 500kHz. During an ADC conversion the selected input channel is sampled for a fixed period and then held. This sampling period is defined as a number of ADC clock periods and can be programmed to 2, 4, 6 or 8. The conversion rate is ((3 x Sample period) + 14) clock periods. For example for 500KHz conversion with sample period of 2 will be (3 x 2) + 14 = 20 clock periods, 40usecs or 25KHz. If the source resistance of the input voltage is 1k or less, then the default sampling time of 2 clocks should be used. The input to the ADC can be modelled as a resistor of 5k to represent the on-resistance of the switches and the sampling capacitor 8pF. The sampling time required can then be calculated, by adding the sensor source resistance to the switch resistance, multiplying by the capacitance giving a time constant. Assuming normal exponential RC charging, the number of time constants required to give an acceptable error can be calculated, 7 time constants gives an error of 0.1%, so for 12-bit accuracy 10 time constants should be the target. For a source with zero resistance, 10 time constants is 800 nsecs, hence the smallest sampling window of 2 clock periods can be used. The ADC sampling period, input range and mode (single shot or continuous) are controlled through software. When the ADC conversion is complete, an interrupt is generated. Alternatively the conversion status can be polled. When operating in continuous mode, it is recommended that the interrupt is used to signal the end of a conversion, since conversion times may range from 36 to 60 secs. Polling over this period would be wasteful of processor bandwidth. For detailed electrical specifications, see section 17.3.8. 15.1.2 Supply Monitor The internal supply monitor allows the voltage on the analogue supply pin VDD1 to be measured. This is achieved with a potential divider that reduces the voltage by a factor of 0.666, allowing it to fall inside the input range of the ADC when set with an input range twice the internal voltage reference. The resistor chain that performs the voltage reduction is disabled until the measurement is made to avoid a continuous drain on the supply. 15.1.3 Temperature Sensor The on-chip temperature sensor can be used either to provide an absolute measure of the device temperature or to detect changes in the ambient temperature. In common with most on-chip temperature sensors, it is not trimmed and so the absolute accuracy variation is large; the user may wish to calibrate the sensor prior to use. The sensor forces a constant current through a forward biased diode to provide a voltage output proportional to the chip die temperature which can then be measured using the ADC. The measured voltage has a linear relationship to temperature as described in section 17.3.11. 46 JN-DS-JN5139 v1.5 Jennic 2008 Because this sensor is on-chip, any measurements taken must account for the thermal time constants. For example if the device recently came out of sleep mode the user application should wait until the temperature has stabilized before taking a measurement. Jennic Jennic Jennic Jennic 15.2 Digital to Analogue Converter The Digital to Analogue Converter (DAC) provides two output channels and is capable of producing voltages of 0 to Vref or 0 to 2Vref where Vref is selected between the internal reference and the VREF pin, with a resolution of 11 bits and a minimum conversion time of 9secs (2MHz clock). 15.2.1 Operation The output range of each DAC can be set independently to swing between 0V to either the reference voltage or twice the reference voltage. The reference voltage is selected from the internal reference or the VREF pin. For example, an external reference of 0.8V supplied to VREF may be used to set DAC1 maximum output of 0.8V and DAC2 maximum output of 1.6V. The DAC output amplifier is capable of driving a capacitive load up to that specified in section 17.3.9. Programmable clock periods allow a trade-off between conversion speed and resolution. The full 11-bit resolution is achieved with the 250kHz clock rate. See section 17.3.8, electrical characteristics, for more details. The conversion period of the DACs are given by the same formula as the ADC conversion time and so can vary between 9 and 120uS. The DAC values may be updated at the same time as the ADC is active. The clock divider ratio, interrupt enable and reference voltage select are all controlled through software, options common to both the ADC and DAC. The DAC output range and initial value can be set and the subsequent updates provided by updating only the DAC value. Polling is available to determine if a DAC channel is busy performing a conversion. The DAC can be disabled which will power down the DAC cell. Simultaneous conversions with DAC1 and DAC2 is not possible. To use both DACs at the same time it is necessary to interleave the conversions. This is achieved by firstly setting the DAC1 and DAC2 retain bits, which holds the DAC outputs stable. Conversion on either channel can then be performed by disabling the unused channel and enabling the channel to be updated. 15.3 Comparators The JN5139 contains two analogue comparators COMP1 and COMP2 that are designed to have true rail-to-rail inputs and operate over the full voltage range of the analogue supply VDD1. The hysteresis level (common to both comparators) can be set to a nominal value of 0mV, 10mV, 20mV or 40mV. In addition, the source of the negative input signal for each comparator (COMP1M and COMP2M) can be set to one of the internal voltage reference, the output of DAC1 or DAC2 (COMP1 or COMP2 respectively) or the external pin. The comparator outputs are routed to internal registers and can be polled, or can be used to generate interrupts. The comparators can be disabled to reduce power consumption. The comparators have a low power mode where the response time of the comparator is slower than normal and is specified in section 17.3.10. This mode may be used during non-sleep operation however it is particularly useful in sleep mode to wake up the JN5139 from sleep where low current consumption is important. The wakeup action and the configuration for which edge of the comparator output will be active are controlled through software. In sleep mode the negative input signal source defaults to the external pins. Jennic 2008 JN-DS-JN5139 v1.5 47 Jennic Jennic Jennic Jennic 16 Power Management and Sleep Modes 16.1 Operating Modes Three operating modes are provided in the JN5139 that enable the system power consumption to be controlled carefully to maximise battery life. Active Processing Mode Sleep Mode Deep Sleep Mode The variation in power consumption of the three modes is a result of having a series of power domains within the chip that may be selectably powered on or off. 16.1.1 Power Domains The JN5139 has the following power domains:
VDD Supply Domain: supplies the wake-up timers and controller, DIO blocks, Comparators and 32kHz RC oscillator. This domain is driven from the external supply (battery) and is always powered. The wake-up timers and controller, and the 32kHz RC oscillator may be powered on or off in sleep mode through software control. Digital Logic Domain: supplies the SPI interface, CPU, ROM, Baseband controller, Modem and Encryption processor. It is powered off during sleep mode. Analogue Domain: supplies the ADC, DACs and the temperature sensor. It is powered off during sleep mode and may be powered on or off in active processing mode through software control. RAM Domain: supplies the RAM during sleep mode to retain the memory contents. It may be powered on or off for sleep mode through software control. Radio Domain: supplies the radio interface. It is powered during transmit and receive and controlled by the baseband processor. 16.2 Active Processing Mode Active processing mode in the JN5139 is where all of the application processing takes place. All of the peripherals are available to the application as are options to actively enable or disable them to control power consumption; see specific peripheral sections for details. Whilst in Active processing mode there is the option to doze the CPU but keep the rest of the chip active; this is particularly useful for radio transmit and receive operations, where the CPU operation is not required. 16.2.1 CPU Doze Whilst in doze mode, CPU operation is stopped but the chip remains powered and the digital peripherals continue to run. Doze mode is entered through software and is terminated by any interrupt request. Once the interrupt service routine has been executed, normal program execution resumes. Doze mode uses more power than sleep and deep sleep modes but requires less time to restart and can therefore be used as a low power alternative to an idle loop. 16.3 Sleep Mode The JN5139 enters sleep mode through software control. In this mode many of the internal chip functions are shutdown to save power, however the state of DIO pins are retained, including the output values and pull-up enables, and this therefore preserves any interface to the outside world. The DAC outputs are placed into a high impedance state. 48 JN-DS-JN5139 v1.5 Jennic 2008 Jennic Jennic Jennic Jennic When entering into sleep mode, there is an option to retain the RAM contents throughout the sleep period. If wakeup timers or comparator event are not to be used for a wakeup event, then power can be saved by switching off the 32kHz oscillator through software control. Whilst in sleep mode one of three possible events can cause a wakeup to occur: transitions on DIO inputs, expiry of wakeup timers or comparator events. If any of these events occur, an interrupt is generated that will cause a wakeup from sleep. It is possible for multiple wakeup sources to trigger an event at the same instant and only one of them will be accountable for the wakeup period. It is therefore necessary in software to remove all other pending wakeup events prior to requesting entry back into sleep mode; otherwise, the device will re-awaken immediately. When wakeup occurs, a similar sequence of events to the reset process described in section 6.1 happens. The 16MHz oscillator is started up, once stable the power to CPU system is enabled and the reset is removed. Software determines that this is a reset from sleep and so commences with the wakeup process. If RAM contents were held through sleep, wakeup is quicker as the application program does not have to be reloaded from Flash memory. 16.3.1 Wakeup Timer Event The JN5139 contains two 32-bit wakeup timers that are counters clocked from the 32kHz oscillator, and can be programmed to generate a wake-up event. Following a wakeup event, the timers continue to run. These timers are described in section 12.3. Timer events can be generated from both of the two timers; one is intended for use by the 802.15.4 protocol, the other being available for use by the Application running on the CPU. These timers are available to run at any time, even during sleep mode. 16.3.2 DIO Event Any DIO pin when used as an input has the capability, by detecting a transition, to generate a wake-up event. Once this feature has been enabled the type of transition can be specified (rising or falling edge). Even when groups of DIO lines are configured as alternative functions such as the UARTs or Timers etc, any input line in the group can still be used to provide a wakeup event. This means that an external device communicating over the UART can wakeup a sleeping device by asserting its RTS signal pin (which is the CTS input of the JN5139). 16.3.3 Comparator Event The comparator can generate a wakeup interrupt when a change in the relative levels of the positive and negative inputs occurs, the negative input being selectable between the external pin COMPxN or the internal voltage reference. The ability to wakeup when continuously monitoring analogue signals is useful in ultra-low power applications. For example, the JN5139 can remain in sleep mode until the voltage drops below a threshold and then be woken up to deal with the alarm condition. 16.4 Deep Sleep Mode Deep sleep mode gives the lowest power consumption. All switchable power domains are off and certain functions in the VDD supply power domain, including the 32kHz oscillator are stopped. This mode can be exited by a power down, a hardware reset on the RESETN pin, or a DIO event. The DIO event in this mode causes a chip reset to occur. Jennic 2008 JN-DS-JN5139 v1.5 49 Jennic Jennic Jennic Jennic 17 Electrical Characteristics 17.1 Maximum ratings Exceeding these conditions may result in damage to the device. Parameter Device supply voltage VDD1, VDD2 Supply voltage at voltage regulator bypass pins VB_xxx Voltage on analogue pins XTALOUT, XTALIN, VCOTUNE, RFP, RFM, Voltage on analogue pins VREF, ADC1-4, DAC1-2, COMP1M, COMP1P, COMP2M, COMP2P, IBIAS, Voltage on 5v tolerant digital pins SPICLK, SPIMOSI, SPIMISO, SPISEL0, DIO0-DIO8, DIO11-
DIO20, RESETN Voltage on 3v tolerant digital pins DIO9, DIO10 Storage temperature Reflow soldering temperature according to IPC/JEDEC J-STD-020C ESD rating Human Body Model 1 Machine Model 2 Charged Device Model 3 Min
-0.3V
-0.3V
-0.3V
-0.3V Max 3.6V 1.98V VB_xxx + 0.3V VDD1 + 0.3V
-0.3V Lower of (VDD2 + 2V) and 5.5V
-0.3V
-40C VDD2 + 0.3V 150C 260C 2.0kV 200V 500V 1) Testing for Human Body Model discharge is performed as specified in JEDEC Standard JESD22-A114. 2) Testing for Machine Model discharge is performed as specified in JEDEC Standard JESD11-A115. 3) Testing for Charged Device Model discharge is performed as specified in JEDEC Standard JESD22-C101. 17.2 DC Electrical Characteristics 17.2.1 Operating Conditions Supply VDD1, VDD2 Ambient temperature range Min 2.2V
-40C Max 3.6V 85C 50 JN-DS-JN5139 v1.5 Jennic 2008 17.2.2 DC Current Consumption VDD = 2.2 to 3.6V, -40 to +85 C 17.2.2.1 Active Processing Mode:
Min Typ Jennic Jennic Jennic Jennic Max 4.5 +
Unit Notes mA SPI, DIOs enabled CPU processing Radio transmit
[boost mode]
Radio receive
[boost mode]
2.85 +
0.295/MHz 0.480/MHz 38
[42]
37
[40]
50
[55]
48
[53]
mA mA CPU in software doze radio transmitting CPU in software doze radio in receive mode The following current figures should be added to those above if the feature is being used ADC DAC Comparator UART Timer 2-wire serial interface 17.2.2.2 Sleep Mode 655 215 / 235 67.5
[1.2]
95 65 75 A A A A A A Temperature sensor and battery measurements require ADC One / both Fast response time
[low-power]
For each UART For each Timer Mode:
Min Typ Max Unit Notes Sleep mode with I/O wakeup
(Waiting on I/O event) Sleep mode with I/O and timer wakeup measured at 25C 0.1 1.2 A 2.5 A As above but also waiting on timer event. If both wakeup timers are enabled then add another 0.3A The following current figures should be added to those above if the feature is being used RAM retention measured at 25C Comparator (low-power mode) 2.4 1.2 10 A For full 96kB retained. A Reduced response time. 17.2.2.3 Deep Sleep Mode Mode:
Deep sleep mode measured at 25C Min Typ 60 Max Unit Notes 250 nA Waiting on chip RESET or I/O event. Jennic 2008 JN-DS-JN5139 v1.5 51 Jennic Jennic Jennic Jennic 17.2.3 I/O Characteristics VDD = 2.2 to 3.6V, -40 to +85 C Parameter Min Typ Internal DIO pull up resistors 22 24 31 Digital I/O High Input
(exception DIO9, DIO10) VDD2 x 0.7 Digital I/O low Input
-0.3
(exception DIO9, DIO10) 34 40 56 Digital I/O input hysteresis 140 230 DIO High O/P (2.7-3.6V) VDD2 x 0.8 DIO Low O/P (2.7-3.6V) 0 DIO High O/P (2.2-2.7V) VDD2 x 0.8 DIO Low O/P (2.2-2.7V) Current sink/source capability 0 4 3 17.3 AC Characteristics 17.3.1 Reset Max 53 63 92 Lower of (VDD2 + 2V) and 5.5V VDD x 0.27 310 VDD2 0.4V VDD2 0.4V Unit k V V Notes VDD2 = 3.6V VDD2 = 3.0V VDD2 = 2.2V 5V Tolerant I/O only 5V Tolerant I/O only mV V V V V With 4mA load With 4mA load With 3mA load With 3mA load mA VDD2 = 2.7V to 3.6V VDD2 = 2.2V to 2.7V tRISE VPOT VDD 0V Internal RESET tSTAB RESETN RESETN Internal RESET Figure 40: Power-on Reset tRST VRST tSTAB Figure 41: External Reset 52 JN-DS-JN5139 v1.5 Jennic 2008 Jennic Jennic Jennic Jennic Parameter External Reset pulse width
(tRST) External Reset threshold voltage (VRST) Internal Power-on Reset threshold voltage (VPOT) Reset rise time (tRISE) Reset stabilisation time
(tSTAB) Min 1 VDD2 x 0.7 Typ Max 1.90 1.95 2.00 2.5 1 Unit s V V Notes Assumes internal pullup resistor value of 100K worst case and ~5pF external capacitance Minimum voltage to avoid being reset VDD2 = 2.2V VDD2 = 3.0V VDD2 = 3.6V Note 1 ms ms Note 2 1 VDD rise time of 1ms. 2 Time from release of reset to start of executing ROM code. Loading program from Flash occurs in addition to this. 17.3.2 SPI Timing SS CLK
(mode=0,1) CLK
(mode=2,3) MISO
(mode=0,2) MISO
(mode=1,3) MOSI
(mode=1,3) MOSI
(mode=0,2) tCK tHI tSSS tSI tVO tHI tSI tVO Parameter Symbol Clock period Data setup time Data hold time Data invalid period Select set-up period Select hold period tCK tSI tHI tVO tSSS tSSH Figure 42: SPI Timing (Master) Min 62.5 15.3 @ 2.7-3.6V 30.5 @ 2.2-3.6V 0
60 30 (SPICLK = 16MHz) 0 (SPICLK<16MHz, mode=0 or 2) 60 (SPICLK<16MHz, mode=1 or 3) tSSH Max Unit
15
ns ns ns ns ns ns Jennic 2008 JN-DS-JN5139 v1.5 53 Jennic Jennic Jennic Jennic 17.3.3 Two-wire serial interface SIF_D tF SIF_CLK tLOW tR tSU;DAT tHD;STA tR tBUF tHD;STA tF tSU;STA tSU;STO tHIGH Figure 43: Two-wire serial Interface Timing Parameter Symbol Standard Mode Fast Mode SIF_CLK clock frequency Hold time (repeated) START condition. After this period, the first clock pulse is generated LOW period of the SIF_CLK clock HIGH period of the SIF_CLK clock Set-up time for repeated START condition Data setup time SIF_D Rise Time SIF_D and SIF_CLK Fall Time SIF_D and SIF_CLK Set-up time for STOP condition Bus free time between a STOP and START condition Capacitive load for each bus line Noise margin at the LOW level for each connected device (including hysteresis) Noise margin at the HIGH level for each connected device (including hysteresis) fSCL tHD:STA tLOW tHIGH tSU:STA tSU:DAT tR tF tSU:STO tBUF Cb Vnl Min 0 4 4.7 4 2 0.25
4 4.7 Max 100
Min 0 0.6 1.3 0.6 0.5 0.1 1000 20+0.1Cb 300 20+0.1Cb
0.6 1.3
0.1VDD 0.2VDD Max 400
300 300
400
400 0.1VDD Vnh 0.2VDD Unit kHz s s s s s ns ns s s pF V V 17.3.4 Power Down and Wake-Up timings Parameter Min Typ Max Wake up from Deep Sleep
(or reset) Wake up from Sleep
(memory not held) Wake up from Sleep
(Memory held) Wake up from CPU Doze mode 2.5 + 0.5* program size in kBytes 2.5 + 0.5* program size in kBytes 2.5 0.2 Unit ms ms ms s Notes Assumes SPI clock to external Flash is16MHz Assumes SPI clock to external Flash is16MHz Note: The 2.5ms time is from release of reset wakeup event to the CPU executing code. At this point if the Flash is read there is an additional startup delay, as shown in the table. 54 JN-DS-JN5139 v1.5 Jennic 2008 Jennic Jennic Jennic Jennic 17.3.5 32kHz Oscillator VDD = 2.2 to 3.6V, -40 to +85 C Parameter Current consumption of cell and counter logic Min Typ 1.2 1.0 0.8 Max Unit A Notes 3.6V 3.0V 2.2V 32kHz clock native accuracy Calibrated 32kHz accuracy Variation with temperature Variation with VDD2
-30%
32kHz
+30%
At 3.0V 25C 330
+0.008
-5 ppm For a 1 second sleep period calibrating over 100 x 32kHz clock periods
%/C
%/V 17.3.6 16MHz Crystal Oscillator VDD = 2.2 to 3.6V, -40 to +85C Parameter Current consumption Start up time Input capacitance Transconductance DC voltages, XTALIN, XTALOUT Min 80 1.05 300 Typ 215 2.5 1.4 1.3 390 Max 350 Unit A ms Notes Including bandgap ref. Assuming xtal with ESR of 40ohms and CL= 9pF External caps = 15pF
(150mV pk-pk) see Appendix B pF Bondpad and package, guaranteed by design 1.7 480 mA/V mV External Capacitors 15 pF Total external capacitance needs to be 2*CL, allowing for stray capacitance from chip, package and PCB Jennic 2008 JN-DS-JN5139 v1.5 55 Jennic Jennic Jennic Jennic 17.3.7 Bandgap Reference VDD = 2.2 to 3.6V, -40 to +85C Parameter Voltage Min Typ Max Unit Notes 1.134 1.176 1.217 V DC power supply rejection Temperature coefficient Point of inflexion
-58
-82
+40 0 DB at 25C ppm/C 0 to 85C
-40C to 0C C 17.3.8 Analogue to Digital Converters VDD = 3.0V, VREF = 1.2V, -40 to +85C Parameter Resolution Current consumption Integral nonlinearity Min Differential nonlinearity
-1 Offset error Gain error Internal clock No. internal clock periods to sample input Conversion time Input voltage range 40 Typ 655 2 10 20 500 2, 4, 6 or 8 Max 12 Unit Notes bits 500kHz Clock A LSB
+2 LSB Guaranteed monotonic 0 to Vref or 0 to 2*Vref mV mV kHz 16MHz input clock, 32 Programmable s 500KHz Clock with sample period of 2 V Switchable Vref (Internal) See Section 17.3.7 Bandgap Reference Vref (External) 1.15 1.2 1.6 V Allowable range into VREF pin Input capacitance 8 pF In series with 5K ohms 56 JN-DS-JN5139 v1.5 Jennic 2008 17.3.9 Digital to Analogue Converters VDD = 3.0V, VREF = 1.2V, -40 to +85C Parameter Min Resolution Current consumption Integral nonlinearity Differential nonlinearity
-1 Offset error Gain error Internal clock Output settling time to 0.5LSB Minimum Update time Output voltage swing Output voltage swing 9 0 0 Typ 11 215 (single) 235 (both) 2
-10
-30 2MHz, 1MHz, 500kHz, 250kHz 5 Lower of Vdd-1.2 and Vref Lower of 2x(Vdd-1.2 ) and Vdd-0.2 and 2xVref Jennic Jennic Jennic Jennic Max Unit Notes bits A LSB
+1 LSB Guaranteed monotonic V V mV mV s s 16MHz input clock, programmable prescaler With 10k ohms & 20pF load 2MHz Clock with sample period of 8 Gain =1 Output voltage swing Gain =2 Output voltage swing Vref (Internal) See Section 17.3.7 Bandgap Reference VREF (External) 0.8 1.2 1.6 Resistive load Capacitive load 10k 20 Digital input coding Binary V pF Allowable range into VREF pin To ground Jennic 2008 JN-DS-JN5139 v1.5 57 Jennic Jennic Jennic Jennic 17.3.10 Comparators VDD = 2.2 to 3.6V -40 to +85C Parameter Min Analogue response time
(normal) Total response time
(normal) including delay to Interrupt controller Analogue response time
(low power) Hysteresis 4 12 28 Typ 105 Max 140 Unit ns 105 + 125 ns 2.4 10 20 40 16 26 50 Notes
+/- 250mV overdrive 10pF load Digital delay can be up to a max. of two 16MHz clock periods
+/- 250mV overdrive No digital delay Programmable in 3 steps and zero. s mV V V A A Vref (Internal) See Section 17.3.7 Bandgap Reference Common Mode input range Current (normal mode) Current (low power mode) 0 40 67.5 1.2 Vdd 90 17.3.11 Temperature Sensor Parameter Operating Range Sensor Gain Accuracy Non-linearity Output Voltage Range Resolution Min
-40
-1.44
630 0.154 Typ
-1.55
745 0.182 Max 85
-1.66 10 2.5 855 0.209 Notes Unit C mV/C C C mV C/LSB 0 to Vref ADC I/P Range 58 JN-DS-JN5139 v1.5 Jennic 2008 17.3.12 Radio Transceiver This JN5139 meets all the requirements of the IEEE802.15.4 standard over 2.2 - 3.6V and offers the following improved RF characteristics. All RF characteristics are measured single ended and include the losses of a ceramic balun. Jennic Jennic Jennic Jennic Parameter Min Typical Max Notes RF Port Characteristics Type Impedance 200ohm Differential 2.4-2.5GHz Frequency range 2.4 GHz 2.4835GHz Jennic 2008 JN-DS-JN5139 v1.5 59 Jennic Jennic Jennic Jennic 17.3.12.1 Radio parameters: 2.2-3.6V, +25C Parameter Min Typical Max Unit Notes Receiver Characteristics Receive sensitivity
-89
-96
-91
-96.5 dBm dBm Nominal for 1% PER, as per 802.15.4 section 6.5.3.3 Nominal for 1% PER, as per 802.15.4 section 6.5.3.3 Receive sensitivity
(boost) Maximum input signal Adjacent channel rejection
-1 channel / +1 channel
[CW Interferer]
Alternate channel rejection
[CW Interferer]
Other in band rejection 2.4 to 2.4835 GHz, excluding adj channels Out of band rejection Spurious emissions
(RX) Intermodulation protection 0 dBm For 1% PER, measured as sensitivity 31 / 35
[35 / 38]
41
[45]
50 43
-60
-53 50 dB dB dB For 1% PER with wanted signal 3dB above sensitivity, as per 802.15.4 section 6.5.3.4
(modulated interferer) For 1% PER with wanted signal 3dB above sensitivity, as per 802.15.4 section 6.5.3.4
(modulated interferer) For 1% PER with wanted signal 3dB above sensitivity, measured as per 802.15.4 section 6.5.3.4 dB
-57
-47 dBm dB 30MHz to 1GHz 1GHz to 12GHz For 1% PER at with wanted signal 3dB above sensitivity. Modulated Interferers at 2 & 4 channel separation RSSI linearity
-4
+4 dB
-95 to -10dBm Transmitter Characteristics Transmit power Transmit power (boost) Output power control range Spurious emissions
(TX) EVM [offset]
Transmit Power Spectral Density 0
+1.5
+2.7
-30.1
-59
-47 15 [4.5]
-37
-36
-43
-47 25
-20 dBm dBm dB in 5 6dB steps dBm 30MHz to 1GHz, 1GHz to12.5GHz, The following exceptions apply 1.8 to 1.9GHz & 5.15 to 5.3GHz
At maximum output power dBc At greater than 3.5MHz offset, as per 802.15.4, section 6.5.3.1 60 JN-DS-JN5139 v1.5 Jennic 2008 17.3.12.2 Radio parameters: 2.2-3.6V, -40C Parameter Min Typical Max Unit Notes Receiver Characteristics Jennic Jennic Jennic Jennic
-4
-1 Receive sensitivity Maximum input signal Adjacent channel rejection
-1 channel / +1 channel Alternate channel rejection Other in band rejection Out of band rejection Spurious emissions
(RX) Intermodulation protection RSSI linearity Transmit power Transmit power (boost) Output power control range Spurious emissions
(TX) EVM [offset]
Transmit Power Spectral Density
-97 31 / 35 42 40 40
-60
-53 50 0 dBm dBm dB dB dB Nominal for 1% PER, as per 802.15.4 section 6.5.3.3 For 1% PER, measured as sensitivity For 1% PER with wanted signal 3dB above sensitivity, as per 802.15.4 section 6.5.3.4 For 1% PER with wanted signal 3dB above sensitivity, as per 802.15.4 section 6.5.3.4 2.4 to 2.4835 GHz, excluding adjacent channels For 1% PER with wanted signal 3dB above sensitivity, measured as per 802.15.4 section 6.5.3.4 dB
-57
-47 dBm dB 30MHz to 1GHz 1 to 12GHz For 1% PER at with wanted signal 3dB above sensitivity. Modulated Interferers at 2 & 4 channel separation
+4 dB
-95 to -10dBm Transmitter Characteristics
+2
+3
-29.3
-59
-46 20 [6.2]
-36
-36
-43
-47 30
-20 dBm dBm dB in 5 6dB steps dBm 30MHz to 1GHz, 1GHz to12.5GHz, The following exceptions apply 1.8 to 1.9GHz &
5.15 to 5.3GHz
At maximum output power dBc At greater than 3.5MHz offset, as per 802.15.4, section 6.5.3.1 Jennic 2008 JN-DS-JN5139 v1.5 61 Jennic Jennic Jennic Jennic 17.3.12.3 Radio parameters: 2.2-3.6V, +85C Parameter Min Typical Max Unit Notes Receiver Characteristics Receive sensitivity Maximum input signal Adjacent channel rejection
-1 channel / +1 channel Alternate channel rejection Other in band rejection Out of band rejection Spurious emissions
(RX) Intermodulation protection
-94 27 / 35 44 44 44
-60
-54 51 0 dBm dBm dB dB dB Nominal for 1% PER, as per 802.15.4 section 6.5.3.3 For 1% PER, measured as sensitivity For 1% PER with wanted signal 3dB above sensitivity, as per 802.15.4 section 6.5.3.4 For 1% PER with wanted signal 3dB above sensitivity, as per 802.15.4 section 6.5.3.4 2.4 to 2.4835 GHz, excluding adjacent channels For 1% PER with wanted signal 3dB above sensitivity, measured as per 802.15.4 section 6.5.3.4 dB
-57
-47 dBm dB 30MHz to 1GHz 1GHz to 12GHz For 1% PER at with wanted signal 3dB above sensitivity. Modulated Interferers at 2 & 4 channel separation RSSI linearity
-4
+4 dB
-95 to -10dBm Transmit power Transmit power (boost) Output power control range Spurious emissions
(TX) EVM [offset]
Transmit Power Spectral Density Transmitter Characteristics
-1.3
+0.6
-35
-59
-50 12 [3.6]
-38
-36
-43
-47 25
-20 dBm dBm dB in 5 steps of 6dB dBm 30MHz to 1GHz, 1GHz to12.5GHz, The following exceptions apply 1.8 to 1.9GHz &
5.15 to 5.3GHz
At maximum output power dBc At greater than 3.5MHz offset, as per 802.15.4, section 6.5.3.1 62 JN-DS-JN5139 v1.5 Jennic 2008 Appendix A Mechanical and Ordering Information A.1 56pin QFN Package Drawing Jennic Jennic Jennic Jennic Controlling Dimension: mm Symbol A A1 A2 A3 b D D1 D2 E E1 E2 L e 1 R millimetres Min.
0.00
Nom. Max.
0.01 0.65 0.9 0.05 0.7 0.20 Ref. 0.2 0.25 0.3 8.00 bsc 7.75 bsc 6.20 6.40 6.60 8.00 bsc 7.75 bsc 6.20 0.30 0 0.09 6.40 0.40 6.60 0.50 0.50 bsc
12
Tolerances of Form and Position aaa bbb ccc 0.10 0.10 0.05 Jennic 2008 JN-DS-JN5139 v1.5 63 Jennic Jennic Jennic Jennic A.2 PCB Decal The following PCB decal is recommended; all dimensions are in millimetres (mm). 64 JN-DS-JN5139 v1.5 Jennic 2008 A.3 Ordering Information The standard qualification for the JN5139 is Industrial Specification: -40C to +85C, packaged in a punched 56-pin QFN (Quad Flat No-leads) package. Jennic Jennic Jennic Jennic Ordering Format:
JN5139 - XXX - Y1 Part Numbers:
JN5139 Wireless microcontroller - 96kB RAM XXX:
ROM Variant:
001 Z01 IEEE802.15.4 stack ZigBee stack Y1:
Shipping:
T V X Y Tape mounted 2500 devices on a 13 reel Tape mounted 1000 devices on a 13 reel Tape mounted 500 devices on a 7 reel Tape mounted up to 500 devices (no reel) Ordering Examples:
Part Number Description JN5139-001-X JN5139 IEEE802.15.4 Wireless Microcontroller 500 devices on a 7 reel JN5139-Z01-V JN5139 ZigBee Wireless Microcontroller - 1000 devices on a 13 reel Jennic 2008 JN-DS-JN5139 v1.5 65 Jennic Jennic Jennic Jennic A.4 Device Package Marking The diagram below shows the package markings for JN5139 devices. The package on the left along with the legend information below it, shows the general format of package marking. The package on the right shows the specific markings for a JN5139-Z01 device, that came from assembly build number 1000004 and was manufactured week 4 of 2007. Jennic JNXXXX-SSS FFFFFFF YYWW Jennic JN5139-Z01 1000004 0704 Legend:
JN XXXX SSS Jennic 4 digit part number, for example 5139 3 digit software ROM identifier FFFFFFF 7 digit assembly build number YY WW 2 digit year number 2 digit week number Where this Data Sheet is denoted as Advanced or Preliminary, devices will be either Engineering or Prototype Samples. Devices of this status have an R suffix after the software ROM identifier, for example JN5139-Z01R. Devices may also have an additional digit immediately after the R suffix, for example R1, R2, R3 etc. This additional digit is use to identify different revisions of engineering or prototype silicon during these product phases. 66 JN-DS-JN5139 v1.5 Jennic 2008 A.5 Tape and Reel Information A.5.1 Tape Orientation and Dimensions The general orientation of the 56QFN package in the tape is as shown in Figure 42. Jennic Jennic Jennic Jennic Figure 44: Tape and Reel orientation Figure 43 shows the detailed dimensions of the tape used for 8x8mm 56QFN devices. Reference Ao Bo Ko P T W Dimensions (mm) 8.30 0.10 8.30 0.10 1.10 0.10 12.00 0.10 0.30 0.10 16.00 +0.30/-0.10 Figure 45: Tape Dimensions Jennic 2008 JN-DS-JN5139 v1.5 67 Jennic Jennic Jennic Jennic A.5.2 Reel Information: 7 Reel Surface Resistivity Between 10e9 10e11 Ohms Square Material High Impact Polystyrene, environmentally friendly, recyclable All dimensions and tolerances are fully compliant with EIA-481-B and are specified in millimetres. 6 window design with one window on each side blanked to allow adequate labelling space. Tape Width A B (min) C N W (min) W (max) 16 180 1.5min 13 0.2 60 +0.1 0.0 16.40 17.90 Figure 46: Reel Dimensions 68 JN-DS-JN5139 v1.5 Jennic 2008 Jennic Jennic Jennic Jennic A.5.3 Reel Information: 13 Reel Surface Resistivity Between 10e9 10e11 Ohms Square Material High Impact Polystyrene with Antistatic Additive All dimensions and tolerances are fully compliant with EIA-481-B and are specified in millimetres. 3 window design to allow adequate labelling space. Tape Width A B (min) C D (min) N (min) W (min) W (max) 16 330 1.5 13 +0.5 -0.2 20.2 100 15.90 19.40 Figure 47: Reel Dimensions A.5.4 Dry Pack Requirement for Moisture Sensitive Material Moisture sensitive material, as classified by JEDEC standard J-STD-033, must be dry packed. The 56 lead QFN package is MSL2A/260C, and is dried before sealing in a moisture barrier bag (MBB) with desiccant bag weighing at 67.5 grams of activated clay and a 6 spot humidity indicator card (HIC) meeting MIL-L-8835 specification. The MBB has a moisture-sensitivity caution label to indicate the moisture-sensitive classification of the enclosed devices. Jennic 2008 JN-DS-JN5139 v1.5 69 Jennic Jennic Jennic Jennic A.6 PCB Design and Reflow Profile PCB and land pattern designs are key to board level reliability, and Jennic strongly recommends that users follow the design rules listed in IPC-SM-782. For reflow profiles, it is recommended to follow the reflow profile in Figure 48 as a guide, as well as the paste manufacturers guidelines on peak flow temperature, soak times, time above liquidus and ramp rates. Figure 48: Reflow Profile 70 JN-DS-JN5139 v1.5 Jennic 2008 Appendix B Development Support B.1 Crystal Oscillator 16MHz Crystal Requirements Parameter Min Typ Max Notes Jennic Jennic Jennic Jennic Crystal Frequency Crystal Tolerance Crystal ESR (Rm) 1 20 Crystal Load Capacitance (CL) External Capacitors (C1 & C2) B.1.1 Crystal Equivalent Circuit 16MHz 40ppm Including temperature and ageing 60 See below for more details See below for more details Total external capacitance needs to be 2*CL. , allowing for stray capacitance from chip, package and PCB 9pF 15pF Cs Lm Rm Cm C1 C2 Where mC is the motional capacitance mL is the motional inductance. This together with mC defines the oscillation frequency (series) mR is the equivalent series resistance ( ESR ). SC is the shunt or package capacitance and this is a parasitic Jennic 2008 JN-DS-JN5139 v1.5 71 Jennic Jennic Jennic Jennic B.1.2 Crystal Load Capacitance The crystal load capacitance is the total capacitance seen at the crystal pins, from all sources. As the load capacitance (CL) affects the oscillation frequency by a process known as pulling, crystal manufacturers specify the frequency for a given load capacitance only. A typical pulling coefficient is 15ppm/pF, to put this into context the maximum frequency error in the IEEE802.15.4 specification is +/-40ppm for the transmitted signal. Therefore, it is important for resonance at 16MHz exactly, that the specified load capacitance is provided. The load capacitance can be calculated using:
C T 1
C T 2 C T 2 CL =
1 T C CC
1 C T 1
C 1 P 1 in Total capacitance Where is the on-chip parasitic capacitance and is about 1.4pF typically. 1C is the capacitor component PC1 is the PCB parasitic capacitance. With the recommended layout this is about 1.6pF inC1 Similarly for Hence for a 9pF load capacitance, and a tight layout the external capacitors should be 15pF 2TC B.1.3 Crystal ESR and Required Transconductance The resistor in the crystal equivalent circuit represents the energy lost. To maintain oscillation, power must be supplied by the amplifier, but how much? Firstly, the Pi connected capacitors C1 and C2 with CS from the crystal, apply an impedance transformation to Rm, when viewed from the amplifier. This new value is given by:
R m
CCR m
S C L L 2 The amplifier is a transconductance amplifier, which takes a voltage and produces an output current. The amplifier together with the capacitors C1 and C2, form a circuit, which provides a negative resistance, when viewed from the crystal. The value of which is given by:
R NEG
g m C T 1 C T 2 2 Where mg is the transconductance is the frequency in rad/s Derivations of these formulas can be easily found in textbooks. In order to give quick and reliable oscillator start-up, a common rule of thumb is to set the amplifier negative resistance to be a minimum of 4 times the effective crystal resistance. This gives 72 g m T C 2 C T 1 2 4 CCR m L
S C L 2 JN-DS-JN5139 v1.5 Jennic 2008 This can be used to give an equation for the required transconductance. 4 R g m 2 m S
CCC CC T T 1 1 T 2
) CC T 1 T 2 Jennic Jennic Jennic Jennic
22 T Example: Using typical parameters of mR =40, equation above gives the required transconductance ( mg ) as 647uA/V. The JN5139 has a typical value for transconductance of 1.25mA/V 2TC =18pF ( for a load capacitance of 9pF), the SC =1pF and 1TC =
The example and equation illustrate the trade-off that exists between the load capacitance and crystal ESR. For example, a crystal with a higher load capacitance can be used, but the value of max. ESR that can be tolerated is reduced. Also note, that the circuit sensitivity to external capacitance [ C1 , C2 ] is a square law. Below is measurement data showing the variation of the crystal oscillator amplifier transconductance with temperature and supply voltage, notice how small the variation is. Circuit techniques have been used to apply compensation, such that the user need only design for nominal conditions.
V A m
e c n a t c u d n o c s n a r T Crystal Oscillator Transconductance Versus Temperature
(VDD=3V) 1.285 1.28 1.275 1.27 1.265 1.26 1.255 1.25 1.245
-40
-20 0 20 40 60 80 100 Temperature (C) Crystal Oscillator Transconductance Versus Supply Voltage
(Temp=25C)
V A m
e c n a t c u d n o c s n a r T 1.32 1.3 1.28 1.26 1.24 1.22 1.2 2.2 2.4 2.6 2.8 3.0 3.2 3.4 3.6 Supply Voltage (VDD) Jennic 2008 JN-DS-JN5139 v1.5 73 Jennic Jennic Jennic Jennic B.2 16MHz Oscillator The JN5139 contains the necessary on-chip components to build a 16 MHz reference oscillator with the addition of an external crystal resonator and two tuning capacitors. The schematic of these components are shown in Figure 49. The two capacitors, C1 and C2, should be 15pF 5% and use a COG dielectric. For a detailed specification of the crystal required see Appendix B.1. JN5139 XTALIN R1 XTALOUT C1 C2 Figure 49: Crystal oscillator connections The clock generated by this oscillator provides the reference for most of the JN5139 subsystems, including the transceiver, processor, memory and digital and analogue peripherals. 74 JN-DS-JN5139 v1.5 Jennic 2008 B.3 Applications Information B.3.1 Typical Application Schematic Jennic Jennic Jennic Jennic Two Wire Serial Port Vcc Timers C13 UART 0 UART 1 RESET C10 Y1 C11 C15 C8 K L C _ F S I T U O 1 M T I P A C 1 M T I D _ F S I T G _ K C 1 M T I T U O 0 M T I P A C 0 M T I 2 D D V T G _ K C 0 M T I 0 D X R 0 D X T 0 S T R 0 S T C 4 L E S P S I 43 Jennic IC1: JN5139 PADDLE I/O Line 1 CTS1 VB_DIG2 C7 RTS1 TXD1 RXD1 VSS2 RESETN VSS3 VSSS XTALOUT XTALIN VB_SYN VCOTUNE SPISEL3 SPISEL2 VB_MEM VSS1 SPISEL1 SPISEL0 MOSI VB_DIG1 MISO SPICLK COMP2M COMP2P DAC2 29 DAC1 C9 R4 Vcc 15 O C V _ B V 1 D D V M 1 P M O C P 1 P M O C C2 C12 S A B I I P F R F R _ B V M F R F E R V 1 C D A 2 C D A 3 C D A 4 C D A A _ B V C4 C1 C3 R9 SPI Selects C6 Vcc IC2 Serial Flash Memory Vcc 1 2 3 4 SS Vcc SDO HOLD WP Vss CLK SDI 8 7 6 5 C5 NOTES:
1) VB_SYN and VB_REF should have an additional 47pF capacitor to ground. 2) A 10uF tantalum capacitor is reuiired between VCC and ground. Analogue IO Printed Antenna Figure 50: Application Schematic Components C1, C2, C3, C4, C5, C6, C7, C12, C13, C15 C10, C11 C9 C8 R4 R9 Y1 IC1 IC2 Values 100nF 15pF (COG) 3n3F 330pF (COG) 4k7 43k TSX-10A 16MHz Crystal TN4-25820 JN5139 128kB Serial Flash Table 6: Bill of Materials Jennic 2008 JN-DS-JN5139 v1.5 75 Jennic Jennic Jennic Jennic B.3.2 PCB Requirements Jennic recommend that a standard 4layer printed circuit board be used for design, with the individual layers organised as shown below in . Copper (0.5 oz 17 m) Dielectric FR4 pre-preg 0.009 x 1 Copper (0.5 oz 17 m) Dielectric FR4 0.02 x 1 Copper (0.5 oz 17 m) Dielectric FR4 pre-preg 0.009 x 1 Copper (0.5 oz 17 m) Top Metal Dielectric 1 Mid 1 metal Dielectric 2 Mid 2 metal Dielectric 3 Bottom metal Total Dimension Dimension (mm) Description 0.017 0.2286 0.017 0.508 0.017 0.2286 0.017 1.0322 0.5oz copper Er = 4.2 to 4.4 Dimension A 0.5oz copper Er = 4.2 to 4.4 Dimension B 0.5oz copper Er = 4.2 to 4.4 Dimension A 0.5oz copper Figure 51: PCB Cross-Section A B A Tolerance (mm) 0.01 0.01 0.01 From top to bottom, the layers are:
Component Ground Digital tracks Power and tracks The material is standard FR4. While no special measures are required for the board design, it is recommended that Class 1 tolerances be used.
Note: The Jennic PCB layout assumes the layers defined above. If a different PCB thickness is used then the RF track thickness and layout will need to be re-assessed. 76 JN-DS-JN5139 v1.5 Jennic 2008 Jennic Jennic Jennic Jennic B.3.3 Supply Decoupling C12 is the decoupling capacitor for the analogue areas of IC1. It is placed as close as possible to the IC1 pin VDD1. C13 is the decoupling capacitor for the digital areas of IC1. It is also used to decouple the supply on the Flash memory due to:
placement of the Flash memory power pin (IC2 Pin 8) next to the IC1 Pin VDD2 the fact that the Flash memory is only used during booting (unless reprogramming), so the RF areas of the device are not active. B.3.4 Reference Oscillator Requirements The device contains the necessary on-chip components to build a 16-MHz reference oscillator with the addition of an external crystal resonator. The schematic in Figure 50: Application Schematic shows the crystal circuit in the form of capacitors C10 and C11, together with a crystal resonator Y1. The reference crystal serves many purposes, including the provision of a reference for the 32-bit RISC processor, radio and analogue peripherals. In addition, the crystal also provides timing references for external I/O (e.g. on-chip UARTs) and timer counters. Thus, it is important that the crystal reference is specified and built correctly to ensure that the system functions properly. The external crystal resonator, Y1, is connected to IC1 via two coupling capacitors, C10 and C11, that should be 15pF 5% and use a C0G dielectric the 15pF will need to vary for alternate crystals. This is important, in order to ensure that the oscillator Q-factor is maximised and the temperature co-efficient is minimised. The choice of crystal resonator is important for the following reasons:
Resonator tolerance: A number of parameters, ranging from on-chip timings to radio centre-frequency, are derived directly from the tolerance of the crystal. As indicated in the component list, we recommend that a total tolerance of less than 35ppm is used, as the maximum permissible offset specified in IEEE 802.15.4 is 40 ppm. Also note that this tolerance should include both temperature and ageing effects imparted on the resonator. Resonator load capacitance: The active oscillator components on the JN5121 and JN5139 series devices are designed for a crystal resonator with load capacitance of 9 pF. This is a standard loading, and resonators of this type are widely available. B.3.5 Reference Oscillator Layout Considerations The layout of the oscillator circuit is such that the components are close together. This improves the performance of the oscillator by reducing parasitic impedance and the likelihood of cross-talk. We also recommend that the symmetry of layout be maximised in order to avoid uneven loading of the crystal resonator. B.3.6 VCO Tune Circuit Component Specifications Jennic wireless microcontroller devices employ an RF Phase Locked Loop (PLL). With respect to the schematic in Figure 50: Application Schematic, the only external components required on the printed circuit board are two capacitors, C8 and C9, together with the resistor R4.
! Caution: It is essential that the component values advised here are followed, since their substitution could lead to failure in the PLL. Jennic 2008 JN-DS-JN5139 v1.5 77 Jennic Jennic Jennic Jennic B.3.7 VCO Tune Circuit Layout Considerations The layout of these components is such that all three components are close together, and close to the VCO_TUNE and VB_VCO pins on the wireless microcontroller IC. This improves the performance of the PLL by reducing parasitic impedance and the likelihood of cross-talk. B.3.8 Radio Front-End The radio part of the wireless microcontroller device has an internal transmit-receive switch connected to the external pins on the chip (RF- and RF+). The PHY controller of the radio configures the switch between transmit and receive. In both configurations, the connection to the device is a differential 200-ohm configuration. As an example of how this may be used, the 200-ohm differential antenna connection (RF- and RF+) can be fed to a miniature balun to convert to a single-ended 50-ohm microstrip line which, in turn, can be connected to a small ceramic antenna.
Note: The PCB layout is very important for all of the external radio connections and associated power supplies. In this respect, the tolerances indicated in Figure 51: PCB Cross-Section are particularly important B.3.9 Antennae There are many different antenna configurations that could function for a 2.4-GHz transceiver. The free-space wavelength at 2.4 GHz is approximately 12 cm, which means that a standard half-wave dipole would be approximately 6 cm. When advising on antenna design, it is dangerous to generalise. However, designers of any low-power radio device must strive to ensure that as little power as possible is wasted in producing a radio signal transmission. This involves careful consideration of the terms antenna efficiency, antenna directivity and antenna gain:
Antenna Efficiency: This is a measure of how much energy fed into the antenna feed is actually retained in the radio transmission. For example, a small antenna may exhibit an efficiency of approximately 50%, which means that half the power fed into or out of the antenna is wasted. Clearly, it is important to keep efficiency as high as possible. However, small antennae exhibit lower efficiency than large antennae. Antenna Directivity: An antenna radiation pattern indicates in which direction the power fed into an antenna actually radiates. In situations where antennae can be aligned to see each other, this can be advantageous. However, many situations do not allow this, since a path from one device to another may occur in any direction. In general, larger antennae have a greater ability to radiate in a specific direction. In antenna terminology, this is called the directivity. For instance, an antenna with a directivity of 3 dBi has the ability to radiate twice as much power in one direction when compared with a theoretical omni-directional antenna. This is fine if both antennae are aligned in this direction, but it is not good if they are misaligned. Antenna Gain: Often, the term gain is used when discussing antennae. This term should be treated with some caution since it is the product of efficiency and directivity. A poor-efficiency antenna with a high directivity can still exhibit a reasonable gain; however, power is still being wasted somewhere!
A list of antennae and suppliers can be found in the Application Note Antennae for use with JN51xx (JN-AN-1030), available on the Jennic web site. B.3.10 Ground Planes The recommendation for a four-layer design allows the best use of the ground planes, with this in mind the following restrictions should be placed on the layout:
All RF signals are confined to the top layer. 78 JN-DS-JN5139 v1.5 Jennic 2008 The second layer is Ground and has no tracks on it. This allows the best return path for all RF signals and will reduce noise effects. The bottom layer contains all other signals and the Vcc power supply for the module. The ground planes on all layers stop BEFORE the antenna, so that the performance of the antenna is not affected. The recommended antenna clearance for a surface-mounted ceramic antenna is shown below. Jennic Jennic Jennic Jennic 20 CLEARANCE
(no ground plane) 50 transmission line ANTENNA CHIP 20 20 CLEARANCE
(no ground plane) Dimensions in mm Figure 52: Antenna Clearance Recommendations B.3.11 Manufacturing Considerations The TQFN package must be considered carefully when using reflow solder techniques. The following are recommendations:
The decal is shown in Figure 53. The pad stacks used are 0.25 mm by 1 mm for the smaller pads, and a 6.4-
mm square pad for the paddle. Figure 53: Recommended PCB Decal for 56QFN Package The solder mask used is shown in Figure 54. The pad stacks used are 0.25 mm by 1 mm for the smaller pads, and two 2-mm square pads to apply paste to the paddle. The solder paste mask has a thickness of 6 thou
(0.152 mm). Jennic 2008 JN-DS-JN5139 v1.5 79 Jennic Jennic Jennic Jennic Figure 54: Recommended Solder Paste Mask for 56QFN Package Nine vias are applied to the paddle. These allow excess solder paste and heated air to be vented away from the device, preventing the device from being lifted during soldering. Figure 55: Vias on the Paddle of the 56QFN Package B.3.12 Bespoke Solutions - PCB Layout Suggestions The list presented below provides some key suggestions when using a wireless microcontroller on a bespoke, multi-
layer PCB. Clearly, the list is not exhaustive and you may have more detailed considerations in using mixed-signal integrated circuits. 80 Shared vias: Often in layout, it is convenient for a number of components to share a return to Analog Ground. Examples include bypass capacitors and reference setting resistors. We recommend that all components are given a separate via to ground. This avoids noise feed-through and poor isolation issues that often occur if a via is shared. Oscillator circuit: We recommend that tracks from the oscillator pins are kept to the same length and, ideally, on the top layer. This avoids asymmetrical loading of the crystal resonator. The placement of the two capacitors should be symmetrical to the crystal. This also avoids asymmetrical loading of the reference oscillator. JN-DS-JN5139 v1.5 Jennic 2008 Jennic Jennic Jennic Jennic VCOTune circuit: The components defined in the schematic should be used in order to set the PLL bandwidth correctly. It is also essential to keep these components close to the chip, with minimum track lengths. B.3.13 Using a Balun When using a single ended antenna, the wireless microcontroller will use a balun and should be connected as indicated in Figure 56. The tracks between IC1 pins RF+ and RF-, and the balanced side of the balun, are on the top layer. These are impedance-controlled tracks, designed to provide the 200-ohm differential matched impedance required by the device at its RF port. With the exception of the via connected to the VB_RF pin, other nearby tracks should be placed such that there is at least three times the track width of unbroken ground on either side and underneath the tracks. The other side of the balun should be connected to the antenna. This track is an unbalanced microstrip RF track operating at 2.4 GHz. It should be impedance controlled to 50 ohms for a good RF input match. GND plane to be cut underneath differential tracks Top View To wireless microcontroller Track widths to give 200 ohm differential line Track width to give 50 ohm line GND BALUN GND Figure 56: Connecting the Balun B.3.14 Decoupling Capacitors Three capacitors should be used:
Two ceramic 100-nF capacitors - one should be placed close to pin VDD1, the other should be placed close to pin VDD2 One 10-F electrolytic capacitor connected to ground - if the PCB is a module then place this capacitor close to the point where the power enters the module. Jennic 2008 JN-DS-JN5139 v1.5 81 Jennic Jennic Jennic Jennic B.3.15 Internal Regulator Smoothing Capacitors A ceramic 100-nF capacitor should be connected to each of the following pins. Place these capacitors close to the device and make the tracks as thick as possible to improve RF bypass/decoupling. Some pins require an additional 47-pF capacitor. Details are given below. Pin Name VB_DIG1 VB_SYN VB_VCO VB_RF VB_A VB_DIG2 VB_MEM 47-pF Capacitor Required
B.3.16 VREF A ceramic 100-nF capacitor should be placed as close as possible to the VREF pin. B.3.17 IBIAS A 43-k resistor should be connected as close as possible to the IBIAS pin. B.3.18 EMC For good EMC performance, it is necessary to minimise any ground loops when laying out the PCB. 82 JN-DS-JN5139 v1.5 Jennic 2008 Jennic Jennic Jennic Jennic Appendix C Related Documents
[1] IEEE Std 802.15.4-2003 IEEE Standard for Information technology Part 15.4 Wireless Medium Access Control
(MAC) and Physical Layer (PHY) Specifications for Low-Rate Wireless Personal Area Networks (LR-WPANs)
[2] JN-AN-1003 Boot Loader Operation
[3] JN-AN-1062 Using OTP eFuse Memory
[4] JN-AN-1038 Programming Flash devices not supported by the JN51xx ROM-based bootloader RoHS Compliance JN5139 devices meet the requirements of Directive 2002/95/EC of the European Parliament and of the Council on the Restriction of Hazardous Substance (RoHS). Status Information The status of this Data Sheet is Production. Jennic products progress according to the following format:
Advanced The Data Sheet shows the specification of a product in planning or in development. The functionality and electrical performance specifications are target values and may be used as a guide to the final specification. Integrated circuits are identified with an R suffix, for example JN5139-Z01R. Jennic reserves the right to make changes to the product specification at anytime without notice. Preliminary The Data Sheet shows the specification of a product that is in production, but is not yet fully qualified. The functionality of the product is final. The electrical performance specifications are target values and may used as a guide to the final specification. Integrated circuits are identified with an R suffix, for example JN5139-Z01R. Jennic reserves the right to make changes to the product specification at anytime without notice. Production This is the final Data Sheet for the product; all product characterization is completed. All functional and electrical performance specifications where included, including min and max values are final. This Data Sheet supersedes all previous document versions. Jennic reserves the right to make changes to the product specification at anytime to improve its performance. Jennic 2008 JN-DS-JN5139 v1.5 83 Jennic Jennic Jennic Jennic Disclaimers The contents of this document are subject to change without notice. Jennic reserves the right to make changes, without notice, in the products, including circuits and/or software, described or contained herein in order to improve design and/or performance. Information contained in this document regarding device applications and the like is intended through suggestion only and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. Jennic warrants performance of its hardware products to the specifications applicable at the time of sale in accordance with Jennics standard warranty. Testing and other quality control techniques are used to the extent Jennic deems necessary to support this warranty. Except where mandatory by government requirements, testing of all parameters of each product is not necessarily performed. Jennic assumes no responsibility or liability for the use of any of these products, conveys no license or title under any patent, copyright, or mask work right to these products, and makes no representations or warranties that these products are free from patent, copyright, or mask work infringement, unless otherwise specified. Jennic products are not intended for use in life support systems, appliances or systems where malfunction of these products can reasonably be expected to result in personal injury, death or severe property or environmental damage. Jennic customers using or selling these products for use in such applications do so at their own risk and agree to fully indemnify Jennic for any damages resulting from such use. All trademarks are the property of their respective owners. Version Control Version 1.0 1.1 1.2 1.3 1.4 1.5 Notes 22rd December 2006 - First Release 9th February 2007 Added solder reflow profile 16th July 2007 uplifted to Preliminary status, typical specification updates, internal reset modifications 31st July 2007 updates to DC current consumptions 26th October 2007 updated applications information, added PCB decal including paddle details 23rd April 2008 Product has now been fully characterised 84 JN-DS-JN5139 v1.5 Jennic 2008 Jennic Jennic Jennic Jennic Contact Details Corporate Headquarters Jennic Ltd, Furnival Street Sheffield S1 4QT, UK Tel: +44 (0)114 281 2655 Fax: +44 (0) 114 281 2951 info@jennic.com www.jennic.com Jennic Ltd Japan Osakaya building 4F 1-11-8 Higashigotanda Shinagawa-ku Tokyo 141-0022, Japan Tel: +81 3 5449 7501 Fax: +81 3 5449 0741 info@jp.jennic.com www.jennic.com Jennic Ltd Taiwan 19F-1, 182, Sec.2 Tun Hwa S. Road. Taipei 106, Taiwan Tel: +886 2 2735 7357 Fax: +886 2 2739 5687 info@tw.jennic.com www.jennic.com Jennic America Inc 1060 First Avenue, Suite 400 King of Prussia, PA 19406, USA Tel: +1 484 868 0222 Fax: +1 484 971 5015 info@us.jennic.com www.jennic.com Jennic Ltd Korea 601, Bethel B/D, #324-1, Yangjae-dong Seocho-ku, Seoul, Korea Tel: +82 2 552 5325 Fax: +82 2 577 9130 info@kr.jennic.com www.jennic.com Jennic 2008 JN-DS-JN5139 v1.5 85
frequency | equipment class | purpose | ||
---|---|---|---|---|
1 | 2009-03-29 | 2400 ~ 2483.5 | DTS - Digital Transmission System | Class II permissive change or modification of presently authorized equipment |
2 | 2007-04-19 | 2400 ~ 2483.5 | DTS - Digital Transmission System | Original Equipment |
app s | Applicant Information | |||||
---|---|---|---|---|---|---|
1 2 | Effective |
2009-03-29
|
||||
1 2 |
2007-04-19
|
|||||
1 2 | Applicant's complete, legal business name |
NXP Laboratories UK Ltd
|
||||
1 2 | FCC Registration Number (FRN) |
0014596860
|
||||
1 2 | Physical Address |
Furnival St
|
||||
1 2 |
Sheffield, N/A S1 4QT
|
|||||
1 2 |
United Kingdom
|
|||||
app s | TCB Information | |||||
1 2 | TCB Application Email Address |
p******@tracglobal.com
|
||||
1 2 |
m******@trlcompliance.com
|
|||||
1 2 | TCB Scope |
A4: UNII devices & low power transmitters using spread spectrum techniques
|
||||
app s | FCC ID | |||||
1 2 | Grantee Code |
TYO
|
||||
1 2 | Equipment Product Code |
JN5139M3
|
||||
app s | Person at the applicant's address to receive grant or for contact | |||||
1 2 | Name |
C****** F******
|
||||
1 2 | Telephone Number |
+44 1********
|
||||
1 2 | Fax Number |
+44 1********
|
||||
1 2 |
c******@nxp.com
|
|||||
app s | Technical Contact | |||||
1 2 | Firm Name |
Jennic Ltd.
|
||||
1 2 | Name |
C****** F****
|
||||
1 2 | Physical Address |
Furnival Street
|
||||
1 2 |
S1 4QT
|
|||||
1 2 |
United Kingdom
|
|||||
1 2 | Telephone Number |
+4411********
|
||||
1 2 | Fax Number |
+4411********
|
||||
1 2 |
c******@jennic.com
|
|||||
app s | Non Technical Contact | |||||
n/a | ||||||
app s | Confidentiality (long or short term) | |||||
1 2 | Does this application include a request for confidentiality for any portion(s) of the data contained in this application pursuant to 47 CFR § 0.459 of the Commission Rules?: | No | ||||
1 2 | Long-Term Confidentiality Does this application include a request for confidentiality for any portion(s) of the data contained in this application pursuant to 47 CFR § 0.459 of the Commission Rules?: | No | ||||
if no date is supplied, the release date will be set to 45 calendar days past the date of grant. | ||||||
app s | Cognitive Radio & Software Defined Radio, Class, etc | |||||
1 2 | Is this application for software defined/cognitive radio authorization? | No | ||||
1 2 | Equipment Class | DTS - Digital Transmission System | ||||
1 2 | Description of product as it is marketed: (NOTE: This text will appear below the equipment class on the grant) | IEEE 802.15.4 Wireless Microcontroller | ||||
1 2 | JN5139-000-M03 IEEE802.15.4 Wireless Transmitter | |||||
1 2 | Related OET KnowledgeDataBase Inquiry: Is there a KDB inquiry associated with this application? | No | ||||
1 2 | Modular Equipment Type | Single Modular Approval | ||||
1 2 | Purpose / Application is for | Class II permissive change or modification of presently authorized equipment | ||||
1 2 | Original Equipment | |||||
1 2 | Composite Equipment: Is the equipment in this application a composite device subject to an additional equipment authorization? | No | ||||
1 2 | Related Equipment: Is the equipment in this application part of a system that operates with, or is marketed with, another device that requires an equipment authorization? | No | ||||
1 2 | Grant Comments | Output power listed is conducted. Modular Approval for mobile RF Exposure conditions, The antennas used for this transmitter must not be co-located or operating in conjunction with any other antenna or transmitter. Approval is limited to OEM installation only. OEM integrators must be provided with antenna installation instructions. OEM integrators and end-users must be provided with transmitter operating conditions for satisfying RF exposure compliance. This grant is valid only when the device is sold to OEM integrators and the OEM integrators are instructed to ensure that the end user has no instructions to remove or install the device. The only antennas approved for use with this module are those documented in the filings under this FCC ID. This Grant covers the following module variants: JN5139-T01-C13, JN5139-J1-C13, JN5139-001-M3 and JN5139-Z01-M3 | ||||
1 2 | Output power listed is conducted. Modular Approval for mobile RF Exposure conditions, the antenna(s) used for this transmitter must be installed to provide a separation distance of at least 20cm from all persons and must not be co-located or operating in conjunction with any other antenna or transmitter. Approval is limited to OEM installation only. OEM integrators must be provided with antenna installation instructions. OEM integrators and end-users must be provided with transmitter operating conditions for satisfying RF exposure compliance. This grant is valid only when the device is sold to OEM integrators and the OEM integrators are instructed to ensure that the end user has no instructions to remove or install the device. The only antennas approved for use with this module are those documented in the filings under this FCC ID. | |||||
1 2 | Is there an equipment authorization waiver associated with this application? | No | ||||
1 2 | If there is an equipment authorization waiver associated with this application, has the associated waiver been approved and all information uploaded? | No | ||||
app s | Test Firm Name and Contact Information | |||||
1 2 | Firm Name |
R.N. Electronics Ltd.
|
||||
1 2 | Name |
R**** R****
|
||||
1 2 | Telephone Number |
44-12********
|
||||
1 2 | Fax Number |
44-12********
|
||||
1 2 |
r******@RNelectronics.com
|
|||||
Equipment Specifications | |||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Line | Rule Parts | Grant Notes | Lower Frequency | Upper Frequency | Power Output | Tolerance | Emission Designator | Microprocessor Number | |||||||||||||||||||||||||||||||||
1 | 1 | 15C | 2400.00000000 | 2483.50000000 | 0.0030000 | ||||||||||||||||||||||||||||||||||||
Line | Rule Parts | Grant Notes | Lower Frequency | Upper Frequency | Power Output | Tolerance | Emission Designator | Microprocessor Number | |||||||||||||||||||||||||||||||||
2 | 1 | 15C | 2400.00000000 | 2483.50000000 | 0.0030000 | JN5139 |
some individual PII (Personally Identifiable Information) available on the public forms may be redacted, original source may include additional details
This product uses the FCC Data API but is not endorsed or certified by the FCC