SN250
Single-chip ZigBee
TM
/802.15.4 solution
Preliminary Data
Features
■
■
Integrated 2.4GHz, IEEE 802.15.4-compliant
transceiver:
– Robust RX filtering allows co-existence
with IEEE 802.11g and Bluetooth devices
–
−
97dBm RX sensitivity (1% PER, 20byte
packet)
– + 3dBm nominal output power
– Increased radio performance mode (boost
mode) gives
−
98dBm sensitivity and
+
5dBm transmit power
– Integrated VCO and loop filter
Integrated IEEE 802.15.4 PHY and lower MAC
with DMA
Integrated hardware support for Packet Trace
Interface for InSight Development Environment
Provides integrated RC oscillator for low power
operation
Supports optional 32.768kHz crystal oscillator
for higher accuracy needs
16-bit XAP2b microprocessor
Integrated memory:
– 128kB of Flash
– 5kB of SRAM
Configurable memory protection scheme
Two sleep modes:
– Processor idle
– Deep sleep—1.0μA (1.5μA with optional
32.768kHz oscillator enabled)
Seventeen GPIO pins with alternate functions
Two Serial Controllers with DMA
– SC1: I
2
C master, SPI master, UART
– SC2: I
2
C master, SPI master/slave
Two 16-bit general-purpose timers; one 16-bit
sleep timer
Watchdog timer and power-on-reset circuitry
Non-intrusive debug interface (SIF)
Integrated AES encryption accelerator
Integrated ADC module first-order, sigma-delta
converter with 12-bit resolution
Integrated 1.8V voltage regulator
■
■
■
■
■
■
■
■
■
■
■
■
■
■
■
July 2006
Rev 1.0
1/130
www.st.com
1
This is preliminary information on a new product now in development or undergoing evaluation. Details are subject to
change without notice.
Contents
SN250
Contents
1
2
3
4
5
General description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Order codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Pin assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Top-level functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
5.1
5.2
5.3
5.4
5.5
Absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Recommended operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Environmental characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
DC electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
RF electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
5.5.1
5.5.2
5.5.3
Receive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Transmit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Synthesizer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
6
Functional description—system modules . . . . . . . . . . . . . . . . . . . . . . . . 20
6.1
Receive (RX) path . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
6.1.1
6.1.2
RX baseband . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
RSSI and CCA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
6.2
6.3
6.4
6.5
6.6
Transmit (TX) path . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
6.2.1
TX baseband . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Integrated MAC module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Packet Trace Interface (PTI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
XAP2b microprocessor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Embedded memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
6.6.1
6.6.2
6.6.3
6.6.4
6.6.5
Flash memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Simulated EEPROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Flash Information Area (FIA) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
RAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
2/130
SN250
6.7
6.8
6.9
6.10
Contents
Encryption accelerator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Reset detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Power-on-Reset (POR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Clock sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
6.10.1 High-frequency crystal oscillator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
6.10.2 Low-frequency oscillator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
6.10.3 Internal RC oscillator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
6.11
6.12
6.13
6.14
Random number generator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Watchdog timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Sleep timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Power management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
7
Functional description—application modules . . . . . . . . . . . . . . . . . . . . . 31
7.1
7.2
GPIO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
7.1.1
Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Serial controller SC1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
7.2.1
7.2.2
7.2.3
7.2.4
UART mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
SPI master mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
I2C master mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
7.3
Serial controller SC2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
7.3.1
7.3.2
7.3.3
SPI modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
I2C Master Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
7.4
General purpose timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
7.4.1
7.4.2
7.4.3
7.4.4
7.4.5
7.4.6
Clock sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
Timer functionality (counting) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Timer functionality (output compare) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Timer functionality (input capture) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Timer interrupt sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
7.5
7.6
ADC module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
7.5.1
Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Event manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .112
7.6.1
Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
3/130
Contents
7.7
SN250
Integrated voltage regulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .117
8
9
10
11
12
13
14
SIF module programming and debug interface . . . . . . . . . . . . . . . . . . . 118
Typical application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
Mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
Register address table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
Abbreviations and acronyms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
4/130
SN250
General description
1
General description
The SN250 is a single-chip solution that integrates a 2.4GHz, IEEE 802.15.4-compliant
transceiver with a 16-bit XAP2b microprocessor. It contains integrated Flash and RAM
memory and peripherals of use to designers of ZigBee-based applications.
The transceiver utilizes an efficient architecture that exceeds the dynamic range
requirements imposed by the IEEE 802.15.4-2003 standard by over 15dB. The integrated
receive channel filtering allows for co-existence with other communication standards in the
2.4GHz spectrum such as IEEE 802.11g and Bluetooth. The integrated regulator, VCO, loop
filter, and power amplifier keep the external component count low. An optional high
performance radio mode (boost mode) is software selectable to boost dynamic range by a
further 3dB.
The XAP2b microprocessor is a power-optimized core integrated in the SN250. It supports
two different modes of operation—System Mode and Application Mode. The ZNet stack
runs in System Mode with full access to all areas of the chip. Application code runs in
Application Mode with limited access to the SN250 resources; this allows for the scheduling
of events by the application developer while preventing modification of restricted areas of
memory and registers. This architecture results in increased stability and reliability of deployed
solutions.
The SN250 has 128kB of embedded Flash memory and 5kB of integrated RAM for data and
program storage. The SN250 software stack employs an effective wear-leveling algorithm in
order to optimize the lifetime of the embedded Flash.
To maintain the strict timing requirements imposed by ZigBee and the IEEE 802.15.4-2003
standard, the SN250 integrates a number of MAC functions into the hardware. The MAC
hardware handles automatic ACK transmission and reception, automatic backoff delay, and
clear channel assessment for transmission, as well as automatic filtering of received
packets. In addition, the SN250 allows for true MAC level debugging by integrating the
Packet Trace Interface.
To support user-defined applications, a number of peripherals such as GPIO, UART, SPI,
I
2
C, ADC, and general-purpose timers are integrated. Also, an integrated voltage regulator,
power-on-reset circuitry, sleep timer, and low-power sleep modes are available. The deep
sleep mode draws less than 1μA, allowing products to achieve long battery life.
Finally, the SN250 utilizes the non-intrusive SIF module for powerful software debugging
and programming of the XAP2b microcontroller.
Target applications for the SN250 include:
●
●
●
●
Building automation and control
Home automation and control
Home entertainment control
Asset tracking
The SN250 is purchased with ZNet, a ZigBee-compliant software stack codeveloped by
Ember Corporation and STMicroelectronics, providing a ZigBee profile-ready, platform-
compliant solution.This technical datasheet details the SN250 features available to
customers using it with the ZNet stack.
5/130