90
CC2420 SWRS041B Page 1 of 89 2.4 GHz IEEE 802.15.4 / ZigBee-ready RF Transceiver Applications 2.4 GHz IEEE 802.15.4 systems ZigBee systems Home/building automation Industrial Control Wireless sensor networks PC peripherals Consumer Electronics Product Description The CC2420 is a true single-chip 2.4 GHz IEEE 802.15.4 compliant RF transceiver designed for low power and low voltage wireless applications. CC2420 includes a digital direct sequence spread spectrum baseband modem providing a spreading gain of 9 dB and an effective data rate of 250 kbps. The CC2420 is a low-cost, highly integrated solution for robust wireless communication in the 2.4 GHz unlicensed ISM band. It complies with worldwide regulations covered by ETSI EN 300 328 and EN 300 440 class 2 (Europe), FCC CFR47 Part 15 (US) and ARIB STD-T66 (Japan). The CC2420 provides extensive hardware support for packet handling, data buffering, burst transmissions, data encryption, data authentication, clear channel assessment, link quality indication and packet timing information. These features reduce the load on the host controller and allow CC2420 to interface low-cost microcontrollers. The configuration interface and transmit / receive FIFOs of CC2420 are accessed via an SPI interface. In a typical application CC2420 will be used together with a microcontroller and a few external passive components. CC2420 is based on Chipcon’s SmartRF ® - 03 technology in 0.18 µm CMOS. Key Features True single-chip 2.4 GHz IEEE 802.15.4 compliant RF transceiver with baseband modem and MAC support DSSS baseband modem with 2 MChips/s and 250 kbps effective data rate. Suitable for both RFD and FFD operation Low current consumption (RX: 18.8 mA, TX: 17.4 mA) Low supply voltage (2.1 – 3.6 V) with integrated voltage regulator Low supply voltage (1.6 – 2.0 V) with external voltage regulator Programmable output power No external RF switch / filter needed I/Q low-IF receiver I/Q direct upconversion transmitter Very few external components 128(RX) + 128(TX) byte data buffering Digital RSSI / LQI support Hardware MAC encryption (AES-128) Battery monitor QLP-48 package, 7x7 mm Complies with ETSI EN 300 328, EN 300 440 class 2, FCC CFR-47 part 15 and ARIB STD-T66 Powerful and flexible development tools available

read.pudn.comread.pudn.com/downloads145/doc/comm/633155/cc2420注释版.pdf · CC2420 SWRS041B Page 1 of 89 2.4 GHz IEEE 802.15.4 / ZigBee-ready RF Transceiver Applications • 2.4

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

CC2420

SWRS041B Page 1 of 89

2.4 GHz IEEE 802.15.4 / ZigBee-ready RF Transceiver

Applications

• 2.4 GHz IEEE 802.15.4 systems • ZigBee systems • Home/building automation • Industrial Control

• Wireless sensor networks • PC peripherals • Consumer Electronics

Product Description

The CC2420 is a true single-chip 2.4 GHz IEEE 802.15.4 compliant RF transceiver designed for low power and low voltage wireless applications. CC2420 includes a digital direct sequence spread spectrum baseband modem providing a spreading gain of 9 dB and an effective data rate of 250 kbps.

The CC2420 is a low-cost, highly integrated solution for robust wireless communication in the 2.4 GHz unlicensed ISM band. It complies with worldwide regulations covered by ETSI EN 300 328 and EN 300 440 class 2 (Europe), FCC CFR47 Part 15 (US) and ARIB STD-T66 (Japan).

The CC2420 provides extensive hardware support for packet handling, data buffering, burst transmissions, data encryption, data authentication, clear channel assessment, link quality indication and packet timing information. These

features reduce the load on the host controller and allow CC2420 to interface low-cost microcontrollers.

The configuration interface and transmit / receive FIFOs of CC2420 are accessed via an SPI interface. In a typical application CC2420 will be used together with a microcontroller and a few external passive components.

CC2420 is based on Chipcon’s SmartRF®-03 technology in 0.18 µm CMOS.

Key Features

• True single-chip 2.4 GHz IEEE 802.15.4 compliant RF transceiver with baseband modem and MAC support

• DSSS baseband modem with 2 MChips/s and 250 kbps effective data rate.

• Suitable for both RFD and FFD operation

• Low current consumption (RX: 18.8 mA, TX: 17.4 mA)

• Low supply voltage (2.1 – 3.6 V) with integrated voltage regulator

• Low supply voltage (1.6 – 2.0 V) with external voltage regulator

• Programmable output power • No external RF switch / filter needed • I/Q low-IF receiver • I/Q direct upconversion transmitter • Very few external components • 128(RX) + 128(TX) byte data buffering • Digital RSSI / LQI support • Hardware MAC encryption (AES-128) • Battery monitor • QLP-48 package, 7x7 mm • Complies with ETSI EN 300 328, EN

300 440 class 2, FCC CFR-47 part 15 and ARIB STD-T66

• Powerful and flexible development tools available

Administrator
文本框
应用: 2.4G802.15.4系统 Zigbee系统 家庭办公自动化 工业控制 无线传感器网络 PC外设 消费电子
Administrator
文本框
产品描述: CC2420是一片单片面向于低电压低功耗的2.4Ghz /IEEE802.15.4兼容的RF收发器。CC2420包括一个提供9DB、250Kbps的DDS基带Modem。 CC2420是一个高集成度的2.4G全世界通用的ISM频段无线传输解决方案。 CC2420还提供了硬件实现信息包处理,数据缓冲,突发传输,数据加解密,数据识别,通道空闲确认,连接质量评估,包时间信息。
Administrator
文本框
这些特性减轻了主机的负担,使得CC2420可以与一个低速低价的微控器进行连接。 通过SPI接口可以对CC2420进行控制和数据读取。在典型应用中,CC2420可以与一个微控器和一些简单外围器件的一个构成应用。 CC2420是基于Chipcon's SmartRF-0.18umCmos工艺制造。
Administrator
文本框
主要特性:1.真正的单片包括基带Modem和MAC支持的2.4GhzIEEE802.15.4兼容特性的RF收发器。2.有2Mchips/s和250Kbps有效数据传输速率的DSSS基带Modem.3、适合RFD和FFd操作。4、低电流消耗5.在2.1V-3.6V使用集成电压稳压器。6、在1.6V-2.0V使用外部稳压器。7.可编程输出功率。8、无外部RF转换器和滤波器。9。低I/Q接收器。10、???????11、非常少的外部元件。12、128字节收发缓冲器。13.数字RSSI/LQI支持。14、硬件MAC加密。15、电池监控器。16、QLP-48封装17、世界兼容。18、强大的可修剪的开发工具。
Administrator
文本框
译:SWIF(QQ:462119274) 英文很烂,在此翻译只是为自已学习.有需要进行修正的请联系我,AR7原版

CC2420

SWRS041B Page 2 of 89

Table of contents

1 Abbreviations_________________________________________________________________5 2 References ___________________________________________________________________6 3 Features _____________________________________________________________________7 4 Absolute Maximum Ratings _____________________________________________________8 5 Operating Conditions __________________________________________________________8 6 Electrical Specifications ________________________________________________________9

6.1 Overall___________________________________________________________________9 6.2 Transmit Section ___________________________________________________________9 6.3 Receive Section ___________________________________________________________10 6.4 RSSI / Carrier Sense _______________________________________________________11 6.5 IF Section _______________________________________________________________11 6.6 Frequency Synthesizer Section _______________________________________________11 6.7 Digital Inputs/Outputs ______________________________________________________12 6.8 Voltage Regulator _________________________________________________________13 6.9 Battery Monitor ___________________________________________________________13 6.10 Power Supply ____________________________________________________________13

7 Pin Assignment ______________________________________________________________15 8 Circuit Description ___________________________________________________________17 9 Application Circuit ___________________________________________________________19

9.1 Input / output matching _____________________________________________________19 9.2 Bias resistor ______________________________________________________________19 9.3 Crystal __________________________________________________________________19 9.4 Voltage regulator__________________________________________________________19 9.5 Power supply decoupling and filtering _________________________________________19

10 IEEE 802.15.4 Modulation Format ____________________________________________24 11 Configuration Overview _____________________________________________________25 12 Evaluation Software ________________________________________________________26 13 4-wire Serial Configuration and Data Interface__________________________________27

13.1 Pin configuration __________________________________________________________27 13.2 Register access____________________________________________________________27 13.3 Status byte _______________________________________________________________28 13.4 Command strobes _________________________________________________________29 13.5 RAM access______________________________________________________________29 13.6 FIFO access ______________________________________________________________31 13.7 Multiple SPI access ________________________________________________________31

14 Microcontroller Interface and Pin Description __________________________________32 14.1 Configuration interface _____________________________________________________32 14.2 Receive mode ____________________________________________________________33 14.3 RXFIFO overflow _________________________________________________________33 14.4 Transmit mode____________________________________________________________34 14.5 General control and status pins _______________________________________________35

15 Demodulator, Symbol Synchroniser and Data Decision ___________________________35 16 Frame Format _____________________________________________________________36

16.1 Synchronisation header _____________________________________________________36 16.2 Length field ______________________________________________________________37 16.3 MAC protocol data unit_____________________________________________________37 16.4 Frame check sequence______________________________________________________38

CC2420

SWRS041B Page 3 of 89

17 RF Data Buffering __________________________________________________________39 17.1 Buffered transmit mode_____________________________________________________39 17.2 Buffered receive mode _____________________________________________________39 17.3 Unbuffered, serial mode ____________________________________________________40

18 Address Recognition ________________________________________________________41 19 Acknowledge Frames _______________________________________________________41 20 Radio control state machine __________________________________________________43 21 MAC Security Operations (Encryption and Authentication) _______________________45

21.1 Keys____________________________________________________________________45 21.2 Nonce / counter ___________________________________________________________45 21.3 Stand-alone encryption _____________________________________________________46 21.4 In-line security operations ___________________________________________________46 21.5 CTR mode encryption / decryption ____________________________________________47 21.6 CBC-MAC_______________________________________________________________47 21.7 CCM ___________________________________________________________________47 21.8 Timing __________________________________________________________________48

22 Linear IF and AGC Settings__________________________________________________48 23 RSSI / Energy Detection _____________________________________________________48 24 Link Quality Indication _____________________________________________________49 25 Clear Channel Assessment ___________________________________________________50 26 Frequency and Channel Programming _________________________________________50 27 VCO and PLL Self-Calibration _______________________________________________51

27.1 VCO____________________________________________________________________51 27.2 PLL self-calibration________________________________________________________51

28 Output Power Programming _________________________________________________51 29 Voltage Regulator __________________________________________________________51 30 Battery Monitor____________________________________________________________52 31 Crystal Oscillator __________________________________________________________53 32 Input / Output Matching ____________________________________________________54 33 Transmitter Test Modes _____________________________________________________54

33.1 Unmodulated carrier _______________________________________________________54 33.2 Modulated spectrum _______________________________________________________55

34 System Considerations and Guidelines _________________________________________57 34.1 Frequency hopping and multi-channel systems___________________________________57 34.2 Data burst transmissions ____________________________________________________57 34.3 Crystal accuracy and drift ___________________________________________________57 34.4 Communication robustness __________________________________________________57 34.5 Communication security ____________________________________________________57 34.6 Low-cost systems _________________________________________________________58 34.7 Battery operated systems ____________________________________________________58 34.8 BER / PER measurements ___________________________________________________58

35 PCB Layout Recommendations _______________________________________________59 36 Antenna Considerations _____________________________________________________59 37 Configuration Registers _____________________________________________________61 38 Test Output Signals _________________________________________________________81 39 Package Description (QLP 48) ________________________________________________83 40 Recommended layout for package (QLP 48) ____________________________________84

CC2420

SWRS041B Page 4 of 89

40.1 Package thermal properties __________________________________________________84 40.2 Soldering information ______________________________________________________84 40.3 Plastic tube specification ____________________________________________________85 40.4 Carrier tape and reel specification _____________________________________________85

41 Ordering Information _______________________________________________________85 42 General Information ________________________________________________________86

42.1 Document History _________________________________________________________86 42.2 Product Status Definitions___________________________________________________87

43 Address Information ________________________________________________________88 44 TI Worldwide Technical Support _____________________________________________88

CC2420

SWRS041B Page 5 of 89

1 Abbreviations

ADC - Analog to Digital Converter AES - Advanced Encryption Standard AGC - Automatic Gain Control ARIB - Association of Radio Industries and Businesses BER - Bit Error Rate CBC-MAC - Cipher Block Chaining Message Authentication Code CCA - Clear Channel Assessment CCM - Counter mode + CBC-MAC CFR - Code of Federal Regulations CSMA-CA - Carrier Sense Multiple Access with Collision Avoidance CTR - Counter mode (encryption) CW - Continuous Wave DAC - Digital to Analog Converter DSSS - Direct Sequence Spread Spectrum ESD - Electro Static Discharge ESR - Equivalent Series Resistance EVM - Error Vector Magnitude FCC - Federal Communications Commission FCF - Frame Control Field FIFO - First In First Out FFCTRL - FIFO and Frame Control HSSD - High Speed Serial Debug IEEE - Institute of Electrical and Electronics Engineers IF - Intermediate Frequency ISM - Industrial, Scientific and Medical ITU-T - International Telecommunication Union – Telecommunication Standardization Sector I/O - Input / Output I/Q - In-phase / Quadrature-phase kbps - kilo bits per second LNA - Low-Noise Amplifier LO - Local Oscillator LQI - Link Quality Indication LSB - Least Significant Bit / Byte MAC - Medium Access Control MFR - MAC Footer MHR - MAC Header MIC - Message Integrity Code MPDU - MAC Protocol Data Unit MSDU - MAC Service Data Unit NA - Not Available NC - Not Connected O-QPSK - Offset - Quadrature Phase Shift Keying PA - Power Amplifier PCB - Printed Circuit Board PER - Packet Error Rate PHY - Physical Layer PHR - PHY Header PLL - Phase Locked Loop PSDU - PHY Service Data Unit QLP - Quad Leadless Package RAM - Random Access Memory RBW - Resolution BandWidth RF - Radio Frequency RSSI - Receive Signal Strength Indicator RX - Receive

Administrator
文本框
模数转换器
Administrator
文本框
增强型加密标准
Administrator
文本框
自动增益控制
Administrator
文本框
无线商业联盟
Administrator
文本框
位错误率
Administrator
文本框
信号质量指示器
Administrator
文本框
中心频率

CC2420

SWRS041B Page 6 of 89

SHR - Synchronisation Header SPI - Serial Peripheral Interface TBD - To Be Decided / To Be Defined T/R - Transmit / Receive TX - Transmit VCO - Voltage Controlled Oscillator VGA - Variable Gain Amplifier

2 References

[1] IEEE std. 802.15.4 - 2003: Wireless Medium Access Control (MAC) and Physical Layer (PHY) specifications for Low Rate Wireless Personal Area Networks (LR-WPANs)

http://standards.ieee.org/getieee802/download/802.15.4-2003.pdf

[2] NIST FIPS Pub 197: Advanced Encryption Standard (AES), Federal Information Processing Standards Publication 197, US Department of Commerce/N.I.S.T., November 26, 2001. Available from the NIST website.

http://csrc.nist.gov/publications/fips/fips197/fips-197.pdf

[3] R. Housley, D. Whiting, N. Ferguson, Counter with CBC-MAC (CCM), submitted to NIST, June 3, 2002. Available from the NIST website.

http://csrc.nist.gov/CryptoToolkit/modes/proposedmodes/ProposedModesPage.html

Administrator
文本框
同步头

CC2420

SWRS041B Page 7 of 89

3 Features

• 2400 – 2483.5 MHz RF Transceiver • Direct Sequence Spread

Spectrum (DSSS) transceiver • 250 kbps data rate, 2 MChip/s

chip rate • O-QPSK with half sine pulse

shaping modulation • Very low current consumption

(RX: 18.8 mA, TX: 17.4 mA) • High sensitivity (-95 dBm) • High adjacent channel rejection

(30/45 dB) • High alternate channel rejection

(53/54 dB) • On-chip VCO, LNA and PA • Low supply voltage (2.1 – 3.6 V)

with on-chip voltage regulator • Programmable output power • I/Q low-IF soft decision receiver • I/Q direct up-conversion

transmitter

• Separate transmit and receive FIFOs • 128 byte transmit data FIFO • 128 byte receive data FIFO

• Very few external components • Only reference crystal and a

minimised number of passives • No external filters needed

• Easy configuration interface • 4-wire SPI interface • Serial clock up to 10 MHz

• 802.15.4 MAC hardware support: • Automatic preamble generator • Synchronisation word

insertion/detection • CRC-16 computation and

checking over the MAC payload • Clear Channel Assessment • Energy detection / digital RSSI • Link Quality Indication • Full automatic MAC security

(CTR, CBC-MAC, CCM)

• 802.15.4 MAC hardware security: • Automated security operations

within the receive and transmit FIFOs.

• CTR mode encryption / decryption • CBC-MAC authentication • CCM encryption / decryption and

authentication • Stand-alone AES encryption

• Development tools available • Fully equipped development kit • Demonstration board reference

design with microcontroller code • Easy-to-use software for

generating the CC2420 configu-ration data

• Small size QLP-48 package, 7 x 7 mm • Complies with EN 300 328, EN 300

440 class 2, FCC CFR47 part 15 and ARIB STD-T66

Administrator
文本框
2400-2483.5Mhz收发器 1.DSSS发送器 2.250K数据传输速率,2Mchip/s速度 3.Q-QPSK半波调制器 4.极低工作电流 5.高接收灵每度 6、高邻近通道抑制比 7.高切换通道抑制比 8、On-chipVCO,LNA,和PA 9、2.1V-3.6V片载稳压器 10、可编程输出功率 11、??? 12、????
Administrator
文本框
分离的接收发送缓冲器 128字节发送缓冲器 128字节接收缓冲器 极少外部元件 。只有基准晶振和一些滤波器 。不需要外部滤波器 简易配置接口 。4-WireSPI 。时钟可达10Mhz
Administrator
文本框
802.15.4MAC硬件支持: 1.自动前导生成。2.同步头加入/检测。3、CRC-16计算,MAC负荷检测。4。能量检测、数字RSSI。5。连接质量指示器。6.完整MAC自动安全检测。 802.15.4MAC硬件安全: 1.在接收和发送过程中自动安全操作。2.CTR加解密技术.3.CBC-MAC检验.4.CCM.5.独立AES. .开发工作. .全套开发工作.有程序的参考设计.自动生成CC2420配置软件. .QLP-48封装 .标准兼容

CC2420

SWRS041B Page 8 of 89

4 Absolute Maximum Ratings

Parameter Min. Max. Units Condition

Supply voltage for on-chip voltage regulator, VREG_IN pin 43.

-0.3 3.6 V

Supply voltage (VDDIO) for digital I/Os, DVDD3.3, pin 25.

-0.3 3.6 V

Supply voltage (VDD) on AVDD_VCO, DVDD1.8, etc (pin no 1, 2, 3, 4, 10, 14, 15, 17, 18, 20, 26, 35, 37, 44 and 48)

−0.3 2.0 V

Voltage on any digital I/O pin, (pin no. 21, 27-34 and 41)

-0.3 VDDIO+0.3, max 3.6 V

Voltage on any other pin, (pin no. 6, 7, 8, 11, 12, 13, 16, 36, 38, 39, 40, 45, 46 and 47)

-0.3 VDD+0.3, max 2.0 V

Input RF level 10 dBm

Storage temperature range −50 150 °C

Reflow solder temperature 260 °C T = 10 s

The absolute maximum ratings given above should under no circumstances be violated. Stress exceeding one or more of

the limiting values may cause permanent damage to the device.

Caution! ESD sensitive device. Precaution should be used when handling the device in order to prevent permanent damage.

5 Operating Conditions

Parameter Min. Typ. Max. Units Condition

Supply voltage for on-chip voltage regulator, VREG_IN pin 43.

2.1 3.6 V

Supply voltage (VDDIO) for digital I/Os, DVDD3.3, pin 25 .

1.6 3.6 V The digital I/O voltage (DVDD3.3 pin) must match the external interfacing circuit (e.g. microcontroller).

Supply voltage (VDD) on AVDD_VCO, DVDD1.8, etc (pin no 1, 2, 3, 4, 10, 14, 15, 17, 18, 20, 26, 35, 37, 44 and 48)

1.6 1.8 2.0 V The typical application uses regulated 1.8 V supply generated by the on-chip voltage regulator.

Operating ambient temperature range, TA −40 85 °C

Administrator
文本框
VREG_IN极限供电电压
Administrator
文本框
用于数字I/o和DVDD3.3的VDDIO
Administrator
文本框
模拟电源电压
Administrator
文本框
数字引脚最大电压
Administrator
文本框
用于数字I/o和DVDD3.3的VDDIO
Administrator
文本框
稳压器输入电压VREG_IN

CC2420

SWRS041B Page 9 of 89

6 Electrical Specifications

Measured on CC2420 EM with transmission line balun, TA = 25 °C, DVDD3.3 and VREG_IN = 3.3 V, internal voltage regulator used if nothing else stated.

6.1 Overall

Parameter Min. Typ. Max. Unit Condition / Note

RF Frequency Range 2400 2483.5 MHz Programmable in 1 MHz steps, 5 MHz steps for compliance with [1]

6.2 Transmit Section

Parameter Min. Typ. Max. Unit Condition / Note

Transmit bit rate 250

250 kbps As defined by [1]

Transmit chip rate

2000 2000 kChips/s As defined by [1]

Nominal output power -3 0 dBm Delivered to a single ended 50 Ω load through a balun.

[1] requires minimum –3 dBm

Programmable output power range

24 dB

The output power is programmable in 8 steps from approximately –24 to 0 dBm.

Harmonics

2nd harmonic

3rd harmonic

-44

-64

dBm

dBm

Measured conducted with 1 MHz resolution bandwidth on spectrum analyser. At max output power delivered to a single ended 50 Ω load through a balun. See page 54.

Spurious emission

30 - 1000 MHz 1– 12.75 GHz 1.8 – 1.9 GHz 5.15 – 5.3 GHz

-56 -44 -56 -51

dBm dBm dBm dBm

Maximum output power.

Complies with EN 300 328, EN 300 440, FCC CFR47 Part 15 and ARIB STD-T-66

Error Vector Magnitude (EVM) 11 % Measured as defined by [1]

[1] requires max. 35 %

Optimum load impedance 95 + j187

Ω

Differential impedance as seen from the RF-port (RF_P and RF_N) towards the antenna. For matching details see the Input / Output Matching section on page 54.

Administrator
文本框
正常输出功率
Administrator
文本框
可编程输出功率范围
Administrator
文本框
次谐波
Administrator
文本框
杂散功率

CC2420

SWRS041B Page 10 of 89

6.3 Receive Section

Parameter Min. Typ. Max. Unit Condition / Note

Receiver Sensitivity

-90

-95

dBm

PER = 1%, as specified by [1]

Measured in a 50Ω single-ended load through a balun.

[1] requires –85 dBm

Saturation (maximum input level) 0 10 dBm PER = 1%, as specified by [1]

Measured in a 50Ω single–ended load through a balun.

[1] requires –20 dBm

Adjacent channel rejection

+ 5 MHz channel spacing

45

dB

Wanted signal @ -82 dBm, adjacent modulated channel at +5 MHz, PER = 1 %, as specified by [1].

[1] requires 0 dB

Adjacent channel rejection

- 5 MHz channel spacing

30

dB

Wanted signal @ -82 dBm, adjacent modulated channel at -5 MHz, PER = 1 %, as specified by [1].

[1] requires 0 dB

Alternate channel rejection

+ 10 MHz channel spacing

54

dB

Wanted signal @ -82 dBm, adjacent modulated channel at +10 MHz, PER = 1 %, as specified by [1]

[1] requires 30 dB

Alternate channel rejection

- 10 MHz channel spacing

53

dB

Wanted signal @ -82 dBm, adjacent modulated channel at -10 MHz, PER = 1 %, as specified by [1]

[1] requires 30 dB

Channel rejection

≥ + 15 MHz

≤ - 15 MHz

62

62

dB

dB

Wanted signal @ -82 dBm. Undesired signal is an IEEE 802.15.4 modulated channel, stepped through all channels from 2405 to 2480 MHz. Signal level for PER = 1%.

Co-channel rejection

-3

dB

Wanted signal @ -82 dBm. Undesired signal is an IEEE 802.15.4 modulated at the same frequency as the desired signal. Signal level for PER = 1%.

Blocking / Desensitisation

+/- 5 MHz from band edge +/- 20 MHz from band edge +/- 30 MHz from band edge +/- 50 MHz from band edge

-28 -28 -27 -28

dBm dBm dBm dBm

Wanted signal 3 dB above the sensitivity level, CW jammer, PER = 1%. Complies with EN 300 440 class 2.

Spurious emission

30 – 1000 MHz 1 – 12.75 GHz

-73 -58

dBm dBm

Conducted measurement in a 50 Ω single ended load. Measured according to EN 300 328, EN 300 440 class 2, FCC CFR47, Part 15 and ARIB STD-T-66

Administrator
文本框
最大输入信号强度
Administrator
文本框
领近信道抑制比
Administrator
文本框
交迭信道抑制比

CC2420

SWRS041B Page 11 of 89

Parameter Min. Typ. Max. Unit Condition / Note

Frequency error tolerance -300 300 kHz Difference between centre frequency of the received RF signal and local oscillator frequency

[1] requires 200 kHz

Symbol rate error tolerance 120 ppm Difference between incoming symbol rate and the internally generated symbol rate

[1] requires 80 ppm

Data latency 3 µs Processing delay in receiver. Time from complete transmission of SFD until complete reception of SFD, i.e. from SFD goes active on transmitter until active on receiver.

6.4 RSSI / Carrier Sense

Parameter Min. Typ. Max. Unit Condition / Note

Carrier sense level

− 77 dBm Programmable in RSSI.CCA_THR

RSSI dynamic range

100 dB The range is approximately from –100 dBm to 0 dBm

RSSI accuracy ± 6

dB

See page 48 for details

RSSI linearity ± 3 dB

RSSI average time 128 µs 8 symbol periods, as specified by [1]

6.5 IF Section

Parameter Min. Typ. Max. Unit Condition / Note

Intermediate frequency (IF) 2 MHz

6.6 Frequency Synthesizer Section

Parameter Min. Typ. Max. Unit Condition / Note

Crystal oscillator frequency

16 MHz See page 53 for details.

Crystal frequency accuracy requirement

- 40

40 ppm Including aging and temperature dependency, as specified by [1]

Crystal operation

Parallel

C381 and C391 are loading capacitors, see page 53

Administrator
线条
Administrator
文本框
最好要高一个量级,5ppm 电容27pF
Administrator
文本框
字符速率匀许误差

CC2420

SWRS041B Page 12 of 89

Parameter Min. Typ. Max. Unit Condition / Note

Crystal load capacitance

12 16 20 pF

16 pF recommended

Crystal ESR

60 Ω

Crystal oscillator start-up time 1.0 ms

16 pF load

Phase noise

−109 −117 −117 −117

dBc/Hz dBc/Hz dBc/Hz dBc/Hz

Unmodulated carrier

At ±1 MHz offset from carrier At ±2 MHz offset from carrier At ±3 MHz offset from carrier At ±5 MHz offset from carrier

PLL loop bandwidth 100 kHz

PLL lock time

192 µs The startup time from the crystal oscillator is running and RX / TX turnaround time

6.7 Digital Inputs/Outputs

Parameter Min. Typ. Max. Unit Condition / Note

General

Signal levels are referred to the voltage level at pin DVDD3.3

Logic "0" input voltage

0 0.3* DVDD

V

Logic "1" input voltage

0.7* DVDD

DVDD V

Logic "0" output voltage 0

0.4 V Output current −8 mA, 3.3 V supply voltage

Logic "1" output voltage 2.5

VDD V Output current 8 mA, 3.3 V supply voltage

Logic "0" input current

NA −1 µA Input signal equals GND

Logic "1" input current

NA 1 µA Input signal equals VDD

FIFO setup time 20 ns TX unbuffered mode, minimum time FIFO must be ready before the positive edge of FIFOP

FIFO hold time

10 ns TX unbuffered mode, minimum time FIFO must be held after the positive edge of FIFOP

Serial interface pins (SCLK, SI, SO and CSn) timing specification

See Table 4 on page 28

Administrator
线条

CC2420

SWRS041B Page 13 of 89

6.8 Voltage Regulator

Parameter Min. Typ. Max. Unit Condition / Note

General

Note that the internal voltage regulator can only supply CC2420 and no external circuitry.

Input Voltage

2.1 3.0 3.6 V On the VREG_IN pin

Output Voltage

1.7 1.8 1.9 V On the VREG_OUT pin

Quiescent current

13 20 29 µA No current drawn from the VREG_OUT pin. Min and max numbers include 2.1 through 3.6 V input voltage

Start-up time

0.3 0.6 ms

6.9 Battery Monitor

Parameter Min. Typ. Max. Unit Condition / Note

Current consumption

6 30 90 µA When enabled

Start-up time

100 µs Voltage regulator already enabled

Settling time

2 µs New toggle voltage programmed

Step size

50 mV

Hysteresis

10 mV

Absolute accuracy

-80 80 mV May be software calibrated for known reference voltage

Relative accuracy

-50 50 mV

6.10 Power Supply

Parameter Min. Typ. Max. Unit Condition / Note

Current consumption in different modes (see Figure 25, page 44)

Voltage regulator off (OFF) Power Down mode (PD) Idle mode (IDLE)

0.02 20 426

1

µA µA µA

Current drawn from VREG_IN, through voltage regulator

Voltage regulator off Voltage regulator on Including crystal oscillator and voltage regulator

Current Consumption, receive mode

18.8 mA

CC2420

SWRS041B Page 14 of 89

Parameter Min. Typ. Max. Unit Condition / Note

Current Consumption, transmit mode:

P = -25 dBm P = -15 dBm P = -10 dBm P = −5 dBm P = 0 dBm

8.5 9.9 11 14 17.4

mA mA mA mA mA

The output power is delivered differentially to a 50 Ω singled ended load through a balun, see also page 54.

CC2420

SWRS041B Page 15 of 89

7 Pin Assignment

VR

EG

_OU

T

AV

DD

_CH

P

QLP487x7

1

2

3

4

5

6

7

8

9

10

11

12

35

34

33

32

31

30

29

28

27

26

25

36

13 14 15 16 17 18 19 20 21 22 23 2448 47 46 45 44 43 42 41 40 39 38 37

CC2420R

_BIA

S

AV

DD

_IF1

VR

EG

_IN

VR

EG

_EN

XO

SC

16_Q

1

XO

SC

16_Q

2

ATE

ST2

ATE

ST1

NC

RF_P

RF_N

AVDD_PRE

AVDD_RF1

TXRX_SWITCH

AVDD_VCO

VCO_GUARD

AVDD_SW

GND

GND

NC

NC

DS

UB

_CO

RE

DS

UB

_PA

DS

AV

DD

_AD

C

DV

DD

_AD

C

DG

UA

RD

AV

DD

_IF2

DG

ND

_GU

AR

D

AV

DD

_RF2

DG

ND

NC

CSn

FIFO

FIFOP

CCA

SFD

DVDD1.8

SCLK

DVDD_RAM

SI

SO

DVDD3.3

NC

AV

DD

_XO

SC

16

NC

AGNDExposed dieattach pad

RE

SE

Tn

Figure 1. CC2420 Pinout – Top View

Pin Pin Name Pin type Pin Description - AGND Ground (analog) Exposed die attach pad. Must be connected to solid ground

plane 1 VCO_GUARD Power (analog) Connection of guard ring for VCO (to AVDD) shielding 2 AVDD_VCO Power (analog) 1.8 V Power supply for VCO 3 AVDD_PRE Power (analog) 1.8 V Power supply for Prescaler 4 AVDD_RF1 Power (analog) 1.8 V Power supply for RF front-end 5 GND Ground (analog) Grounded pin for RF shielding 6 RF_P RF I/O Positive RF input/output signal to LNA/from PA in

receive/transmit mode 7 TXRX_SWITCH Power (analog) Common supply connection for integrated RF front-end. Must

be connected to RF_P and RF_N externally through a DC path

8 RF_N RF I/O Negative RF input/output signal to LNA/from PA in receive/transmit mode

9 GND Ground (analog) Grounded pin for RF shielding 10 AVDD_SW Power (analog) 1.8 V Power supply for LNA / PA switch 11 NC - Not Connected 12 NC - Not Connected 13 NC - Not Connected 14 AVDD_RF2 Power (analog) 1.8 V Power supply for receive and transmit mixers 15 AVDD_IF2 Power (analog) 1.8 V Power supply for transmit / receive IF chain

CC2420

SWRS041B Page 16 of 89

Pin Pin Name Pin type Pin Description 16 NC - Not Connected 17 AVDD_ADC Power (analog) 1.8 V Power supply for analog parts of ADCs and DACs 18 DVDD_ADC Power (digital) 1.8 V Power supply for digital parts of receive ADCs 19 DGND_GUARD Ground (digital) Ground connection for digital noise isolation 20 DGUARD Power (digital) 1.8 V Power supply connection for digital noise isolation 21 RESETn Digital Input Asynchronous, active low digital reset 22 DGND Ground (digital) Ground connection for digital core and pads 23 DSUB_PADS Ground (digital) Substrate connection for digital pads 24 DSUB_CORE Ground (digital) Substrate connection for digital modules 25 DVDD3.3 Power (digital) 3.3 V Power supply for digital I/Os 26 DVDD1.8 Power (digital) 1.8 V Power supply for digital core 27 SFD Digital output SFD (Start of Frame Delimiter) / digital mux output 28 CCA Digital output CCA (Clear Channel Assessment) / digital mux output 29 FIFOP Digital output Active when number of bytes in FIFO exceeds threshold /

serial RF clock output in test mode 30 FIFO Digital I/O Active when data in FIFO /

serial RF data input / output in test mode 31 CSn Digital input SPI Chip select, active low 32 SCLK Digital input SPI Clock input, up to 10 MHz 33 SI Digital input SPI Slave Input. Sampled on the positive edge of SCLK 34 SO Digital output

(tristate) SPI Slave Output. Updated on the negative edge of SCLK. Tristate when CSn high.

35 DVDD_RAM Power (digital) 1.8 V Power supply for digital RAM 36 NC - Not Connected 37 AVDD_XOSC16 Power (analog) 1.8 V crystal oscillator power supply 38 XOSC16_Q2 Analog I/O 16 MHz Crystal oscillator pin 2 39 XOSC16_Q1 Analog I/O 16 MHz Crystal oscillator pin 1 or external clock input 40 NC - Not Connected 41 VREG_EN Digital input Voltage regulator enable, active high, held at VREG_IN

voltage level when active. Note that VREG_EN is relative VREG_IN, not DVDD3.3.

42 VREG_OUT Power output Voltage regulator 1.8 V power supply output 43 VREG_IN Power (analog) Voltage regulator 2.1 to 3.6 V power supply input 44 AVDD_IF1 Power (analog) 1.8 V Power supply for transmit / receive IF chain 45 R_BIAS Analog output External precision resistor, 43 kΩ, ± 1 % 46 ATEST2 Analog I/O Analog test I/O for prototype and production testing 47 ATEST1 Analog I/O Analog test I/O for prototype and production testing 48 AVDD_CHP Power (analog) 1.8 V Power supply for phase detector and charge pump

NOTES:

The exposed die attach pad must be connected to a solid ground plane as this is the main ground connection for the chip.

CC2420

SWRS041B Page 17 of 89

8 Circuit Description

Seria

lm

icro

cont

rolle

rin

terf

ace

LNA

DIGITALDEMODULATOR

- Digital RSSI- Gain Control- Image Suppression- Channel Filtering- Demodulation- Frame synchronization

DIGITALMODULATOR

- Data spreading- Modulation

On-chipBIAS

DIGITALINTERFACEWITH FIFOBUFFERS,CRC AND

ENCRYPTION

CO

NTR

OL

LOG

IC

Σ

AUTOMATIC GAIN CONTROL

TX POWER CONTROL

TX/RX CONTROL

XOSC

16 MHzR

ADC

ADC

DAC

DAC

090

FREQSYNTH

SmartRF ®

CC2420

PowerControl

PA

Serialvoltage

regulator

Digital andAnalog test

interface

Figure 2. CC2420 simplified block diagram

A simplified block diagram of CC2420 is shown in Figure 2.

CC2420 features a low-IF receiver. The received RF signal is amplified by the low-noise amplifier (LNA) and down-converted in quadrature (I and Q) to the intermediate frequency (IF). At IF (2 MHz), the complex I/Q signal is filtered and amplified, and then digitized by the ADCs. Automatic gain control, final channel filtering, de-spreading, symbol correlation and byte synchronisation are performed digitally.

When the SFD pin goes active, this indicates that a start of frame delimiter has been detected. CC2420 buffers the received data in a 128 byte receive FIFO. The user may read the FIFO through an SPI interface. CRC is verified in hardware. RSSI and correlation values are appended to the frame. CCA is available on a pin in receive mode. Serial (unbuffered) data modes are also available for test purposes.

The CC2420 transmitter is based on direct up-conversion. The data is buffered in a 128 byte transmit FIFO (separate from the receive FIFO). The preamble and start of frame delimiter are generated by hardware. Each symbol (4 bits) is spread using the IEEE 802.15.4 spreading sequence to 32 chips and output to the digital-to-analog converters (DACs).

An analog low pass filter passes the signal to the quadrature (I and Q) upconversion mixers. The RF signal is amplified in the power amplifier (PA) and fed to the antenna.

The internal T/R switch circuitry makes the antenna interface and matching easy. The RF connection is differential. A balun may be used for single-ended antennas. The biasing of the PA and LNA is done by connecting TXRX_SWITCH to RF_P and RF_N through an external DC path.

The frequency synthesizer includes a completely on-chip LC VCO and a 90 degrees phase splitter for generating the I

Administrator
铅笔
Administrator
铅笔
Administrator
铅笔
Administrator
文本框
CC2420有一个低IF接收器。接收的RF信号通过LNA放大,并且与IF通过Down方向求积。在IF2M范围内,复杂的I/Q滤波并放大,并且由ADC进行数字化。自运增益调整,最终通道 滤波,信号解悉,字节同步同时进行。 当SFD引脚转为有效,这表示开始头初接收到。CC2420将接收到的数据存到128FiFo中。用户可以通过SPI接口把FIFO的数据读出。CRC校验由硬件完成。这个信息包的RSSI相关值被存储。在接收方式中,CCA(看看通道空不空)有效。
Administrator
文本框
CC2420发送器通过向上转换。数据通过128FiFo缓存。 同步段和帧头自动被硬件插入。每一个标识(四位)由硬件通过IEEE802.15.4标准格式化输出给DAC. 模拟信号通低通滤波器传到I/Q混频.RF信号通过PA放大给天线. 内部的T/R切换电路使能天线接口很容易匹配.RF连 接是不同的,单端天线要接一个不平衡变压器.PA和LNA不同的偏置通过TXRX-SWitch在RF_P和RF_N进行偏置.
Administrator
文本框
频率合成器包括一个完全在片内的VCO和一个90度相位分割器.

CC2420

SWRS041B Page 18 of 89

and Q LO signals to the down-conversion mixers in receive mode and up-conversion mixers in transmit mode. The VCO operates in the frequency range 4800 – 4966 MHz, and the frequency is divided by two when split in I and Q.

A crystal must be connected to XOSC16_Q1 and XOSC16_Q2 and provides the reference frequency for the synthesizer. A digital lock signal is available from the PLL.

The digital baseband includes support for frame handling, address recognition, data buffering and MAC security.

The 4-wire SPI serial interface is used for configuration and data buffering.

An on-chip voltage regulator delivers the regulated 1.8 V supply voltage. The voltage regulator may be enabled / disabled through a separate pin.

A battery monitor may optionally be used to monitor the unregulated power supply voltage. The battery monitor is configurable through the SPI interface.

Administrator
文本框
一个16M的晶振要接到Xosc16-Q1和Xosc16-Q2引脚之间,这个晶振用来为合成器的基准频率.PLL输出一个数字时钟. 数字化基带包括帧处理,地址确认,数据缓冲和地址确认,数据缓冲,MAC完整. 4-Wire SPI用来配置CC2420和数据读取. 一个ON-chip1.8V稳压器,这个稳压器可以不使用. 一个电池监视器用来监视未稳压的电源电压.电池监视器可以通SPI接口进行配置.

CC2420

SWRS041B Page 19 of 89

9 Application Circuit

Few external components are required for the operation of CC2420. A typical application circuit is shown in Figure 4. The external components shown are described in Table 1 and typical values are given in Table 2. Note that most decoupling capacitors are not shown on the application circuits. For the complete reference design please refer to Texas Instrument’s web site: http://www.ti.com.

9.1 Input / output matching

The RF input/output is high impedance and differential. The optimum differential load for the RF port is 95+j187 Ω.

When using an unbalanced antenna such as a monopole, a balun should be used in order to optimise performance. The balun can be implemented using low-cost discrete inductors and capacitors only or in combination with transmission lines.

Figure 3 shows the balun implemented in a two-layer reference design. It consists of a half wave transmission line, C81, L61, L71 and L81. The circuit will present the optimum RF termination to CC2420 with a 50 Ω load on the antenna connection. This circuit has improved EVM performance, sensitivity and harmonic suppression compared to the design in Figure 4. Please refer to the input/output matching section on page 54 for more details.

The balun in Figure 4 consists of C61, C62, C71, C81, L61, L62 and L81, and will present the optimum RF termination to CC2420 with a 50 Ω load on the antenna connection. A low pass filter may be added to add margin to the FCC requirement on second harmonic level.

If a balanced antenna such as a folded dipole is used, the balun can be omitted. If the antenna also provides a DC path from the TXRX_SWITCH pin to the RF pins, inductors are not needed for DC bias.

Figure 5 shows a suggested application circuit using a differential antenna. The antenna type is a standard folded dipole. The dipole has a virtual ground point; hence bias is provided without degradation in antenna performance.

9.2 Bias resistor

The bias resistor R451 is used to set an accurate bias current.

9.3 Crystal

An external crystal with two loading capacitors (C381 and C391) is used for the crystal oscillator. See page 53 for details.

9.4 Voltage regulator

The on chip voltage regulator supplies all 1.8 V power supply inputs. C42 is required for stability of the regulator. A series resistor may be used to comply with the ESR requirement.

9.5 Power supply decoupling and filtering

Proper power supply decoupling must be used for optimum performance. The placement and size of the decoupling capacitors and the power supply filtering are very important to achieve the best performance in an application. Texas Instruments provides a compact reference design that should be followed very closely..

Administrator
文本框
9应用电路 CC2420需要很少的外部元件就可以工作.一个典型应用电路如图4所示.这些外部元件的描述如表1所示,表2给出它们的典型值.注意:很多去藕电容在这里并未列出.请到TI网站上下载完整的参考设计. 9.1输入输出匹配. RF输入输出是高阻抗的并且有很大差异.最佳负载阻抗为95+1 87j. 当使用一个不平衡天线如单极天线,为了达到更好的性能需要使用一个不平衡转换.这个不平衡转换可以通过廉价的电容和电感来实现,也可以连接发接线路到一起. 图3展示在两层设计中的不平衡转换的实现.它包括了一个半波发射线和C81,L61,L71,L81.这个电路为CC2420提供一个合适RF终端阻抗.相对于图4这个电路有改良的EVM特性,敏感度,和声学抑制.请在54页输入/输出匹配查看更详细描述. 在图4,不平衡转换包括C61,C62,C71,C81,L61,L62和L81.一个低通滤波
Administrator
文本框
如果一个平衡的偶极性天线被使用,这个不平衡可以取消.如果天线还包括一个TXRX_SWitch引脚与RF引脚提DC通路,这个电感就没有必要了. 在使用差分天线时,请使用图5展示推荐的电路.这个天线是一种标准的偶极天线.这种偶极天线拥有地点,因此偏置的提供不会降低天线性能. 9.2偏置电阻 这个偏置电阻R451用来设置精确的偏置电流. 9.3晶振 晶体振荡需要一个外部晶振和两个负载电容. 9.4稳压器 这个片内稳压器提供所有1.8V输入接口.C42是为了使稳压器工作稳定.为了附合ESR特性需要使用一系列的电阻 9.5电源去藕和滤波 为了达到更好的性能必须使用电源去藕.电容的位置和容量的大小对达到更高的性能非常重要. TI公司提供了一个紧凑的参考设计,这里面...

CC2420

SWRS041B Page 20 of 89

Ref Description

C42 Voltage regulator load capacitance

C61 Balun and match

C62 DC block to antenna and match

C71 Front-end bias decoupling and match

C81 Balun and match

C381 16MHz crystal load capacitor, see page 53

C391 16MHz crystal load capacitor, see page 53

L61 DC bias and match

L62 DC bias and match

L71 DC bias and match

L81 Balun and match

R451 Precision resistor for current reference generator

XTAL 16MHz crystal, see page 53

Table 1. Overview of external components

35

34

33

32

31

30

29

28

27

26

25

36

13 14 15 16 17 18 19 20 21 22 23 24

48 47 46 45 44 43 42 41 40 39 38 37

1

2

3

4

5

6

7

8

9

10

11

12

QLP487x7

CC2420RF

Transceiver

DSUB_CORE

DSUB_PADS

AVDD_ADC

DVDD_ADC

DGUARD

AVDD_IF2

DGND_GUARD

AVDD_RF2

DGND

NC

NC

RESETn

RF_P

RF_N

AVDD_PRE

AVDD_RF1

TXRX_SWITCH

AVDD_VCO

VCO_GUARD

AVDD_SW

GND

GND

NC

NC

VREG_OUT

AVDD_CHP

R_BIAS

AVDD_IF1

VREG_IN

VREG_EN

XOSC16_Q1

XOSC16_Q2

ATEST2

ATEST1

NC

AVDD_XOSC16

CSn

FIFO

FIFOP

CCA

SFD

DVDD1.8

SCLK

DVDD_RAM

SI

SO

DVDD3.3

NC

XTAL

Dig

ital I

nter

face

3.3 V Power supply

λ/2λ/2

Antenna(50 Ohm)

L61C81 L81 L71

R451C42

C391 C381

Figure 3. Typical application circuit with transmission line balun for single-ended operation

CC2420

SWRS041B Page 21 of 89

35

34

33

32

31

30

29

28

27

26

25

36

13 14 15 16 17 18 19 20 21 22 23 24

48 47 46 45 44 43 42 41 40 39 38 37

1

2

3

4

5

6

7

8

9

10

11

12

QLP487x7

CC2420RF

Transceiver

DSUB_CORE

DSUB_PADS

AVDD_ADC

DVDD_ADC

DGUARD

AVDD_IF2

DGND_GUARD

AVDD_RF2

DGND

NC

NC

RESETn

RF_P

RF_N

AVDD_PRE

AVDD_RF1

TXRX_SWITCH

AVDD_VCO

VCO_GUARD

AVDD_SW

GND

GND

NC

NC

VREG_OUT

AVDD_CHP

R_BIAS

AVDD_IF1

VREG_IN

VREG_EN

XOSC16_Q1

XOSC16_Q2

ATEST2

ATEST1

NC

AVDD_XOSC16

CSn

FIFO

FIFOP

CCA

SFD

DVDD1.8

SCLK

DVDD_RAM

SI

SO

DVDD3.3

NC

XTAL

C391 C381

C61

C71C62

Antenna(50 Ohm)

L81

C81

L62

Dig

ital I

nter

face

R451

3.3 VPowersupply

L61

C42

Figure 4. Typical application circuit with discrete balun for single-ended operation

CC2420

SWRS041B Page 22 of 89

35

34

33

32

31

30

29

28

27

26

25

36

13 14 15 16 17 18 19 20 21 22 23 24

48 47 46 45 44 43 42 41 40 39 38 37

1

2

3

4

5

6

7

8

9

10

11

12

QLP487x7

CC2420RF

Transceiver

DSUB_CORE

DSUB_PADS

AVDD_ADC

DVDD_ADC

DGUARD

AVDD_IF2

DGND_GUARD

AVDD_RF2

DGND

NC

NC

RESETn

RF_P

RF_N

AVDD_PRE

AVDD_RF1

TXRX_SWITCH

AVDD_VCO

VCO_GUARD

AVDD_SW

GND

GND

NC

NC

VREG_OUT

AVDD_CHP

R_BIAS

AVDD_IF1

VREG_IN

VREG_EN

XOSC16_Q1

XOSC16_Q2

ATEST2

ATEST1

NC

AVDD_XOSC16

CSn

FIFO

FIFOP

CCA

SFD

DVDD1.8

SCLK

DVDD_RAM

SI

SO

DVDD3.3

NC

XTAL

C391 C381

Dig

ital I

nter

face

R451

3.3 VPowersupply

L61

C42

Foldeddipole

antenna L71

Figure 5. Suggested application circuit with differential antenna (folded dipole)

CC2420

SWRS041B Page 23 of 89

Item Single ended output, transmission line balun

Single ended output, discrete balun

Differential antenna

C42 10 µF, 0.5Ω < ESR < 5Ω 10 µF, 0.5Ω < ESR < 5Ω 10 µF, 0.5Ω < ESR < 5Ω

C61 Not used 0.5 pF, +/- 0.25pF, NP0, 0402 Not used

C62 Not used 5.6 pF, +/- 0.25pF, NP0, 0402 Not used

C71 Not used 5.6 pF, 10%, X5R, 0402 Not used

C81 5.6 pF, +/- 0.25pF, NP0, 0402 0.5 pF, +/- 0.25pF, NP0, 0402 Not used

C381 27 pF, 5%, NP0, 0402 27 pF, 5%, NP0, 0402 27 pF, 5%, NP0, 0402

C391 27 pF, 5%, NP0, 0402 27 pF, 5%, NP0, 0402 27 pF, 5%, NP0, 0402

L61 8.2 nH, 5%, Monolithic/multilayer, 0402

7.5 nH, 5%, Monolithic/multilayer, 0402

27 nH, 5%, Monolithic/multilayer, 0402

L62 Not used 5.6 nH, 5%, Monolithic/multilayer, 0402

Not used

L71 22 nH, 5%, Monolithic/multilayer, 0402

Not used 12 nH, 5%, Monolithic/multilayer, 0402

L81 1.8 nH, +/- 0.3nH, Monolithic/multilayer, 0402

7.5 nH, 5%, Monolithic/multilayer, 0402

Not used

R451 43 kΩ, 1%, 0402 43 kΩ, 1%, 0402 43 kΩ, 1%, 0402

XTAL 16 MHz crystal, 16 pF load (CL), ESR < 60 Ω

16 MHz crystal, 16 pF load (CL), ESR < 60 Ω

16 MHz crystal, 16 pF load (CL), ESR < 60 Ω

Table 2. Bill of materials for the application circuits

CC2420

SWRS041B Page 24 of 89

10 IEEE 802.15.4 Modulation Format

This section is meant as an introduction to the 2.4 GHz direct sequence spread spectrum (DSSS) RF modulation format defined in IEEE 802.15.4. For a complete description, please refer to [1].

The modulation and spreading functions are illustrated at block level in Figure 6 [1]. Each byte is divided into two symbols, 4 bits each. The least significant symbol is transmitted first. For multi-byte fields, the

least significant byte is transmitted first, except for security related fields where the most significant byte it transmitted first.

Each symbol is mapped to one out of 16 pseudo-random sequences, 32 chips each. The symbol to chip mapping is shown in Table 3. The chip sequence is then transmitted at 2 MChips/s, with the least significant chip (C0) transmitted first for each symbol.

Bit-to-Symbol

Symbol-to-Chip

O-QPSKModulator

Transmittedbit-stream(LSB first)

ModulatedSignal

Figure 6. Modulation and spreading functions [1]

Symbol Chip sequence (C0, C1, C2, … , C31)

0 1 1 0 1 1 0 0 1 1 1 0 0 0 0 1 1 0 1 0 1 0 0 1 0 0 0 1 0 1 1 1 0

1 1 1 1 0 1 1 0 1 1 0 0 1 1 1 0 0 0 0 1 1 0 1 0 1 0 0 1 0 0 0 1 0

2 0 0 1 0 1 1 1 0 1 1 0 1 1 0 0 1 1 1 0 0 0 0 1 1 0 1 0 1 0 0 1 0

3 0 0 1 0 0 0 1 0 1 1 1 0 1 1 0 1 1 0 0 1 1 1 0 0 0 0 1 1 0 1 0 1

4 0 1 0 1 0 0 1 0 0 0 1 0 1 1 1 0 1 1 0 1 1 0 0 1 1 1 0 0 0 0 1 1

5 0 0 1 1 0 1 0 1 0 0 1 0 0 0 1 0 1 1 1 0 1 1 0 1 1 0 0 1 1 1 0 0

6 1 1 0 0 0 0 1 1 0 1 0 1 0 0 1 0 0 0 1 0 1 1 1 0 1 1 0 1 1 0 0 1

7 1 0 0 1 1 1 0 0 0 0 1 1 0 1 0 1 0 0 1 0 0 0 1 0 1 1 1 0 1 1 0 1

8 1 0 0 0 1 1 0 0 1 0 0 1 0 1 1 0 0 0 0 0 0 1 1 1 0 1 1 1 1 0 1 1

9 1 0 1 1 1 0 0 0 1 1 0 0 1 0 0 1 0 1 1 0 0 0 0 0 0 1 1 1 0 1 1 1

10 0 1 1 1 1 0 1 1 1 0 0 0 1 1 0 0 1 0 0 1 0 1 1 0 0 0 0 0 0 1 1 1

11 0 1 1 1 0 1 1 1 1 0 1 1 1 0 0 0 1 1 0 0 1 0 0 1 0 1 1 0 0 0 0 0

12 0 0 0 0 0 1 1 1 0 1 1 1 1 0 1 1 1 0 0 0 1 1 0 0 1 0 0 1 0 1 1 0

13 0 1 1 0 0 0 0 0 0 1 1 1 0 1 1 1 1 0 1 1 1 0 0 0 1 1 0 0 1 0 0 1

14 1 0 0 1 0 1 1 0 0 0 0 0 0 1 1 1 0 1 1 1 1 0 1 1 1 0 0 0 1 1 0 0

15 1 1 0 0 1 0 0 1 0 1 1 0 0 0 0 0 0 1 1 1 0 1 1 1 1 0 1 1 1 0 0 0

Table 3. IEEE 802.15.4 symbol-to-chip mapping [1]

The modulation format is Offset – Quadrature Phase Shift Keying (O-QPSK) with half-sine chip shaping. This is equivalent to MSK modulation. Each chip

is shaped as a half-sine, transmitted alternately in the I and Q channels with one half chip period offset. This is illustrated for the zero-symbol in Figure 7.

Administrator
文本框
10IEEE802.15.4调制 本单节描述802.15.4所规定2.4GHz DSSS RF调制格式. 调制和解调功能框图如图6.每一字节被分割到2个字符(4位).低位字符先被发送.多字节时,低位字符先被传送.在发送安全相关数据时,高位字节先被送出.

CC2420

SWRS041B Page 25 of 89

1 0 1 0

1 1 0 1

I-phase

Q-phase

1 0 0 1

1 0 0 1

0 0 0

1 1 0 0

1 0 1 1

0 0 1 0

1

TC

2TC

Figure 7. I / Q Phases when transmitting a zero-symbol chip sequence, TC = 0.5 µs

11 Configuration Overview

CC2420 can be configured to achieve the best performance for different applications. Through the programmable configuration registers the following key parameters can be programmed:

• Receive / transmit mode • RF channel selection • RF output power

• Power-down / power-up mode • Crystal oscillator power-up / power

down • Clear Channel Assessment mode • Packet handling hardware support • Encryption / Authentication modes

Administrator
文本框
11.配置概述 在不同的设计中,可以通过设置CC2420的寄存器以达到更好的性能.可设置寄存器如下: 1.接收/发送模式.2.RF通道选择.3.RF输出功率.4.上电/掉电模式.5.晶体振荡器的起振/停止.6.查看通道是否为空.7.帧硬件支持.8.加密/鉴定模式

CC2420

SWRS041B Page 26 of 89

12 Evaluation Software

Texas Instruments (TI) provides users of CC2420 with a software program, SmartRF® Studio (Windows interface) which may be used for radio performance and functionality evaluation. SmartRF®

Studio can be downloaded from TI’s web page: http://www.ti.com. Figure 8 shows the user interface of the CC2420 configuration software.

Figure 8. SmartRF Studio user interface

CC2420

SWRS041B Page 27 of 89

13 4-wire Serial Configuration and Data Interface

CC2420 is configured via a simple 4-wire SPI-compatible interface (pins SI, SO, SCLK and CSn) where CC2420 is the slave. This interface is also used to read and write buffered data (see page 39). All address and data transfer on the SPI interface is done most significant bit first.

13.1 Pin configuration

The digital inputs SCLK, SI and CSn are high-impedance inputs (no internal pull-up) and should have external pull-ups if not driven. SO is high-impedance when CSn is high. An external pull-up should be used at SO to prevent floating input at microcontroller. Unused I/O pins on the MCU can be set to outputs with a fixed ‘0’ level to avoid leakage currents.

13.2 Register access

There are 33 16-bit configuration and status registers, 15 command strobe registers, and two 8-bit registers to access the separate transmit and receive FIFOs. Each of the 50 registers is addressed by a 6-bit address. The RAM/Register bit (bit 7) must be cleared for register access. The Read/Write bit (bit 6) selects a read or a write operation and makes up the 8-bit address field together with the 6-bit address.

In each register read or write cycle, 24 bits are sent on the SI-line. The CSn pin (Chip Select, active low) must be kept low during this transfer. The bit to be sent first is the

RAM/Register bit (set to 0 for register access), followed by the R/W bit (0 for write, 1 for read). The following 6 bits are the address-bits (A5:0). A5 is the most significant bit of the address and is sent first. The 16 data-bits are then transferred (D15:0), also MSB first. See Figure 9 for an illustration.

The configuration registers can also be read by the microcontroller via the same configuration interface. The R/W bit must be set high to initiate the data read-back. CC2420 then returns the data from the addressed register on the 16 clock cycles following the register address. The SO pin is used as the data output and must be configured as an input by the microcontroller.

The timing for the programming is also shown in Figure 9 with reference to Table 4. The clocking of the data on SI into the CC2420 is done on the positive edge of SCLK. When the last bit, D0, of the 16 data-bits has been written, the data word is loaded in the internal configuration register.

Multiple registers may be written without releasing CSn, as described in the Multiple SPI access section on page 31.

The register data will be retained during power down mode, but not when the power-supply is turned off (e.g. by disabling the voltage regulator using the VREG_EN pin). The registers can be programmed in any order.

Administrator
文本框
13.4线串行配置接口 可能通过SPI兼容接口来配置CC2420.这个接口还可以读写缓冲区.通过SPI接口所有数据和地址都是先发送最高位. 13.1引脚配置 输入引脚Sclk,si,csn是高阻输入,如果没有外部驱动,需有上拉电阻.如果So对应的单片机接口为为悬浮输入,需要接一个上拉电阻.MCU没有用的引脚可以设成输出低电平,以防止漏电流. 13.2寄存器访问 CC2420有33个16位寄存器,15个命令滤波器,2组8位用发送和接收FiFo.50个寄存器的每一个都可以通过6位地址来寻址并选择读写模式. 在每个寄存器读写周期中,24位数据在Si线上被传送.CSn引脚(片选信号,低电平有效)在发送过程中必须一直有效.发送数据的通过以下发送:1.RAM/register(0).2.R/w(0),3.接下来的6位是A5-0.A5是地址位最高位.接下来的16数据MSB先发出.如图9所示.
Administrator
文本框
微控器可以通过相同配置接口来配置寄存器.为了发起数据读回,R/W必须设置为1.然后,在接下来的16位时钟周期,CC2420返回指定地址的数据.So引脚用数据输出,单片机端的引脚 必须配置为输入. 写入(编程)的时序请参见图9和表4.在SCLK的上升沿时,CC2420读入Si引脚的数据.当达到最后一位D0时,这个16位数据被加载到指定寄存器. 在一次CSn保持有效过程中,多个寄存器可以被写入.如31页所示多次SPI访问. 在CC2420掉电模式下,寄存器数据信息被保存.但当掉电时并不保存.(如,用Vreg_en禁止稳压器时).这个寄存器可以随意先配置哪一个.

CC2420

SWRS041B Page 28 of 89

0 0 A5 A4 A3 A2 A0A1 DW15 DW14 DW13 DW12 DW11 DW10 DW9 DW8 DW7 DW6 DW5 DW4 DW3 DW2 DW1 DW0

S7 S6 S5 S4 S3 S2 S0S1

0 1 A5 A4 A3 A2 A0A1

DR15 DR14 DR13 DR12 DR11 DR10 DR9 DR8 DR7 DR6 DR5 DR4 DR3 DR2 DR1 DR0S7 S6 S5 S4 S3 S2 S0S1

Read from register / RXFIFO:

Write to register / RXFIFO:

X

X

X X X

DR15

SCLK

CSn

SI

SO

SI

SO

tsp tch tsdthd tns

tcl

1 A6 A5 A4 A3 A2 A0A1 B1 B0 0 X X X X X DW7 DW6 DW5 DW4 DW3 DW2 DW1 DW0

S7 S6 S5 S4 S3 S2 S0S1

1 A6 A5 A4 A3 A2 A0A1

DR7 DR6 DR5 DR4 DR3 DR2 DR1 DR0S7 S6 S5 S4 S3 S2 S0S1

Read one byte from RAM: (multiple reads also possible)

Read and write one byte to RAM: (multiple read / writes also possible)

X

X

X X X

DR7

B1 B0 1 X X X X XX

X

SI

SO

SI

SO

DR7 DR6 DR5 DR4 DR3 DR2 DR1 DR0 DR7

0 0 A5 A4 A3 A2 A0A1 DW7 DW6 DW5 DW4 DW3 DW2 DW1 DW0 DW7 DW6 DW5 DW4 DW3 DW2 DW1 DW0

S7 S6 S5 S4 S3 S2 S0S1

Write to TXFIFO:

X X XSI

SO S7 S6 S5 S4 S3 S2 S0S1 S7 S6 S5 S4 S3 S2 S0S1 S7

Figure 9. SPI timing diagram

Parameter Symbol

Min Max Units Conditions

SCLK, clock frequency

FSCLK

10 MHz

SCLK low pulse duration

tcl 25 ns The minimum time SCLK must be low.

SCLK high pulse duration

tch 25 ns The minimum time SCLK must be high.

CSn setup time

tsp

25 ns The minimum time CSn must be low before the first positive edge of SCLK.

CSn hold time tns 25 ns The minimum time CSn must be held low after the last negative edge of SCLK.

SI setup time tsd

25 ns The minimum time data on SI must be ready before the positive edge of SCLK.

SI hold time thd 25 ns The minimum time data must be held at SI, after the positive edge of SCLK.

Rise time trise 100 ns The maximum rise time for SCLK and CSn

Fall time tfall 100 ns The maximum fall time for SCLK and CSn

Note: The set-up- and hold-times refer to 50% of VDD.

Table 4. SPI timing specification

13.3 Status byte

During transfer of the register access byte, command strobes, the first RAM address byte and data transfer to the TXFIFO, the CC2420 status byte is returned on the SO pin. The status byte contains 6 status bits which are described in Table 5.

Issuing a SNOP (no operation) command strobe may be used to read the status byte. It may also be read during access to chip functions such as register or FIFO access.

Administrator
文本框
13.3状态寄存器 当在传送寄存器地址字节时,命令被锁存,每一个Ram地址字节和数据传到TXfifo,同时CC2420的状态字节通过SO PIN输出.状态字节包括6个状态位,这个6个状态位意义在表5中有具体描述.一个Snop(无操作)命可以用来读状态寄存器.它也可以通过在读写配置或FiFo时读出.

CC2420

SWRS041B Page 29 of 89

Bit # Name Description

7 - Reserved, ignore value

6 XOSC16M_STABLE Indicates whether the 16 MHz oscillator is running or not

0 : The 16 MHz crystal oscillator is not running 1 : The 16 MHz crystal oscillator is running

5 TX_UNDERFLOW Indicates whether an FIFO underflow has occurred during transmission. Must be cleared manually with a SFLUSHTX command strobe.

0 : No underflow has occurred 1 : An underflow has occurred

4 ENC_BUSY Indicates whether the encryption module is busy

0 : Encryption module is idle 1 : Encryption module is busy

3 TX_ACTIVE Indicates whether RF transmission is active

0 : RF Transmission is idle 1 : RF Transmission is active

2 LOCK Indicates whether the frequency synthesizer PLL is in lock or not

0 : The PLL is out of lock 1 : The PLL is in lock

1 RSSI_VALID Indicates whether the RSSI value is valid or not.

0 : The RSSI value is not valid 1 : The RSSI value is valid, always true when reception has been enabled at least 8 symbol periods (128 us)

0 - Reserved, ignore value

Table 5. Status byte returned during address transfer and TXFIFO writing

13.4 Command strobes

Command strobes may be viewed as single byte instructions to CC2420. By addressing a command strobe register internal sequences will be started. These commands must be used to enable the crystal oscillator, enable receive mode, start decryption etc. All 15 command strobes are listed in Table 11 on page 62.

When the crystal oscillator is disabled (Power Down state in Figure 25 on page 44), only the SXOSCON command strobe may be used. All other command strobes will be ignored and will have no effect. The crystal oscillator must stabilise (see the XOSC16M_STABLE status bit in Table 5) before other command strobes are accepted.

The command strobe register is accessed in the same way as for a register write operation, but no data is transferred. That is, only the RAM/Register bit (set to 0), R/W bit (set to 0) and the 6 address bits (in the range 0x00 through 0x0E) are

written. A command strobe may be followed by any other SPI access without pulling CSn high, and is executed on the last falling edge on SCLK.

13.5 RAM access

The internal 368 byte RAM may be accessed through the SPI interface. Single or multiple bytes may be read or written sending the address part (2 bytes) only once. The address is then automatically incremented by the CC2420 hardware for each new byte. Data is read and written one byte at a time, unlike register access where 2 bytes are always required after each address byte.

The crystal oscillator must be running when accessing the RAM.

The RAM/Register bit must be set high to enable RAM access. The 9 bit RAM address consists of two parts, B1:0 (MSB) selecting one of the three memory banks and A6:0 (LSB) selecting the address within the selected bank. The RAM is

Administrator
文本框
指示16M晶体振荡器是否工作.0-16Mhz没有工作.
Administrator
文本框
指示FiFo是否发生溢出.如发生溢出必须清除SFLUSHTX. 0-指示未溢出
Administrator
文本框
指示编码器是否忙 0-指标空闲.
Administrator
文本框
指示是否RF发射是否活动 0-指示空闲
Administrator
文本框
指示锁相环是否稳定:0-指示未锁定
Administrator
文本框
指示RSSI值是否有效: 0-指示无效 1-指示RSSI信号有效.当使能接收128us(接收8字符后)就会有效
Administrator
文本框
13.4命令过滤 命令过滤被认为CC2420的单字节命令.寻址命令锁存过滤器,内部时序开始工作.这些命令必需用来使能晶体振荡器,使能接收模式,开始解密等.所有的15个命令锁存器. 当晶体被禁止(在44页图25中的掉电状态中),CC2420等待唯一的SXoscon命令.在晶振稳定之前,所有其它的命令过滤的操作将不被执行. 当命令过滤寄存器被访问时,不用传送任何数据.也就是说,只有RAM/Register和R/W和6地址位被写入.在其它访问之后,只要CSn一直保持为低,过滤命令可以直接进行,它会最后一个SCLK的下降沿时执行.
Administrator
线条
Administrator
线条
Administrator
文本框
13.5Ram访问 内部的368字节可能通SPI接口.在一次读写过程中可以访指定地址区(两字节)的单字节或多字节.这个地址会自动增加.不像Register访问时,在地址字节之后需要跟随2个字节,RAM访问时,地址之后只有一个字节. 在RAM访问时,晶体振荡器必须正常工作./////在Ram访问过程中,RAM/Register位必须是1.9位RAM地址包括两部分,B1:0指定三个RAM区之一.A6:0选择指定RAM区的地址.

CC2420

SWRS041B Page 30 of 89

divided into three memory banks: TXFIFO (bank 0), RXFIFO (bank 1) and security (bank 2). The FIFO banks are 128 bytes each, while the security bank is 112 bytes.

A6:0 is transmitted directly after the RAM/Register bit as shown in Figure 9. For RAM access, a second byte is also required before the data transfer. This byte contains B1:0 in bits 7 and 6, followed by the R/W bit (0 for read+write, 1 for read). Bits 4 through 0 are don’t care as shown in Figure 9.

For RAM write, data to be written must be input on the SI pin directly after the second address byte. RAM data read is output on the SO pin simultaneously, but may be ignored by the user if only writing is of interest.

For RAM read, the selected byte(s) are output on the SO pin directly after the second address byte.

See Figure 10 for an illustration on how multiple RAM bytes may be read or written in one operation.

The RAM memory space is shown in Table 6. The lower 256 bytes are used to store FIFO data. Note that RAM access should never be used for FIFO write operations because the FIFO counter will not be updated. Use RXFIFO and TXFIFO access instead as described in section FIFO access.

As with register data, data stored in RAM will be retained during power down mode, but not when the power-supply is turned off (e.g. by disabling the voltage regulator using the VREG_EN pin).

ADDR

CSn:

Command strobe:

Read or write a whole register (16 bit): DATA8MSBADDR DATA8LSB

Read 8 MSB of a register: DATA8MSBADDR

Multiple register read or write DATA8MSBADDR DATA8LSB DATA8MSB DATA8LSB...

Read or write n bytes from/to RF FIFO: DATAbyte0ADDRFIFO DATAbyte1 DATAbyte2 DATAbyte3 DATAbyte n-2 DATAbyte n-1...

ADDRMultiple command strobes: ADDR ADDR ... ADDR

ADDR DATA8MSB ADDR

DATAbyte n-3

ADDR...

Read or write n bytes from/to RAM: ADDRHRAMADDRLRAM DATAADDR DATAADDR+1 DATAADDR+2 DATAADDR+n...

FIFO and RAM access must be terminated with setting the CSn pin high.Command strobes and register access may be followed by any other access,since they are completed on the last negative edge on SCLK. They may however also beterminated with setting CSn high, if desirable, e.g. for reading only 8 bits from a configurationregister.

Note:

Figure 10. Configuration registers write and read operations via SPI

Administrator
文本框
RAM包括三个区:TXFIFo,RXFifo和安全区.FiFo分别为128字节,安全区112字节. 如图9所示,A6:0紧随Ram/Register位之后.内存访问时,在数据传过来之前还需要第二个字节.这个第二个字节的7.6位是B1:0,之后是R/W位,4-0无所谓. 在RAM写入时,数据紧随第二个地址字节Si通过写入.读出时,由So输出,但是,你可以忽略它.
Administrator
文本框
当读取RAM时,在第二个字节发送完毕之后,So立即输出相应地址数据. 请参见图10查看怎样进行多字节Ram读写. 内存区的结构参见表6.低256字节用来存储Fifo数据.由于在写操任时Fifo计数器并不增加,FiFo访问不应该进行写操作.进行RXfifo和TxFifo可以参见Fifo访问章节. 和寄存器数据一样,在掉电模式RAM中的将保存.但在CC2420掉电并不保存.
Administrator
文本框
单滤波命令 多次滤波命令 读和写所有寄存器 读取高8位寄存器 多寄存器读写 从FiFo读写数据 从Ram中数据.

CC2420

SWRS041B Page 31 of 89

Address Byte Ordering Name Description

0x16F – 0x16C

- - Not used

0x16B – 0x16A

MSB LSB

SHORTADR 16-bit Short address, used for address recognition.

0x169 – 0x168

MSB LSB

PANID 16-bit PAN identifier, used for address recognition.

0x167 – 0x160

MSB LSB

IEEEADR 64-bit IEEE address of current node, used for address recognition.

0x15F – 0x150

MSB LSB

CBCSTATE Temporary storage for CBC-MAC calculations

0x14F – 0x140

MSB (Flags) LSB

TXNONCE / TXCTR Transmitter nonce for in-line authentication and transmitter counter for in-line encryption.

0x13F – 0x130

MSB LSB

KEY1 Encryption key 1

0x12F – 0x120

MSB LSB

SABUF Stand-alone encryption buffer, for plaintext input and ciphertext output

0x11F – 0x110

MSB (Flags) LSB

RXNONCE / RXCTR Receiver nonce for in-line authentication or receiver counter for in-line decryption.

0x10F – 0x100

MSB LSB

KEY0 Encryption key 0

0x0FF – 0x080

MSB LSB

RXFIFO 128 bytes receive FIFO

0x07F – 0x000

MSB LSB

TXFIFO 128 bytes transmit FIFO

Table 6. CC2420 RAM Memory Space

13.6 FIFO access

The TXFIFO and RXFIFO may be accessed through the TXFIFO (0x3E) and RXFIFO (0x3F) registers.

The TXFIFO is write only, but may be read back using RAM access as described in the previous section. Data is read and written one byte at a time, as with RAM access. The RXFIFO is both writeable and readable. Writing to the RXFIFO should however only be done for debugging or for using the RXFIFO for security operations (decryption / authentication).

The crystal oscillator must be running when accessing the FIFOs.

When writing to the TXFIFO, the status byte (see Table 5) is output for each new data byte on SO, as shown in Figure 9. This could be used to detect TXFIFO underflow (see section RF Data Buffering section on page 39) while writing data to the TXFIFO.

Multiple FIFO bytes may be accessed in one operation, as with the RAM access. FIFO access can only be terminated by

setting the CSn pin high once it has been started.

The FIFO and FIFOP pins also provide additional information on the data in the receive FIFO, as will be described in the Microcontroller Interface and Pin Description section on page 32. Note that the FIFO and FIFOP pins only apply to the RXFIFO. The TXFIFO has its underflow flag in the status byte.

The TXFIFO may be flushed by issuing a SFLUSHTX command strobe. Similarly, a SFLUSHRX command strobe will flush the receive FIFO.

13.7 Multiple SPI access

Register access, command strobes, FIFO access and RAM access may be issued continuously without setting CSn high. E.g. the user may issue a command strobe, a register write and writing 3 bytes to the TXFIFO in one operation, as illustrated in Figure 11. The only exception is that FIFO and RAM access must be terminated by setting CSn high.

Administrator
文本框
当前接收的验证或接收计数器译码
Administrator
文本框
独立编码缓冲区.通用文本输入,加密文本输出
Administrator
文本框
当前发送的验证和发送计数器编码
Administrator
文本框
64位IEEE地址,用于址识别
Administrator
文本框
16位短地址识别
Administrator
文本框
16位PAN识别,用于地址识别
Administrator
文本框
CBC-MAC计算存临时储
Administrator
文本框
13.6FiFo访问 TXFiFo可以通0x3E地址访,RXFiFo可能0x3f寄存器访问. TXFiFo为只写模式,但可以通过Ram读模式读出(如上一章节所述).数据可以一次只写一个字节,如RAM读写中所述.TXFiFo为可读写模式.但写入RXFiFo只能为了加解密安全操作的调试模式时. 在FiFo操作时晶振必须正常工作. 当写入TXFiFo时,状态数据会通So输出,如图9所示.这个状态字节可以在写TxFiFo时判断TXFiFo是否下溢出.正如RAM操作所述, 在一次操作过程中可以进行多字节FiFo操作.FiFo访问开始,只能通拉高CSn引脚电压来中止. 如32页的引脚说明和单片机接口所述,FiFo和FiFoP引脚可以提供RXFiFo数据时的更多信息.注意,Fifo和FiFoP引脚用于RXFiFo.TXFiFo有它自已状态位. TXFiFo可以SFLUSHTX来清空.SFLUSHRX可以清空RXFIFO.
Administrator
文本框
13.7多步SPI访问 只要CSn没有被拉高,寄存器访问,命令滤波器,FiFo访问,RAM访问可交互连续访问.例如:用户可以在一次操作进行一次命令过滤器,一个寄存器写入,写入TXFiFo三个字节,如图11所示.FiFo和RAM访问有些例外,好必须通位高CSn拉高.

CC2420

SWRS041B Page 32 of 89

CSn

SI ADDRADDR

DATA8MSB DATA8LSB

DATAADDR+1

SO

ADDRTXFIFO DATAADDR DATAADDR+2

StatusStatus

- -

StatusStatus Status Status

CommandStrobe

RegisterRead

TXFIFOWrite

Figure 11. Multiple SPI Access Example

14 Microcontroller Interface and Pin Description

When used in a typical system, CC2420 will interface to a microcontroller. This microcontroller must be able to:

• Program CC2420 into different modes, read and write buffered data, and read back status information via the 4-wire SPI-bus configuration interface (SI, SO, SCLK and CSn).

• Interface to the receive and transmit FIFOs using the FIFO and FIFOP status pins.

• Interface to the CCA pin for clear channel assessment.

• Interface to the SFD pin for timing information (particularly for beaconing networks).

14.1 Configuration interface

A CC2420 to microcontroller interface example is shown in Figure 12. The microcontroller uses 4 I/O pins for the SPI

configuration interface (SI, SO, SCLK and CSn). SO should be connected to an input at the microcontroller. SI, SCLK and CSn must be microcontroller outputs. Preferably the microcontroller should have a hardware SPI interface.

The microcontroller pins connected to SI, SO and SCLK can be shared with other SPI-interface devices. SO is a high impedance output as long as CSn is not activated (active low).

CSn should have an external pull-up resistor or be set to a high level when the voltage regulator is turned off in order to prevent the input from floating. SI and SCLK should be set to a defined level to prevent the inputs from floating.

CC2420µC

CSnSISO

SCLK

MOSIMISOSCLK

GIO2

FIFO

FIFOP

CCA

SFD

GIO0

Interrupt

GIO1

Timer Capture

Figure 12. Microcontroller interface example

Administrator
文本框
14微控器接口及引脚说明 在一典型系统中,CC2420需要与微控器进行通信.这个微控器必须能够: .通4线制SPI接口来设置CC2420到不同的工作模式,读写缓冲区,读入状态寄存器. ,用FiFo和FiFoP状态引脚来访问FiFo .通过CCA引脚查看通道是否清空. .通过SFD引脚提供时间(特别是在Zigbee网络中) 14.1配置接口 图12展示CC2420的接口标例.微控器通4个I/O引脚与SPI接口相连.So需要接微控器的输入接口.Si,SCLK与CSn接微控器的输出口.最好微控器有SPI接口. 微控器的SPI可以接其它SPI接口器件.如果CSn为高电平,So为高阻状态. 为了防止CSn在稳压器禁止时为悬浮状态,可以使用上拉电阻,或使端口置高电平.同时SCLK和SI引脚也应该接固定电平.

CC2420

SWRS041B Page 33 of 89

14.2 Receive mode

In receive mode, the SFD pin goes active after the start of frame delimiter (SFD) field has been completely received. If address recognition is disabled or is successful, the SFD pin goes inactive again only after the last byte of the MPDU has been received. If the received frame fails address recognition, the SFD pin goes inactive immediately. This is illustrated in Figure 13.

The FIFO pin is active when there are one or more data bytes in the RXFIFO. The first byte to be stored in the RXFIFO is the length field of the received frame, i.e. the FIFO pin goes active when the length field is written to the RXFIFO. The FIFO pin then remains active until the RXFIFO is empty.

If a previously received frame is completely or partially inside the RXFIFO, the FIFO pin will remain active until the RXFIFO is empty.

The FIFOP pin is active when the number of unread bytes in the RXFIFO exceeds the threshold programmed into IOCFG0.FIFOP_THR. When address recognition is enabled the FIFOP pin will remain inactive until the incoming frame passes address recognition, even if the number of bytes in the RXFIFO exceeds the programmed threshold. The FIFOP pin will also go active when the last byte of a new packet is received, even if the threshold is not exceeded. If so, the FIFOP pin will go inactive once one byte has been read out of the RXFIFO. When address recognition is enabled, data should not be read out of the RXFIFO before the address is completely received, since the frame may be automatically flushed by CC2420 if it fails address

recognition. This may be handled by using the FIFOP pin, since this pin does not go active until the frame passes address recognition. Figure 14 shows an example of pin activity when reading a packet from the RXFIFO. In this example, the packet size is 8 bytes, IOCFG0.FIFOP_THR = 3 and MODEMCTRL0.AUTOCRC is set. The length will be 8 bytes, RSSI will contain the average RSSI level during reception of the packet and FCS/corr contains information of FCS check result and the correlation levels.

14.3 RXFIFO overflow

The RXFIFO can only contain a maximum of 128 bytes at a given time. This may be divided between multiple frames, as long as the total number of bytes is 128 or less. If an overflow occurs in the RXFIFO, this is signalled to the microcontroller by making the FIFO pin go inactive while the FIFOP pin is active. Data already in the RXFIFO will not be affected by the overflow, i.e. frames already received may be read out.

A SFLUSHRX command strobe is required after an RXFIFO overflow to enable reception of new data. Note that the SFLUSHRX command strobe should be issued twice to ensure that the SFD pin goes back to its inactive state.

For security enabled frames, the MAC layer must read the source address of the received frame before it can decide which key to use to decrypt or authenticate. This data must therefore not be overwritten even if it has been read out of the RXFIFO by the microcontroller. If the SECCTRL0.RXFIFO_PROTECTION control bit is set, CC2420 also protects the frame header of security enabled frames until decryption has been performed. If no MAC security is used or if it is implemented outside the CC2420, this bit may be cleared to achieve optimal use of the RXFIFO.

Administrator
文本框
图14示意了在读取RXFiFo时引各相关引脚的状态.在这个例子中,帧是一个8位数据包.IOCFG0.FIFOP_THR=3并且设置MODEMCTRL0.AUTOCRC.8字节长度中,在接收过程中一个平均的RSSI指示被保存到RSSI.FCS/Corr被保存,还有其它的信息指示. 14,3RXFiFo溢出 在一次接收中,RXFiFo只可以保存128字节.只要数据小于128字节或更少,它可以是多帧数据.如果RXFiFo发生溢出,FiFoP引脚有效,同时fiFo无效.RXFiFo不会影响以前接收到的数据,也就是说,接收到的帧数据仍然可以读出. 在发生RXFiFo溢出后,为了继续接收接数据必须使SFLUSHRX命令清空接收区.为了确保SFD无效,SFLUSHRX需发送两次. 为了确保帧有效,MAC层必须读取源地址以决定用哪一个Key进行译码和确认.尽管微控器读取了数据,RXFiFo中的数据也不能清空.如SEECCTRL0.RXFIFO_PROTECTION接收保护控制位有效,在接收的数据被确认之前,CC2420还保护帧头.如果禁止了MAC确认或在外部实现MAC确认完毕,接收保护位可以被清空以提高RXFiFo的使 用率.
Administrator
文本框
14.2接收器 在接收模式下,SFD(帧开始分割符)被接收后,SFD引脚立即有效.如果地址确认或地址被忽略,SFD引脚在接收到MPDU后无效.如果接收帧地址错误,SFD引脚立即无效.图13解释了这一点. 当RXFiFo不为空,FIFO引脚有效.当接收到第一个字节并保存RXFiFo中,区长度写入RXFiFo,FiFo引脚立即有效.FiFo一直有效址到RXFiFo被清空. 如果前一个接收到的帧完全或部分在RXFiFo中,FiFo引脚一直保持有效. 当在RXFiFo中未读的数据超过IOCFG0中的FiFoP-ThR指定的数量,FiFop引脚变为有效.如果地址未得到确认,即使未读数据超过了指定数量,FiFoP引脚仍然保持无效. 当新数据包的最后一个字节被写入后,FiFoP引脚也会有效.RXFiFo的数据被读出后,FiFop引脚会无效. 当地址确认功能被匀许,由于CC2420会在地址确认失败后清空RXFiFo,所以如果想读取这些数据,一定要在地址确认前读这些数据.因为FiFoP引脚在地址未确认时一直保持无效,这些数据可以在查看FiFop引脚电压无效时读出.

CC2420

SWRS041B Page 34 of 89

Preamble SFD LengthData received over RF

SFD Pin

FIFO Pin

FIFOP Pin, if thresholdhigher than frame length

FIFOP Pin, if thresholdlower than frame length

SFD detec

ted

Leng

th by

te rec

eived

Last

MPDU

byte

receiv

ed

Preamble SFD LengthData received over RF

SFD Pin

FIFO Pin

FIFOP Pin

Addres

s rec

ognit

ion

comple

ted

MAC Protocol Data Unit (MPDU) with correct address

MAC Protocol Data Unit (MPDU) with wrong address

Addressrecognition OK

Addressrecognition fails

Figure 13. Pin activity examples during receive

SI -ADDRTXFIFO

PSDU0 PSDU1

-

SO

- - -

LengthStatus

- -

PSDU5PSDU2 PSDU3 RSSI

CSn

SFD

SCLK

FIFOP

FIFO

-

PSDU4

FIFO goes

low w

hen

reado

ut of

last b

yte

starts

FIFOP remain

s high

as lo

ng as

numbe

r of

bytes

> FIFOP_T

HR

-

FCS/Corr

Figure 14. Example of pin activity when reading RXFIFO.

14.4 Transmit mode

During transmit the FIFO and FIFOP pins are still only related to the RXFIFO. The SFD pin is however active during transmission of a data frame, as shown in Figure 15.

The SFD pin goes active when the SFD field has been completely transmitted. It goes inactive again when the complete MPDU (as defined by the length field) has been transmitted or if an underflow is

detected. See the RF Data Buffering section on page 39 for more information on TXFIFO underflow.

As can be seen from comparing Figure 13 and Figure 15, the SFD pin behaves very similarly during reception and transmission of a data frame. If the SFD pins of the transmitter and the receiver are compared during the transmission of a data frame, a small delay of approximately 2 µs can be seen because of bandwidth limitations in both the transmitter and the receiver.

Administrator
文本框
14.4发送模式, 在发送模式过程中,FiFo和FiFoP引脚也是RXFiFo相关.然而,SFD在发送过程中也会有效. SPD区传送完毕后,SFD引脚有效.在MPDU发送完毕或发生发送溢出后无效.请参见39页RF数据缓冲查看TXFiFo溢出 如图13和图15所示,SFD引脚的特性非常像接收或发送数据帧的指示.在接收和发送过程中,由于CC2420内部总线带宽的原因,SFD引脚的状态会有2uS的延迟.

CC2420

SWRS041B Page 35 of 89

Preamble SFD LengthData transmittedover RF

SFD Pin

SFD trans

mitted

Last

MPDU

byte

trans

mitted o

r

TX unde

rflow

MAC Protocol Data Unit (MPDU)

STXON

comman

d

strob

e

12 symbol periods Automatically generatedpreamble and SFD

Data fetchedfrom TXFIFO

CRC generatedby CC2420

Figure 15. Pin activity example during transmit

14.5 General control and status pins

In receive mode, the FIFOP pin can be used to interrupt the microcontroller when a threshold has been exceeded or a complete frame has been received. This pin should then be connected to a microcontroller interrupt pin.

In receive mode, the FIFO pin can be used to detect if there is data at all in the receive FIFO.

The SFD pin can be used to extract the timing information of transmitted and

received data frames. The SFD pin will go active when a start of frame delimiter has been completely detected / transmitted. The SFD pin should preferably be connected to a timer capture pin on the microcontroller.

For debug purposes, the SFD and CCA pins can be used to monitor several status signals as selected by the IOCFG1 register. See Table 12 and Table 13 for available signals.

The polarity of FIFO, FIFOP, SFD and CCA can be controlled by the IOCFG0 register (address 0x1C).

15 Demodulator, Symbol Synchroniser and Data Decision

The block diagram for the CC2420 demodulator is shown in Figure 16. Channel filtering and frequency offset compensation is performed digitally. The signal level in the channel is estimated to generate the RSSI level (see the RSSI / Energy Detection section on page 48 for more information). Data filtering is also included for enhanced performance.

With the ±40 ppm frequency accuracy requirement from [1], a compliant receiver must be able to compensate for up to 80 ppm or 200 kHz. The CC2420 demodulator tolerates up to 300 kHz offset without significant degradation of the receiver performance.

Soft decision is used at the chip level, i.e. the demodulator does not make a decision for each chip, only for each received symbol. De-spreading is performed using over sampled symbol correlators. Symbol

synchronisation is achieved by a continuous start of frame delimiter (SFD) search.

When a SFD is detected, data is written to the RXFIFO and may be read out by the microcontroller at a lower bit rate than the 250 kbps generated by the receiver.

The CC2420 demodulator also handles symbol rate errors in excess of 120 ppm without performance degradation. Resynchronisation is performed continuously to adjust for error in the incoming symbol rate.

The RXCTRL1.RXBPF_LOCUR control bit should be written to 1.

The MDMCTRL1.CORR_THR control bits are by default set to 20 defining the threshold for detecting IEEE 802.15.4 start of frame delimiters.

Administrator
文本框
用STXON命令启动发送
Administrator
文本框
延时12位字符发送的时间
Administrator
文本框
自动生成帧头和SFD
Administrator
文本框
SFD发送完毕
Administrator
文本框
从FiFo取得数据
Administrator
文本框
CC2420中CRC生面
Administrator
文本框
最后一位MPDU发送出或TX下溢出
Administrator
文本框
14.5状态引脚的控制 在接收模式中,FiFoP用于指示接收数所上限到达或完整的帧被接收.这个引脚可以接微控器的中断引脚. 在接收模式中,FiFo引脚RXFiFo是否有数据. SFD引脚表明现在是否在接收或发送数据帧.在帧头发送完毕或帧头被确认后,SFD引脚有效.SFD适合接入单片机的捕获引脚. 在调试模式中,SFD和CCA引脚可以通IOCFG1的配置进行其它状态的监视.请在表12和表13查看详细信息.
Administrator
文本框
15.解码,同步符和数据确认 CC2420的解码流程图在图16中示意.数字化的通道滤波和频率被偿.通道信号质量由RSSI指示(详见48页的能量检测章节).数据滤波不包括增强模式. 当使用40ppm精度的频率精度时,一个良好接收器必须能够补偿80ppm或200KHz.在接收模式下,CC2420可匀许300KHz偏差不会对性能造成显著影响. 接下来好像是说可以SFD以前字节进行频率查询同步. 当SFD分割符被检测后,接收到的数据被写入RXFiFo中,写入的数据可以通过低于250Kbps速率的微控器接口进行读出. CC2420解调器可250Kbps的通讯速率的120ppm偏差.重新修正由CC2420自动进行.
Administrator
文本框
RXCTRL1.RXBPF_LOCUR控制位必须写入1.在IEEE802.15.4规定了MDMCTRL1.CORR_THR为20,CC2420的默认值也是20.

CC2420

SWRS041B Page 36 of 89

DigitalIF Channel

FilteringADC

DigitalData

Filtering

FrequencyOffset

Compensation

SymbolCorrelators andSynchronisation

RSSIGenerator

I / Q AnalogIF signal

DataSymbolOutput

RSSI

AverageCorrelation

Value (may beused for LQI)

Figure 16. Demodulator Simplified Block Diagram

16 Frame Format

CC2420 has hardware support for parts of the IEEE 802.15.4 frame format. This section gives a brief summary to the IEEE 802.15.4 frame format, and describes how CC2420 is set up to comply with this.

Figure 17 [1] shows a schematic view of the IEEE 802.15.4 frame format. Similar figures describing specific frame formats (data frames, beacon frames, acknowledgment frames and MAC command frames) are included in [1].

Figure 17. Schematic view of the IEEE 802.15.4 Frame Format [1]

16.1 Synchronisation header

The synchronisation header (SHR) consists of the preamble sequence followed by the start of frame delimiter (SFD). In [1], the preamble sequence is defined to be 4 bytes of 0x00. The SFD is one byte, set to 0xA7.

In CC2420, the preamble length and SFD is configurable. The default values are compliant with [1]. Changing these values will make the system non-compliant to IEEE 802.15.4.

A synchronisation header is always transmitted first in all transmit modes.

The preamble sequence length can be set by MDMCTRL0.PREAMBLE_LENGTH, while the SFD is programmed in the SYNCWORD register. SYNCWORD is 2 bytes long, which gives the user some extra flexibility as described below. Figure 18 shows how the CC2420 synchronisation header relates to the IEEE 802.15.4 specification.

The programmable preamble length only applies to transmission, it does not affect receive mode. The preamble length should not be set shorter than the default value. Note that 2 of the 8 zero-symbols in the preamble sequence required by [1] are included in the SYNCWORD register so that the CC2420 preamble sequence is only 6 symbols long for compliance with [1]. Two

PHYLayer

FrameControl Field

(FCF)

DataSequenceNumber

2 1Bytes:

AddressInformation

0 to 20

Frame payload

nFrame Check

Sequence(FCS)

2

MAC Header (MHR) MAC Payload MAC Footer(MFR)

FrameLength

MAC ProtocolData Unit(MPDU)

Start of frameDelimiter

(SFD)

Bytes: 1 1 5 + (0 to 20) + n

PreambleSequence

4

Synchronisation Header(SHR)

PHY Header(PHR)

PHY Service Data Unit(PSDU)

PHY Protocol Data Unit(PPDU)

11 + (0 to 20) + n

MACLayer

Administrator
文本框
解码简易框图
Administrator
文本框
I/Q模拟IF信号
Administrator
文本框
数字化IF通道滤波
Administrator
文本框
频偏补偿
Administrator
文本框
数字化数据滤波
Administrator
文本框
字符解释相关和同步
Administrator
文本框
字符输出
Administrator
文本框
平均相关数值(可能用到LQI)
Administrator
文本框
16.帧格式 CC2420完全支IEEE802.15.4帧格式.本章节简要地描述了一下IEEE802.15.4格式以及CC2420如何支持它. 图17(1)显示了IEEE802.15.4帧格式.简单地描述了帧格式(数据帧,指示帧,应答帧,MAC命帧).
Administrator
文本框
帧开始分割符
Administrator
文本框
帧长度
Administrator
文本框
前导序列
Administrator
文本框
帧同步头
Administrator
文本框
物理头
Administrator
文本框
MAC数据区
Administrator
文本框
物理服务数据单元
Administrator
文本框
实际协议数据单元
Administrator
文本框
2位帧控制区
Administrator
文本框
1数据序列数量
Administrator
文本框
0-20地址信息
Administrator
文本框
帧实际数据
Administrator
文本框
帧检查序列
Administrator
文本框
MAC头
Administrator
文本框
MAC结尾
Administrator
文本框
MAC有效载荷
Administrator
文本框
16.1同步头 同步头(SHR)包括前导序列和SFD(帖开始分割符).前导序列是4字节0x00,SFD是一个字,内容为0xA7. 在CC2420,前导序列和SFD的长度可以配置.改变它们将不再附合IEEE802.15.4标准. 在所有传输过程序,同步头一般都是最先传送
Administrator
文本框
前导序列可以通过MDMctrl0L.PREAMBLE_LENGTH,SFD帧开始分割符通过SYNCWord寄存器来设置.SYNCWORD是两个字节,她为用户提供更多设置.图18给出的同步头是和IEEE802.15.4相关. 修改前导序列的格式只影响发送,不影响接收.前导序列不要设置短于默认值.前导序列为6个字符,少于IEEE802.15.4要求的8个前导序列字符.余下的两个0字符由SYNCWORD给出.

CC2420

SWRS041B Page 37 of 89

additional zero symbols in SYNCWORD make CC2420 compliant with [1].

In reception, CC2420 synchronises to received zero-symbols and searches for the SFD sequence defined by the SYNCWORD register. The least significant symbols in SYNCWORD set to 0xF will be ignored, while symbols different from 0xF will be required for synchronisation. The default setting of 0xA70F thereby requires one additional zero-symbol for synchronisation. This will reduce the number of false frames detected due to noise.

The following illustrates how the programmed synch word is interpreted during reception by CC2420: If SYNCWORD = 0xA7FF, CC2420 will require the incoming symbol sequence of (from left to

right) 0 7 A. If SYNCWORD = 0xA70F, CC2420 will require the incoming symbol sequence of (from left to right) 0 0 7 A. If SYNCWORD = 0xA700, CC2420 will require the incoming symbol sequence of (from left to right) 0 0 0 7 A.

In receive mode CC2420 uses the preamble sequence for symbol synchronisation and frequency offset adjustments. The SFD is used for byte synchronisation, and is not part of the data stored in the receive buffer (RXFIFO).

0 7 AIEEE 802.15.4

Preamble SFD

CC2420 2·(PREAMBLE_LENGTH + 1) zero symbols

0 0 0 0 0 0 0

SW0

SW0 = SYNCWORD[3:0]

SW1 = SYNCWORD[7:4]

SW2 = SYNCWORD[11:8]

SW3 = SYNCWORD[15:12]

SW1 SW2 SW3

if different from 'F', else '0'

if different from 'F', else '0'

if different from 'F', else '0'

if different from 'F', else '0'

Synchronisation Header

Each box corresponds to 4 bits. Hence the preamble corresponds to 8 x 4 ''0' s or 4 bytes with the value 0.

Figure 18. Transmitted Synchronisation Header

16.2 Length field

The frame length field shown in Figure 17 defines the number of bytes in the MPDU. Note that the length field does not include the length field itself. It does however include the FCS (Frame Check Sequence), even if this is inserted automatically by CC2420 hardware. It also includes the MIC if authentication is used.

The length field is 7 bits and has a maximum value of 127. The most significant bit in the length field is reserved [1], and should be set to zero.

CC2420 uses the length field both for transmission and reception, so this field

must always be included. In transmit mode, the length field is used for underflow detection, as described in the FIFO access section on page 31.

16.3 MAC protocol data unit

The FCF, data sequence number and address information follows the length field as shown in Figure 17. Together with the MAC data payload and Frame Check Sequence, they form the MAC Protocol Data Unit (MPDU).

The format of the FCF is shown in Figure 19. Please refer to [1] for details.

Administrator
文本框
在接收模式,CC2420通过0字符进行同步,并查找SYNCWORD中定义的SFD(帧开始分割). 如果SYNCWORD最低位是0xF将会被忽略.默认设置是0xA70F,这样会增加更多0字符以便同步,这样会降低噪声对帧失败的影响. 下面讲述怎样对在CC2420接收中同步字符的设置.如果SYNCWORD设置为0xA7FF,CC2420要求输入的顺序为07A.如果SYNCWORD=0xA70F,CC2420要求输入的字符为007A.如果SYNCWORD=0XA700,CC2420要求输入的字符为0007A. 在接收模式下,CC2420将前导序列用于频率调整和字符同步.SFD(帧开始分割符)用于字节同步,这些字符都不是用于存储到RXFiFo的.
Administrator
文本框
同步头
Administrator
文本框
前导序列,2+1+1个字节,8位字符
Administrator
文本框
16.2帧长度区 帧长度区指示了MPDU(MAC数据区)的长度.这个长度并不包括本字节的长度.尽管FCS是由CC2420自动加入的,MPDU包括FCS(帧结尾).如果使用的数据鉴定,MPDU也包括MIC. 帧长度区是一个7位数据,它所能表达的最大值是127.帧长度区的最高位被保留,而必须一直为零. CC2420在发送和接收时都要使用帧长度区.在发送模式下,这个帧长度区用于指示下溢出.
Administrator
文本框
16.3MAC数据区, FCF帧控制区在数据序列数和地址信息之前.加上MAC有效载荷和FCS(数据检查区),构成MPDU(MAC数据区);图19显示了FCF帧控制区的格式.

CC2420

SWRS041B Page 38 of 89

There is no hardware support for the data sequence number, this field must be inserted and verified by software.

CC2420 includes hardware address recognition, as described in the Address Recognition section on page 41.

Bits: 0-2 3 4 5 6 7-9 10-11 12-13 14-15

Frame Type

Security Enabled

Frame Pending

Acknowledge request

Intra PAN

Reserved Destination addressing mode

Reserved Source addressing mode

Figure 19. Format of the Frame Control Field (FCF) [1]

16.4 Frame check sequence

A 2-byte frame check sequence (FCS) follows the last MAC payload byte as shown in Figure 17. The FCS is calculated over the MPDU, i.e. the length field is not part of the FCS. This field is automatically generated and verified by hardware when the MODEMCTRL0.AUTOCRC control bit is set. It is recommended to always have this enabled, except possibly for debug purposes. If cleared, CRC generation and verification must be performed by software.

The FCS polynomial is [1]:

x16 + x12 + x5 + 1

The CC2420 hardware implementation is shown in Figure 20. Please refer to [1] for further details.

In transmit mode the FCS is appended at the correct position defined by the length field. The FCS is not written to the TXFIFO, but stored in a separate 16-bit register.

In receive mode the FCS is verified by hardware. The user is normally only

interested in the correctness of the FCS, not the FCS sequence itself. The FCS sequence itself is therefore not written to the RXFIFO during receive.

Instead, when MODEMCTRL0.AUTOCRC is set the two FCS bytes are replaced by the RSSI value, average correlation value (used for LQI) and CRC OK/not OK. This is illustrated in Figure 21.

The first FCS byte is replaced by the 8-bit RSSI value. This RSSI value is measured over the first 8 symbols following the SFD. See the RSSI section on page 48 for details.

The 7 least significant bits in the last FCS byte are replaced by the average correlation value of the 8 first symbols of the received PHY header (length field) and PHY Service Data Unit (PSDU). This correlation value may be used as a basis for calculating the LQI. See the Link Quality Indication section on page 49 for details.

The most significant bit in the last byte of each frame is set high if the CRC of the received frame is correct and low otherwise.

r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15

Datainput(LSBfirst)

Figure 20. CC2420 Frame Check Sequence (FCS) hardware implementation [1]

Administrator
文本框
FCF帧控制区是由软件插入并生成的. CC2420包括硬件地址识别,详细描述请见41页.
Administrator
文本框
帧类型
Administrator
文本框
安全使能
Administrator
文本框
帧挂起
Administrator
文本框
需确认
Administrator
文本框
目标寻址模式
Administrator
文本框
源寻址模式
Administrator
文本框
16.4帧校验序列 在MAC有效载荷之后是一个2字节的FCS(帧校验序列). ??????????当MODEMCTRL0.AUTOCRC控制被设置之后,FCS(帧校验序列)是由硬件产生并实现的.除了为了调试目的,这个位是推荐使用的.如清除了该位,CRC必须由软件产生并实现. FCS(帧校验序列)是由下面公式产生. 如图20所示,CC2420硬件实现.请到[1]去查看更详细的信息. 在发送模式,根据帧长度区的指示,FCS会被加载到正确位置.FCS不会写到TXFIFO,而是存到一个独立的16位寄存器. 在接收模式中,FCS由硬件进行校验.用户只需关心FCS的正确性,而不是FCS(帧校验序列区).因此,Fcs不会写到RXFiFo内存区.
Administrator
文本框
另外,在接收时,当MODEMCTRL0.AUTOCRC设置为用RSSI的值\LQI\CRCOK替换FCS. 第一个FCS字节被替换为8位RSSI值.RSSI是由SFD(帧开始分割符)后的8位字符的信号强度产生的.请参见48页RSSI部分. FCS的最小7位数据用Correlation值替代. FCS低字节的最高位置1由CRCOK替代.

CC2420

SWRS041B Page 39 of 89

MPDULength byte

n MPDU1 MPDU2 MPDUn-2RSSI

(signed) CRC / Corr

7 6 5 4 3 2 1 0Bit numberCRCOK Correlation value (unsigned)

Data in RXFIFO

Figure 21. Data in RXFIFO when MDMCTRL0.AUTOCRC is set

17 RF Data Buffering

CC2420 can be configured for different transmit and receive modes, as set in the MDMCTRL1.TX_MODE and MDMCTRL1.RX_MODE control bits. Buffered mode (mode 0) will be used for normal operation of CC2420, while other modes are available for test purposes.

17.1 Buffered transmit mode

In buffered transmit mode (TX_MODE 0), the 128 byte TXFIFO, located in CC2420 RAM, is used to buffer data before transmission. A preamble sequence (defined in the Frame Format section below) is automatically inserted before the length field during transmission. The length field must always be the first byte written to the transmit buffer for all frames.

Writing one or multiple bytes to the TXFIFO is described in the FIFO access section on page 31. Reading data from the TXFIFO is possible with RAM access, but this does not remove the byte from the FIFO.

Transmission is enabled by issuing a STXON or STXONCCA command strobe. See the Radio control state machine section on page 43 for an illustration of how the transmit command strobes affect the state of CC2420. The STXONCCA strobe is ignored if the channel is busy. See the Clear Channel Assessment section on page 50 for details on CCA.

The preamble sequence is started 12 symbol periods after the command strobe. After the programmable start of frame delimiter has been transmitted, data is fetched from the TXFIFO.

A TXFIFO underflow is issued if too few bytes are written to the TXFIFO. Transmission is then automatically stopped. The underflow is indicated in the TX_UNDERFLOW status bit, which is returned during each address byte and each byte written to the TXFIFO. The underflow bit is only cleared by issuing a SFLUSHTX command strobe.

The TXFIFO can only contain one data frame at a given time.

After complete transmission of a data frame, the TXFIFO is automatically refilled with the last transmitted frame. Issuing a new STXON or STXONCCA command strobe will then cause CC2420 to retransmit the last frame.

Writing to the TXFIFO after a frame has been transmitted will cause the TXFIFO to be automatically flushed before the new byte is written. The only exception is if a TXFIFO underflow has occurred, then a SFLUSHTX command strobe is required.

17.2 Buffered receive mode

In buffered receive mode (RX_MODE 0), the 128 byte RXFIFO, located in CC2420 RAM, is used to buffer data received by the demodulator. Accessing data in the RXFIFO is described in the FIFO access section on page 31.

The FIFO and FIFOP pins are used to assist the microcontroller in supervising the RXFIFO. Please note that the FIFO and FIFOP pins are only related to the RXFIFO, even if CC2420 is in transmit mode.

Administrator
文本框
17RF数据缓存 通过设置MDMCTRL1.TX_MODE和MDMCTRL1.RX_MODE的控制位,可以使CC2420工作于不同的接收或发送模式.缓冲模式(模式0)是CC2420的正常模,其它的模式用于测试目的. 17.1缓冲发送模式 在缓冲发送模式中,CC2420中的128字节TXFIFO用于缓存要发送的数据.在发送过程时,一个前导序列被插入到帧长度区之前.在所有帧写入TXFIFO时,帧长度区必须第一个写入. 当要写入单字节或多字节的操作请参见31页.可以通过RAM访问读出TXFIFO中的数据,这个读取不会清空TXFIFO. 可以使用STXONA或STXONCCA命令来启动发送数据.请查看43页的无线通讯状态机章节以了解发送命令是如何影响CC2420工作的.如果通道正忙,STXONCCA会被忽略.请参见50页通道空闲章节.
Administrator
文本框
发送命令被送到CC2420之后,首先发送12个前导序列.在发送了SFD(帧开始分割符)之生,CC2420开始TXFiFo取得数据.
Administrator
文本框
太少的字节写入TXFIFO,TXFIFO下溢出有效.发送过程自动终止.溢出标志由TX_UNDERFLOW状态指示,这个状态标识会在每一次寻址和每一次写入TXFIFo时返回给微控器.下溢出必须用SFLUSHTX命令清除. TXFIFO在每一次只能写入一帧数据. 当完全传送数据帧之生,TXFIFO会自动增充发送的最后一帧.如果再有STXON或STXONCCA命令送到CC2420,CC2420会重新传刚刚的最后一帧. 当最后一帧被传完毕,写入TXFIFO会自动清空.有一个例外,当发生溢出时,必须使用SFLUSHTX. 17.2缓存接收数据 128字节RXFIFO,在接收模式中用于解调器接收到的数据的缓存. FIFO和FIFOP引脚用于微控器管理RXFiFo.尽管CC2420在发送模式下,请注意FIFO\FIFOP引脚只与RXFIFO有关.

CC2420

SWRS041B Page 40 of 89

Multiple data frames may be in the RXFIFO simultaneously, as long as the total number of bytes does not exceed 128.

See the RXFIFO overflow section on page 33 for details on how a RXFIFO overflow is detected and signalled.

17.3 Unbuffered, serial mode

Unbuffered mode should be used for evaluation / debugging purposes only. Buffered mode is recommended for all applications.

In unbuffered mode, the FIFO and FIFOP pins are reconfigured as data and data clock pins. The TXFIFO and RXFIFO buffers are not used in this mode. A synchronous data clock is provided by CC2420 at the FIFOP pin, and the FIFO pin is used as data input/output. The FIFOP clock frequency is 250 kHz when active. This is illustrated in Figure 22.

In serial transmit mode (MDMCTRL1.TX_MODE=1), a synchronisation sequence is inserted at the start of each frame by hardware, as in buffered mode. Data is sampled by CC2420 on the positive edge of FIFOP and should be updated by the microcontroller on the negative edge of FIFOP. See Figure 22 for an illustration of the timing in serial transmit mode. The SFD and CCA pins retain their normal operation also in serial mode. CC2420 will remain in serial transmit mode until transmission is turned off manually.

In serial receive mode (MDMCTRL1.RX_MODE=1) byte synchronisation is still performed by CC2420. This means that the FIFOP clock pin will remain inactive until a start of frame delimiter has been detected.

Receive mode:

Incoming / outgoingRF data SFD

FIFOP

Transmit mode:

Preamble

FIFO (from uC) b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 b10 b11

s0 s1

FIFOP

FIFO (from CC2420) b0 b1 b2 b3 b4

s2

b8 b9 b10 b11

4 us

Figure 22. Unbuffered test mode, pin activity

Administrator
文本框
只要没有超过128字节上限,RXFIFo可以存大多个数据帧. 请参见33页RXFIFO溢出章节了解RXFIFO如何过行检测. 17.3无缓冲,串行模式 无缓冲模式应该用于评估/试验目的.在正式应用时,推荐使用缓冲模式. 在无缓冲模时,FiFo和FIFOP引脚配置成数据引脚和数据时钟引脚.在这个模式中,TXFIFO和RXFIFO没有使用.同步时钟由Fifop引脚给出,FIFO引脚用于数据输入/输出.FiFoP时钟频率须是250Khz.
Administrator
文本框
当MDMCTRL1.TX_MODE=1,CC2420工作于串行模式.和缓冲模式一样,一个同步序列被插入到每一帧.CC2420在FIFOP的上升沿读取数据,微控器在下降沿时更新数据.如图22所示,SFD和CCA保持其正常工作状态.直到手动停止,CC2420一直保持其发送状态. 在MDMCTRL1.RX_MODE=1,CC2420工作串行接收模式.CC2420一直工作字节同步状态,这意味意FiFOP引脚会一直无效直到帧开始区SFD被检测到.

CC2420

SWRS041B Page 41 of 89

18 Address Recognition

CC2420 includes hardware support for address recognition, as specified in [1]. Hardware address recognition may be enabled / disabled using the MDMCTRL0.ADR_DECODE control bit.

Address recognition is based on the following requirements, listed from section 7.5.6.2 in [1]:

• The frame type subfield shall not contain an illegal frame type

• If the frame type indicates that the frame is a beacon frame, the source PAN identifier shall match macPANId unless macPANId is equal to 0xFFFF, in which case the beacon frame shall be accepted regardless of the source PAN identifier.

• If a destination PAN identifier is included in the frame, it shall match macPANId or shall be the broadcast PAN identifier (0xFFFF).

• If a short destination address is included in the frame, it shall match either macShortAddress or the broadcast address (0xFFFF). Otherwise if an extended destination address is included in the frame, it shall match aExtendedAddress.

• If only source addressing fields are included in a data or MAC command frame, the frame shall only be accepted if the device is a PAN coordinator and the source

PAN identifier matches macPANId.

If any of the above requirements are not satisfied and address recognition is enabled, CC2420 will disregard the incoming frame and flush the data from the RXFIFO. Only data from the rejected frame is flushed, data from previously accepted frames may still be in the RXFIFO.

The IOCFG0.BCN_ACCEPT control bit must be set when the PAN identifier programmed into CC2420 RAM is equal to 0xFFFF and cleared otherwise. This particularly applies to active and passive scans as defined by [1], which requires all received beacons to be processed by the MAC sublayer.

Incoming frames with reserved frame types (FCF frame type subfield is 4, 5, 6 or 7) is however accepted if the RESERVED_FRAME_MODE control bit in MDMCTRL0 is set. In this case, no further address recognition is performed on these frames. This option is included for future expansions of the IEEE 802.15.4 standard.

If a frame is rejected, CC2420 will only start searching for a new frame after the rejected frame has been completely received (as defined by the length field) to avoid detecting false SFDs within the frame.

The MDMCTRL0.PAN_COORDINATOR control bit must be correctly set, since parts of the address recognition procedure requires knowledge about whether the current device is a PAN coordinator or not.

19 Acknowledge Frames

CC2420 includes hardware support for transmitting acknowledge frames, as specified in [1]. Figure 23 shows the format of the acknowledge frame.

If MDMCTRL0.AUTOACK is enabled, an acknowledge frame is transmitted for all incoming frames accepted by the address

recognition with the acknowledge request flag set and a valid CRC. AUTOACK therefore does not make sense unless also ADR_DECODE and AUTOCRC are enabled. The sequence number is copied from the incoming frame.

Administrator
文本框
18地址识别 CC2420包含一个硬件自动的地址识别.可以通过设置MDMCTRL0.ADR_DECODE控制位,硬件地址可以被禁止来使能. 地址识别适应于以下要求. .帧类型区不能非法. .如果帧类型是Beason,这PAN地址必须与macPANid一致(除非MacPANid为0xffff) .如果帧中包含的是目标PAN标识,它必与MacPANid一致,或都它是PaN广播标识. .如果是一个短的目标地址,这个地址必须与MACshortaddress 一致或是广播地址.如果是扩展地址,它必须附合MACExtendAdress. .如果只有源地址或是MAC命令帧,如果果器件是Pan协调 器并且源Pan标识与MACPANID一致.
Administrator
文本框
如果所有的上向条件都不满足并且地址确认被匀许,CC2420会忽略该帧并且清空RXFiFo中的数据.只有忽略的帧的数据被清除,以前接收到的帧的数据仍在RXFIFO中. 当写入CC2420的PAN标识是0XFFFF,IOCFG0.BCN_ACCEPT位必须置位,否则必须清空 ?????????? 如果MDMCTRL0中的RESERVED_FRAME_MODE被置位,接收到包含帧类型的帧(由FCF区的4567位指示)也会被确认.这样,在接收这些帧时,不会有进一步的地址确认.这个是为了兼容IEEE802.15.4的扩展. 当一个帧被拒绝后,CC2420会完全接收完毕当前错误帧,再去查看是否有新的帧数据来到,这样做是为了避免在这个帧中检测到错误的SFD. 由于只有部分的地址被确认以确定当前设备是帧发送者的PAN协调器,MDMCTRL0.PAN_COORDINATOR位必须被设置.
Administrator
文本框
19应答帧//CC2420有一个硬件支持的应答器.图23展示了应答帧的格式.如果MDMCTRL0.AUTOACK被匀许,当一个包含了应答申请标识被置位的帧经过了地址确认\有效CRC后,一个应答帧会被发出.ADR_DECODE和AUTOCRC置位,AutoACk才会被发出.序列数会从接收到的帧中复制出.//

CC2420

SWRS041B Page 42 of 89

AUTOACK may be used for non-beacon systems as long as the frame pending field (see Figure 19) is cleared. The acknowledge frame is then transmitted 12

symbol periods after the last symbol of the incoming frame. This is as specified by [1] for non-beacon networks.

FrameControl Field

(FCF)

DataSequenceNumber

2 1Frame Check

Sequence(FCS)

2

MAC Header (MHR) MAC Footer(MFR)

FrameLength

Start of FrameDelimiter

(SFD)

Bytes: 1 1

PreambleSequence

4

Synchronisation Header(SHR)

PHY Header(PHR)

Figure 23. Acknowledge frame format [1]

Two command strobes, SACK and SACKPEND are defined to transmit acknowledge frames with the frame pending field cleared or set, respectively. The acknowledge frame is only transmitted if the CRC is valid.

For systems using beacons, there is an additional timing requirement that the acknowledge frame transmission should be started on the first backoff-slot boundary (20 symbol periods) at least 12 symbol periods after the last symbol of the incoming frame. This timing must be controlled by the microcontroller by issuing the SACK and SACKPEND command strobe 12 symbol periods before the following backoff-slot boundary, as illustrated in Figure 24.

If a SACK or SACKPEND command strobe is issued while receiving an incoming frame, the acknowledge frame is transmitted 12 symbol periods after the last symbol of the incoming frame. This should be used to transmit acknowledge frames in non-beacon networks. This timing is also illustrated in Figure 24.

Using SACKPEND will set the pending data flag for automatically transmitted acknowledge frames using AUTOACK. The pending flag will then be set also for future acknowledge frames, until a SACK command strobe is issued.

Acknowledge frames may be manually transmitted using normal data transmission if desired.

PPDU AcknowledgeNon-beaconnetwork

tack = 12 symbol periods

PPDU AcknowledgeBeaconnetwork

tack < 32 symbol periods12 symbol periods <=

Last

PPDU symbo

l

Backo

ff slot

boun

dary

12symbolperiods

SACK / SACKPEND

Figure 24. Acknowledge frame timing

Administrator
文本框
只要帧挂起区被清空,AUTOACK可以用于NON-beason系统中.在接收到帧的最后一个字符后,这个应答帧会传送12个字符.这在Non_beason网络中有描述
Administrator
文本框
同步头
Administrator
文本框
前导序列
Administrator
文本框
帧开始分割符
Administrator
文本框
帧长度
Administrator
文本框
帧控制区
Administrator
文本框
数据序列
Administrator
文本框
帧检查序列
Administrator
文本框
SACK和SACKPEND命令是用于置位和清除帧挂起的.只有在CRC检查正确时,应答帧才被发出. 在信标网络系统,在发送应答帧之前会有一个额外时间要求.在12字符发长之前有一个等待时间,这个时间由微控器通过SACKPEND和SACK命令进行控制.
Administrator
文本框
当CC2420在接收到一个帧时收到微控器发出的SACK或SACKPEND时,应答帧会在接收到帧后的12个字符之后发出.请见图24' 当使用AUTOACK,使用SACKPEND会设置自动发送应答帧的挂起位.这个挂起标志也会影响接下来的应答帧挂起标志,直发CC2420接收到到SACK. 应答帧可以被通用数据替代.

CC2420

SWRS041B Page 43 of 89

20 Radio control state machine

CC2420 has a built-in state machine that is used to switch between different operational states (modes). The change of state is done either by using command strobes or by internal events such as SFD detected in receive mode.

The radio control state machine states are shown in Figure 25. The numbers in brackets refer to the state number readable in the FSMSTATE status register. Reading the FSMSTATE status register is primarily for test / debug purposes.

Before using the radio in either RX or TX mode, the voltage regulator and crystal oscillator must be turned on and become stable. The voltage regulator and crystal oscillator start-up times are given in the Electrical Specifications section on page 9.

The crystal oscillator is controlled by accessing the SXOSCON / SXOSCOFF command strobes. The XOSC16M_STABLE bit in the status register returned during address transfer indicates whether the oscillator is running and stable or not (see Table 5). This status register can be polled when waiting for the oscillator to start.

For test purposes, the frequency synthesizer (FS) can also be manually calibrated and started by using the STXCAL command strobe register. This will not start a transmission before a STXON command strobe is issued. This is not shown in Figure 25.

Enabling transmission is done by issuing a STXON or STXONCCA command strobe.

Turning off RF can be accomplished by using one of the SRFOFF or SXOSCOFF command strobe registers.

After reset the CC2420 is in Power Down mode. All configuration registers can then be programmed in order to make the chip ready to operate at the correct frequency and mode. Due to the very fast start-up time, CC2420 can remain in Power Down until a transmission session is requested.

As also described in the 4-wire Serial Configuration and Data Interface section on page 27, the crystal oscillator must be running (IDLE) in order to have access to the RAM and FIFOs.

Administrator
文本框
20无线控制状态机 CC2420内部有一个状态机,她用来控制两个不同工作模式.两工作模式的改变可以由命令控制也由内部事件触发(如在接收过程中检测到SFD). 无线控制状态机的工作模式,如图25.框架中的工作状态可以由FSMSTATE状态寄存器读出,FSMSTATE用于测试调试目的. 在启动TX或RX之前,稳压器和晶振必须稳定.在第9页中的电气说明中说明了稳压器和晶振的稳定时间. 晶振由SXSOSON/SXOSCOFF来控制.XOSC16_STATE用于指示晶振是否稳定.
Administrator
文本框
为了测试目的,使用STXCAL来标定启动FS(合成器).在接收到STXON命令之前,CC2420不会启动发送.(见图25). 使用STXON或STXONCCA来启动发送. 使用SRFOFF/SXOSCOFF来关闭RF. 在CC2420掉电复位之后,所有寄存器需要重新配置以使她的工作状态正确.因为CC2420的启动非常快,在需要CC2420发送时再给CC2420上电也不迟. 如页27所示,4-SPI访问RAM/FIFO之前,晶振必须启动.

CC2420

SWRS041B Page 44 of 89

Wait for the specified crystal oscillatorstart-up time, or poll the

XOSC16M_STABLE status bit

Power Down (PD)[0]

SXOSCONSTXON

IDLE[1]

Wait until voltage regulatorhas powered up

Voltage Regulator Off VREG_EN set low

VREG_EN set high

Chip Reset(pin or register)

All States

SXOSCOFFcommand strobe

All Statesexcept Power Down (PD)

SRFOFF

TX_CALIBRATE[32]

All RX states

TX_PREAMBLE[34, 35 and 36]

8 or 12 symbolperiods later

Preamble and SFDis transmitted

TX_FRAME[37, 38 and 39]

TXFIFO Datais transmitted

RX_CALIBRATE[2 and 40]

Transmission com

pleted

SRXON

RX_SFD_SEARCH[3, 4, 5 and 6]

RX_FRAME[16 and 40]

12 symbol periodslater

SFDfoundFrame received or

failed addressrecognition

Automatic or manualacknowledge request

TX_ACK_CALIBRATE[48]

12 symbolperiods later

TX_ACK_PREAMBLE[49, 50 and 51]

TX_ACK[52, 53 and 54]

Acknowledgecompleted

RX_OVERFLOW[17]

Crystal oscillator disabled,register access enabled,FIFO / RAM access disabled

STXON

or

(STXONCCA and

CCA)

SACK or

SACKPEND

RX_WAIT[14]

TX_UNDERFLOW[56]

Overflow

Underflow

SFLUSHRX

The transition fromTX_UNDERFLOW toRX_CALIBRATE is automatic,but SFLUSHTX must be used toreset underflow indication

Figure 25. Radio control states

Administrator
文本框
等待稳压器上电
Administrator
文本框
芯片复位(引脚与寄存器)
Administrator
文本框
晶振被禁止,寄存器访问匀许,FiFO/RAM访问禁止
Administrator
文本框
启动晶振命令
Administrator
文本框
查看XOSC16M_STABLE,等待晶振启动
Administrator
文本框
空闲
Administrator
文本框
接收匀许
Administrator
文本框
ackoff-slo

CC2420

SWRS041B Page 45 of 89

21 MAC Security Operations (Encryption and Authentication)

CC2420 features hardware IEEE 802.15.4 MAC security operations. This includes counter mode (CTR) encryption / decryption, CBC-MAC authentication and CCM encryption + authentication. All security operations are based on AES encryption [2] using 128 bit keys. Security operations are performed within the transmit and receive FIFOs on a frame basis.

CC2420 also includes stand-alone AES encryption, in which one 128 bit plaintext is encrypted to a 128 bit ciphertext.

The SAES, STXENC and SRXDEC command strobes are used to start security operations in CC2420 as will be described in the following sections. The ENC_BUSY status bit (see Table 5) may be used to monitor when a security operation has been completed. Security command strobes issued while the security engine is busy will be ignored, and the ongoing operation will be completed.

Table 6 on page 31 shows the CC2420 RAM memory map, including the security related data located from addresses 0x100 through 0x15F. RAM access (see the RAM access section on page 29) is used to write or read the keys, nonces and stand-alone buffer. All security related data is stored little-endian, i.e. the least significant byte is transferred first over the SPI interface during RAM read or write operations.

For a complete description of IEEE 802.15.4 MAC security operations, please refer to [1].

21.1 Keys

All security operations are based on 128 bit keys. The CC2420 RAM space has storage space for two individual keys (KEY0 and KEY1). Transmit, receive and stand-alone encryption may select one of these two keys individually in the SEC_TXKEYSEL, SEC_RXKEYSEL and SEC_SAKEYSEL control bits (SECCTRL0).

As can be seen from Table 6 on page 31, KEY0 is located from address 0x100 and KEY1 from address 0x130.

A way of establishing the keys used for encryption and authentication must be decided for each particular application. IEEE 802.15.4 does not define how this is done, it is left to the higher layer of the protocol.

ZigBee uses an Elliptic Curve Cryptography (ECC) based approach to establish keys. For PC based solutions, more processor intensive solutions such as Diffie-Hellman may be chosen. Some applications may also use pre-programmed keys, e.g. for remote keyless entry where the key and lock are delivered in pairs. A push-button approach for loading keys may also be selected.

21.2 Nonce / counter

The receive and transmit nonces used for encryption / decryption are located in RAM from addresses 0x110 and 0x140 respectively. They are both 16 bytes.

The nonce must be correctly initialized before receive or transmit CTR or CCM operations are started. The format of the nonce is shown in Table 7. The block counter must be set to 1 for compliance with [1]. The key sequence counter is controlled by a layer above the MAC layer. The frame counter must be increased for each new frame by the MAC layer. The source address is the 64 bit IEEE address.

1 byte 8 bytes 4 bytes 1 byte 2 bytes

Flags Source Address

Frame Counter

Key Sequence Counter

Block Counter

Table 7. IEEE 802.15.4 Nonce [1]

The block counter bytes are not updated in RAM, only in a local copy that is reloaded for each new in-line security operation. I.e. the block counter part of the nonce does not need to be rewritten. The CC2420 block counter should be set to 0x0001 for compliance with [1].

CC2420 gives the user full flexibility in selecting the flags for both nonces. The

Administrator
文本框
21MAC安机操作(加密/解密) CC2420有一个硬件实现的IEEE802.15.4MAC安全操作.这包括CTR解码与编码\CBC-MAC编解码\CCM编解码.所有操作使用AES128加密.所有操作在接收和发送的FIFO进行. CC2420包含独立的AES加解密,她用来使128位普通文本转换为加密文本. 以下将讲解如何使用SAES,STXENC,SRXDEC进行安全操作.可以通过查看ENC_BUSY位来监视安全操作是否完成.在安全过程正在进行,发关来的安全命令将被忽略,正在进行的安全继续工作. 31页的表6的RAM图包括安全机制相关数据,她们地址在0x100-0x15f之间.RAM访问(详见19页)用读写键值所有键值使用小端对齐,也就是说在通过SPI读写RAM过程中,要低位在前高位在后. 完全的描述请参见IEEE802.15.4MAC安全操作. 21.1键值 所有安全操作是基于128位键值.CC2420可以存储两个键值(Key0,key1).使用SEC_TXKEYSEL,SEC_RXKEYSEL,SEC_SAKEYSEL控制位来改变发送,接收,单独加密所使用的键值.
Administrator
文本框
如31页表6所标,Key0在0x100,Key1在0x130. 在特定应用中,用来加密和解密的键值的生成必须是确定的.IEEE802.15.4没有定义加密行为,这是由协议更高层来完成的. Zigbee使用的是以ECC为基础的逼近建立技术.
Administrator
文本框
21.2NONCE/计数器 用于加密和解密的接收和发送16字节Nonce位于0x110和0x140地址. Nonce必须在发送和接收CTR或CCM操作开始之前.Nonce的格式请见表7.区计数必须是1.键值序列计数器由MAC上层确定.帧计数器在新帧接收到由MAC层递增.源地址是64位IEEE地址. 区计数器不必写入,CC2420的区计数器须设置为0x0001. 用户可以通过多种方式修收CC2420的接收和发送Nonce的的标识位.

CC2420

SWRS041B Page 46 of 89

flag setting is stored in the most significant byte of the nonce. The flag byte used for encryption and authentication is then generated as shown in Figure 26.

The frame counter part of the nonce must be incremented for each new packet by software.

7 6CTR Flagbits 7:6

5 4 3 2 1 0

- CBC Flagbits 7:6 L

7 6

Res

5 4 3 2 1 0

L

7 6

Adata

5 4 3 2 1 0

M L0 0 0

SECCTRL0.SEC_M

MSB in CC2420 nonce RAM

CTR mode flag byte CBC-MAC flag byte

Res Res

Figure 26. CC2420 Security Flag Byte

21.3 Stand-alone encryption

Plain AES encryption, with 128 bit plaintext and 128 bit keys [2], is available using stand-alone encryption. The plaintext is stored in stand-alone buffer located at RAM location 0x120, as can be seen from Table 6 on page 31.

A stand-alone encryption operation is initiated by using the SAES command strobe. The selected key (SECCTRL0.SEC_SAKEYSEL) is then used to encrypt the plaintext written to the stand-alone buffer. Upon completion of the encryption operation, the ciphertext is written back to the stand-alone buffer, thereby overwriting the plaintext.

Note that RAM write operations also output data currently in RAM, so that a new plaintext may be written at the same time as reading out the previous ciphertext.

21.4 In-line security operations

CC2420 can do MAC security operations (encryption, decryption and authentication) on frames within the TXFIFO and RXFIFO. These operations are called in-line security operations.

As with other MAC hardware support within CC2420, in-line security operation relies on the length field in the PHY header. A correct length field must therefore be used for all security operations.

The key, nonce (does not apply to CBC-MAC), and SECCTRL0 and SECCTRL1 control registers must be correctly set before starting any in-line security operation.

The in-line security mode is set in SECCTRL0.SEC_MODE to one of the following modes:

• Disabled • CBC-MAC (authentication) • CTR (encryption / decryption) • CCM (authentication and encryption /

decryption) When enabled, TX in-line security is started in one of two ways:

• Issue a STXENC command strobe. In-line security will be performed within the TXFIFO, but a RF transmission will not be started. Ciphertext may be read back using RAM read operations.

• Issue a STXON or STXONCCA command strobe. In-line security will be performed within the TXFIFO and a RF transmission of the ciphertext is started.

When enabled, RX in-line security is started as follows:

• Issue a SRXDEC command strobe. The first frame in the RXFIFO is then decrypted / authenticated as set by the current security mode.

Administrator
文本框
标识设置保存在Nonce的最高位.这个标识字节用来加解密. 当有新帧到来时,需用软件来控制Nonce的帧计数器增加.
Administrator
文本框
21.3独立加解密 用128位键值的AES加解密是一个独立加密.通用文本存储在RAM的0x120地址中. 独立加密操作由SAES命令启动.她所使用键值(由SECCTRL0.SEC_SAKEYSEL设置)将加密存到独立缓冲区的通用文本.加密后的加密文本写回到缓冲区并覆盖以前的通用文本. 注意,在RAM写入过程中,RAM中的当前数据会输出.这样,在写入新的通用文本的同时,加密文本被读出. 21.4在线安全操作 CC2420可以对写入到Txfifo和Rxfifo中的数据进行MAC安全操作(加密,解密和验证).这些操作被称为在线安全操作. 和其它MAC硬件一样,在线安全检查依赖于PHY头.安全栓查需要一个正确的长度信息.
Administrator
文本框
为了启动在线安全检查,键值,Nonce(不是用于CBC_MAC),和SECCTRL0和SECCTRL1控制寄存器正确设地. 在线安全检查的模式由SECCTRL0.SEC_MODE设置.它的模式有: 1.禁止 2.CBC-MAC(验证) 3.CTR(加密和解密) 4.CCM(加解密和验证) 当使能了在线安全检查,发送安全可以通过以下两种方式启动. 1.发送STXENC命令.在线安全检查会在TXFIFO中执行,但是RF发送并不开始.加密文本可以过RAM读取来返回. 2.发送STXON/STXONCCA.在线检查在TXFIFO进行并通过RF发送出加密文本. 当使能了在线安全检查,接收安全可以通过以下方式启动. 向CC2420发送SRXDEC.RXFIFO中的第一帧数被解密和验证.

CC2420

SWRS041B Page 47 of 89

RX in-line security operations are always performed on the first frame currently inside the RXFIFO, even if parts of this have already been read out over the SPI interface. This allows the receiver to first read the source address out to decide which key to use before doing authentication of the complete frame. In CTR or CCM mode it is of course important that bytes to be decrypted are not read out before the security operation is started.

When the SRXDEC command strobe is issued, the FIFO and FIFOP pins will go inactive. This is to indicate to the microcontroller that no further data may be read out before the next byte to be read has undergone the requested security operation.

The frame in the RXFIFO may be received over RF or it may be written into the RXFIFO over the SPI interface for debugging or higher layer security operations.

21.5 CTR mode encryption / decryption

CTR mode encryption / decryption is performed by CC2420 on MAC frames within the TXFIFO / RXFIFO respectively.

SECCTRL1.SEC_TXL / SEC_RXL sets the number of bytes between the length field and the first byte to be encrypted / decrypted respectively. This controls the number of plaintext bytes in the current frame. For IEEE 802.15.4 MAC encryption, only the MAC payload (see Figure 17 on page 36) should be encrypted, so SEC_TXL / SEC_RXL is set to 3 + (0 to 20) depending on the address information in the current frame.

When encryption is initiated, the plaintext in the TXFIFO is then encrypted as specified by [1]. The encryption module will encrypt all the plaintext currently available, and wait if not everything is pre-buffered. The encryption operation may also be started without any data in the TXFIFO at all, and data will be encrypted as it is written to the TXFIFO.

When decryption is initiated with a SRXDEC command strobe, the ciphertext

of the RXFIFO is then decrypted as specified by [1].

21.6 CBC-MAC

CBC-MAC in-line authentication is provided by CC2420 hardware.

SECCTRL0.SEC_M sets the MIC length M, encoded as (M-2)/2.

When enabling CBC-MAC in-line TXFIFO authentication, the generated MIC is written to the TXFIFO for transmission. The frame length must include the MIC.

SECCTRL1.SEC_TXL / SEC_RXL sets the number of bytes between the length field and the first byte to be authenticated, normally set to 0 for MAC authentication.

SECCTRL0.SEC_CBC_HEAD defines if the authentication length is used as the first byte of data to be authenticated or not. This bit should be set for compliance with [1].

When enabling CBC-MAC in-line RXFIFO authentication, the generated MIC is compared to the MIC in the RXFIFO. The last byte of the MIC is replaced in the RXFIFO with:

• 0x00 if the MIC is correct

• 0xFF if the MIC is incorrect

The other bytes in the MIC are left unchanged in the RXFIFO.

21.7 CCM

CCM combines CTR mode encryption and CBC-MAC authentication in one operation. CCM is described in [3].

SECCTRL1.SEC_TXL / SEC_RXL sets the number of bytes after the length field to be authenticated but not encrypted.

The MIC is generated and verified very much like with CBC-MAC described above. The only differences are from the requirements in [1] for CCM.

Administrator
文本框
接收在线安全检查一般会在RXFIFO中的第一帧上进行,尽管可能部分帧可能已经被读出.这样接收器可以通过读取源地址来确定哪一个键值用来做整帧的解密.在CTR(加解密模式)和CCM(加解密+验证模式),应确保数据在安全检查之前没有被读出. 当向CC2420发送了SRXDEC命令,FIFO和FIFOP引脚会恢复到无效. ???? RXFIFO的数据可能是从RF接收来的.也可能是通过SPI写入,用于更高的安全或调试. 21.5CTR加解密 CTR用于MAC帧的加解密. SECCTRLL1.SEC_TXL/SEC_RXL设置了在帧长度区到第一个需要加解密区的字节数量.IEEE802.15.4MAC加密中,只有MAC真实负荷有效.因此SEC-TXL/SEC_RXL应该设置为3+本帧的地址信息长度. 当加密开始,TXFIFO数据被加密.加密模块会将当前可用通用文本进行加密,如果不是所有通用文本被缓存,她会等待.加密操作可以TXFIFO无任何操作数据时开始,数据会在被写入TXFIFO时加密. 当CC2420接收到SRXDEC命令,RXFIFO中的加密数据解密.
Administrator
文本框
21.6CBC-MAC CBC-MAC在线验证由CC2420硬件完成. SECCTRL0.SEC_M设置MIC长度M. 当使能在线TXFIFO验证CBC-MAC,产生的MIC被写入到TXFIFO用于发送.帧长度必须包括MIC. SECCTRL1.SEC_TXL/SEC_RXL设置从帧长度开始到第一个需要验证的字节中间的字节数.一般设置为0. SECCTRL0.SEC_CBC_HEAD定义了第一个字符是否用于验证.这个位设置要与802.15.4一致. 当使能了RXFIFO的在线检验CBC-MAC,产生的MIC将与RXFIFO进行对比.MIC的最后一位将被0x00(MIC正确)或0xff(MIC错)替代. RXFIFO里面的MIC中的其它字节将保持不变. 21.7CCM CCM包括了CTR(加解密)和CBB-MAC验证. SECCTRL1.SEC_TXL/SEC_RXLL设置了帧长度区之后多少字节经验证但未解密.
Administrator
文本框
校验位的产生和CBC-MAC中的一致 只是在CCM中的用途不同.

CC2420

SWRS041B Page 48 of 89

21.8 Timing Table 8 shows some examples of the time used by the security module for different operations.

Mode l(a) l(m) l(MIC) Time [us]

CCM 50 69 8 222

CTR - 15 - 99

CBC 17 98 12 99

Stand- alone

- 16 - 14

Table 8. Security timing examples

22 Linear IF and AGC Settings

CC2420 is based on a linear IF chain where the signal amplification is done in an analog VGA (variable gain amplifier). The gain of the VGA is digitally controlled.

The AGC (Automatic Gain Control) loop ensures that the ADC operates inside its

dynamic range by using an analog/digital feedback loop.

The AGC characteristics are set through the AGCCTRL, AGCTST0, AGCTST1 and AGCTST2 registers. The reset values should be used for all AGC control and test registers.

23 RSSI / Energy Detection

CC2420 has a built-in RSSI (Received Signal Strength Indicator) providing a digital value that can be read from the 8 bit, signed 2’s complement RSSI.RSSI_VAL register.

The RSSI value is always averaged over 8 symbol periods (128 µs), in accordance with [1]. The RSSI_VALID status bit (Table 5) indicates when the RSSI value is valid, meaning that the receiver has been enabled for at least 8 symbol periods.

The RSSI register value RSSI.RSSI_VAL can be referred to the power P at the RF pins by using the following equations:

P = RSSI_VAL + RSSI_OFFSET [dBm]

where the RSSI_OFFSET is found empirically during system development from the front end gain. RSSI_OFFSET is approximately –45. E.g. if reading a value

of –20 from the RSSI register, the RF input power is approximately –65 dBm.

A typical plot of the RSSI_VAL reading as function of input power is shown in Figure 27. It can be seen from the figure that the RSSI reading from CC2420 is very linear and has a dynamic range of about 100 dB.

The RSSI register value RSSI.RSSI_VAL is calculated and continuously updated for each symbol after RSSI has become valid.

Administrator
文本框
表8说明了在同的安全模式下所用的时间/
Administrator
文本框
22线性化IF和AGC设置 CC2420的线性由VGA,VGA的数控的. AGC自动增增益控制保证了ADC工作于其动态范围. AGC的特性由AGCCTRL,ACCTST0,AGCTST1,AGCTST2寄存器设置.
Administrator
文本框
23RSSI/能量检测 CC2420有一个RSSI(接收信号强度指示器)提供了一个8位信号强度数字指示值.RSSI.RSSI_VAL是一个有符号的??? RSSI值是8位字符大概128uS信号的平均值.RSSI_VALID状态位用于指示RSSI值是否有效,也指示了接收器至少使能了8字符时间. RSSI寄存器的值RSSI.RSSI_VAL可以用计算接收信号的功率P=RSSI+RSSI_OFFSET(dBm).当RSSI_OFFSET是一个系统开发时前端增益的经验数值.例如:RSSI_OFFSET接近-45.如果从RSSI寄存器读出的数值是-20,则RF接收的功率是-65dBm. 图27说明了RSSI-VAL与功率之间的关系.从图中可以看到CC2420的动态范围约为100dBm.当RSSI有效时,RSSI寄存器的RSSI.RSSI_VAL一直被计算和更新.

CC2420

SWRS041B Page 49 of 89

-60

-40

-20

0

20

40

60

-100 -80 -60 -40 -20 0

RF Level [dBm]

RSS

I Reg

iste

r Val

ue

Figure 27. Typical RSSI value vs. input power

24 Link Quality Indication

The link quality indication (LQI) measurement is a characterisation of the strength and/or quality of a received packet, as defined by [1].

The RSSI value described in the previous section may be used by the MAC software to produce the LQI value. The LQI value is required by [1] to be limited to the range 0 through 255, with at least 8 unique values. Software is responsible for generating the appropriate scaling of the LQI value for the given application.

Using the RSSI value directly to calculate the LQI value has the disadvantage that e.g. a narrowband interferer inside the channel bandwidth will increase the LQI value although it actually reduces the true link quality. CC2420 therefore also provides an average correlation value for each incoming packet, based on the 8 first symbols following the SFD. This unsigned 7-bit value can be looked upon as a measurement of the “chip error rate,” although CC2420 does not do chip decision.

As described in the Frame check sequence section on page 38, the average correlation value for the 8 first symbols is appended to each received frame together with the RSSI and CRC OK/not OK when MDMCTRL0.AUTOCRC is set. A correlation value of ~110 indicates a maximum quality frame while a value of ~50 is typically the lowest quality frames detectable by CC2420.

Software must convert the correlation value to the range 0-255 defined by [1], e.g. by calculating:

LQI = (CORR – a) · b

limited to the range 0-255, where a and b are found empirically based on PER measurements as a function of the correlation value.

A combination of RSSI and correlation values may also be used to generate the LQI value.

Administrator
文本框
24LQI连接质量指示 连接质量指示LQI测量的是接收包的信号强度和质量. 上一章节描述的RSSI值可以由MAC计算出LQI的值.

CC2420

SWRS041B Page 50 of 89

25 Clear Channel Assessment

The clear channel assessment signal is based on the measured RSSI value and a programmable threshold. The clear channel assessment function is used to implement the CSMA-CA functionality specified in [1]. CCA is valid when the receiver has been enabled for at least 8 symbol periods.

Carrier sense threshold level is programmed by RSSI.CCA_THR. The threshold value can be programmed in steps of 1 dB. A CCA hysteresis can also be programmed in the MDMCTRL0.CCA_HYST control bits.

All 3 CCA modes specified by [1] are implemented in CC2420. They are set in MDMCTRL0.CCA_MODE, as can be seen in the register description. The different modes are:

0 Reserved

1 Clear channel when received energy is below threshold.

2 Clear channel when not receiving valid IEEE 802.15.4 data.

3 Clear channel when energy is below threshold and not receiving valid IEEE 802.15.4 data

Clear channel assessment is available on the CCA output pin. CCA is active high, but the polarity may be changed by setting the IOCFG0.CCA_POLARITY control bit.

Implementing CSMA-CA may easiest be done by using the STXONCCA command strobe, as described in the Radio control state machine section on page 43. Transmission will then only start if the channel is clear. The TX_ACTIVE status bit (see Table 5) may be used to detect the result of the CCA.

26 Frequency and Channel Programming

The operating frequency is set by programming the 10 bit frequency word located in FSCTRL.FREQ[9:0]. The operating frequency FC in MHz is given by:

FC = 2048 + FSCTRL.FREQ[9:0] MHz

The frequency can be programmed with 1 MHz resolution. In receive mode the actual LO frequency is FC – 2 MHz, since a 2 MHz IF is used. Direct conversion is used for transmission, so here the LO frequency equals FC. The 2 MHz IF is automatically set by CC2420, so the frequency programming is equal for RX and TX.

IEEE 802.15.4 specifies 16 channels within the 2.4 GHz band, in 5 MHz steps, numbered 11 through 26. The RF frequency of channel k is given by [1]:

FC = 2405 + 5 (k-11) MHz, k=11, 12, ..., 26

For operation in channel k, the FSCTRL.FREQ register should therefore be set to:

FSCTRL.FREQ = 357 + 5 (k-11)

Administrator
文本框
25.CCA信号通道空闲 通道空闲的确认 是根据RSSI值和一个可编程的极限.通道空闲确认是为了实现CSMA-CA功能.在8个字符周期后CCA就会有效. 可以用RSSI.CCA_THR修改载波感应极限水平.这个极限分辨率为1dB.CCA确认的滞后时间可以通过MDMCTRL0.CCA_HYST控制位来设置. CC2420有3个通道空闲确认模式可以通过MDMCTRL0.CCA_MODE的设置来更改.
Administrator
文本框
0-保留 1-当低于极限值时通道空闲被确认 2.没有收到IEEE802.15.4 3.当低于极限值并且数据格式不附合IEEE802.15.4. CCA引脚指示通道空闲.CCA引脚用高有效来表示,但可以通过设置IOCFG0.CCA_POLARITY位来改变. 使用STXONCCA可以非常容易地实现CSMA-CA,请参见43页的无线状态控制机.只有在通道空闲时才能启动无线发送.TX_ACTIVE位用来查看CCA的结果.
Administrator
文本框
26频率和通道改变 通过设置FSCTRL.FREQ[9:0]来改变工作频率.工作频率=2048+X(Mhz)频率改变以1Mhz为单位.在接收模式下,实际上的工作频率为Fc-2Mhz,因为信道占用2Mhz.直接计算出来的结果用于无线发送,因为它的最低就是Fc.2Mhz的发射频是由CC2420自动加减去的,这样接收和发送的频率是相等的.在IEEE802.15.4中有16通道,那么实际上它的频点相隔是5Mhz.用FSctl.Freq来设置就是,357+5*(K-11),K=11~~26

CC2420

SWRS041B Page 51 of 89

27 VCO and PLL Self-Calibration

27.1 VCO

The VCO is completely integrated and operates at 4800 – 4966 MHz. The VCO frequency is divided by 2 to generate frequencies in the desired band (2400-2483.5 MHz).

27.2 PLL self-calibration

The VCO's characteristics will vary with temperature, changes in supply voltages, and the desired operating frequency.

In order to ensure reliable operation the VCO’s bias current and tuning range are automatically calibrated every time the RX mode or TX mode is enabled, i.e. in the RX_CALIBRATE, TX_CALIBRATE and TX_ACK_CALIBRATE control states in Figure 25 on page 44.

28 Output Power Programming

The RF output power of the device is programmable and is controlled by the TXCTRL.PA_LEVEL register. Table 9 shows the output power for different

settings, including the complete programming of the TXCTRL control register. The typical current consumption is also shown.

PA_LEVEL TXCTRL register Output Power [dBm] Current Consumption [mA]

31 0xA0FF 0 17.4

27 0xA0FB -1 16.5

23 0xA0F7 -3 15.2

19 0xA0F3 -5 13.9

15 0xA0EF -7 12.5

11 0xA0EB -10 11.2

7 0xA0E7 -15 9.9

3 0xA0E3 -25 8.5

Table 9. Output power settings and typical current consumption @ 2.45 GHz

29 Voltage Regulator

CC2420 includes a low drop-out voltage regulator. This is used to provide a 1.8 V power supply to the CC2420 power supplies. The voltage regulator should not be used to provide power to other circuits because of limited power sourcing capability and noise considerations.

The voltage regulator input pin VREG_IN is connected to the unregulated 2.1 to 3.6 V power supply. The voltage regulator is enabled / disabled using the active high voltage regulator enable pin VREG_EN. The regulated 1.8 V voltage output is

available on the VREG_OUT pin. A simplified schematic of the voltage regulator is shown in Figure 28.

The voltage regulator requires external components as described in the Application Circuit section on page 19.

When disabling the voltage regulator, note that register and RAM programming will be lost as leakage current reduces the output voltage on the VREG_OUT pin below 1.6 V. CC2420 should then be reset before the voltage regulator is disabled.

Administrator
文本框
27VCO(压控振荡器)与PLL(锁相环)自校正 27.1VCO VCO的工作频率是4800-4966.VCO的频率除以2就是器件的工作频率. 27.2PLL自校正 VCO的特性造成了她的输出频率会随工作温度,电源电压变化. 在接收和发送过程中,为了确保VCO的稳定工作,VCO的偏置电流和调谐范围会时时自动校正.如44页的图25,RX_CALIBRATE,TX_CALIBRATE,TXACKCALIBRATE控制.
Administrator
文本框
28输出功率调整 RF输出的功率可以通过TXCTRL.PA_LEVEL寄存器来设置.表9表明输出功率的不同设置.
Administrator
文本框
29稳压器 CC2420包含一个降压稳压器.由于哭噪声和负载能的原因,稳压器的输出不能用来为其它电路.电源稳压器输入引脚应接到2.1V-3.6V非稳定电压上.电源稳压器的使能可以通过VREG_EN来控制.稳压器的1.8V输出在VREG_OUT引脚.请见图28查看稳压器工作原理. 19页说明了电源稳压器需要的一些外外围器件.
Administrator
文本框
当禁止了电源稳压器,寄存器和RAM中的数据会丢失,由于漏电流的原因,VREG_OUT的电压会降到1.6V以下.在禁止电源稳压器之前,CC2420应该先复位.

CC2420

SWRS041B Page 52 of 89

In applications where the internal voltage regulator is not used, connect VREG_EN and VREG_IN to ground. VREG_OUT shall

be left open. Note that the battery monitor will not work when the voltage regulator is not used.

VREG_IN

Internalbandgapvoltage

reference

1.25 V

VREG_OUT

VREG_EN

RegulatorEnable / disable

Figure 28. Voltage regulator, simplified schematic

30 Battery Monitor

The on-chip battery monitor enables monitoring the unregulated voltage on the VREG_IN pin. It gives status information on the voltage being above or below a

programmable threshold. A simplified schematic of the battery monitor is shown in Figure 29.

VREG_IN

Internalbandgapvoltage

reference

1.25 V

BATTMON.BATTMON_VOLTAGE[4:0]

BATTMON.BATTMON_OK

BATTMON.BATTMON_EN

Figure 29. Battery monitor, simplified schematic

Administrator
文本框
在一些应用中,内部的稳压可以不使用,这时请将VREG_IN和VREG_EN接到低电平.VREG_OUT应悬空.注意:当不使用内部的电源稳压器,电池监视器不会工作.
Administrator
文本框
30电池监视器 片内的电池监视器用来监视VREG_IN引脚上的电源电压.它会监视这个电压是否低于设置的电压阀值.

CC2420

SWRS041B Page 53 of 89

The battery monitor is controlled through the BATTMON control register. The battery monitor is enabled and disabled using the BATTMON.BATTMON_EN control bit. The voltage regulator must also be enabled when using the battery monitor.

The battery monitor status bit is available in the BATTMON.BATTMON_OK status bit. This bit is high when the VREG_IN input voltage is higher than the toggle voltage Vtoggle.

The battery monitor toggle voltage is set in the 5-bit BATTMON.BATTMON_VOLTAGE control bits. BATTMON_VOLTAGE is an unsigned, positive number from 0 to 31. The toggle voltage is given by:

2772

V25.1Vtoggle

LTAGEBATTMON_VO−⋅=

Alternatively, for a desired toggle voltage, BATTMON_VOLTAGE should be set according to:

V25.12772 Vtoggle⋅−=LTAGEBATTMON_VO

The voltage regulator must be enabled for at least 100 µs before the first measurement. After being enabled, the BATTMON_OK status bit needs 2 µs to settle for each new toggle voltage programmed.

The main performance characteristics of the battery monitor is shown in the Electrical Specifications section on page 9.

31 Crystal Oscillator

An external clock signal or the internal crystal oscillator can be used as main frequency reference. The reference frequency must be 16 MHz. Because the crystal frequency is used as reference for the data rate as well as other internal signal processing functions, other frequencies cannot be used.

If an external clock signal is used this should be connected to XOSC16_Q1, while XOSC16_Q2 should be left open. The MAIN.XOSC16M_BYPASS bit must be set when an external clock signal is used.

Using the internal crystal oscillator, the crystal must be connected between the XOSC16_Q1 and XOSC16_Q2 pins. The oscillator is designed for parallel mode operation of the crystal. In addition, loading capacitors (C381 and C391) for the crystal are required. The loading capacitor values depend on the total load capacitance, CL, specified for the crystal. The total load capacitance seen between the crystal terminals should equal CL for the crystal to oscillate at the specified frequency.

parasiticL C

CC

C ++

=

391381

111

The parasitic capacitance is constituted by pin input capacitance and PCB stray capacitance. The total parasitic capacitance is typically 2 pF - 5 pF.

The crystal oscillator circuit is shown in Figure 30. Typical component values for different values of CL are given in Table 10.

The crystal oscillator is amplitude regulated. This means that a high current is used to start up the oscillations. When the amplitude builds up, the current is reduced to what is necessary to maintain a stable oscillation. This ensures a fast start-up and keeps the drive level to a minimum. The ESR of the crystal must be within the specification in order to ensure a reliable start-up (see the Electrical Specifications section).

Administrator
文本框
BATTMON用于控制电池监视器.通过BTTMON.BATTMON_EN控制位来使能或禁止它.当然要使能电池监视器,必须使能稳压器. 电池监视器的状态查看BATTMON.BATTMON_OK.如果电池电压高于阀值电压,这个位是1. 电池监视器的阀值电压由5位的BATTMON.BATTMON_VOLTAGE.
Administrator
文本框
在电池监视测量之前电源稳压器必须工作100uS以上.在匀许后,新的阀值电压2us之前BATTMON_OK才有意义.
Administrator
文本框
31.晶振 一个外部时钟信号或者内部晶体谐振器可以用来提供主基准时钟.基准时钟必须是16Mhz.因为这个时钟用来进行无线发送和其它的一些信号处理,其它频率是不可以. 如果使用一个外部的时钟信号,这个时钟要加在XOSC16_Q1上,另外一个引脚悬空.当使用外部的时钟时,MAIN.XOSC16M_BYPASS位必须设置. 使用内部的晶体振荡器必须要在XOSC16_Q1和XOSC16_Q2之间加一个晶振.并且需要两个外部电容.电容的大小晶振两端的负载电容...........(省略)

CC2420

SWRS041B Page 54 of 89

C381C391

XTAL

XOSC16_Q1 XOSC16_Q2

C381C391

XTALXTAL

XOSC16_Q1 XOSC16_Q2

Figure 30. Crystal oscillator circuit

Item CL= 16 pF

C381 27 pF

C391 27 pF

Table 10. Crystal oscillator component values

32 Input / Output Matching

The RF input / output is differential (RF_N and RF_P). In addition there is supply switch output pin (TXRX_SWITCH) that must have an external DC path to RF_N and RF_P.

In RX mode the TXRX_SWITCH pin is at ground and will bias the LNA. In TX mode the TXRX_SWITCH pin is at supply rail voltage and will properly bias the internal PA.

The RF output and DC bias can be done using different topologies. Some are shown in Figure 4 and Figure 5.

Component values are given in Table 2. Using a differential antenna, no balun is required.

If a single ended output is required (for a single ended connector or a single ended antenna), a balun should be used for optimum performance.

The balun adds the signals from the RF_N and RF_P. This is achieved having two paths with equal amplitude response, but 180 degrees phase difference.

33 Transmitter Test Modes

CC2420 can be set into different transmit test modes for performance evaluation. The test mode descriptions in the following sections requires that the chip is first reset, the crystal oscillator is enabled using the SXOSCON command strobe and that the crystal oscillator has stabilised.

33.1 Unmodulated carrier

An unmodulated carrier may be transmitted by setting MDMCTRL1.TX_MODE to 2 or 3, writing

0x1800 to the DACTST register and issue a STXON command strobe. The transmitter is then enabled while the transmitter I/Q DACs are overridden to static values. An unmodulated carrier will then be available on the RF output pins.

A plot of the single carrier output spectrum from CC2420 is shown in Figure 31 below.

Administrator
文本框
32.输入输出匹配 RF输入/输出是不同的.这里有一个TXRX_SWITCH引脚用于RF_N和RF_P的直流偏置. 在接收模式下,TXRX_SWITCH引脚为低电平给LNA做偏置.在发送模式下,TXRX_SWITCH引脚为高电平,它为内部的PA提供偏置. RF的输出和DC偏置可以通过别的技术来实现.在图4和图5有所描述.元件的参数值参见表2.使用差分天线,不需要不平衡变换器..\ 如果需要单端输出(单端连接或单端天线),需要一个不平衡变换来提高性能. 不平衡变换迭加到RF_N和RF_P上.这个两个引脚会有一个相同幅值的波形,但是相位相差180度
Administrator
文本框
33.发送测试模式//为了进行性能评估,CC2420可以设置为不同测试模式.测试模式的描述需要芯片复位,并使用SXOSCON命令使能晶振并等待晶振稳定.33.1未编码载波//MDMCTRL1.TX_MODE为2.3时,在写入DACTST为0x1800,并发送STXON,一个未编码载波信号会被发送出.当DAC在一个固定值,发送器使使能.一个未编码的射频输出在出现在RF输出引脚上.//请看下面图31查看载波输出频谱.

CC2420

SWRS041B Page 55 of 89

A

Unit dBm

RF Att 30 dB

1AVG 1SA

Ref Lvl

3 dBm

Ref Lvl

3 dBm

Center 2.45 GHz Span 2 MHz200 kHz/

RBW 10 kHz

VBW 10 kHz

SWT 50 ms

-90

-80

-70

-60

-50

-40

-30

-20

-10

0

-97

3

Date: 23.OCT.2003 21:38:33

Figure 31. Single carrier output

33.2 Modulated spectrum

The CC2420 has a built-in test pattern generator that can generate pseudo random sequence using the CRC generator. This is enabled by setting MDMCTRL1.TX_MODE to 3 and issues an STXON command strobe. The modulated spectrum is then available on the RF pins. The low byte of the CRC word is transmitted and the CRC is updated with 0xFF for each new byte. The length of the transmitted data sequence is 65535 bits. The transmitted data-sequence is then:

[Synchronisation header] [0x00, 0x78, 0xb8, 0x4b, 0x99, 0xc3, 0xe9, …]

Since a synchronisation header (preamble and SFD) is transmitted in all TX modes, this test mode may also be used to transmit a known pseudorandom bit

sequence for bit error testing. Please note that CC2420 requires symbol synchronisation, not only bit synchronisation, for correct reception. Packet error rate is therefore a better measurement for the true RF performance.

Another option to generate a modulated spectrum is to fill the TXFIFO with pseudo-random data and set MDMCTRL1.TX_MODE to 2. CC2420 will then transmit data from the FIFO disregarding a TXFIFO underflow. The length of the transmitted data sequence is then 1024 bits (128 bytes).

A plot of the modulated spectrum from CC2420 is shown in Figure 32. Note that to find the output power from the modulated spectrum, the RBW must be set to 3 MHz or higher.

Administrator
文本框
33.2调制后的频谱 CC2420有一个片内的测试模式发生器,它使用CRC发生器产生虚假随机序列.这种模式可以通过设置MDMCTRL1.TX_MODE为3并发送STXON命令.这样RF引脚会输出调制后的频谱. 当最后一个字节被发出后,CRC会将所有新字节替换为0xFF.传送的字节序列为65535位,发送的序列为: [同步头][0x00,0x78....] 由于在发送模式下同步头被发送,这个测试模式也可以用来传送一个已知的数据位以用来进行位错误测试.注意,CC2420要求字符同步,不仅是位同步,还是为了正确接收.包错误率是真正测试RF性能的更好指标.
Administrator
文本框
另外一选择是把一个伪随机数据编并写入TxFIFO,并设置MDMCTRL1.TX_MODE为2.CC2420会将TXFIFO中数据而不论是否溢出.发送数据序列的长度是128字节(1024位) CC2420的编码后的输出频谱参见图32.注意,为了查找到输出功率,必须将RBW设置为3Mhz或更高.

CC2420

SWRS041B Page 56 of 89

A

Unit dBm

RF Att 30 dB

Ref Lvl

0 dBm

Ref Lvl

0 dBm SWT 5 ms

Center 2.45 GHz Span 10 MHz1 MHz/

1AVG 1SA

RBW 100 kHz

VBW 100 kHz

-90

-80

-70

-60

-50

-40

-30

-20

-10

-100

0

Date: 23.OCT.2003 21:34:19

Figure 32. Modulated spectrum plot

CC2420

SWRS041B Page 57 of 89

34 System Considerations and Guidelines

SRD regulations

International regulations and national laws regulate the use of radio receivers and transmitters. SRDs (Short Range Devices) for license free operation are allowed to operate in the 2.4 GHz band worldwide. The most important regulations are ETSI EN 300 328 and EN 300 440 (Europe), FCC CFR-47 part 15.247 and 15.249 (USA), and ARIB STD-T66 (Japan).

34.1 Frequency hopping and multi-channel systems

The 2.4 GHz band is shared by many systems both in industrial, office and home environments. CC2420 uses direct sequence spread spectrum (DSSS) as defined by [1] to spread the output power, thereby making the communication link more robust even in a noisy environment.

With CC2420 it is also possible to combine both DSSS and FHSS (frequency hopping spread spectrum) in a proprietary non-IEEE 802.15.4 system. This is achieved by reprogramming the operating frequency (see the Frequency and Channel Programming section on page 50) before enabling RX or TX. A frequency synchronisation scheme must then be implemented within the proprietary MAC layer to make the transmitter and receiver operate on the same RF channel.

34.2 Data burst transmissions

The data buffering in CC2420 lets the user have a lower data rate link between the microcontroller and the RF device than the RF bit rate of 250 kbps. This allows the microcontroller to buffer data at its own speed, reducing the workload and timing requirements.

The relatively high data rate of CC2420 also reduces the average power consumption compared to the 868 / 915 MHz bands defined by [1], where only 20 / 40 kbps are available. CC2420 may be powered up a smaller portion of the time, so that the average power consumption is reduced for a given amount of data to be transferred.

34.3 Crystal accuracy and drift

A crystal accuracy of ±40 ppm is required for compliance with IEEE 802.15.4 [1]. This accuracy must also take ageing and temperature drift into consideration.

A crystal with low temperature drift and low aging could be used without further compensation. A trimmer capacitor in the crystal oscillator circuit (in parallel with C7) could be used to set the initial frequency accurately.

For non-IEEE 802.15.4 systems, the robust demodulator in CC2420 allows up to 120 ppm total frequency offset between the transmitter and receiver. This could e.g. relax the accuracy requirement to 60 ppm for each of the devices.

Optionally in a star network topology, the FFD could be equipped with a more accurate crystal thereby relaxing the requirement on the RFD. This can make sense in systems where the RFDs ship in higher volumes than the FFDs.

34.4 Communication robustness

CC2420 provides very good adjacent, alternate and co channel rejection, image frequency suppression and blocking properties. The CC2420 performance is significantly better than the requirements imposed by [1]. These are highly important parameters for reliable operation in the 2.4 GHz band, since an increasing number of devices/systems are using this license free frequency band.

34.5 Communication security

The hardware encryption and authentication operations in CC2420 enable secure communication, which is required for many applications. Security operations require a lot of data processing, which is costly in an 8-bit microcontroller system. The hardware support within CC2420 enables a high level of security even with a low-cost 8 bit controller.

Administrator
文本框
34系统考虑和指导 SRD(短距离无线通信)法规 国际规则和各国法律限制差无线电的发送者和接收者.2.4GSRD在全世界被匀许. 34.1工作频率和多通道系统 2.4GHz带宽在工业,办公,家庭环境下的许多设备都使用.CC2420使用DSSS(直接序列扩频)扩展输出功率.这使得通讯链更加强壮. CC2420可以使用DSSS和FHSS技术,但这样就不能使用802.15.4系统了.这可以通过在RX或TX之前调整工作频率实现(频率和通道选择章节,参见50页).频率同频布局必须由MAC层来实现,以使得发送和接收者工作相同的RF通道. 34.2数据突发传输 CC2420中的数据缓存使得单片机与RF芯片之间的通信速度低于250Kbps.这样可匀许微控器工作在自已的(相对较低的)速度上,减轻工作负载和时间要求. 与868/915的工作频率相比,CC2420在同样功耗下有更高数据处理能力.CC2420可以在相当短的时间内上电,这样它在指定数据发送量上的平均功率非常低.
Administrator
文本框
34.3晶振精度和漂移 在IEEE802.15.4是要求使用一个40ppm的晶振.这个精度要求包括了老化和温漂. 在没有补偿的情况下,需要使用一个低温漂低老化晶振.为了提高初始精度,需要使用一个可调整电容. 在非IEEE802.15.4系统中,CC2420的高品质解调器匀许接收器和发送器之间有120ppm频率偏移.这也就是说匀许晶振有60ppm的精度就可以了. 在星型网络中,FFD要使用更高精度的晶振,这样可以降低对RFD的晶振的要求.这样为价格敏感的RFD设备降低成本. 34.4通讯健壮性 CC2420提供了一个良好的交迭的通道抑制性能,图像频率抑制和?????.CC2420在2.4Ghz的这些高性能参数使能它在这个频率得到快速度应用. 34.5通讯安全 CC2420的硬件加解密操作使安全通讯成为可能.安全操作要求很多的数据处理,这需要很贵的数据处理器.这些硬件支持使得CC2420可以使用谦价的8位微控器.

CC2420

SWRS041B Page 58 of 89

34.6 Low-cost systems

As the CC2420 provides 250 kbps multi-channel performance without any external filters, a very low-cost system can be made.

A differential antenna will eliminate the need for a balun, and the DC biasing can be achieved in the antenna topology.

34.7 Battery operated systems

In low power applications, the CC2420 should be powered down when not being active. Extremely low power consumption may be achieved when disabling also the voltage regulator. This will require reprogramming of the register and RAM configuration.

34.8 BER / PER measurements

CC2420 includes test modes where data is received infinitely and output to pins (RX_MODE 2, see page 40). This mode may be used for Bit Error Rate (BER) measurements. However, the following actions must be taken to do such a measurement:

• A preamble and SFD sequence must be used, even if pseudo random data is transmitted, since receiving the DSSS modulated signal requires symbol synchronisation, not bit synchronisation like e.g. in 2FSK systems. The SYNCWORD may be set to another value to fit to the measurement setup if necessary.

• The data transmitted over air must be spread according to [1] and the description on page 24. This means that the transmitter used during measurements must be able to do spreading of the bit data to chip data. Remember that the chip sequence transmitted by the test setup is not the same as the bit sequence, which is output by CC2420.

• When operating at or below the sensitivity limit, CC2420 may loose symbol synchronisation in infinite receive mode. A new SFD and restart of the receiver may be

required to re-gain synchronisation.

In an IEEE 802.15.4 system, all communication is based on packets. The sensitivity limit specified by [1] is based on Packet Error Rate (PER) measurements instead of BER. This is a more accurate measurement of the true RF performance since it mirrors the way the actual system operates.

It is recommended to perform PER measurements instead of BER measurements to evaluate the performance of IEEE 802.15.4 systems. To do PER measurements, the following may be used as a guideline:

• A valid preamble, SFD and length field must be used for each packet.

• The PSDU (see Figure 17 on page 36) length should be 20 bytes for sensitivity measurements as specified by [1].

• The sensitivity limit specified by [1] is the RF level resulting in a 1% PER. The packet sample space for a given measurement must then be >> 100 to have a sufficiently large sample space. E.g. at least 1000 packets should be used to measure the sensitivity.

• The data transmitted over air must be spread according to [1] and the description on page 24. Pre-generated packets may be used, although [1] requires that the PER is averaged over random PSDU data.

• The CC2420 receive FIFO may be used to buffer data received during PER measurements, since it is able to buffer up to 128 bytes.

• The MDMCTRL1.CORR_THR control register is by default set to 20, as described in the Demodulator, Symbol Synchroniser and Data Decision section.

Administrator
文本框
34.6廉价的系统 由于CC2420提供了250Kbps多通道操作而不需要外部滤波器,一个非常低成本的系统很容易构成. 一个差分天线可以去掉非平衡变换,DC偏置可以通过天线解决. 34.7电池供电系统. 在低功耗应用中,CC2420可以工作在掉电模式下,此时CC2420有极低的电流消耗.同时这样需要重新对RAM和寄存器进行编程. 34.8位误码率/包误码率测量 CC2420有一些测试模式,这时数据接收或发送连续进行.这可以用于位误码率的测量.然而必须通过以下方式才能进行这样的测量 .尽管是一个伪数据被发送,必须使用一个前导和SFD序列以便接收器通过这个序列进行字符同步.如需要,为了建立测量,可以对SYNCWORD进行设置以使用另外一个数据值. .发送的数据必须如24页所述.也就是说,用于测量发送的数据必须是Chip数据.记住,CC2420发送出的Chip序列不同于位序列. .当低于CC2420接收和灵敏度,CC2420在接收模式不会接到数据.一?????
Administrator
文本框
在一个IEEE802.15.4系统中,所有通讯是通是包传递的.包误码率更能精确地反应出系统的RF性能. 在IEEE802.15.4系统中,推荐使用PER测量替代BER测量.为了实现PER测量,需要遵守如下规则 .每一个包都要发送开始头. .PSDU长度是20字节. .由于Per性能是1%,包传递数量应远大于100/ .数据传送须扩展. .CC2420的RXFIFO可以用于数据接收,所以它只能存128字节. .如解码器,字符同步,数据确认章节所述,MDMCTRL1.CORR_THR控制寄存器默认是20.

CC2420

SWRS041B Page 59 of 89

• The RXCTRL1.RXBPF_LOCUR control bit should be set to 1.

The simplest way of making a PER measurement will be to use another CC2420 as the reference transmitter. However, this makes it difficult to measure the exact receiver performance.

Using a signal generator, this may either be set up as O-QPSK with half-sine shaping or as MSK. If using O-QPSK, the phases must be selected according to [1]. If using MSK, the chip sequence must be modified such that the modulated MSK

signal has the same phase shifts as the O-QPSK sequence previously defined.

For a desired symbol sequence s0, s1, … , sn-1 of length n symbols, the desired chip sequence c0, c1, c2, …, c32n-1 of length 32n is found using table lookup from Table 3 on page 24. It can be seen from comparing the phase shifts of the O-QPSK signal with the frequency of a MSK signal that the MSK chip sequence is generated as:

(c0 xnor c1), (c1 xor c2), (c2 xnor c3), … , (c32n-1 xor c32n) where c32n may be arbitrarily selected.

35 PCB Layout Recommendations

Following Texas Instruments’s reference design is highly recommended.

In our reference design, the top layer is used for signal routing, and the open areas are filled with metallisation connected to ground using several vias. Layer 2 has not been used in our CC2420 reference designs. Layer 3 is used for power routing and the bottom layer serves as ground plane with a little routing.

The area under the chip is used for grounding and must be well connected to the ground plane with several vias.

The ground pins should be connected to ground as close as possible to the package pin using individual vias. The de-coupling capacitors should also be placed as close as possible to the supply pins and connected to the ground plane by

separate vias. Supply power filtering is very important.

The external components should be as small as possible (0402 is recommended) and surface mount devices must be used.

Caution should be used when placing the microcontroller in order to avoid interference with the RF circuitry.

A Development Kit with a fully assembled Evaluation Module is available. It is strongly advised that this reference layout is followed very closely in order to get the best performance.

The schematic, BOM and layout Gerber files for the reference designs are all available from the Texas Instruments website.

36 Antenna Considerations

CC2420 can be used together with various types of antennas. A differential antenna like a dipole would be the easiest to interface not needing a balun (balanced to un-balanced transformation network).

The length of the λ/2-dipole antenna is given by:

L = 14250 / f

where f is in MHz, giving the length in cm. An antenna for 2450 MHz should be 5.8 cm. Each arm is therefore 2.9 cm.

Other commonly used antennas for short-range communication are monopole, helical and loop antennas. The single-ended monopole and helical would require a balun network between the differential output and the antenna.

Monopole antennas are resonant antennas with a length corresponding to one quarter of the electrical wavelength

Administrator
文本框
35.电路板布局 强列推荐TI参考设计. 在我们的参考设计中,Top层用于信号加回路,空闲处用使用多个过孔并接地的铺铜走填充.第二层没有用.第三层用于电源回路,最底层地层. 芯片下布应使用与地连接的带过孔的铺铜. 地引脚应该接地,并在最近有一个过孔.电源引脚要一个很近的去藕电容,电容的另一端要有一个独立的过孔.也源滤波非常重要.
Administrator
文本框
外部元件应该越小越好(0402推荐),必须使用表贴元件. 请注意微控器放置的位置以免影响无线信号的发送. .................... ..............请查看参考设计.
Administrator
文本框
36天线考虑 CC2420可以使用多种天线.偶极差分天线可以省去非平衡变换. 双极性偶极天线的长度是14250(cm)/F(Mhz).那么2450Mhz是5.8cm,每一臂长2.9cm
Administrator
文本框
其它的天线(如:单极,螺旋式等)用于短距离无线通信.:单极,螺旋式天线需使用非平衡变换器. 单极性天线是1/4波长的共鸣天线.这非常容易通过PCB的微带线实现.

CC2420

SWRS041B Page 60 of 89

(λ/4). They are very easy to design and can be implemented simply as a “piece of wire” or even integrated into the PCB.

The length of the λ/4-monopole antenna is given by:

L = 7125 / f

where f is in MHz, giving the length in cm. An antenna for 2450 MHz should be 2.9 cm.

Non-resonant monopole antennas shorter than λ/4 can also be used, but at the expense of range. In size and cost critical applications such an antenna may very well be integrated into the PCB.

Enclosing the antenna in high dielectric constant material reduces the overall size

of the antenna. Many vendors offer such antennas intended for PCB mounting.

Helical antennas can be thought of as a combination of a monopole and a loop antenna. They are a good compromise in size critical applications. Helical antennas tend to be more difficult to optimize than the simple monopole.

Loop antennas are easy to integrate into the PCB, but are less effective due to difficult impedance matching because of their very low radiation resistance.

For low power applications the differential antenna is recommended giving the best range and because of its simplicity.

The antenna should be connected as close as possible to the IC. If the antenna is located away from the RF pins the antenna should be matched to the feeding transmission line (50 Ω).

Administrator
文本框
单极性的长度是1/4波长,是2.9cm. 无共鸣的的单极性天线小于1/4波长,但是损失传输距离.但是它可容易集成到电路板上. 把电导电常数材料封装到天线会降低天线的尺寸.许多供应供应这种贴片天线.
Administrator
文本框
螺旋天线可以与单极天线和Loop天线结合,这样可以取得一个性能和成本的折中. 下面一句好像是说螺旋天线要比单极性天线难. Loop天线很容易集成到电路板,但由于它的低的集散阻抗造成全阻抗难于计算,使得它的性能不太理想. 天线的接入点要离IC越近越好.如果远,通讯线的阻抗要控制为50欧.

CC2420

SWRS041B Page 61 of 89

37 Configuration Registers

The configuration of CC2420 is done by programming the 16-bit configuration registers. Complete descriptions of the registers are given in the following tables. After chip reset (from the RESETn pin or programmable through the MAIN.RESETn configuration bit), all the registers have default values as shown in the tables.

Note that the MAIN register is only reset by using the pin reset RESETn. When writing to this register, all bits will get the value written, not the default value. This also means that the MAIN.RESETn bit must be written both low and then high to perform a chip reset through the serial interface.

15 registers are Strobe Command Registers, listed first in Table 11 below. Accessing these registers will initiate the change of an internal state or mode. There

are 33 normal 16-bits registers, also listed in Table 11. Many of these registers are for test purposes only, and need not be accessed for normal operation of CC2420.

The FIFOs are accessed through two 8-bit registers, TXFIFO and RXFIFO. The TXFIFO register is write only. Data may still be read out of the TXFIFO through regular RAM access (see section RAM access section on page 29), but data is then not removed from the FIFO. Note that the crystal oscillator must be active for all FIFO and RAM access.

During address transfer, and while data is being written to the TXFIFO, a status byte is returned on the serial data output pin SO. This status byte is described in Table 5 on page 29.

All configuration and status registers are described in the tables following Table 11.

Address Register Register type Description

0x00 SNOP S No Operation (has no other effect than reading out status-bits)

0x01 SXOSCON S Turn on the crystal oscillator (set XOSC16M_PD = 0 and BIAS_PD = 0)

0x02 STXCAL S Enable and calibrate frequency synthesizer for TX; Go from RX / TX to a wait state where only the synthesizer is running.

0x03 SRXON S Enable RX

0x04 STXON S Enable TX after calibration (if not already performed) Start TX in-line encryption if SPI_SEC_MODE ≠ 0

0x05 STXONCCA S If CCA indicates a clear channel: Enable calibration, then TX. Start in-line encryption if SPI_SEC_MODE ≠ 0 else do nothing

0x06 SRFOFF S Disable RX/TX and frequency synthesizer

0x07 SXOSCOFF S Turn off the crystal oscillator and RF

0x08 SFLUSHRX S Flush the RX FIFO buffer and reset the demodulator. Always read at least one byte from the RXFIFO before issuing the SFLUSHRX command strobe

0x09 SFLUSHTX S Flush the TX FIFO buffer

0x0A SACK S Send acknowledge frame, with pending field cleared.

0x0B SACKPEND S Send acknowledge frame, with pending field set.

0x0C SRXDEC S Start RXFIFO in-line decryption / authentication (as set by SPI_SEC_MODE)

0x0D STXENC S Start TXFIFO in-line encryption / authentication (as set by SPI_SEC_MODE), without starting TX.

Administrator
文本框
37.寄存器配置 CC2420的配置昌通过修改16位配置寄存器.在下列表格中,详细描述了所有寄存器.在芯片复位后(使用RESETn引脚或设置MIAN.RESETn位),所有寄存器的值恢复到默认值. 注意:MAIN寄存器只能通过RESETn来复位.当写入该寄存器时,所有位会是刚刚写入的值.也就是说,向MAIN.RESETn位写入一次低再写入一次高才能使芯片复位. 15个命令寄存器的描述在表11.访问这些寄存器会改变芯片的状态或模式.
Administrator
文本框
在表11中还有33个寄存器.这些寄存器有的是用于测试目的,在正常使用CC2420不必使用她们. FIFO可以通过两个8寄存器进行访问.TXFIFO是只写的.通过RAM读取方式也可以对TXFIFO过入读操作(请参见RAM访问章节,29页).在所有的FIFO和RAM访问前,晶体振荡器必须正常运行. 在地址传送过程中,或都写入数据到TXFIFO,一个状态字节会从串行输出引脚SO输出.状态字节的详细描述请见29页表5. 所有配置有状态寄存器请见表11.

CC2420

SWRS041B Page 62 of 89

Address Register Register type Description

0x0E SAES S AES Stand alone encryption strobe. SPI_SEC_MODE is not required to be 0, but the encryption module must be idle. If not, the strobe is ignored.

0x0F - - Not used

0x10 MAIN R/W Main Control Register

0x11 MDMCTRL0 R/W Modem Control Register 0

0x12 MDMCTRL1 R/W Modem Control Register 1

0x13 RSSI R/W RSSI and CCA Status and Control register

0x14 SYNCWORD R/W Synchronisation word control register

0x15 TXCTRL R/W Transmit Control Register

0x16 RXCTRL0 R/W Receive Control Register 0

0x17 RXCTRL1 R/W Receive Control Register 1

0x18 FSCTRL R/W Frequency Synthesizer Control and Status Register

0x19 SECCTRL0 R/W Security Control Register 0

0x1A SECCTRL1 R/W Security Control Register 1

0x1B BATTMON R/W Battery Monitor Control and Status Register

0x1C IOCFG0 R/W Input / Output Control Register 0

0x1D IOCFG1 R/W Input / Output Control Register 1

0x1E MANFIDL R/W Manufacturer ID, Low 16 bits

0x1F MANFIDH R/W Manufacturer ID, High 16 bits

0x20 FSMTC R/W Finite State Machine Time Constants

0x21 MANAND R/W Manual signal AND override register

0x22 MANOR R/W Manual signal OR override register

0x23 AGCCTRL R/W AGC Control Register

0x24 AGCTST0 R/W AGC Test Register 0

0x25 AGCTST1 R/W AGC Test Register 1

0x26 AGCTST2 R/W AGC Test Register 2

0x27 FSTST0 R/W Frequency Synthesizer Test Register 0

0x28 FSTST1 R/W Frequency Synthesizer Test Register 1

0x29 FSTST2 R/W Frequency Synthesizer Test Register 2

0x2A FSTST3 R/W Frequency Synthesizer Test Register 3

0x2B RXBPFTST R/W Receiver Bandpass Filter Test Register

0x2C FSMSTATE R Finite State Machine State Status Register

0x2D ADCTST R/W ADC Test Register

0x2E DACTST R/W DAC Test Register

0x2F TOPTST R/W Top Level Test Register

0x30 RESERVED R/W Reserved for future use control / status register

0x31-0x3D - -

Not used

0x3E TXFIFO W Transmit FIFO Byte Register

0x3F RXFIFO R/W Receiver FIFO Byte Register

R/W - Read/write (control/status), R - Read only, W – Write only, S – Command Strobe (perform action upon access)

Table 11. Configuration registers overview

CC2420

SWRS041B Page 63 of 89

MAIN (0x10) - Main Control Register

Bit Field Name Reset R/W Description

15 RESETn 1 R/W Active low reset of the entire circuit should be applied before doing anything else. Equivalent to using the RESETn reset pin.

14 ENC_RESETn 1 R/W Active low reset of the encryption module. (Test purposes only)

13 DEMOD_RESETn 1 R/W Active low reset of the demodulator module. (Test purposes only)

12 MOD_RESETn 1 R/W Active low reset of the modulator module. (Test purposes only)

11 FS_RESETn 1 R/W Active low reset of the frequency synthesizer module. (Test purposes only)

10:1 - 0 W0 Reserved, write as 0

0 XOSC16M_BYPASS 0 R/W Bypasses the crystal oscillator and uses a buffered version of the signal on Q1 directly. This can be used to apply an external rail-rail clock signal to the Q1 pin.

CC2420

SWRS041B Page 64 of 89

MDMCTRL0 (0x11) - Modem Control Register 0

Bit Field Name Reset R/W Description

15:14 - 0 W0 Reserved, write as 0

13 RESERVED_FRAME_MODE 0 R/W Mode for accepting reserved IEE 802.15.4 frame types when address recognition is enabled (MDMCTRL0.ADR_DECODE = 1).

0 : Reserved frame types (100, 101, 110, 111) are rejected by address recognition.

1 : Reserved frame types (100, 101, 110, 111) are always accepted by address recognition. No further address decoding is done.

When address recognition is disabled (MDMCTRL0.ADR_DECODE = 0), all frames are received and RESERVED_FRAME_MODE is don’t care.

12 PAN_COORDINATOR 0 R/W Should be set high when the device is a PAN Coordinator. Used for filtering packets with no destination address, as specified in section 7.5.6.2 in 802.15.4, D18

11 ADR_DECODE 1 R/W Hardware Address decode enable.

0 : Address decoding is disabled 1 : Address decoding is enabled

10:8 CCA_HYST[2:0] 2 R/W CCA Hysteresis in dB, values 0 through 7 dB

7:6 CCA_MODE[1:0] 3 R/W 0 : Reserved 1 : CCA=1 when RSSI_VAL < CCA_THR - CCA_HYST CCA=0 when RSSI_VAL ≥ CCA_THR 2 : CCA=1 when not receiving valid IEEE 802.15.4 data, CCA=0 otherwise 3 : CCA=1 when RSSI_VAL < CCA_THR - CCA_HYST and not receiving valid IEEE 802.15.4 data. CCA=0 when RSSI_VAL ≥ CCA_THR or receiving a packet

5 AUTOCRC 1 R/W In packet mode a CRC-16 (ITU-T) is calculated and is transmitted after the last data byte in TX. In RX CRC is calculated and checked for validity.

4 AUTOACK 0 R/W If AUTOACK is set, all packets accepted by address recognition with the acknowledge request flag set and a valid CRC are acknowledged 12 symbol periods after being received.

3:0 PREAMBLE_LENGTH [3:0]

2 R/W The number of preamble bytes (2 zero-symbols) to be sent in TX mode prior to the SYNCWORD, encoded in steps of 2. The reset value of 2 is compliant with IEEE 802.15.4, since the 4th zero byte is included in the SYNCWORD.

0 : 1 leading zero bytes (not recommended) 1 : 2 leading zero bytes (not recommended) 2 : 3 leading zero bytes (IEEE 802.15.4 compliant) 3 : 4 leading zero bytes … 15 : 16 leading zero bytes

CC2420

SWRS041B Page 65 of 89

MDMCTRL1 (0x12)– Modem Control Register 1

Bit Field Name Reset R/W Description

15:11 - 0 W0 Reserved, write as 0.

10:6 CORR_THR[4:0] 20 R/W Demodulator correlator threshold value, required before SFD search. Note that on early CC2420 versions the reset value was 0.

5 DEMOD_AVG_MODE 0 R/W Frequency offset average filter behaviour.

0 : Lock frequency offset filter after preamble match 1 : Continuously update frequency offset filter.

4 MODULATION_MODE 0 R/W Set one of two RF modulation modes for RX / TX

0 : IEEE 802.15.4 compliant mode 1 : Reversed phase, non-IEEE compliant (could be used to set up a system which will not receive 802.15.4 packets)

3:2 TX_MODE[1:0] 0 R/W Set test modes for TX

0 : Buffered mode, use TXFIFO (normal operation) 1 : Serial mode, use transmit data on serial interface, infinite transmission. For lab testing only. 2 : TXFIFO looping ignore underflow in TXFIFO and read cyclic, infinite transmission. For lab testing only. 3 : Send random data from CRC, infinite transmission. For lab testing only.

1:0 RX_MODE[1:0] 0 R/W Set test mode of RX

0 : Buffered mode, use RXFIFO (normal operation) 1 : Receive serial mode, output received data on pins. Infinite RX. For lab testing only. 2 : RXFIFO looping ignore overflow in RXFIFO and write cyclic, infinite reception. For lab testing only. 3 : Reserved

RSSI (0x13) - RSSI and CCA Status and Control Register

Bit Field Name Reset R/W Description

15:8 CCA_THR[7:0] -32 R/W Clear Channel Assessment threshold value, signed number on 2’s complement for comparison with the RSSI.

The unit is 1 dB, offset is the same as for RSSI_VAL. The CCA signal goes active when the received signal is below this value. The CCA signal is available on the CCA pin.

The reset value is approximately -77 dBm.

7:0 RSSI_VAL[7:0] -128 R RSSI estimate on a logarithmic scale, signed number on 2’s complement.

Unit is 1 dB, offset is described in the RSSI / Energy Detection section on page 48.

The RSSI_VAL value is averaged over 8 symbol periods. The RSSI_VALID status bit may be checked to verify that the receiver has been enabled for at least 8 symbol periods.

The reset value of –128 also indicates that the RSSI_VAL value is invalid.

CC2420

SWRS041B Page 66 of 89

SYNCWORD (0x14) - Sync Word

Bit Field Name Reset R/W Description

15:0 SYNCWORD[15:0] 0xA70F R/W Synchronisation word. The SYNCWORD is processed from the least significant nibble (F at reset) to the most significant nibble (A at reset).

SYNCWORD is used both during modulation (where 0xF’s are replaced with 0x0’s) and during demodulation (where 0xF’s are not required for frame synchronisation). In reception an implicit zero is required before the first symbol required by SYNCWORD.

The reset value is compliant with IEEE 802.15.4.

TXCTRL (0x15) - Transmit Control Register

Bit Field Name Reset R/W Description

15:14 TXMIXBUF_CUR[1:0] 2 R/W TX mixer buffer bias current.

0: 690uA 1: 980uA 2: 1.16mA (nominal) 3: 1.44mA

13 TX_TURNAROUND 1 R/W Sets the wait time after STXON before transmission is started.

0 : 8 symbol periods (128 us) 1 : 12 symbol periods (192 us)

12:11 TXMIX_CAP_ARRAY[1:0] 0 R/W Selects varactor array settings in the transmit mixers.

10:9 TXMIX_CURRENT[1:0] 0 R/W Transmit mixers current:

0: 1.72 mA 1: 1.88 mA 2: 2.05 mA 3: 2.21 mA

8:6 PA_CURRENT[2:0] 3 R/W Current programming of the PA

0: -3 current adjustment 1: -2 current adjustment 2: -1 current adjustment 3: Nominal setting 4: +1 current adjustment 5: +2 current adjustment 6: +3 current adjustment 7: +4 current adjustment

5 - 1 W1 Reserved, write as 1.

4:0 PA_LEVEL[4:0] 31 R/W Output PA level. (~0 dBm)

CC2420

SWRS041B Page 67 of 89

RXCTRL0 (0x16) – Receive control register 0

Bit Field Name Reset R/W Description

15:14 - 0 W0 Reserved, write as 0.

13:12 RXMIXBUF_CUR[1:0] 1 R/W RX mixer buffer bias current.

0: 690uA 1: 980uA (nominal) 2: 1.16mA 3: 1.44mA

11:10 HIGH_LNA_GAIN[1:0] 0 R/W Controls current in the LNA gain compensation branch in AGC High gain mode.

0: Compensation disabled 1: 100 µA compensation current 2: 300 µA compensation current (Nominal) 3: 1000 µA compensation current

9:8 MED_LNA_GAIN[1:0] 2 R/W Controls current in the LNA gain compensation branch in AGC Med gain mode.

7:6 LOW_LNA_GAIN[1:0] 3 R/W Controls current in the LNA gain compensation branch in AGC Low gain mode

5:4 HIGH_LNA_CURRENT[1:0] 2 R/W Controls main current in the LNA in AGC High gain mode

0: 240 µA LNA current (x2) 1: 480 µA LNA current (x2) 2: 640 µA LNA current (x2) 3: 1280 µA LNA current (x2)

3:2 MED_LNA_CURRENT[1:0] 1 R/W Controls main current in the LNA in AGC Med gain mode

1:0 LOW_LNA_CURRENT[1:0] 1 R/W Controls main current in the LNA in AGC Low gain mode

CC2420

SWRS041B Page 68 of 89

RXCTRL1 (0x17) - Receive control register 1

Bit Field Name Reset R/W Description

15:14 - 0 W0 Reserved, write as 0.

13 RXBPF_LOCUR 0 R/W Controls reference bias current to RX bandpass filters:

0: 4 uA (Reset value) Use 1 instead 1: 3 uA Note: Recommended setting

12 RXBPF_MIDCUR 0 R/W Controls reference bias current to RX bandpass filters:

0: 4 uA (Default) 1: 3.5 uA

11 LOW_LOWGAIN 1 R/W LNA low gain mode setting in AGC low gain mode.

10 MED_LOWGAIN 0 R/W LNA low gain mode setting in AGC medium gain mode.

9 HIGH_HGM 1 R/W RX Mixers high gain mode setting in AGC high gain mode.

8 MED_HGM 0 R/W RX Mixers high gain mode setting in AGC medium gain mode.

7:6 LNA_CAP_ARRAY[1:0] 1 R/W Selects varactor array setting in the LNA

0: OFF 1: 0.1pF (x2) (Nominal) 2: 0.2pF (x2) 3: 0.3pF (x2)

5:4 RXMIX_TAIL[1:0] 1 R/W Control of the receiver mixers output current.

0: 12 µA 1: 16 µA (Nominal) 2: 20 µA 3: 24 µA

3:2 RXMIX_VCM[1:0] 1 R/W Controls VCM level in the mixer feedback loop

0: 8 µA mixer current 1: 12 µA mixer current (Nominal) 2: 16 µA mixer current 3: 20 µA mixer current

1:0 RXMIX_CURRENT[1:0] 2 R/W Controls current in the mixer

0: 360 µA mixer current (x2) 1: 720 µA mixer current (x2) 2: 900 µA mixer current (x2) (Nominal) 3: 1260 µA mixer current (x2)

CC2420

SWRS041B Page 69 of 89

FSCTRL (0x18) - Frequency Synthesizer Control and Status

Bit Field Name Reset R/W Description

15:14 LOCK_THR[1:0] 1 R/W Number of consecutive reference clock periods with successful synchronisation windows required to indicate lock:

0: 64 1: 128 (recommended) 2: 256 3: 512

13 CAL_DONE 0 R Calibration has been performed since the last time the frequency synthesizer was turned on.

12 CAL_RUNNING 0 R Calibration status, '1' when calibration in progress and ‘0’ otherwise.

11 LOCK_LENGTH 0 R/W Synchronisation window pulse width:

0: 2 prescaler clock periods (recommended) 1: 4 prescaler clock periods

10 LOCK_STATUS 0 R Frequency synthesizer lock status:

0 : Frequency synthesizer is out of lock 1 : Frequency synthesizer is in lock

9:0 FREQ[9:0] 357

(2405 MHz)

R/W Frequency control word, controlling the RF operating frequency FC. In transmit mode, the local oscillator (LO) frequency equals FC. In receive mode, the LO frequency is 2 MHz below FC. FC = 2048 + FREQ[9:0] MHz

See the Frequency and Channel Programming section on page 50 for further information.

CC2420

SWRS041B Page 70 of 89

SECCTRL0 (0x19) - Security Control Register

Bit Field Name Reset R/W Description

15:10 - 0 W0 Reserved, write as 0

9 RXFIFO_PROTECTION 1 R/W Protection enable of the RXFIFO, see description in the RXFIFO overflow section on page 33. Should be cleared if MAC level security is not used or is implemented outside CC2420.

8 SEC_CBC_HEAD 1 R/W Defines what to use for the first byte in CBC-MAC (does not apply to CBC-MAC part of CCM):

0 : Use the first data byte as the first byte into CBC-MAC 1 : Use the length of the data to be authenticated (calculated as (the packet length field – SEC_TXL – 2) for TX or using SEC_RXL for RX) as the first byte into CBC-MAC (before the first data byte).

This bit should be set high for CBC-MAC 802.15.4 inline security.

7 SEC_SAKEYSEL 1 R/W Stand Alone Key select

0 : Key 0 is used 1 : Key 1 is used

6 SEC_TXKEYSEL 1 R/W TX Key select

0 : Key 0 is used 1 : Key 1 is used

5 SEC_RXKEYSEL 0 R/W RX Key select

0 : Key 0 is used 1 : Key 1 is used

4:2 SEC_M[2:0] 1 R/W Number of bytes in authentication field for CBC-MAC, encoded as (M-2)/2

0 : Reserved 1 : 4 2 : 6 3 : 8 4 : 10 5 : 12 6 : 14 7 : 16

1:0 SEC_MODE[1:0] 0 R/W Security mode

0 : In-line security is disabled 1 : CBC-MAC 2 : CTR 3 : CCM

CC2420

SWRS041B Page 71 of 89

SECCTRL1 (0x1A) - Security Control Register

Bit Field Name Reset R/W Description

15 - 0 W0 Reserved, write as 0

14:8 SEC_TXL 0 R/W Multi-purpose length byte for TX in-line security operations:

CTR : Number of cleartext bytes between length byte and the first byte to be encrypted

CBC/MAC : Number of cleartext bytes between length byte and the first byte to be authenticated

CCM : l(a), defining the number of bytes to be authenticated but not encrypted

Stand-alone : SEC_TXL has no effect

7 - 0 W0 Reserved, write as 0

6:0 SEC_RXL 0 R/W Multi-purpose length byte for RX in-line security operations:

CTR : Number of cleartext bytes between length byte and the first byte to be decrypted

CBC/MAC : Number of cleartext bytes between length byte and the first byte to be authenticated

CCM : l(a), defining the number of bytes to be authenticated but not decrypted

Stand-alone : SEC_RXL has no effect

BATTMON (0x1B) – Battery Monitor Control register

Bit Field Name Reset R/W Description

15:7 - 0 W0 Reserved, write as 0

6 BATTMON_OK 1 R Battery monitor comparator output, read only. BATT_OK is valid 5 us after BATTMON_EN has been asserted and BATTMON_VOLTAGE has been programmed.

0 : Power supply < Toggle Voltage 1 : Power supply > Toggle Voltage

5 BATTMON_EN 0 R/W Battery monitor enable

0 : Battery monitor is disabled 1 : Battery monitor is enabled

4:0 BATTMON_VOLTAGE [4:0]

0 R/W Battery monitor toggle voltage. The toggle voltage is given by:

2772

V25.1Vtoggle

LTAGEBATTMON_VO−⋅=

CC2420

SWRS041B Page 72 of 89

IOCFG0 (0x1C) – I/O Configuration Register 0

Bit Field Name Reset R/W Description

15:12 - 0 W0 Reserved, write as 0

11 BCN_ACCEPT 0 R/W Accept all beacon frames when address recognition is enabled. This bit should be set when the PAN identifier programmed into CC2420 RAM is equal to 0xFFFF and cleared otherwise. This bit is don't care when MDMCTRL0.ADR_DECODE = 0.

0 : Only accept beacons with a source PAN identifier which matches the PAN identifier programmed into CC2420 RAM 1 : Accept all beacons regardless of the source PAN identifier

10 FIFO_POLARITY 0 R/W Polarity of the output signal FIFO.

0 : Polarity is active high 1 : Polarity is active low

9 FIFOP_POLARITY 0 R/W Polarity of the output signal FIFOP.

0 : Polarity is active high 1 : Polarity is active low

8 SFD_POLARITY 0 R/W Polarity of the SFD pin.

0 : Polarity is active high 1 : Polarity is active low

7 CCA_POLARITY 0 R/W Polarity of the CCA pin.

0 : Polarity is active high 1 : Polarity is active low

6:0 FIFOP_THR[6:0] 64 R/W FIFOP_THR sets the threshold in number of bytes in the RXFIFO for FIFOP to go active.

IOCFG1 (0x1D) – I/O Configuration Register 1

Bit Field Name Reset R/W Description

15:13 - 0 W0 Reserved, write as 0

12:10 HSSD_SRC[2:0] 0 R/W The HSSD module is used as follows:

0: Off. 1: Output AGC status (gain setting / peak detector status / accumulator value) 2: Output ADC I and Q values. 3: Output I/Q after digital down mix and channel filtering. 4: Reserved 5: Reserved 6: Input ADC I and Q values 7: Input DAC I and Q values.

The HSSD module requires that the FS is up and running as it uses CLK_PRE (~150 MHZ) to produce its ~37.5 MHz data clock and serialize its output words.

9:5 SFDMUX[4:0] 0 R/W Multiplexer setting for the SFD pin.

4:0 CCAMUX[4:0] 0 R/W Multiplexer setting for the CCA pin.

MANFIDL (0x1E) - Manufacturer ID, Lower 16 Bit

Bit Field Name Reset R/W Description

15:12 PARTNUM[3:0] 2 R The device part number. CC2420 has part number 0x002.

11:0 MANFID[11:0] 0x33D R Gives the JEDEC manufacturer ID. The actual manufacturer ID can be found in MANIFID[7:1], the number of continuation bytes in MANFID[11:8] and MANFID[0]=1.

Chipcon's JEDEC manufacturer ID is 0x7F 0x7F 0x7F 0x9E (0x1E preceded by three continuation bytes.)

CC2420

SWRS041B Page 73 of 89

MANFIDH (0x1F) - Manufacturer ID, Upper 16 Bit

Bit Field Name Reset R/W Description

15:12 VERSION[3:0] 3 R Version number. Current version is 3. Note that previous CC2420 versions will have lower reset values.

11:0 PARTNUM[15:4] 0 R The device part number. CC2420 has part number 0x002.

FSMTC (0x20) - Finite state machine time constants

Bit Field Name Reset R/W Description

15:13 TC_RXCHAIN2RX[2:0] 3 R/W The time in 5 us steps between the time the RX chain is enabled and the demodulator and AGC is enabled. The RX chain is started when the bandpass filter has been calibrated (after 6.5 symbol periods).

12:10 TC_SWITCH2TX[2:0] 6 R/W The time in advance the RXTX switch is set high, before enabling TX. In µs.

9:6 TC_PAON2TX[3:0] 10 R/W The time in advance the PA is powered up before enabling TX. In µs.

5:3 TC_TXEND2SWITCH[2:0] 2 R/W The time after the last chip in the packet is sent, and the TXRX switch is disabled. In µs.

2:0 TC_TXEND2PAOFF[2:0] 4 R/W The time after the last chip in the packet is sent, and the PA is set in power-down. Also the time at which the modulator is disabled. In µs.

CC2420

SWRS041B Page 74 of 89

MANAND (0x21) - Manual signal AND override register1

Bit Field Name Reset R/W Description

15 VGA_RESET_N 1 R/W The VGA_RESET_N signal is used to reset the peak detectors in the VGA in the RX chain.

14 BIAS_PD 1 R/W Global bias power down (1)

13 BALUN_CTRL 1 R/W The BALUN_CTRL signal controls whether the PA should receive its required external biasing (1) or not (0) by controlling the RX/TX output switch.

12 RXTX 1 R/W RXTX signal: controls whether the LO buffers (0) or PA buffers (1) should be used.

11 PRE_PD 1 R/W Powerdown of prescaler.

10 PA_N_PD 1 R/W Powerdown of PA (negative path).

9 PA_P_PD 1 R/W Powerdown of PA (positive path). When PA_N_PD=1 and PA_P_PD=1 the up-conversion mixers are in powerdown.

8 DAC_LPF_PD 1 R/W Powerdown of TX DACs.

7 XOSC16M_PD 1 R/W

6 RXBPF_CAL_PD 1 R/W Powerdown control of complex bandpass receive filter calibration oscillator.

5 CHP_PD 1 R/W Powerdown control of charge pump.

4 FS_PD 1 R/W Powerdown control of VCO, I/Q generator, LO buffers.

3 ADC_PD 1 R/W Powerdown control of the ADCs.

2 VGA_PD 1 R/W Powerdown control of the VGA.

1 RXBPF_PD 1 R/W Powerdown control of complex bandpass receive filter.

0 LNAMIX_PD 1 R/W Powerdown control of LNA, down-conversion mixers and front-end bias.

1 For some important signals the value used by analog and digital modules can be overridden manually. This is done as follows for the hypothetical important signal IS:

IS_USED = (IS * IS_AND_MASK) + IS_OR_MASK,

using boolean notation.

The AND-mask and OR-mask for the important signals listed resides in the MANAND and MANOR registers, respectively.

Examples:

• Writing 0xFFFE to MANAND and 0x0000 to MANOR will force LNAMIX_PD≡0 whereas all other signals will be unaffected.

• Writing 0xFFFF to MANAND and 0x0001 to MANOR will force LNAMIX_PD≡1 whereas all other signals will be unaffected.

CC2420

SWRS041B Page 75 of 89

MANOR (0x22) - Manual signal OR override register

Bit Field Name Reset R/W Description

15 VGA_RESET_N 0 R/W The VGA_RESET_N signal is used to reset the peak detectors in the VGA in the RX chain.

14 BIAS_PD 0 R/W Global Bias power down (1)

13 BALUN_CTRL 0 R/W The BALUN_CTRL signal controls whether the PA should receive its required external biasing (1) or not (0) by controlling the RX/TX output switch.

12 RXTX 0 R/W RXTX signal: controls whether the LO buffers (0) or PA buffers (1) should be used.

11 PRE_PD 0 R/W Powerdown of prescaler.

10 PA_N_PD 0 R/W Powerdown of PA (negative path).

9 PA_P_PD 0 R/W Powerdown of PA (positive path). When PA_N_PD=1 and PA_P_PD=1 the up-conversion mixers are in powerdown.

8 DAC_LPF_PD 0 R/W Powerdown of TX DACs.

7 XOSC16M_PD 0

6 RXBPF_CAL_PD 0 R/W Powerdown control of complex bandpass receive filter calibration oscillator.

5 CHP_PD 0 R/W Powerdown control of charge pump.

4 FS_PD 0 R/W Powerdown control of VCO, I/Q generator, LO buffers.

3 ADC_PD 0 R/W Powerdown control of the ADCs.

2 VGA_PD 0 R/W Powerdown control of the VGA.

1 RXBPF_PD 0 R/W Powerdown control of complex bandpass receive filter.

0 LNAMIX_PD 0 R/W Powerdown control of LNA, down-conversion mixers and front-end bias.

AGCCTRL (0x23) - AGC Control

Bit Field Name Reset R/W Description

15:12 - 0 W0 Reserved, write as 0

11 VGA_GAIN_OE 0 R/W Use the VGA_GAIN value during RX instead of the AGC value.

10:4 VGA_GAIN [6:0] 0x7F R/W When written, VGA manual gain override value; when read, the currently used VGA gain setting.

3:2 LNAMIX_GAINMODE_O [1:0]

0 R/W LNA / Mixer Gain mode override setting

0 : Gain mode is set by AGC algorithm 1 : Gain mode is always low-gain 2 : Gain mode is always med-gain 3 : Gain mode is always high-gain

1:0 LNAMIX_GAINMODE [1:0]

3 R Status bit, defining the currently selected gain mode selected by the AGC or overridden by the LNAMIX_GAINMODE_O setting.

CC2420

SWRS041B Page 76 of 89

AGCTST0 (0x24) - AGC Test Register 0

Bit Field Name Reset R/W Description

15:12 LNAMIX_HYST[3:0] 3 R/W Hysteresis on the switching between different RF front-end gain modes, defined in 2 dB steps

11:6 LNAMIX_THR_H[5:0] 25 R/W Threshold for switching between medium and high RF front-end gain mode, defined in 2 dB steps

5:0 LNAMIX_THR_L[5:0] 9 R/W Threshold for switching between low and medium RF front-end gain mode, defined in 2 dB steps

AGCTST1 (0x25) - AGC Test Register 1

Bit Field Name Reset R/W Description

15 - 0 W0 Reserved, write as 0

14 AGC_BLANK_MODE 0 R/W Set the VGA blanking mode when switching out a gain stage

When VGA_GAIN_OE = 0:

0 : Blanking is performed when the AGC algorithm switches out one or more 14dB gain stages. 1 : Blanking is never performed.

When VGA_GAIN_OE = 1:

Blanking is performed when AGC_BLANK_MODE=1

13 PEAKDET_CUR_BOOST 0 R/W Doubles the bias current in the peak-detectors in-between the VGA stages when set.

12:11 AGC_SETTLE_WAIT[1:0] 1 R/W Timing for AGC to wait for analog gain to settle.

10:8 AGC_PEAK_DET_MODE [2:0]

0 R/W Sets the AGC mode for use of the VGA peak detectors:

Bit 2 : Digital ADC peak detector enable / disable Bit 1 : Analog fixed stages peak detector enable / disable Bit 0 : Analog variable gain stage peak detector enable / disable

7:6 AGC_WIN_SIZE[1:0] 1 R/W Window size for the accumulate and dump function in the AGC.

0 : 8 samples 1 : 16 samples 2 : 32 samples 3 : 64 samples

5:0 AGC_REF[5:0] 20 R/W Target value for the AGC control loop, given in 2 dB steps. Reset value corresponds to approximately 25% of the ADC dynamic range in reception.

AGCTST2 (0x26) - AGC Test Register 2

Bit Field Name Reset R/W Description

15:10 - 0 W0 Reserved, write as 0

9:5 MED2HIGHGAIN[4:0] 9 R/W MED2HIGHGAIN sets the difference in the receiver LNA/MIXER gain from medium gain mode to high gain mode, used by the AGC for setting the correct front-end gain mode.

4:0 LOW2MEDGAIN[4:0] 10 R/W LOW2MEDGAIN sets the difference in the receiver LNA/MIXER gain from low gain mode to medium gain mode, used by the AGC for setting the correct front-end gain mode.

CC2420

SWRS041B Page 77 of 89

FSTST0 (0x27) - Frequency Synthesizer Test Register 0

Bit Field Name Reset R/W Description

15:12 - 0 W0 Reserved, write as 0

11 VCO_ARRAY_SETTLE_LONG 0 R/W When '1' this control bit doubles the time allowed for VCO settling during VCO calibration.

10 VCO_ARRAY_OE 0 R/W VCO array manual override enable.

9:5 VCO_ARRAY_O[4:0] 16 R/W VCO array override value.

4:0 VCO_ARRAY_RES[4:0] 16 R The VCO array result holds the register content of the most recent calibration.

FSTST1 (0x28) - Frequency Synthesizer Test Register 1

Bit Field Name Reset R/W Description

15 VCO_TX_NOCAL 0 R/W 0 : VCO calibration is always performed when going to RX or when going to TX. 1 : VCO calibration is only performed when going to RX or when using the STXCAL command strobe

14 VCO_ARRAY_CAL_LONG 1 R/W When ‘1’ this control bit doubles the time allowed for VCO frequency measurements during VCO calibration.

0 : PLL Calibration time is 37 us 1 : PLL Calibration time is 57 us

13:10 VCO_CURRENT_REF[3:0] 4 R/W The value of the reference current calibrated against during VCO calibration.

9:4 VCO_CURRENT_K[5:0] 0 R/W VCO current calibration constant. (Current B override value when FSTST2.VCO_CURRENT_OE=1.)

3 VC_DAC_EN 0 R/W Controls the source of the VCO VC node in normal operation (TOPTST.VC_IN_TEST_EN=0):

0: Loop filter (closed loop PLL) 1: VC DAC (open loop PLL)

2:0 VC_DAC_VAL[2:0] 2 R/W VC DAC output value

FSTST2 (0x29) - Frequency Synthesizer Test Register 2

Bit Field Name Reset R/W Description

15 - 0 W0 Reserved, write as 0.

14:13 VCO_CURCAL_SPEED[1:0] 0 R/W VCO current calibration speed:

0: Normal 1: Double speed 2: Half speed 3: Undefined.

12 VCO_CURRENT_OE 0 R/W VCO current manual override enable.

11:6 VCO_CURRENT_O[5:0] 24 R/W VCO current override value (current A).

5:0 VCO_CURRENT_RES[5:0] 32 R The VCO current result holds the register content of the most recent calibration.

CC2420

SWRS041B Page 78 of 89

FSTST3 (0x2A) - Frequency Synthesizer Test Register 3

Bit Field Name Reset R/W Description

15 CHP_CAL_DISABLE 1 R/W Disable charge pump during VCO calibration when set.

14 CHP_CURRENT_OE 0 R/W Charge pump current override enable

0 : Charge pump current set by calibration 1 : Charge pump current set by START_CHP_CURRENT

13 CHP_TEST_UP 0 R/W Forces the CHP to output "up" current when set

12 CHP_TEST_DN 0 R/W Forces the CHP to output "down" current when set

11 CHP_DISABLE 0 R/W Set to manually disable charge pump by masking the up and down pulses from the phase-detector.

10 PD_DELAY 0 R/W Selects short or long reset delay in phase detector:

0: Short reset delay 1: Long reset delay

9:8 CHP_STEP_PERIOD[1:0] 2 R/W The charge pump current value step period:

0: 0.25 us 1: 0.5 us 2: 1 us 3: 4 us

7:4 STOP_CHP_CURRENT[3:0] 13 R/W The charge pump current to stop at after the current is stepped down from START_CHP_CURRENT after VCO calibration is complete. The current is stepped down periodically with intervals as defined in CHP_STEP_PERIOD.

3:0 START_CHP_CURRENT[3:0] 13 R/W The charge pump current to start with after VCO calibration is complete. The current is then stepped down periodically to the value STOP_CHP_CURRENT with intervals as defined in CHP_STEP_PERIOD.

Also used for overriding the charge pump current when CHP_CURRENT_OE=’1’

RXBPFTST (0x2B) - Receiver Bandpass Filters Test Register

Bit Field Name Reset R/W Description

15 - 0 W0 Reserved, write as 0.

14 RXBPF_CAP_OE 0 R/W RX bandpass filter capacitance calibration override enable.

13:7 RXBPF_CAP_O[6:0] 0 R/W RX bandpass filter capacitance calibration override value.

6:0 RXBPF_CAP_RES[6:0] 0 R RX bandpass filter capacitance calibration result.

0: Minimum capacitance in the feedback.

1: Second smallest capacitance setting.

127: Maximum capacitance in the feedback.

FSMSTATE (0x2C) - Finite state machine information

Bit Field Name Reset R/W Description

15:6 - 0 W0 Reserved, write as 0.

5:0 FSM_CUR_STATE[5:0] 0 R Provides the current state of the FIFO and Frame Control (FFCTRL) finite state machine. See the Radio control state machine section on page 43 for details.

CC2420

SWRS041B Page 79 of 89

ADCTST (0x2D) - ADC Test Register

Bit Field Name Reset R/W Description

15 ADC_CLOCK_DISABLE 0 R/W ADC Clock Disable

0 : Clock enabled when ADC enabled 1 : Clock disabled, even if ADC is enabled

14:8 ADC_I[6:0] 0 R Read the current ADC I-branch value.

7 - 0 W0 Reserved, write as 0.

6:0 ADC_Q[6:0] 0 R Read the current ADC Q-branch value.

DACTST (0x2E) - DAC Test Register

Bit Field Name Reset R/W Description

15 - 0 W0 Reserved, write as 0.

14:12 DAC_SRC[2:0] 0 R/W The TX DACs data source is selected by DAC_SRC according to:

0: Normal operation (from modulator). 1: The DAC_I_O and DAC_Q_O override values below.- 2: From ADC, most significant bits 3: I/Q after digital down mixing and channel filtering. 4: Full-spectrum White Noise (from CRC) 5: From ADC, least significant bits 6: RSSI / Cordic Magnitude Output 7: HSSD module.

This feature will often require the DACs to be manually turned on in MANOR and TOPTST.ATESTMOD_MODE=4.

11:6 DAC_I_O[5:0] 0 R/W I-branch DAC override value.

5:0 DAC_Q_O[5:0] 0 R/W Q-branch DAC override value.

CC2420

SWRS041B Page 80 of 89

TOPTST (0x2F) - Top Level Test Register

Bit Field Name Reset R/W Description

15:8 - 0 W0 Reserved, write as 0.

7 RAM_BIST_RUN 0 R/W Enable BIST of the RAM

0 : RAM BIST disabled, normal operation 1 : RAM BIST Enabled. Result output to pin, as set in IOCFG1.

6 TEST_BATTMON_EN 0 R/W Enable test output of the battery monitor.

5 VC_IN_TEST_EN 0 R/W When ATESTMOD_MODE=7 this controls whether the ATEST2 in is used to output the VC node voltage (0) or to control the VC node voltage (1).

4 ATESTMOD_PD 1 R/W Powerdown of analog test module.

0 : Power up 1 : Power down

3:0 ATESTMOD_MODE[3:0] 0 When ATESTMOD_PD=0, the function of the analog test module is as follows:

0: Outputs “I” (ATEST1) and “Q” (ATEST2) from RxMIX.

1: Inputs “I” (ATEST2) and “Q” (ATEST1) to BPF.

2: Outputs “I” (ATEST1) and “Q” (ATEST2) from VGA.

3: Inputs “I” (ATEST2) and “Q” (ATEST1) to ADC.

4: Outputs “I” (ATEST1) and “Q” (ATEST2) from LPF.

5: Inputs “I” (ATEST2) and “Q” (ATEST1) to TxMIX.

6: Outputs “P” (ATEST1) and “N” (ATEST2) from Prescaler. Must be terminated externally.

7: Connects TX IF to RX IF and simultaneously the ATEST1 pin to the internal VC node (see VC_IN_TEST_EN).

8. Connect ATEST1 (input) to ATEST2 (output) through single2diff and diff2single buffers, used for measurements on the test-interface

RESERVED (0x30) - Reserved register containing spare control and status bits

Bit Field Name Reset R/W Description

15:0 RES[15:0] 0 R/W Reserved for future use

TXFIFO (0x3E) – Transmit FIFO Byte register

Bit Field Name Reset R/W Description

7:0 TXFIFO[7:0] 0 W Transmit FIFO byte register, write only. Reading the TXFIFO is only possible using RAM read. Note that the crystal oscillator must be running for writing to the TXFIFO.

RXFIFO (0x3F) – Receive FIFO Byte register

Bit Field Name Reset R/W Description

7:0 RXFIFO[7:0] 0 R/W Receive FIFO byte register, read / write. Note that the crystal oscillator must be running for accessing the RXFIFO.

CC2420

SWRS041B Page 81 of 89

38 Test Output Signals

The two digital output pins CCA and SFD, can be set up to output test signals defined by IOCFG1.CCAMUX and

IOCFG1.SFDMUX. This is summarized in Table 12 and Table 13 below.

CCAMUX Signal output on CCA pin Description

0 CCA Normal operation

1 ADC_Q[0] ADC, Q-branch, LSB used for random number generation

2 DEMOD_RESYNC_LATE High one 16 MHz clock cycle each time the demodulator resynchronises late

3 LOCK_STATUS Lock status, same as FSCTRL.LOCK_STATUS

4 MOD_CHIPCLK Chip rate clock signal during transmission

5 MOD_SERIAL_CLK Bit rate clock signal during transmission

6 FFCTRL_FS_PD Frequency synthesizer power down, active high

7 FFCTRL_ADC_PD ADC power down, active high

8 FFCTRL_VGA_PD VGA power down, active high

9 FFCTRL_RXBPF_PD Receiver bandpass filter power down, active high

10 FFCTRL_LNAMIX_PD Receiver LNA / Mixer power down, active high

11 FFCTRL_PA_P_PD Power amplifier power down, active high

12 AGC_UPDATE High one 16 MHz clock cycle each time the AGC updates its gain setting

13 VGA_PEAK_DET[1] VGA Peak detector, gain stage 1

14 VGA_PEAK_DET[3] VGA Peak detector, gain stage 3

15 AGC_LNAMIX_GAINMODE[1] RF receiver front-end gain mode, bit 1

16 AGC_VGA_GAIN[1] VGA gain setting, bit 1

17 VGA_RESET_N VGA peak-detector reset sign, active low.

18 - Reserved

19 - Reserved

20 - Reserved

21 - Reserved

22 - Reserved

23 CLK_8M 8 MHz clock signal output

24 XOSC16M_STABLE 16 MHz crystal oscillator stabilised, same as the status bit in Table 5

25 FSDIG_FREF Frequency synthesizer, 4 MHz reference signal

26 FSDIG_FPLL Frequency synthesizer, 4 MHz divided signal

27 FSDIG_LOCK_WINDOW Frequency synthesizer, lock window

28 WINDOW_SYNC Frequency synthesizer, synchronized lock window

29 CLK_ADC ADC clock signal 1

30 ZERO Low

31 ONE High

Table 12. CCA test signal select table

CC2420

SWRS041B Page 82 of 89

SFDMUX Signal output on SFD pin Description

0 SFD Normal operation

1 ADC_I[0] ADC, I-branch, LSB used for random number generation

2 DEMOD_RESYNCH_EARLY High one 16 MHz clock cycle each time the demodulator resynchronises early

3 LOCK_STATUS Lock status, same as FSCTRL.LOCK_STATUS

4 MOD_CHIP Chip rate data signal during transmission

5 MOD_SERIAL_DATA_OUT Bit rate data signal during transmission

6 FFCTRL_FS_PD Frequency synthesizer power down, active high

7 FFCTRL_ADC_PD ADC power down, active high

8 FFCTRL_VGA_PD VGA power down, active high

9 FFCTRL_RXBPF_PD Receiver bandpass filter power down, active high

10 FFCTRL_LNAMIX_PD Receiver LNA / Mixer power down, active high

11 FFCTRL_PA_P_PD Power amplifier power down, active high

12 VGA_PEAK_DET[0] VGA Peak detector, gain stage 0

13 VGA_PEAK_DET[2] VGA Peak detector, gain stage 2

14 VGA_PEAK_DET[4] VGA Peak detector, gain stage 4

15 AGC_LNAMIX_GAINMODE[0] RF receiver front-end gain mode, bit 0

16 AGC_VGA_GAIN[0] VGA gain setting, bit 0

17 RXBPF_CAL_CLK Receiver bandpass filter calibration clock

18 - Reserved

19 - Reserved

20 - Reserved

21 - Reserved

22 - Reserved

23 - Reserved

24 PD_F_COMP Frequency synthesizer frequency comparator value

25 FSDIG_FREF Frequency synthesizer, 4 MHz reference signal

26 FSDIG_FPLL Frequency synthesizer, 4 MHz divided signal

27 FSDIG_LOCK_WINDOW Frequency synthesizer, lock window

28 WINDOW_SYNC Frequency synthesizer, synchronized lock window

29 CLK_ADC_DIG ADC clock signal 2

30 ZERO Low

31 ONE High

Table 13. SFD test signal select table

CC2420

SWRS041B Page 83 of 89

39 Package Description (QLP 48)

Note: The figure is an illustration only and not to scale.

Quad Leadless Package (QLP)

D D1 E E1 e b L D2 E2

QLP 48 Min

Max

6.9

7.0

7.1

6.65

6.75

6.85

6.9

7.0

7.1

6.65

6.75

6.85

0.5

0.18

0.30

0.3

0.4

0.5

5.05

5.10

5.15

5.05

5.10

5.15

The overall packet height is 0.85 +/- 0.05

All dimensions in mm

The package is compliant to JEDEC standard MO-220.

CC2420

SWRS041B Page 84 of 89

40 Recommended layout for package (QLP 48)

Note: The figure is an illustration only and not to scale. There are nine 14 mil diameter via holes distributed symmetrically in the ground pad under the package. See also the CC2420 EM reference design.

40.1 Package thermal properties

Thermal resistance

Air velocity [m/s] 0

Rth,j-a [K/W] 25.6

40.2 Soldering information

Recommended soldering profile is according to IPC/JEDEC J-STD-020C.

CC2420

SWRS041B Page 85 of 89

40.3 Plastic tube specification

QLP 7x7mm antistatic tube.

Tube Specification

Package Tube Width Tube Height Tube Length Units per Tube

QLP 48 8.5 ± 0.2 mm 2.2 +0.2/-0.1 mm 315 ± 1.25 mm 43

40.4 Carrier tape and reel specification

Carrier tape and reel is in accordance with EIA Specification 481.

Tape and Reel Specification

Package Tape Width Component Pitch

Hole Pitch

Reel Diameter

Units per Reel

QLP 48 16 mm 12 mm 4 mm 13 inch 4000

41 Ordering Information

Chipcon Part Number

TI Part Number Description Minimum Order Quantity (MOQ)

CC2420-RTB1 CC2420RTC Single-chip RF Transceiver. CC2420, QLP48 package, RoHS compliant Pb-free assembly in tubes with 43 pcs per tube.

43 (tube)

CC2420-RTR1 CC2420RTCR Single-chip RF Transceiver.. CC2420, QLP48 package, RoHS compliant Pb-free assembly, T&R with 4000 pcs per reel.

4000 (tape and reel)

CC2420Z-RTB1 CC2420ZRTC Single-chip RF Transceiver including royalty for using TI’s ZigBee Software Stack, Z-Stack™, in an end product. CC2420, QLP48 package, RoHS compliant Pb-free assembly in tubes with 43 pcs per tube.

43 (tube)

CC2420Z-RTR1 CC2420ZRTCR Single-chip RF Transceiver including royalty for using TI’s ZigBee Software Stack, Z-Stack™, in an end product. CC2420, QLP48 package, RoHS compliant Pb-free assembly, T&R with 4000 pcs per reel

4000 (tape and reel)

CC2420ZDK CC2420ZDK CC2420ZDK ZigBee Development Kit 1

CC2420ZDK-Pro CC2420ZDK-Pro CC2420ZDK-Pro ZigBee Development Kit Pro 1

CC2420DBK CC2420DBK CC2420DBK Demonstration Board Kit 1

CC2420DK CC2420DK CC2420DK Development Kit 1

CC2420EMK CC2420EMK CC2420DBK Evaluation Module Kit 1

CC2420

SWRS041B Page 86 of 89

42 General Information

42.1 Document History

Revision Date Description/Changes

SWRS041b

2007-03-19 Slightly changed optimum load impedance on Page 9 and 19 to better describe the Application circuit.

SWRS041a

2006-12-18 Updated ordering information. Updated address information. Typical data latency changed from 2 to 3 us. Updates reflecting the programmable polarity of FIFO, FIFOP, SFD and CCA pins. Clarification relating to VREG_EN as digital input. BATT_OK changed to BATTMON_OK for consistency. MANFIDH.VERSION register, reset value changed to ”current version is 3”. Added reset values for several registers. Some typographical changes. Removed Chipcon specific Disclaimer, Trademarks and Life Support Policy sections.

SWRS041

(1.4)

2006-04-06 Ordering part number changed from CC2420-RTB2 and CC2420-RTR2 to CC2420Z-RTB1 and CC2420Z-RTR1 respectively.

1.3 2005-10-03 Important: New recommended setting for RXBPF_LOCUR in RXCTRL1 (0x17) use 1 instead of reset value 0. Updated address information. Added new balun circuit with transmission lines in section Application Circuit. Updated electrical specifications with measured data on CC2420 EM with new balun.Updated values and figure for suggested application circuit with folded dipole antenna. Corrected values for capacitors in Table 2, discrete balun. Added data latency figure in receiver specification. Updated crystal oscillator start up time. Updated PLL loop filter bandwidth. Updated adjacent channel rejection figures. Updated current consumption for RX mode. Typographical errors corrected in text and figures. Removed comment about tuning capacitor for crystal oscillator. Added statement that RAM access shall not be used for FIFO access. Added more details about RSSI. Clarified the interpretation of a programmed synchronisation word. Updated purchasing information. Updated soldering standard. Added chapter numbering and split table for electrical specifications for readability. Gathered and added information related to pin configurations in section 13. Included TX_UNDERFLOW and RX_UNDERFLOW in state diagram. Disclaimer updated to include Z-stack TM information. Product status changed to “Full Production”.

CC2420

SWRS041B Page 87 of 89

Revision Date Description/Changes

1.2 2004-06-09 Output power range: 24 dB (was 40 dB). Deleted option for single ended external PA. Adjacent channel rejection corrected to 46 dB for + 5MHz (was 39 dB), 39 dB for –5 MHz (was 46 dB) 58 dB for +10 MHz (was 53 dB) and 55 dB for-10 MHz (was 57 dB). “image channel” deleted in text for In band spurious reception. Revision for reference [1] updated. CSMA-CA added to abbreviations. Schematic view of the IEEE 802.15.4 Frame Format corrected, address field 0 to 20 bits. Changed blocking specifications to relate to EN 300 440 class 2. Updated addresses for Chipcon offices. Added section Operating Conditions. Section RAM access: A6:0 (LSB). IOCFG0.BCN_ACCEPT bit added and described in section Address recognition and the IOCFG0 register. The previous IDLE mode has been renamed to power down to be consistent with other Chipcon data sheets. Three power modes defined: Voltage regulator off (OFF), Power down (PD) (Voltage regulator enabled), IDLE (XOSC running) and used throughout the document. Default TXMIXBUF_CUR[1:0] in table for TXCTRL set to 2. Added information: compliance with EN 300 328 og EN 300 440 (Class 2). Added more information about FIFOP in section Receive mode. Removed text about SO programmable pull up from entire document. In Voltage regulator section of Electrical Specifications: voltage regulator may only supply CC2420. MANFIDH.VERSION register, changed to ”current version is 2”. Included package height in package drawing. Included layout drawing for package. Power supply pins defined clearer in Absolute maximum ratings. Third harmonic level corrected to –51dBm in Electrical specifications, second harmonic to –37dBm. Table with Crystal oscillator component values corrected. Link to reference [3] corrected. Corrected spelling grammar and references to tables and figures. Figure showing SmartRF Studio user interface included. Added figure to describe pin activity during RXFIFO read out. Added description on how to connect pins when not using internal regulator.

1.1 2004-03-22 Application circuits: Pin 20 and pin 37 connected to 1.8 V from VREG_OUT. IOCFG0.SO_PULLUP deleted. Added document history table.

1.0 2003-11-17 Initial release.

42.2 Product Status Definitions

Data Sheet Identification Product Status Definition

Advance Information Planned or Under Development

This data sheet contains the design specifications for product development. Specifications may change in any manner without notice.

Preliminary Engineering Samples and First Production

This data sheet contains preliminary data, and supplementary data will be published at a later date. Chipcon reserves the right to make changes at any time without notice in order to improve design and supply the best possible product.

No Identification Noted Full Production This data sheet contains the final specifications. Chipcon reserves the right to make changes at any time without notice in order to improve design and supply the best possible product.

Obsolete Not In Production This data sheet contains specifications on a product that has been discontinued by Chipcon. The data sheet is printed for reference information only.

CC2420

SWRS041B Page 88 of 89

43 Address Information

Texas Instruments Norway AS Gaustadalléen 21 N-0349 Oslo NORWAY Tel: +47 22 95 85 44 Fax: +47 22 95 85 46 Web site: http://www.ti.com/lpwrf

44 TI Worldwide Technical Support

Internet

TI Semiconductor Product Information Center Home Page: support.ti.com TI Semiconductor KnowledgeBase Home Page: support.ti.com/sc/knowledgebase

Product Information Centers

Americas

Phone: +1(972) 644-5580 Fax: +1(972) 927-6377 Internet/Email: support.ti.com/sc/pic/americas.htm

Europe, Middle East and Africa

Phone: Belgium (English) +32 (0) 27 45 54 32 Finland (English) +358 (0) 9 25173948 France +33 (0) 1 30 70 11 64 Germany +49 (0) 8161 80 33 11 Israel (English) 180 949 0107 Italy 800 79 11 37 Netherlands (English) +31 (0) 546 87 95 45 Russia +7 (0) 95 363 4824 Spain +34 902 35 40 28 Sweden (English) +46 (0) 8587 555 22 United Kingdom +44 (0) 1604 66 33 99 Fax: +49 (0) 8161 80 2045 Internet: support.ti.com/sc/pic/euro.htm

Japan

Fax International +81-3-3344-5317 Domestic 0120-81-0036 Internet/Email International support.ti.com/sc/pic/japan.htm Domestic www.tij.co.jp/pic

CC2420

SWRS041B Page 89 of 89

Asia

Phone International +886-2-23786800 Domestic Toll-Free Number

Australia 1-800-999-084 China 800-820-8682 Hong Kong 800-96-5941 India +91-80-51381665 (Toll) Indonesia 001-803-8861-1006 Korea 080-551-2804 Malaysia 1-800-80-3973 New Zealand 0800-446-934 Philippines 1-800-765-7404 Singapore 800-886-1028 Taiwan 0800-006800 Thailand 001-800-886-0010

Fax +886-2-2378-6808 Email [email protected] or [email protected] Internet support.ti.com/sc/pic/asia.htm

© 2007, Texas Instruments. All rights reserved.

IMPORTANT NOTICE

Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, modifications, enhancements,improvements, and other changes to its products and services at any time and to discontinue any product or service without notice.Customers should obtain the latest relevant information before placing orders and should verify that such information is current andcomplete. All products are sold subject to TI’s terms and conditions of sale supplied at the time of order acknowledgment.

TI warrants performance of its hardware products to the specifications applicable at the time of sale in accordance with TI’sstandard warranty. Testing and other quality control techniques are used to the extent TI deems necessary to support thiswarranty. Except where mandated by government requirements, testing of all parameters of each product is not necessarilyperformed.

TI assumes no liability for applications assistance or customer product design. Customers are responsible for their products andapplications using TI components. To minimize the risks associated with customer products and applications, customers shouldprovide adequate design and operating safeguards.

TI does not warrant or represent that any license, either express or implied, is granted under any TI patent right, copyright, maskwork right, or other TI intellectual property right relating to any combination, machine, or process in which TI products or servicesare used. Information published by TI regarding third-party products or services does not constitute a license from TI to use suchproducts or services or a warranty or endorsement thereof. Use of such information may require a license from a third party underthe patents or other intellectual property of the third party, or a license from TI under the patents or other intellectual property of TI.

Reproduction of information in TI data books or data sheets is permissible only if reproduction is without alteration and isaccompanied by all associated warranties, conditions, limitations, and notices. Reproduction of this information with alteration is anunfair and deceptive business practice. TI is not responsible or liable for such altered documentation.

Resale of TI products or services with statements different from or beyond the parameters stated by TI for that product or servicevoids all express and any implied warranties for the associated TI product or service and is an unfair and deceptive businesspractice. TI is not responsible or liable for any such statements.

TI products are not authorized for use in safety-critical applications (such as life support) where a failure of the TI product wouldreasonably be expected to cause severe personal injury or death, unless officers of the parties have executed an agreementspecifically governing such use. Buyers represent that they have all necessary expertise in the safety and regulatory ramificationsof their applications, and acknowledge and agree that they are solely responsible for all legal, regulatory and safety-relatedrequirements concerning their products and any use of TI products in such safety-critical applications, notwithstanding anyapplications-related information or support that may be provided by TI. Further, Buyers must fully indemnify TI and itsrepresentatives against any damages arising out of the use of TI products in such safety-critical applications.

TI products are neither designed nor intended for use in military/aerospace applications or environments unless the TI products arespecifically designated by TI as military-grade or "enhanced plastic." Only products designated by TI as military-grade meet militaryspecifications. Buyers acknowledge and agree that any such use of TI products which TI has not designated as military-grade issolely at the Buyer's risk, and that they are solely responsible for compliance with all legal and regulatory requirements inconnection with such use.

TI products are neither designed nor intended for use in automotive applications or environments unless the specific TI productsare designated by TI as compliant with ISO/TS 16949 requirements. Buyers acknowledge and agree that, if they use anynon-designated products in automotive applications, TI will not be responsible for any failure to meet such requirements.

Following are URLs where you can obtain information on other Texas Instruments products and application solutions:

Products Applications

Amplifiers amplifier.ti.com Audio www.ti.com/audio

Data Converters dataconverter.ti.com Automotive www.ti.com/automotive

DSP dsp.ti.com Broadband www.ti.com/broadband

Interface interface.ti.com Digital Control www.ti.com/digitalcontrol

Logic logic.ti.com Military www.ti.com/military

Power Mgmt power.ti.com Optical Networking www.ti.com/opticalnetwork

Microcontrollers microcontroller.ti.com Security www.ti.com/security

RFID www.ti-rfid.com Telephony www.ti.com/telephony

Low Power www.ti.com/lpw Video & Imaging www.ti.com/videoWireless

Wireless www.ti.com/wireless

Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265Copyright © 2007, Texas Instruments Incorporated