Nrf24E2: 2.4Ghz RF Transmitter With Embedded 8051 Compatible Microcontroller and 9 Input, 10 Bit Adc
Nrf24E2: 2.4Ghz RF Transmitter With Embedded 8051 Compatible Microcontroller and 9 Input, 10 Bit Adc
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 1 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
TABLE OF CONTENT
1 GENERAL DESCRIPTION ...................................................................................4
1.1 Quick Reference Data.......................................................................................4
1.2 Block Diagram..................................................................................................5
1.3 Pin Diagram ......................................................................................................6
1.4 Glossary of Terms.............................................................................................8
2 ARCHITECTURAL OVERVIEW .........................................................................9
2.1 Microcontroller.................................................................................................9
2.2 PWM...............................................................................................................10
2.3 SPI ..................................................................................................................10
2.4 Port Logic .......................................................................................................11
2.5 Power Management ........................................................................................11
2.6 RTC Wakeup Timer, Watchdog and RC Oscillator .......................................11
2.7 XTAL Oscillator.............................................................................................11
2.8 AD Converter .................................................................................................11
2.9 Radio Transmitter ...........................................................................................12
3 I/O PORTS ............................................................................................................13
3.1 I/O port behavior during RESET....................................................................13
3.2 Port 0 (P0).......................................................................................................13
3.3 Port 1 (P1 or SPI port) ....................................................................................14
4 nRF2401 2.4GHz TRANSMITTER SUBSYSTEM .............................................18
4.1 RADIO port (Port 2).......................................................................................18
4.2 Modes of operation.........................................................................................20
4.3 Device configuration ......................................................................................23
4.4 Data package Description ...............................................................................28
4.5 Important RF Timing Data .............................................................................29
5 A/D CONVERTER ...............................................................................................32
5.1 A/D converter subsystem block diagram........................................................33
5.2 A/D converter registers...................................................................................33
5.3 A/D converter usage .......................................................................................34
5.4 A/D Converter timing.....................................................................................36
5.5 Analog interface guidelines ............................................................................37
6 PWM .....................................................................................................................38
7 INTERRUPTS.......................................................................................................39
7.1 Interrupt SFRs.................................................................................................39
7.2 Interrupt Processing ........................................................................................42
7.3 Interrupt Masking ...........................................................................................43
7.4 Interrupt Priorities...........................................................................................43
7.5 Interrupt Sampling ..........................................................................................44
7.6 Interrupt Latency.............................................................................................44
7.7 Interrupt Latency from Power Down Mode....................................................44
7.8 Single-Step Operation.....................................................................................44
8 WAKEUP TIMER AND WATCHDOG ..............................................................45
8.1 Tick calibration...............................................................................................45
8.2 RTC Wakeup timer.........................................................................................46
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 2 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
8.3 Watchdog........................................................................................................46
8.4 Reset ...............................................................................................................48
9 POWER SAVING MODES..................................................................................49
9.1 Idle Mode........................................................................................................49
9.2 Stop Mode.......................................................................................................50
9.3 Power down mode ..........................................................................................50
10 MICROCONTROLLER ....................................................................................52
10.1 Memory Organization .................................................................................52
10.2 Program format in external EEPROM ........................................................53
10.3 Instruction Set .............................................................................................54
10.4 Instruction Timing.......................................................................................60
10.5 Dual Data Pointers ......................................................................................60
10.6 Special Function Registers ..........................................................................61
10.7 SFR registers unique to nRF24E2...............................................................64
10.8 Timers/Counters ..........................................................................................66
10.9 Serial Interface ............................................................................................74
11 ELECTRICAL SPECIFICATIONS...................................................................83
12 PACKAGE OUTLINE.......................................................................................85
12.1 Package marking: ........................................................................................86
13 ABSOLUTE MAXIMUM RATINGS ...............................................................87
14 Peripheral RF Information .................................................................................88
14.2 PCB layout and de-coupling guidelines ......................................................89
15 Application example ..........................................................................................91
15.1 nRF24E2 with single ended matching network ..........................................91
15.2 PCB layout example....................................................................................93
16 Table of Figures .................................................................................................94
17 Table of Tables ..................................................................................................94
18 DEFINITIONS ...................................................................................................97
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 3 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
1 GENERAL DESCRIPTION
The nRF24E2 is the transmitter part of the nRF2401 2.4GHz radio transceiver plus an
embedded 8051 compatible microcontroller plus a 10-bit 9 input 100 kSPS AD
converter. The circuit is supplied by only one voltage in range 1.9V to 3.6V. The
nRF24E2 supports the proprietary and innovative modes of the nRF2401 such as
ShockBurst™.
nRF24E2 is also a subset of the nRF24E1 chip, which means that it contains all
functions of nRF24E1 except the radio receive functions, and it also means that it is
fully program compatible with nRF24E1.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 4 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
AIN1 UART0
ANT2
AIN2 nAD10100K Timer 0 nRF2401 VSS_PA = 0V
10-Bit 2.4GHz
AIN3 Timer 1
100kSPS Radio
AIN4 A/D converter Timer 2 Transmitter IREF
BIAS
AIN5 CPU 22kΩ
AIN6 8051 XC1
AIN7
compatible XTAL
Microcontroller oscillator
XC2
DVDD
WATCH- WAKEUP
PWM SPI
DOG timer
DVDD2 Power mgmt
Regulators
VDD
3
Reset
Low power
VSS Port logic
4
RC
oscillator
P1.0 (DIO0)
P1.1 (DIO1)
P0.0 (DIO2)
P0.1 (DIO3)
P0.2 (DIO4)
P0.3 (DIO5)
P0.4 (DIO6)
P0.5 (DIO7)
P0.6 (DIO8)
P0.7 (DIO9)
P1.2 (DIN0)
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 5 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
P1.2 (DIN0 )
AREF
AIN2
AIN4
AIN1
VDD
AIN3
VSS
VSS
36 35 34 33 32 31 30 29 28
VDD 1 27 IREF
AIN0 2 26 AIN5
nRF24E1
DVDD2 3 25 AIN6
QFN36 6x6
P1.0/T2 (DIO0) 4 24 AIN7
10 11 12 13 14 15 16 17 18
XC2
XC1
P0.5/T0 (DIO7)
DVDD
VSS
P0.4/INT1_N (DIO6)
VDD_PA
P0.7/PWM (DIO9)
P0.6/T1 (DIO8)
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 6 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 7 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 8 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
2 ARCHITECTURAL OVERVIEW
This section will give a brief overview of each of the blocks in the block diagram in
Figure 1-1.
2.1 Microcontroller
The nRF24E2 microcontroller is instruction set compatible with the industry standard
8051. Instruction timing is slightly different from the industry standard, typically each
instruction will use from 4 to 20 clock cycles, compared with 12 to 48 for the
“standard”. The interrupt controller is extended to support 3 additional interrupt
sources; ADC, SPI, and wakeup timer. There are also 3 timers which are 8052
compatible, plus some extensions, in the microcontroller core. An 8051 compatible
UART that can use timer1 or timer2 for baud rate generation in the traditional
asynchronous modes is included. The CPU is equipped with 2 data pointers to
facilitate easier moving of data in the XRAM area, which is a common 8051
extension. The microcontroller clock is derived directly from the crystal oscillator.
1
Optionally this 4k block of memory can be configured as 2k mask ROM and 2k RAM or 4 k mask
ROM
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 9 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
2.2 PWM
The nRF24E2 has one programmable PWM output, which is the alternate function
of PO.7 at pin DIO9.
The resolution of the PWM is software programmable to 6, 7 or 8 bits.
The frequency of the PWM signal is programmable via a 6 bit prescaler from the
XTAL oscillator.
The duty cycle is programmable between 0% and 100% via one 8-bit register.
2.3 SPI
nRF24E2 features a simple single buffered SPI master. The 3 lines of the SPI bus
(SDI, SCK and SDO) are multiplexed (by writing to register SPI_CTRL) between the
GPIO pins (P1.2/DIN0, P1.0/DIO0 and P1.1/DIO1) and the RF transmitter. The SPI
hardware does not generate any chip select signal. The programmer will typically use
GPIO bits (from port P0) to act as chip selects for one or more external SPI devices.
When the SPI interfaces the RF transmitter, the chip selects are available in an internal
GPIO port, P2.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 10 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Most of the GPIO pins can be used for multiple purposes under program control. The
alternate functions include two external interrupts, UART RXD and TXD, a SPI
master port, three enable/count signals for the timers and the PWM output.
RTC Wakeup Timer and Watchdog are two 16 bit programmable timers that run on
the RC oscillator LP_OSC clock. The resolution of the watchdog and wakeup timer is
programmable from approximately 300µs to approximately 80ms. By default the
resolution is 10ms. The wakeup timer can be started and stopped by user software.
The watchdog is disabled after a reset, but if activated it can not be disabled again,
except by another reset
2.8 AD Converter
The nRF24E2 AD converter has 10 bit dynamic range and linearity with a conversion
time of 48 CPU instruction cycles per 10-bit result.
The reference for the AD converter is software selectable between the AREF input
and an internal 1.22V bandgap reference.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 11 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
The converter has 9 inputs selectable by software. Selecting one of the inputs 0 to 7
will convert the voltage on the respective AIN0 to AIN7 pin.
Input 8 enables software to monitor the nRF24E2 supply voltage by converting an
internal input that is VDD/3 with the 1.22V internal reference selected.
The AD converter is typically used in a start/stop mode. The sampling time is then
under software control.
The converter is by default configured as 10 bits. For special requirements, the AD
converter can be configured by software to perform 6, 8 or 12 bit conversions. The
converter may also be used in differential mode with AIN0 used as inverting input and
one of the other 7 external inputs used as noninverting input. In that case the
conversion time can be reduced to approximately 2 µs.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 12 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
3 I/O PORTS
The nRF24E2 have two IO ports located at the default locations for P0 and P1 in
standard 8051, but the ports are fully bi-directional CMOS and the direction of each
pin is controlled by a _DIR and an _ALT bit for each bit as shown in the table below.
When the P0_ALT.n is not set, bit ‘n’ of the port is a GPIO function with the direction
controlled by P0_DIR.n.
P0.0 is always a GPIO. It will be activated by the default boot loader after reset and
should be connected to the CSN of the boot flash.
2
Reserved for use as EEPROM_CSN, works as GPIO P0.0 independent of the “Alternate setting”
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 13 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Port 0 is controlled by SFR-registers 0x80, 0x94 and 0x95 listed in the table below.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 14 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
When SPI_CTRL is 01, the port is used as a SPI master port. The GPIO bits in port P0
may be used as chip select(s). For timing diagram, please see Figure 3-1 : SPI
interface timing.
When not used as SPI port, P0_ALT.0 will force P1.0 to be the timer T2 input, P1.1 is
now a GPIO. When P0_ALT.0 is 0, also P1.0 is a GPIO.
Port 1 is controlled by SFR-registers 0x90, 0x96 and 0x97, and only the 3 lower bits
of the registers are used.
3
P1.1 is actually under control of P1_DIR.1 even when P1_ALT.1 is 1, since there is no alternate
function for this pin.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 15 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
P1 may also be configured as a SPI master port , and is then controlled by the 3 SFR
registers 0xB2, 0xB3, 0xB4 as shown in the table below.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 16 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
End of
write to
SPI_DATA
register
SCK
SPI_READY
interrupt
tcSCK
tdSCK thSDI
tdready
tsSDI
tdSDO
Note that the above delay, setup and hold time numbers only apply for SPI
connected to Port 1; as when SPI is connected to the Radio, SCK,SDO,SDI are
all internal signals, not visible to the user.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 17 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
B3 R/W 2 0 SPI_CTRL
00 -> SPI not used
01 -> SPI connected to port P1 (boot)
10 -> SPI connected to nRF2401 TX
11 -> reserved, do not use
Table 4-1 : nRF2401 2.4GHz transmitter subsystem control registers - SFR 0xA0 and
0xB3
The bits of the RADIO register correspond to similar pins of the nRF2401 single chip,
as shown in Table 4-2 : RADIO register . In the documentation the pin names are
used, so please note that setting or reading any of these nRF2401 pins, means to write
or read the RADIO SFR register accordingly. Please also note that in the transmitter
documentation the notation MCU means the onchip 8051 compatible microcontroller.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 18 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Note : Some of the pins are overridden when SPI_CTRL=1x, see Table 4-3 :
Transmitter SPI interface.
SPI_CTRL
nRF2401
RADIO register Tranceiver
MUX
2
SPI
interface
SCK
SDI SDO 2
MUX
3
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 19 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
RADIO.7=1 (PWR_UP)). When program execution starts, these ports will remain at
those default levels until the programmer actively changes them by writing to the
RADIO register.
4.2.1 Overview
The transmitter subsystem can be set in the following main modes depending on three
control pins:
Mode PWR_UP CE CS
Active (TX) 1 1 0
Configuration 1 0 1
Stand by 1 0 0
Power down 0 X X
Table 4-4 transmitter subsystem main modes
• ShockBurst™
• Direct Mode (not supported by nRF24E2)
4.2.3 ShockBurst™
The ShockBurst™ technology uses on-chip FIFO to clock in data at a low data rate
and transmit at a very high rate thus enabling extremely power reduction.
When operating the transmitter subsystem in ShockBurst™, you gain access to the
high data rates (1 Mbps) offered by the 2.4 GHz band without the need of a costly,
high-speed microcontroller (MCU) for data processing.
By putting all high speed signal processing related to RF protocol on-chip, the
nRF24E2 offers the following benefits:
The transmitter subsystem can be programmed using a simple 3-wire interface where
the data rate is decided by the speed of the CPU.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 20 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
By allowing the digital part of the application to run at low speed while maximizing
the data rate on the RF link, the ShockBurst™ mode reduces the average current
consumption in applications considerably.
Figure 4-2Clocking in data with CPU and sending with ShockBurst technology
10mA period
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 21 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
NO
nRF2401 in
ShockBurstTM
TX (CE=hi)?
YES
Data content of registers:
uController
Loading ADDR
and PAYLOAD ADDR PAYLOAD
data
nRF2401
Calculating CRC ADDR PAYLOAD CRC
NO
CE=Low?
YES
nRF2401
Adding Preamble Pre-
ADDR PAYLOAD CRC
amble
nRF2401
Sending
ShockBurstTM Input FIFO not Empty
Package
(250 or 1000kbps)
YES NO
Sending
completed?
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 22 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
All configuration of the transmitter subsystem is done via a 3-wire interface interface
(CS, CLK1 and DATA) to a single configuration register. The configuration word can
be up to 18 bits long. The configuration bits (DATA) must be clocked (by CLK1) into
transmitter subsystem, with msb first, while CS=1. No more than 18 bits may be
downloaded.
NOTE:
The CPU must generate an address and a payload section that fits the configuration of
the nRF24x1 subsystem that is to receive the data.
When using the transmitter subsystem on-chip CRC feature ensures that CRC is
enabled and uses the same length for both the TX and RX devices.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 23 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
reserved, should be
15 1 zero
General device configuration
reserved, must be
0 1 zero
Table 4-5 Table of configuration words.
The configuration word is shifted in MSB first on positive CLK1 edges. New
configuration is enabled on the falling edge of CS. Not more than maximum 18 bits
must be shifted.
NOTE.
On the falling edge of CS, the transmitter subsystem updates the number of bits
actually shifted in during the last configuration.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 24 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
CRC
D17 D16
CRC Mode 1 = 16bit, 0 = 8bit CRC 1 = enable; 0 = disable
0 1 Default
RF-Programming LSB
D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
reserved BUF OD XO Frequency RF Power Channel selection reserved
0 0 0 0 1 1 1 1 0 0 0 0 0 1 0 0 Default
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 25 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
4.3.4.1.1 CRC
CRC_L CRC_EN
17 16
Table 4-7 CRC setting.
Bit 17:
CRC_L: CRC length to be calculated in ShockBurst™.
Logic 0: 8 bit CRC
Logic 1: 16 bit CRC
Bit: 16:
CRC_EN: Enables on-chip CRC generation..
Logic 0: On-chip CRC generation disabled
Logic 1: On-chip CRC generation enabled
NOTE:
An 8 bit CRC will increase the number of payload bits possible in each
ShockBurst™ data packet, but will also reduce the system integrity.
This section of the configuration word handles RF and device related parameters.
4.3.4.2.1 Modes
Bit 14:
Communication Mode:
Logic 0: transmitter subsystem operates in direct mode.
Logic 1: transmitter subsystem operates in ShockBurst™ mode
Bit 13:
RF Data Rate:
Logic 0: 250 kbps
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 26 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Logic 1: 1 Mbps
NOTE:
Utilizing 250 kbps instead of 1Mbps will improve the receiver
sensitivity by 10 dB. 1Mbps requires 16MHz crystal.
Bit 12-10:
XO_F: Selects the nRF24E2 crystal frequency to be used:
XO Frequency Selection
D12 D11 D10 Crystal Frequency [MHz]
0 0 0 4
0 0 1 8
0 1 0 12
0 1 1 16
1 0 0 20
Table 4-9 Crystal frequency setting.
Please also see Table 14-2 Crystal specification of the nRF24E2
Bit 9-8:
RF_PWR: Sets nRF24E2 RF output power in transmit mode:
RF Output Power
D9 D8 P [dBm]
0 0 -20
0 1 -10
1 0 -5
1 1 0
Table 4-10 RF output power setting.
4.3.4.2.2 RF channel
RF_CH# reserved
7 6 5 4 3 2 1 0
Table 4-11 Frequency channel setting.
Bit 7 – 1:
RF_CH#: Sets the frequency channel the nRF24E2 operates on.
Bit 0:
Reserved : Must be set to logic 0 (zero).
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 27 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
The data packet for both ShockBurst™ mode and direct mode communication is
divided into 4 sections. These are:
4
Suggestions for the use of addresses in ShockBurst™: In general more bits in the
address gives less false detection, which in the end may give lower data packet loss.
A. The address made by (5, 4, 3, or 2) equal bytes are not recommended because it in
general will make the packet-error-rate increase.
B. Addresses where the level shift only one time (i.e. 0x000FFFFFFF) could often be
detected in noise that may give a false detection, which again may give raised
packet-error-rate.
C. First byte of address should not start with 0x55.. or 0xAA.. as this may be
interpreted as part of preamble, causing address mismatch for the rest of the
address
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 28 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
When the transmitter subsystem is in power down it must always settle in stand by for
Tpd2sby (3ms) before it can enter configuration or one of the active modes.
PWR_UP
CS
CE
CLK1
DATA
Tpd2sby
Figure 4-7 Timing diagram for power down (or VDD off) to configuration mode
for transmitter subsystem.
PWR_UP
CS
CE
CLK1
DATA
Tpd2a
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 29 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Note that the configuration word will be lost when VDD is turned off and that the
device then must be configured before going to one of the active modes. If the device
is configured one can go directly from power down to the wanted active mode.
Note:
CE and CS may not be high at the same time. Setting one or the other decides
whether configuration or active mode is entered.
t=0
PWR_UP
CS
CE
CLK1
DATA
Td
CS
CE
Thmin
CLK1
DATA MSB
Ts Th
Tcs2data
If configuration mode is entered from power down, CS can be set high after Tpd2sby
as shown in Figure 4-7.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 30 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
ShockBurst™ TX:
t=0
PWR_UP
CS
CE
CLK1
DATA
.
ANT1/ANT2
Tsby2txSB Toa
Td
CS
CE THmin
CLK1
DATA
Ts Th
Tce2data
The package length and the data rate give the delay Toa (time on air), as shown in the
equation. Databits are the total number of bits, including any CRC and preamble bits
which may be added.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 31 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
5 A/D CONVERTER
The AD converter subsystem has 10 bit dynamic range and linearity when used at the
Nyquist rate. With lower signal frequencies and post filtering, up to 12 bits resolution
is possible. The reference for the AD converter is selectable between the AREF input
and an internal 1.22V bandgap reference.
The converter default setting is 10 bits. For special requirements, the AD converter
can be configured to perform 6, 8, 10 or 12 bit conversions. The converter may also be
used in differential mode with AIN0 used as inverting input and one of the other 7
external inputs used as noninverting input. In differential mode a slightly
improvement (e.g. 2dB for a 10 bit conversion) in SNR may be expected.
The complete AD subsystem is switched off by clearing bit NPD (ADCCON.5). The
AD converter is normally clocked by the CPU clock divided by 32 (125 to 625 kHz),
and the ADC will produce 2 bits of result per clock cycle.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 32 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
AIN0
AIN1 single-
Vi- ADC
ended DATA
AIN2 to Vi+ DATA H
diff 8
AIN3 6-12bit
12
AIN4 DIFFM A/D
2bit/clk
AIN5 4
Vref ADC
AIN6 ADCRES ADCUF/OF/RNG
DATA
AIN7 BIAS L
2 EOC
2R ADCSEL
4 SEQUENCE CSTARTN
CONTROL
ADCRUN ADC
CON
ADCSEL
ADCRES
XO clock 1/8 1/4 CLK8
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 33 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 34 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
This mode of operation is normally selected for sources where the voltage is
depending on the supply voltage (or another variable voltage), like shown in Figure
5-2 below. The resistor R1 is selected to keep AREF ≤ 1.5V for the maximum VDD
voltage.
SUPPLY
R1
VDD
AREF
nRF24E1
R2 AIN0
R3 AIN1
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 35 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
This mode of operation is normally selected for sources where the voltage is not
depending on the supply voltage.
CSTARTN
input signal
sampled
tConv
ADC_EOC
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 36 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
ADCCLK
input signal
n n+1 n+2
sample
tConv
ADC_EOC
tCycle
ADCRUN=1, and CSTARTN is ignored. Cycle time tCycle is the time between each
conversion. tCycle = N/2 +1 clock cycles, where N is number of resolution bits. The
figure is showing 10 bit conversions.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 37 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
6 PWM
The nRF24E2 PWM output is a one-channel PWM with a 2 register interface. The
first register, PWMCON, enables PWM function and PWM period length, which is
the number of clock cycles for one PWM period, as shown in the table below. The
other register, PWMDUTY, controls the duty cycle of the PWM output signal. When
this register is written, the PWM signal will change immediately to the new value.
This can result in 4 transitions within one PWM period, but the transition period will
always have a “DC value” between the “old” sample and the “new” sample.
The table shows how PWM frequency (or period length) and PWM duty cycle are
controlled by the settings in the two PWM SFR-registers. For a crystal frequency of
16 MHz, PWM frequency range will be about 1-253 kHz.
1 PWMDUTY [5 : 0]
f XO ⋅
63 ⋅ (PWMCON [5 : 0] + 1)
01
63
1 PWMDUTY [6 : 0]
f XO ⋅
127 ⋅ (PWMCON [5 : 0] + 1)
10
127
1 PWMDUTY
f XO ⋅
255 ⋅ (PWMCON [5 : 0] + 1)
11
255
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 38 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
7 INTERRUPTS
nRF24E2 supports the following interrupt sources:
Bit Function
IE.7 EA - Global interrupt enable. Controls masking of all interrupts. EA = 0
disables all interrupts (EA overrides individual interrupt enable bits).
When EA = 1, each interrupt is enabled or masked by its individual
enable bit.
IE.6 Reserved. Read as 0.
IE.5 ET2 - Enable Timer 2 interrupt. ET2 = 0 disables Timer 2 interrupt
(TF2). ET2 = 1 enables interrupts generated by the TF2 or EXF2 flag.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 39 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Bit Function
IP.7 Reserved. Read as 1.
IP.6 Reserved. Read as 0.
IP.5 PT2 - Timer 2 interrupt priority control. PT2 = 0 sets Timer 2 interrupt
(TF2) to low priority. PT2 = 1 sets Timer 2 interrupt to high priority.
IP.4 PS - Serial Port interrupt priority control. PS = 0 sets Serial Port interrupt
(TI or RI) to low priority. PS = 1 sets Serial Port interrupt to high
priority.
IP.3 PT1 - Timer 1 interrupt priority control. PT1 = 0 sets Timer 1 interrupt
(TF1) to low priority. PT1 = 1 sets Timer 1 interrupt to high priority.
IP.2 PX1 - External interrupt 1 priority control. PX1 = 0 sets external
interrupt 1 (INT1_N) to low priority. PT1 = 1 sets external interrupt 1 to
high priority.
IP.1 PT0 - Timer 0 interrupt priority control. PT0 = 0 sets Timer 0 interrupt
(TF0) to low priority. PT0 = 1 sets Timer 0 interrupt to high priority.
IP.0 PX0 - External interrupt 0 priority control. PX0 = 0 sets external
interrupt 0 (INT0_N) to low priority. PT0 = 1 sets external interrupt 0 to
high priority.
Table 7-3 : IP Register – SFR 0xB8
Bit Function
EXIF.7 IE5 - Interrupt 5 flag. IE5 = 1 indicates that a rising edge was detected on
the RADIO.DR2 signal.(see ch. 5.1.RADIO) IE5 must be cleared by
software. Setting IE5 in software generates an interrupt, if enabled.
EXIF.6 IE4 - Interrupt 4 flag. IE4 = 1 indicates that a rising edge was detected on
the RADIO.DR1 signal.(see ch. 5.1.RADIO) IE4 must be cleared by
software. Setting IE4 in software generates an interrupt, if enabled.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 40 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
EXIF.5 IE3 - Interrupt 3 flag. IE3 = 1 indicates that the internal SPI module has
sent or received 8 bits, and is ready for a new command. IE3 must be
cleared by software. Setting IE3 in software generates an interrupt, if
enabled.
EXIF.4 IE2 - Interrupt 2 flag. IE2 = 1 indicates that a rising edge was detected on
the ADC_EOC signal. (see ch.5.3.1 End of conversion.) IE2 must be
cleared by software. Setting IE2 in software generates an interrupt, if
enabled.
EXIF.3 Reserved. Read as 1.
EXIF.2-0 Reserved. Read as 0.
Table 7-4 : EXIF Register – SFR 0x91
Bit Function
EICON.7 Not used.
EICON.6 Reserved. Read as 1.
EICON.5 Reserved. Read as 0.
EICON.4 Reserved. Read as 0.
EICON.3 WDTI - RTC wakeup timer interrupt flag. WDTI = 1 indicates a wakeup
timer interrupt was detected. WDTI must be cleared by software before
exiting the interrupt service routine. Otherwise, the interrupt occurs
again. Setting WDTI in software generates a wakeup timer interrupt, if
enabled.
EICON.2- Reserved. Read as 0.
0
Table 7-5 : EICON Register – SFR 0xD8
Bit Function
EIE.7-5 Reserved. Read as 1.
EIE.4 EWDI - Enable RTC wakeup timer interrupt. EWDI = 0 disables wakeup
timer interrupt (wdti). EWDI = 1 enables interrupts generated by wakeup.
EIE.3 EX5 - Enable interrupt 5. EX5 = 0 disables interrupt 5 (RADIO.DR2).
EX5 = 1 enables interrupts generated by the RADIO.DR2 signal.
EIE.2 EX4 - Enable interrupt 4. EX4 = 0 disables interrupt 4 (RADIO.DR1).
EX4 = 1 enables interrupts generated by the RADIO.DR1 signal.
EIE.1 EX3 - Enable interrupt 3. EX3 = 0 disables interrupt 3 (SPI_READY).
EX3 = 1 enables interrupts generated by the SPI_READY signal.
EIE.0 EX2 - Enable interrupt 2. EX2 = 0 disables interrupt 2 (ADC_EOC).
EX2 = 1 enables interrupts generated by the ADC_EOC signal.
Table 7-6 : EIE Register – SFR 0xE8
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 41 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Bit Function
EIP.7-5 Reserved. Read as 1.
EIP.4 PWDI - RTC wakeup timer interrupt priority control. WDPI = 0 sets
wakeup timer interrupt (wdti) to low priority. PS = 1 sets wakeup timer
interrupt to high priority.
EIP.3 PX5 - interrupt 5 priority control. PX5 = 0 sets interrupt 5 (RADIO.DR2)
to low priority. PX5 = 1 sets interrupt 5 to high priority.
EIP.2 PX4 - interrupt 4 priority control. PX4 = 0 sets interrupt 4 (RADIO.DR1)
to low priority. PX4 = 1 sets interrupt 4 to high priority.
EIP.1 PX3 - interrupt 3 priority control. PX3 = 0 sets interrupt 3 (SPI_READY)
to low priority. PX3 = 1 sets interrupt 3 to high priority.
EIP.0 PX2 - interrupt 2 priority control. PX2 = 0 sets interrupt 2 (ADC_EOC)
to low priority. PX2 = 1 sets interrupt 2 to high priority.
Table 7-7 : EIP Register – SFR 0xF8
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 42 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
An ISR can only be interrupted by a higher priority interrupt. That is, an ISR
for a low-level interrupt can be interrupted only by a high-level interrupt. The
CPU always completes the instruction in progress before servicing an interrupt.
If the instruction in progress is RETI, or a write access to any of the IP, IE, EIP,
or EIE SFRs, the CPU completes one additional instruction before servicing the
interrupt.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 43 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 44 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
The accuracy can be improved by calibrating the TICK value at regular intervals. The
register TICK_DV controls how many LP_OSC periods elapse between each TICK.
The frequency of the LP_OSC (between 1 kHz and 5 kHz) can be measured by timer2
in capture mode with t2ex enabled (EXEN2=1). The signal connected to t2ex has
exactly half the frequency of LP_OSC. The 16-bit difference between two consecutive
captures in SFR-registers{RCAP2H,RCAP2L} is proportional to the LP_OSC period.
For details about timer2 see ch. 10.8.3 and Figure 10-5 : Timer 2 – Timer/Counter
with Capture
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 45 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
The RTC is a simple 16 bit down counter that produces an interrupt and reloads
automatically when the count reaches zero. This process is initially disabled, and will
be enabled with the first write to the timer latch. Writing the timer latch will always be
followed by a reload of the counter. The counter may be disabled again by writing a
disable opcode to the control register. Both the latch and the counter value may be
read by giving the respective codes in the control register, see description in Table 8-2
This counter is used for a wakeup sometime in the future (a relative time wakeup
call). If ‘N’ is written to the counter, the first wakeup will happen from somewhere
between ‘N+1’ and ‘N+2’ “TICK” from the completion of the write, thereafter a new
wakeup is issued every “N+1” "TICK" until the unit is disabled or another value is
written to the latch.
The wakeup timer is connected to the WDTI interrupt of the CPU. The programmer
may poll the EICON.3 flag or enable the interrupt. If the oscillator is stopped, the
wakeup interrupt will restart the oscillator regardless of the state of EIE.4 interrupt
enable.
The nRF24E2 do not provide any “absolute time functions”. Absolute time functions
in nRF24E2 can well be handled in software since our RAM is continuously powered
even when in sleep mode. There will be an application note with the required code to
implement the complete absolute time function using some 100 bytes of code and 12
IRAM locations (with 2 alarms).
8.3 Watchdog
The watchdog is activated upon writing 0x08 to its control register SFR 0xAD. It can
not be disabled by any other means than a reset. The watchdog register is loaded by
writing a 16-bit value to the two 8-bit data registers (SFR 0xAB and 0xAC) and then
the writing the correct opcode to the control register. The watchdog will then count
down towards 0 and when 0 is reached the complete microcontroller will be reset . To
avoid the reset, the software must load new values into the watchdog register
sufficiently often.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 46 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
16-BIT BUS
Load 16-BIT
REGISTER
Load Load
16-BIT 16-BIT
DOWN DOWN
COUNTER COUNTER
Zero Zero
WAKEUP INT
TICK
WATCHDOG_RESET
RTC and Watchdog are controlled by SFRs 0xAB, 0xAC and 0xAD. These 3 registers
REGX_MSB, REGX_LSB and REGX_CTRL are used to interface the blocks
running on the slow LP_OSC clock. The 16-bit register {REGX_MSB, REGX_LSB}
can be written or read as two bytes from the CPU. Typical sequences are:
Write: Wait until not busy.
Write REGX_MSB, Write REGX_LSB, Write REGX_CTRL
Read: Wait until not busy.
Write REGX_CTRL, Wait until not busy.
Read REGX_MSB, Read REGX_LSB
Note : please also wait until not busy before accessing SFR 0xB6 CK_CTRL (page
50)
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 47 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
AD R/W 5 0
REGX_ Control for 16 bit register for interface to
CTRL Watchdog and RTC. Bit 4 is only available
on read and is used to flag the interface unit
as busy.
Bits 3:0 is read/write with the encoding:
0 000: Read from WD register (16 bit)
1 000: Write to WD register (16 bit)
0 010: Read from RTC latch register (16 bit)
1 010: Write to RTC latch register (16 bit)
0 011: Read from RTC counter reg. (16 bit)
1 011: Disable RTC counter (no data)
Table 8-2 : RTC and Watchdog SFR-registers
8.4 Reset
nRF24E2 can be reset either by the on-chip power-on reset circuitry or by the on-chip
watchdog counter.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 48 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Bit Function
PCON.7 SMOD – Serial Port baud-rate doubler enable. When SMOD = 1, the
baud rate for Serial Port is doubled.
PCON.6–4 Reserved.
PCON.3 GF1 – General purpose flag 1. Bit-addressable, general purpose flag for
software control.
PCON.2 GF0 – General purpose flag 0. Bit-addressable, general purpose flag for
software control.
PCON.1 STOP – Stop mode select. Setting the STOP bit places the nRF24E2 in
stop mode.
PCON.0 IDLE – Idle mode select. Setting the IDLE bit places the nRF24E2 in
idle mode.
Table 9-1 : PCON Register – SFR 0x87
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 49 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
There are two ways to exit idle mode: activate any enabled interrupt or watchdog
reset. Activation of any enabled interrupt causes the hardware to clear the IDLE bit
and terminate idle mode. The CPU executes the ISR associated with the received
interrupt. The RETI instruction at the end of the of ISR returns the CPU to the
instruction following the one that put the nRF24E2 into idle mode. A watchdog reset
causes the nRF24E2 to exit idle mode, reset internal registers, execute its reset
sequence and begin program execution at the standard reset vector address 0x0000.
Note : Before accessing the CK_CTRL register, make sure that the busy bit of
RTC/Watchdog SFR 0xAD, bit 4 (page 48) is not set
Bit Function
CK_CTRL .0 Not used
CK_CTRL .1 STOP_CLOCK. Setting the STOP_CLOCK bit
places the nRF24E2 in power down mode.
Table 9-2 : CK_CTRL register - SFR 0xB6
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 50 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
3: however when the nRF24E2 is started by one of these pins, the event will be captured in
the interrupt circuitry also and an interrupt MAY be delivered if enabled. A level interrupt will
always be delivered (even if pin has returned high). A falling edge interrupt may be delivered.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 51 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
10 MICROCONTROLLER
The embedded microcontroller is the DW8051 MacroCell from Synopsys which is
similar to the Dallas DS80C320 in terms of hardware features and instruction-cycle
timing.
81FFh
Boot loader
8000h
IRAM SFR
FFh FFh
Upper Accessible by Accessible by
128 indirect direct addressing
bytes. addressing only. only.
80h 80h
0FFFh 7Fh
Program/data memory. Lower Accessible by Special
Accessible with movc and 128 direct and indirect Function
movx. bytes. addressing. Registers
0000h 00h
Program memory/Data
Memory (ERAM) Internal Data Memory
The nRF24E2 has 4KB of program memory available for user programs located at the
bottom of the address space as shown in Figure 10-1. This memory also function as a
random access memory and can be accessed with the movx and movc instructions.
After power on reset the boot loader loads the user program from the external serial
EEPROM and stores it from address 0 in this memory.
10.1.1.1 Memory paging
A Special function register, MPAGE, at SFR address 0x92 provides memory paging
function. During MOVX A, @Ri and MOVX @Ri, A instructions, the contents of the
MPAGE register are placed on the upper eight address bits of memory address.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 52 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
The lower 32 bytes form four banks of eight registers (R0–R7). Two bits on the
program status word (PSW) select which bank is in use. The next sixteen bytes form a
block of bit-addressable memory space at bit addresses 0x00–0x7F. All of the bytes in
the lower 128 bytes are accessible through direct or indirect addressing. The SFRs and
the upper 128 bytes of RAM share the same address range (0x80-0xFF). However, the
actual address space is separate and is differentiated by the type of addressing. Direct
addressing accesses the SFRs, while indirect addressing accesses the upper 128 bytes
of RAM. Most SFRs are reserved for specific functions, as described in 10.6Special
Function Registers on page 61. SFR addresses ending in 0h or 8h are bit-addressable.
The table below shows the layout of the first few bytes of the EEPROM image.
7 6 5 4 3 2 1 0
0: Version Reserved SPEED XO_FREQ
(now 00) (now 00)
1: Offset to start of user program (N)
2: Number of 256 byte blocks in user program (includes block 0 that is not
full)
… Optional User data, not interpreted by boot loader
… …
N: First byte of user program, goes into ERAM at 0x0000
N+1: Second byte of user program, goes into ERAM at 0x0001
…
Table 10-1 : EEPROM layout
The contents of the 4 lowest bits in the first byte is used by the boot loader to set the
correct SPI frequency. These fields are encoded as shown below:
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 53 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
The program eeprep can be used to add this header to a program file.
Table 10-3 to Table 10-8 define the symbols and mnemonics used in Table 10-2.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 54 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Arithmetic Instructions
Mnemonic Description Byte Instr. Hex
Cycles Code
ADD A, Rn Add register to A 1 1 28–2F
ADD A, direct Add direct byte to A 2 2 25
ADD A, @Ri Add data memory to A 1 1 26–27
ADD A, #data Add immediate to A 2 2 24
ADDC A, Rn Add register to A with carry 1 1 38–3F
ADDC A, direct Add direct byte to A with 2 2 35
carry
ADDC A, @Ri Add data memory to A with 1 1 36–37
carry
ADDC A, #data Add immediate to A with 2 2 34
carry
SUBB A, Rn Subtract register from A with 1 1 98–9F
borrow
SUBB A, direct Subtract direct byte from A 2 2 95
with borrow
SUBB A, @Ri Subtract data memory from A 1 1 96–97
with borrow
SUBB A, #data Subtract immediate from A 2 2 94
with borrow
INC A Increment A 1 1 04
INC Rn Increment register 1 1 08–0F
INC direct Increment direct byte 2 2 05
INC @Ri Increment data memory 1 1 06–07
DEC A Decrement A 1 1 14
DEC Rn Decrement register 1 1 18–1F
DEC direct Decrement direct byte 2 2 15
DEC @Ri Decrement data memory 1 1 16–17
INC DPTR Increment data pointer 1 3 A3
MUL AB Multiply A by B 1 5 A4
DIV AB Divide A by B 1 5 84
DA A Decimal adjust A 1 1 D4
All mnemonics are copyright © Intel Corporation 1980.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 55 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Logical Instructions
Mnemonic Description Byte Instr. Hex
Cycles Code
ANL A, Rn AND register to A 1 1 58–5F
ANL A, direct AND direct byte to A 2 2 55
ANL A, @Ri AND data memory to A 1 1 56–57
ANL A, #data AND immediate to A 2 2 54
ANL direct, A AND A to direct byte 2 2 52
ANL direct, AND immediate data to direct 3 3 53
#data byte
ORL A, Rn OR register to A 1 1 48–4F
ORL A, direct OR direct byte to A 2 2 45
ORL A, @Ri OR data memory to A 1 1 46–47
ORL A, #data OR immediate to A 2 2 44
ORL direct, A OR A to direct byte 2 2 42
ORL direct, OR immediate data to direct 3 3 43
#data byte
XRL A, Rn Exclusive-OR register to A 1 1 68–6F
XRL A, direct Exclusive-OR direct byte to 2 2 65
A
XRL A, @Ri Exclusive-OR data memory 1 1 66–67
to A
XRL A, #data Exclusive-OR immediate to 2 2 64
A
XRL direct, A Exclusive-OR A to direct 2 2 62
byte
XRL direct, Exclusive-OR immediate to 3 3 63
#data direct byte
CLR A Clear A 1 1 E4
CPL A Complement A 1 1 F4
SWAP A Swap nibbles of A 1 1 C4
RL A Rotate A left 1 1 23
RLC A Rotate A left through carry 1 1 33
RR A Rotate A right 1 1 03
RRC A Rotate A right through carry 1 1 13
All mnemonics are copyright © Intel Corporation 1980.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 56 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Boolean Instructions
Mnemonic Description Byte Instr. Hex
Cycles Code
CLR C Clear carry 1 1 C3
CLR bit Clear direct bit 2 2 C2
SETB C Set carry 1 1 D3
SETB bit Set direct bit 2 2 D2
CPL C Complement carry 1 1 B3
CPL bit Complement direct bit 2 2 B2
ANL C, bit AND direct bit to carry 2 2 82
ANL C, /bit AND direct bit inverse to 2 2 B0
carry
ORL C, bit OR direct bit to carry 2 2 72
ORL C, /bit OR direct bit inverse to carry 2 2 A0
MOV C, bit Move direct bit to carry 2 2 A2
MOV bit, C Move carry to direct bit 2 2 92
All mnemonics are copyright © Intel Corporation 1980.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 57 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 58 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Branching Instructions
Mnemonic Description Byte Instr. Hex
Cycles Code
ACALL addr 11 Absolute call to subroutine 2 3 11–F1
LCALL addr 16 Long call to subroutine 3 4 12
RET Return from subroutine 1 4 22
RETI Return from interrupt 1 4 32
AJMP addr 11 Absolute jump unconditional 2 3 01–E1
LJMP addr 16 Long jump unconditional 3 4 02
SJMP rel Short jump (relative address) 2 3 80
JC rel Jump on carry = 1 2 3 40
JNC rel Jump on carry = 0 2 3 50
JB bit, rel Jump on direct bit = 1 3 4 20
JNB bit, rel Jump on direct bit = 0 3 4 30
JBC bit, rel Jump on direct bit = 1 and 3 4 10
clear
JMP Jump indirect relative DPTR 1 3 73
@A+DPTR
JZ rel Jump on accumulator = 0 2 3 60
JNZ rel Jump on accumulator /= 0 2 3 70
CJNE A, direct, Compare A, direct JNE 3 4 B5
rel relative
CJNE A, #d, rel Compare A, immediate JNE 3 4 B4
relative
CJNE Rn, #d, Compare reg, immediate JNE 3 4 B8–BF
rel relative
CJNE @Ri, #d, Compare ind, immediate JNE 3 4 B6–B7
rel relative
DJNZ Rn, rel Decrement register, JNZ 2 3 D8–DF
relative
DJNZ direct, rel Decrement direct byte, JNZ 3 4 D5
relative
All mnemonics are copyright © Intel Corporation 1980.
Miscellaneous Instructions
Mnemonic Description Byte Instr. Hex
Cycles Code
NOP No operation 1 1 00
There is an additional reserved opcode (A5) that performs the same function as
NOP.
All mnemonics are copyright © Intel Corporation 1980.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 59 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 60 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Addr Register Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
0x80 P0(3) Port 0
0x81 SP Stack pointer
0x82 DPL Data pointer 0, low byte
0x83 DPH Data pointer 0, high byte
0x84 DPL1(1) Data pointer 1, low byte
0x85 DPH1(1) Data pointer 1, high byte
0x86 DPS(1) 0 0 0 0 0 0 0 SEL
0x87 PCON SMOD - 1 1 GF1 GF0 STOP IDLE
0x88 TCON TF1 TR1 TF0 TR0 IE1 IT1 IE0 IT0
0x89 TMOD GATE C/T M1 M0 GATE C/T M1 M0
0x8A TL0 Timer/counter 0 value, low byte
0x8B TL1 Timer/counter 1 value, low byte
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 61 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 62 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 63 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Table 10-11 lists the functions of the bits in the PSW register.
Bit Function
PSW.7 CY - Carry flag. Set to 1 when last arithmetic operation resulted in a carry (during
addition) or borrow (during subtraction); otherwise cleared to 0 by all arithmetic
operations.
PSW.6 AC - Auxiliary carry flag. Set to 1 when last arithmetic operation resulted in a carry into
(during addition) or borrow from (during subtraction) the high-order nibble; otherwise
cleared to 0 by all arithmetic operations.
PSW.5 F0 - User flag 0. Bit-addressable, general purpose flag for software control.
PSW.4 RS1 - Register bank select bit 1. Used with RS0 to select a register blank in internal
RAM.
PSW.3 RS0 - Register bank select bit 0, decoded as:
RS1 RS0 Bank selected
0 0 Register bank 0, addresses 0x00-0x07
0 1 Register bank 1, addresses 0x08-0x0F
1 0 Register bank 2, addresses 0x10-0x17
1 1 Register bank 3, addresses 0x18-0x1F
PSW.2 OV - Overflow flag. Set to 1 when last arithmetic operation resulted in a carry (addition),
borrow (subtraction), or overflow (multiply or divide); otherwise cleared to 0 by all
arithmetic operations.
PSW.1 F1 - User flag 1. Bit-addressable, general purpose flag for software control.
PSW.0 P - Parity flag. Set to 1 when modulo-2 sum of 8 bits in accumulator is 1 (odd parity);
cleared to 0 on even parity.
∗
This bit addressable register differs in usage from “standard 8051”
5
Only 3 lower bits are meaningful in P1 and corresponding P1_DIR and P1_ALT
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 64 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 65 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
10.8 Timers/Counters
The nRF24E2 includes three timer/counters (Timer 0, Timer 1 and Timer 2). Each
timer/counter can operate as either a timer with a clock rate based on the CPU clock ,
or as an event counter clocked by the t0 pin (Timer 0), t1 pin (Timer 1), or the t2 pin
(Timer 2). These pins are alternate function bits of Port 0 and 1 as this : t0 is P0.5, t1
is P0.6 and t2 is P1.0, for details please see ch. 3 I/O PORTS.
Each timer/counter consists of a 16-bit register that is accessible to software as three
SFRs: (Table 10-9 : Special Function Registers)
- Timer 0 - TL0 and TH0
- Timer 1 - TL1 and TH1
- Timer 2 - TL2 and TH2
Bit Function
TMOD.7 GATE - Timer 1 gate control. When GATE = 1, Timer 1 will clock only when external
interrupt INT1_N = 1 and TR1 (TCON.6) = 1. When GATE = 0, Timer 1 will clock only
when TR1 = 1, regardless of the state of INT1_N.
TMOD.6 C/T - Counter/Timer select. When C/T = 0, Timer 1 is clocked by CPU_clk/4 or
CPU_clk/12, depending on the state of T1M (CKCON.4). When C/T = 1, Timer 1 is clocked
by the t1 pin.
TMOD.5 M1 - Timer 1 mode select bit 1.
TMOD.4 M0 - Timer 1 mode select bit 0, decoded as:
M1 M0 Mode
00 Mode 0 : 13-bit counter
01 Mode 1 : 16-bit counter
10 Mode 2 : 8-bit counter with auto-reload
11 Mode 3 : Two 8-bit counters
TMOD.3 GATE - Timer 0 gate control. When GATE = 1, Timer 0 will clock only when external
interrupt INT0_N = 1 and TR0 (TCON.4) = 1. When GATE = 0, Timer 0 will clock only
when TR0 = 1, regardless of the state of INT0_N.
TMOD.2 C/T - Counter/Timer select. When C/T = 0, Timer 0 is clocked by CPU_clk/4 or
CPU_clk/12, depending on the state of T0M (CKCON.3). When C/T = 1, Timer 0 is clocked
by the t0 pin.
TMOD.1 M1 - Timer 0 mode select bit 1.
TMOD.0 M0 - Timer 0 mode select bit 0, decoded as:
M1 M0 Mode
00 Mode 0 : 13-bit counter
01 Mode 1 : 16-bit counter
10 Mode 2 : 8-bit counter with auto-reload
11 Mode 3 : Two 8-bit counters
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 66 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Bit Function
TCON.7 TF1 - Timer 1 overflow flag. Set to 1 when the Timer 1 count overflows and cleared when
the CPU vectors to the interrupt service routine.
TCON.6 TR1 - Timer 1 run control. Set to 1 to enable counting on Timer 1.
TCON.5 TF0 - Timer 0 overflow flag. Set to 1 when the Timer 0 count overflows and cleared when
the CPU vectors to the interrupt service routine.
TCON.4 TR0 - Timer 0 run control. Set to 1 to enable counting on Timer 0.
TCON.3 IE1 - Interrupt 1 edge detect. If external interrupt 1 is configured to be edge-sensitive (IT1
= 1), IE1 is set by hardware when a negative edge is detected on the INT1_N external
interrupt pin and is automatically cleared when the CPU vectors to the corresponding
interrupt service routine. In edge-sensitive mode, IE1 can also be cleared by software.
If external interrupt 1 is configured to be level-sensitive (IT1 = 0), IE1 is set when the
INT1_N pin is low and cleared when the INT1_N pin is high. In level-sensitive mode,
software cannot write to IE1.
TCON.2 IT1 - Interrupt 1 type select. When IT1 = 1, the nRF24E2 detects external interrupt pin
INT1_N on the falling edge (edge-sensitive). When IT1 = 0, the nRF24E2 detects INT1_N
as a low level (level-sensitive).
TCON.1 IE0 - Interrupt 0 edge detect. If external interrupt 0 is configured to be edge-sensitive (IT0
= 1), IE0 is set by hardware when a negative edge is detected on the INT0_N external
interrupt pin and is automatically cleared when the CPU vectors to the corresponding
interrupt service routine. In edge-sensitive mode, IE0 can also be cleared by software.
If external interrupt 0 is configured to be level-sensitive (IT0 = 0), IE0 is set when the
INT0_N pin is low and cleared when the INT0_N pin is high. In level-sensitive mode,
software cannot write to IE0.
TCON.0 IT0 - Interrupt 0 type select. When IT0 = 1, the nRF24E2 detects external interrupt
INT0_N on the falling edge (edge-sensitive). When IT0 = 0, the nRF24E2 detects INT0_N
as a low level (level-sensitive).
10.8.1.1 Mode 0
Mode 0 operation, illustrated in Figure 10-2 : Timer 0/1 – Modes 0 and 1, is the same
for Timer 0 and Timer 1. In mode 0, the timer is configured as a 13-bit counter that
uses bits 0–4 of TL0 (or TL1) and all eight bits of TH0 (or TH1). The timer enable bit
(TR0/TR1) in the TCON SFR starts the timer. The C/T bit selects the timer/counter
clock source, CPU_clk or t0/t1. The timer counts transitions from the selected source
as long as the GATE bit is 0, or the GATE bit is 1 and the corresponding interrupt pin
(INT0_N or INT1_N) is deasserted. INT0_N and INT1_N are alternate function bits
of Port0, please seeTable 3-1 : Port functions. When the 13-bit count increments from
0x1FFF (all ones), the counter rolls over to all zeros, the TF0 (or TF1) bit is set in the
TCON SFR, and the t0_out (or t1_out) pin goes high for one clock cycle. The upper
three bits of TL0 (or TL1) are indeterminate in mode 0 and must be masked when the
software evaluates the register.
10.8.1.2 Mode 1
Mode 1 operation is the same for Timer 0 and Timer 1. In mode 1, the timer is
configured as a 16-bit counter. As illustrated in Figure 10-2 : Timer 0/1 – Modes 0
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 67 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
and 1, all eight bits of the LSB register (TL0 or TL1) are used. The counter rolls over
to all zeros when the count increments from 0xFFFF. Otherwise, mode 1 operation is
the same as mode 0.
10.8.1.3 Mode 2
Mode 2 operation is the same for Timer 0 and Timer 1. In mode 2, the timer is
configured as an 8-bit counter, with automatic reload of the start value. The LSB
register (TL0 or TL1) is the counter, and the MSB register (TH0 or TH1) stores the
reload value. As illustrated in Figure 10-3 : Timer 0/1 – Mode 2, mode 2 counter
control is the same as for mode 0 and mode 1. However, in mode 2, when TLn
increments from 0xFF, the value stored in THn is reloaded into TLn.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 68 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
10.8.1.4 Mode 3
In mode 3, Timer 0 operates as two 8-bit counters, and Timer 1 stops counting and
holds its value. As shown in Figure 10-4 : Timer 0 – Mode 3, TL0 is configured as an
8-bit counter controlled by the normal Timer 0 control bits. TL0 can count either CPU
clock cycles (divided by 4 or by 12) or high-to-low transitions on t0, as determined by
the C/T bit. The GATE function can be used to give counter enable control to the
INT0_N signal.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 69 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
TH0 functions as an independent 8-bit counter. However, TH0 can count only CPU
clock cycles (divided by 4 or by 12). The Timer 1 control and flag bits (TR1 and TF1)
are used as the control and flag bits for TH0.
When Timer 0 is in mode 3, Timer 1 has limited usage because Timer 0 uses the
Timer 1 control bit (TR1) and interrupt flag (TF1). Timer 1 can still be used for baud
rate generation and the Timer 1 count values are still available in the TL1 and TH1
registers.Control of Timer 1 when Timer 0 is in mode 3 is through the Timer 1 mode
bits. To turn Timer 1 on, set Timer 1 to mode 0, 1, or 2. To turn Timer 1 off, set it to
mode 3. The Timer 1 C/T bit and T1M bit are still available to Timer 1. Therefore,
Timer 1 can count CPU_clk/4, CPU_clk/12, or high-to-low transitions on the t1 pin.
The Timer 1 GATE function is also available when Timer 0 is in mode 3.
Bit Function
CKCON.7,6 Reserved
CKCON.5 T2M – Timer 2 clock select. When T2M = 0, Timer 2 uses CPU_clk/12 (for
compatibility with 80C32); when T2M = 1, Timer 2 uses CPU_clk/4. This bit has
no effect when Timer 2 is configured for baud rate generation.
CKCON.4 T1M – Timer 1 clock select. When T1M = 0, Timer 1 uses CPU_clk/12 (for
compatibility with 80C32); when T1M = 1, Timer 1 uses CPU_clk/4.
CKCON.3 T0M – Timer 0 clock select. When T0M = 0, Timer 0 uses CPU_clk/12 (for
compatibility with 80C32); when T0M = 1, Timer 0 uses CPU_clk/4.
CKCON.2–0 MD2, MD1, MD0 – Control the number of cycles to be used for external MOVX
instructions; number of cycles is 2 + { MD2, MD1, MD0}
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 70 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
10.8.3 Timer 2
Timer 2 runs only in 16-bit mode and offers several capabilities not available with
Timers 0 and 1. The modes available with Timer 2 are:
- 16-bit timer/counter
- 16-bit timer with capture
- 16-bit auto-reload timer/counter
- Baud-rate generator
The SFRs associated with Timer 2 are:
- T2CON – SFR 0xC8; refer to Table 10-16 : T2CON Register – SFR 0x
- RCAP2L – SFR 0xCA – Used to capture the TL2 value when Timer 2 is configured
for capture mode, or as the LSB of the 16-bit reload value when Timer 2 is configured
for auto-reload mode.
- RCAP2H – SFR 0xCB – Used to capture the TH2 value when Timer 2 is configured
for capture mode, or as the MSB of the 16-bit reload value when Timer 2 is
configured for auto-reload mode.
- TL2 – SFR 0xCC – Lower eight bits of the 16-bit count.
- TH2 – SFR 0xCD – Upper eight bits of the 16-bit count.
Bit Function
T2CON.7 TF2 - Timer 2 overflow flag. Hardware will set TF2 when Timer 2 overflows from 0xFFFF. TF2 must be
cleared to 0 by the software. TF2 will only be set to a 1 if RCLK and TCLK are both cleared to 0.
Writing a 1 to TF2 forces a Timer 2 interrupt if enabled.
T2CON.6 EXF2 - Timer 2 external flag. Hardware will set EXF2 when a reload or capture is caused by a high-to-
low transition on the t2ex pin, and EXEN2 is set. EXF2 must be cleared to 0 by the software. Writing a 1
to EXF2 forces a Timer 2 interrupt if enabled.
T2CON.5 RCLK - Receive clock flag. Determines whether Timer 1 or Timer 2 is used for Serial port timing of
received data in serial mode 1 or 3. RCLK = 1 selects Timer 2 overflow as the receive clock. RCLK = 0
selects Timer 1 overflow as the receive clock.
T2CON.4 TCLK - Transmit clock flag. Determines whether Timer 1 or Timer 2 is used for Serial port timing of
transmit data in serial mode 1 or 3. TCLK =1 selects Timer 2 overflow as the transmit clock. TCLK = 0
selects Timer 1 overflow as the transmit clock.
T2CON.3 EXEN2 - Timer 2 external enable. EXEN2 = 1 enables capture or reload to occur as a result of a high-to-
low transition on t2ex, if Timer 2 is not generating baud rates for the serial port. EXEN2 = 0 causes
Timer 2 to ignore all external events at t2ex.
T2CON.2 TR2 - Timer 2 run control flag. TR2 = 1 starts Timer 2. TR2 = 0 stops Timer 2.
T2CON.1 C/T2 - Counter/timer select. C/T2 = 0 selects a timer function for Timer 2. C/T2 = 1 selects a counter of
falling transitions on the t2 pin. When used as a timer, Timer 2 runs at four clocks per increment or
twelve clocks per increment as programmed by CKCON.5, in all modes except baud-rate generator
mode. When used in baud-rate generator mode, Timer 2 runs at two clocks per increment, independent of
the state of CKCON.5.
T2CON.0 CP/RL2 - Capture/reload flag. When CP/RL2 = 1, Timer 2 captures occur on high-to-low transitions of
t2ex, if EXEN2 = 1. When CP/RL2 = 0, auto-reloads occur when Timer 2 overflows or when high-to-low
transitions occur on t2ex, if EXEN2 = 1. If either RCLK or TCLK is set to 1, CP/RL2 will not function,
and Timer 2 will operate in auto-reload mode following each overflow.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 71 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 72 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
TH2. The software must preload the starting value into the RCAP2L and RCAP2H
registers.
When Timer 2 is in auto-reload mode, a reload can be forced by a high-to-low
transition on the t2ex pin, if enabled by EXEN2 = 1.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 73 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Mode Sync/A Baud Clock Data Bits Start/ Stop 9th Bit Function
sync
0 Sync CPU_clk/4 or 8 None None
CPU_clk/12
1 Async Timer 1 or 8 1 start, None
Timer 2 1 stop
2 Async CPU_clk/32 or 9 1 start, 0, 1, parity
CPU_clk/64 1 stop
3 Async Timer 1 or 9 1 start, 0, 1, parity
Timer 2 1 stop
Table 10-18 : Serial Port Modes
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 74 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Bit Function
SCON.7 SM0 - Serial port mode bit 0.
SCON.6 SM1 - Serial port mode bit 1, decoded as:
SM0 SM1 Mode
0 0 0
0 1 1
1 0 2
1 1 3
SCON.5 SM2 - Multiprocessor communication enable. In modes 2 and 3, SM2 enables the
multiprocessor communication feature. If SM2 = 1 in mode 2 or 3, RI will not be
activated if the received 9th bit is 0. If SM2 = 1 in mode 1, RI will be activated only
if a valid stop is received. In mode 0, SM2 establishes the baud rate: when SM2 = 0,
the baud rate is CPU_clk/12; when
SM2 = 1, the baud rate is CPU_clk/4.
SCON.4 REN - Receive enable. When REN = 1, reception is enabled.
SCON.3 TB8 - Defines the state of the 9th data bit transmitted in modes 2 and 3.
SCON.2 RB8 - In modes 2 and 3, RB8 indicates the state of the 9th bit received. In mode 1,
RB8 indicates the state of the received stop bit. In mode 0, RB8 is
not used.
SCON.1 TI - Transmit interrupt flag. Indicates that the transmit data word has been shifted
out. In mode 0, TI is set at the end of the 8th data bit. In all other modes, TI is set
when the stop bit is placed on the txd pin. TI must be cleared by the software.
SCON.0 RI – Receive interrupt flag. Indicates that a serial data word has been
received. In mode 0, RI is set at the end of the 8th data bit. In mode 1, RI
is set after the last sample of the incoming stop bit, subject to the state
of SM2.In modes 2 and 3, RI is set at the end of the last sample of RB8. RI
must be cleared by the software.
Table 10-19 : SCON Register – SFR 0x98
10.9.1 Mode 0
Serial mode 0 provides synchronous, half-duplex serial communication. For Serial
Port 0, both serial data input and output occur on rxd pin, and txd provides the shift
clock for both transmit and receive. The rxd and txd pins are alternate function bits of
Port 0, please also see Table 3-2 : Port 0 (P0) functions for port and pin configuration.
The lack of open drain ports on nRF24E2 makes it a programmer responsibility to
control the direction of the rxd pin.
The serial mode 0 baud rate is either CPU_clk/12 or CPU_clk/4, depending on the
state of the SM2. When SM2 = 0, the baud rate is CPU_clk/12; when SM2 = 1, the
baud rate is CPU_clk/4.
Mode 0 operation is identical to the standard 8051. Data transmission begins when an
instruction writes to the SBUF SFR. The UART shifts the data out, LSB first, at the
selected baud rate, until the 8-bit value has been shifted out.
Mode 0 data reception begins when the REN bit is set and the RI bit is cleared in the
corresponding SCON SFR. The shift clock is activated and the UART shifts data in
on each rising edge of the shift clock until eight bits have been received. One machine
cycle after the 8th bit is shifted in, the RI bit is set and reception stops until the
software clears the RI bit.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 75 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Figure 10-8 : Serial Port Mode 0 receive timing for low-speed (CPU_clk/12)
operation.
Figure 10-9 : Serial Port Mode 0 receive timing for high-speed (CPU_clk/4) operation
Figure 10-10 : Serial Port Mode 0 transmit timing for high-speed (CPU_clk/4)
operation
Figure 10-11 : Serial Port Mode 0 transmit timing for high-speed (CPU_clk/4)
operation
10.9.2 Mode 1
Mode 1 provides standard asynchronous, full-duplex communication, using a total
of ten bits: one start bit, eight data bits, and one stop bit. For receive operations, the
stop bit is stored in RB8. Data bits are received and transmitted LSB first.
10.9.2.1 Mode 1 Baud Rate
The mode 1 baud rate is a function of timer overflow. Serial port can use either
Timer 1 or Timer 2 to generate baud rates. Each time the timer increments from its
maximum count (0xFF for Timer 1 or 0xFFFF for Timer 2), a clock is sent to the
baud-rate circuit. The clock is then divided by 16 to generate the baud rate. When
using Timer 1, the SMOD bit selects whether or not to divide the Timer 1 rollover rate
by 2. Therefore, when using Timer 1, the baud rate is determinedby the equation:
2 SMOD
Baud Rate = x Timer 1 Overflow
32
SMOD is SFR bit PCON.7
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 76 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
To use Timer 1 as the baud-rate generator, it is best to use Timer 1 mode 2 (8-bit
counter with auto-reload), although any counter mode can be used. The Timer 1
reload value is stored in the TH1 register, which makes the complete formula for
Timer 1:
2 SMOD clk
Baud Rate = x
32 4 x (256 - TH1)
The 4 in the denominator in the above equation can be obtained by setting the T1M bit
in the CKCON SFR. To derive the required TH1 value from a known baud rate (when
TM1 = 0), use the equation:
2 SMOD ∗ clk
TH1 = 256 -
128 ∗ Baud Rate
You can also achieve very low serial port baud rates from Timer 1 by enabling the
Timer 1 interrupt, configuring Timer 1 to mode 1, and using the Timer 1 interrupt to
initiate a 16-bit software reload. Table Table 10-20 lists sample reload values for a
variety of common serial port baud rates.
To use Timer 2 as the baud-rate generator, configure Timer 2 in auto-reload mode and
set the TCLK and/or RCLK bits in the T2CON SFR. TCLK selects Timer 2 as the
baud-rate generator for the transmitter; RCLK selects Timer 2 as the baud-rate
generator for the receiver. The 16-bit reload value for Timer 2 is stored in the
RCAP2L and RCA2H SFRs, which makes the equation for the Timer 2 baud rate:
clk
Baud Rate =
32 x (65536 - {RCAP2H, RCAP2L})
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 77 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
10-7 : Timer 2 – Baud Rate Generator Mode, instead of the 4 or 12 determined by the
T2M bit in the CKCON SFR.
To derive the required RCAP2H and RCAP2L values from a known baud rate, use the
equation:
clk
RCAP2H,RCAP2L = 65536 –
32 x Baud Rate
Table Table 10-21 lists sample values of RCAP2L and RCAP2H for a variety of
desired baud rates.
Baud Rate C/ 16 MHz CPU clk
T2 RCAP2H RCAP2L
57.6 Kb/s 0 0xFF 0xF7
19.2 Kb/s 0 0xFF 0xE6
9.6 Kb/s 0 0xFF 0xCC
4.8 Kb/s 0 0xFF 0x98
2.4 Kb/s 0 0xFF 0x30
1.2 Kb/s 0 0xFE 0x5F
Table 10-21 : Timer 2 Reload Values for Serial Port Mode 1 Baud Rates
When either RCLK or TCLK is set, the TF2 flag will not be set on a Timer 2
rollover, and the t2ex reload trigger is disabled.
Figure 10-12 illustrates the mode 1 transmit timing. In mode 1, the UART begins
transmitting after the first rollover of the divide-by-16 counter after the software
writes to the SBUF register. The UART transmits data on the txd pin in the following
order: start bit, eight data bits (LSB first), stop bit. The TI bit is set two clock cycles
after the stop bit is transmitted.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 78 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
For noise rejection, the serial port establishes the content of each received bit by a
majority decision of three consecutive samples in the middle of each bit time. This is
especially true for the start bit. If the falling edge on rxd_in is not verified by a
majority decision of three consecutive samples (low), then the serial port stops
reception and waits for another falling edge on rxd_in.
At the middle of the stop bit time, the serial port checks for the following conditions:
- RI = 0
- If SM2 = 1, the state of the stop bit is 1
(if SM2 = 0, the state of the stop bit does not matter)
If the above conditions are met, the serial port then writes the received byte to the
SBUF register, loads the stop bit into RB8, and sets the RI bit. If the above
conditions are not met, the received data is lost, the SBUF register and RB8 bit are not
loaded, and the RI bit is not set. After the middle of the stop bit time, the serial port
waits for another high-to-low transition on the rxd_in pin.
Mode 1 operation is identical to that of the standard 8051 when Timers 1 and 2 use
CPU_clk/12 (the default).
10.9.3 Mode 2
Mode 2 provides asynchronous, full-duplex communication, using a total of
eleven bits:
- One start bit
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 79 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Figure 10-14 illustrates the mode 2 transmit timing. Transmission begins after the first
rollover of the divide-by-16 counter following a software write to SBUF . The UART
shifts data out on the txd pin in the following order: start bit, data bits (LSB first), 9th
bit, stop bit. The TI bit is set when the stop bit is placed on the txd pin.
Figure 10-15 illustrates the mode 2 receive timing. Reception begins at the falling
edge of a start bit received on rxd_in, when enabled by the REN bit. For this purpose,
rxd_in is sampled sixteen times per bit for any baud rate.When a falling edge of a start
bit is detected, the divide-by-16 counter used to generate the receive clock is reset to
align the counter rollover to the bit boundaries.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 80 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
10.9.4 Mode 3
Mode 3 provides asynchronous, full-duplex communication, using a total of eleven
bits:
- One start bit
- Eight data bits
- One programmable 9th bit
- One stop bit; the data bits are transmitted and received LSB first
The mode 3 transmit and receive operations are identical to mode 2. The mode 3 baud
rate generation is identical to mode 1. That is, mode 3 is a combination of mode 2
protocol and mode 1 baud rate. Figure 10-16 illustrates the mode 3 transmit timing.
Mode 3 operation is identical to that of the standard 8051 when Timers 1 and 2 use
CPU_clk/12 (the default).
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 81 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 82 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
11 ELECTRICAL SPECIFICATIONS
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 83 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
NOTES:
1) Usable band is determined by local regulations
2) The crystal frequency may be chosen from 5 different values (4, 8, 12, 16, and 20MHz) which are specified in
the nRF2401 configuration word, please seeTable 14-2 Crystal specification of the nRF24E2. 16MHz is
required for 1Mbps operation.
3) Antenna load impedance = 100Ω+j175Ω
4) Current for transmitter RF subsystem only. Antenna load impedance = 100Ω+j175Ω. Effective data rate
250kbps or 1Mbps.
I ) Test Level I: 100% production tested at +25°C
II ) Test Level II: 100% production tested at +25°C and sample tested at specified temperatures
III ) Test Level III: Sample tested only
IV ) Test Level IV: Parameter is guaranteed by design and characterization testing
V ) Test Level V: Parameter is typical value only
VI) Test Level VI: 100% production tested at +25°C. Guaranteed by design and characterization testing for
industrial temperature range
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 84 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
12 PACKAGE OUTLINE
nRF24E2G uses QFN36 6x6 package, with matt tin plating.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 85 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Abbreviations:
B – Build Code, i.e. unique code for production sites,
package type and test platform
X – "X" grade, i.e. Engineering Samples (optional)
YY – 2 digit Year number
WW – 2 digit Week number
LL – 2 letter wafer lot number code
6
BSC: Basic Spacing between Centers, ref. JEDEC standard 95, page 4.17-11/A
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 86 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Input voltage
For analog pins, AIN0 to AIN7 and AREF :
VIA ................................. - 0.3V to 2.0 V
For all other pins :
VI ....................... - 0.3V to VDD + 0.3V
Output voltage
VO ...................... - 0.3V to VDD + 0.3V
Temperatures
Operating Temperature…. - 40°C to + 85°C
Storage Temperature….… - 40°C to + 125°C
Note: Stress exceeding one or more of the limiting values may cause permanent
damage to the device.
13.1.1 ATTENTION!
Electrostatic Sensitive Device
Observe Precaution for handling.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 87 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
14 Peripheral RF Information
14.1.1 Antenna output
The ANT1 & ANT2 output pins provide a balanced RF output to the antenna. The
pins must have a DC path to VDD, either via a RF choke or via the center point in a
dipole antenna. The load impedance seen between the ANT1/ANT2 outputs should be
in the range 200-700Ω. A load of 100Ω+j175Ω is recommended for maximum output
power (0dBm). Lower load impedance (for instance 50 Ω) can be obtained by fitting a
simple matching network.
To achieve a crystal oscillator solution with low power consumption and fast start-up
time, it is recommended to specify the crystal with a low value of crystal load
capacitance. Specifying CL=12pF is OK, but it is possible to use up to 16pF.
Specifying a lower value of crystal parallel equivalent capacitance, C0 will also work,
but this can increase the price of the crystal itself. Typically C0=1.5pF at a crystal
specified for C0_max=7.0pF.
The selected frequency value must also be set into the nRF2401 configuration word,
please see Table 4-9 Crystal frequency setting.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 88 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
A PCB with a minimum of two layers including a ground plane is recommended for
optimum performance. The nRF24E2 DC supply voltage should be de-coupled as
close as possible to the VDD pins with high performance RF capacitors, see Table
15-1. It is preferable to mount a large surface mount capacitor (e.g. 4.7µF tantalum) in
parallel with the smaller value capacitors. The nRF24E2 supply voltage should be
filtered and routed separately from the supply voltages of any digital circuitry.
Long power supply lines on the PCB should be avoided. All device grounds, VDD
connections and VDD bypass capacitors must be connected as close as possible to the
nRF24E2 IC. For a PCB with a topside RF ground plane, the VSS pins should be
connected directly to the ground plane. For a PCB with a bottom ground plane, the
best technique is to have via holes as close as possible to the VSS pads. One via hole
should be used for each VSS pin.
Full swing digital data or control signals should not be routed close to the crystal or
the power supply lines.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 89 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 90 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
15 Application example
VDD
R2
22k
C5 C6
1nF 10nF
36
35
34
33
32
31
30
29
28
VSS
VSS
AREF
VDD
P1.2
AIN1
AIN2
AIN3
AIN4
VDD
1 27
2
VDD nRF24E2 IREF
26
L4
AIN0 AIN5 5.6nH
3 25
DIN1 DVDD2 AIN6 C10
4 24 C11 C12
DIO0 P1.0 AIN7 1.0pF
5 23 L3
DIO1
6
P1.1 VSS
22
RF I/O xxx
xxx DIO2 P0.0 VDD 5.6nH
7 21 2.2pF 4.7pF
DIO3 P0.1 VSS_PA L1
8 20
DIO4 P0.2 ANT2 3.3nH
9 19
DIO5 P0.3 ANT1
VDD_PA
DIO6
DVDD
L2
DIO7
XC2
XC1
VSS
P0.4
P0.5
P0.6
P0.7
DIO8 10nH
DIO9 C9
U1 1.0pF
VDD
nRF24E2
10
11
12
13
14
15
16
17
18
R3
10k
U2 VDD X1 C3 C4
1 8 4.7pF 2.2nF
CS VCC
2 7
SO HOLD
3 6 C13 C7 C8
WP SCK
4 5 10nF 1nF 33nF
VSS SI 16 MHz
R1
R4 25XX320
10k 1M
C1 C2
22pF 22pF
xxx
Figure 15-1 nRF24E2 schematic for RF layout with single end 50Ω antenna
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 91 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
2)
Wire wound inductors are recommended, other can be used if their self-resonant
frequency (SRF) is > 2.7 GHz
1)
nRF24E2 can operate at several crystal frequencies, please refer to 88.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 92 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Figure 15-2 shows a PCB layout example for the application schematic in Figure 15-1.
A double-sided FR-4 board of 1.6mm thickness is used. This PCB has a ground plane
on the bottom layer. Additionally, there are ground areas on the component side of the
board to ensure sufficient grounding of critical components. A large number of via
holes connect the top layer ground areas to the bottom layer ground plane.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 93 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
16 Table of Figures
Figure 1-1 nRF24E2 block diagram plus external components.....................................5
Figure 3-1 : SPI interface timing..................................................................................17
Figure 4-1 : Transmitter interface ................................................................................19
Figure 4-2Clocking in data with CPU and sending with ShockBurst technology....21
Figure 4-3 RF Current consumption with & without ShockBurst technology .........21
Figure 4-4 Flow Chart ShockBurst™ Transmit of transmitter subsystem...................22
Figure 4-5Data packet set-up .......................................................................................23
Figure 4-6 Data Package Diagram ...............................................................................28
Figure 4-7 Timing diagram for power down (or VDD off) to configuration mode for
transmitter subsystem. ...........................................................................................29
Figure 4-8 Power down (or VDD off) to active mode .................................................30
Figure 4-9 Timing diagram for configuration of transmitter subsystem......................30
Figure 4-10 Timing of ShockBurst™ in TX................................................................31
Figure 5-1 : Block diagram of A/D converter..............................................................33
Figure 5-2 Typical use of A/D with 2 ratiometric inputs.............................................35
Figure 5-3 : Timing diagram single step conversion. ..................................................36
Figure 5-4 : Timing diagram continuous mode conversion. ........................................37
Figure 8-18-2 : RTC and watchdog block diagram .....................................................47
Figure 10-1 : Memory Map and Organization .............................................................52
Figure 10-2 : Timer 0/1 – Modes 0 and 1 ....................................................................68
Figure 10-3 : Timer 0/1 – Mode 2................................................................................69
Figure 10-4 : Timer 0 – Mode 3...................................................................................69
Figure 10-5 : Timer 2 – Timer/Counter with Capture .................................................72
Figure 10-6 : Timer 2 – Timer/Counter with Auto-Reload .........................................73
Figure 10-7 : Timer 2 – Baud Rate Generator Mode ...................................................74
Figure 10-8 : Serial Port Mode 0 receive timing for low-speed (CPU_clk/12)
operation................................................................................................................76
Figure 10-9 : Serial Port Mode 0 receive timing for high-speed (CPU_clk/4) operation
...............................................................................................................................76
Figure 10-10 : Serial Port Mode 0 transmit timing for high-speed (CPU_clk/4) ........76
Figure 10-11 : Serial Port Mode 0 transmit timing for high-speed (CPU_clk/4) ........76
Figure 10-12 : Serial port Mode 1 Transmit Timing ...................................................78
Figure 10-13 : Serial port Mode 1 Receive Timing .....................................................79
Figure 10-14 : Serial port Mode 2 Transmit Timing ...................................................80
Figure 10-15 : Serial port Mode 2 Receive Timing .....................................................81
Figure 10-16 : Serial port Mode 3 Transmit Timing ...................................................82
Figure 10-17 : Serial port Mode 3 Receive Timing .....................................................82
Figure 12-1 : nRF24E2 Package outline. Dimensions are in mm................................86
Figure 15-1 nRF24E2 schematic for RF layout with single end 50Ω antenna ............91
Figure 15-2 nRF24E2 RF layout with single ended connection to 50Ω antenna and
0603 size passive components...............................................................................93
17 Table of Tables
Table 1-1 : nRF24E2 quick reference data ....................................................................4
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 94 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 95 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 96 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
18 DEFINITIONS
Nordic Semiconductor ASA reserves the right to make changes without further notice
to the product to improve reliability, function or design. Nordic Semiconductor does
not assume any liability arising out of the application or use of any product or circuits
described herein.
All rights reserved ®. Reproduction in whole or in part is prohibited without the prior
written permission of the copyright holder.
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 97 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
YOUR NOTES
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 98 of 99 March 2006
PRODUCT SPECIFICATION
nRF24E2 2.4 GHz Radio Transmitter with Microcontroller
Main Office:
Vestre Rosten 81, N-7075 Tiller, Norway
Phone: +47 72 89 89 00, Fax: +47 72 89 89 89
Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 - Fax +4772898989
Revision: 1.3 Page 99 of 99 March 2006