1ZigBee Introduction to TI wireless solutionCC2530 ZigBee Network Processor Mini Kit
2Agenda Brief introduction on ZigBee and current wireless technologies MSP430CC2530 ZigBee Network Processor IAR Embedded WorkbenchUnderstanding CC2530ZNP Mini Kit demo codeHardware Interface Example
Communication Example
Simple Project ExampleWhat is ZigBee?3
ZigBee Alliance“The ZigBee Alliance is an association of companies working together to enable reliable, cost-effective, low-power, wirelessly networked monitoring and control products based on an open global standard”Source: ZigBee Alliance homepagePromoters of the ZigBee alliance are:
What are the alternatives to ZigBee?5
Global Frequencies
Technologies Summary
Why Bluetooth®?Wireless data, audio or voice Replacement of serial cables10-100m range personal ‘bubble’ (Personal Area Network)Instant, secure, automatic connectionsLow power consumption     (AAA battery power source)Good data rates (~2Mbps throughput) Install base of 3 billion unitsWhy TI Bluetooth?Best in-class RF performance (Transmit and Receive)Dual-mode options with ANT & BluetoothAvailable with Wi-FiHighly integrated, fully certified module available to reduce cost and time to market
Why ANT?Ultra low power (ULP) enables coin cell operation for wireless sensorsDevices can operate for more than a year without rechargingIdeal for sports and fitness sensors, medical and healthcare devicesEstablished ANT+ interoperable ecosystem utilizing 2.4GHz for global deploymentInstall base of over 13 million devices (Dec’10)Why TI ANT?TI offers single-mode and dual-mode solutionsDual-mode is the first single-chip solutionFully tested ANT ecosystem solution – for both sensor and mobile handheld devicesBest in class RF performanceExcellent coexistence with other 2.4GHz devices Highly integrated, optimized hardware chipsets or fully certified modules to reduce cost, size and time to market
Why Bluetooth Low Energy (BLE)?Ultra-low power communicationFraction of the power of BluetoothEnables sensor applications to operate on a coin cell for >1 yearConsumer medical, sports and wellness applications, mobile accessoriesWhy TI BLE?TI provides both single mode and dual mode Bluetooth low energy solutionsBoth sides of the link to create a fully tested Bluetooth low energy ecosystem - from smart sensors to smart phonesLeading RF performance up to +97dB output powerExcellent coexistence with other 2.4GHz devices System on a chip integrated solution and modules available
Why Wi-Fi?Connect electronic devices to each other, to the Internet, and to wired networks – quickly and securelyMost prominent wireless connectivity technology for computers and internet Real-world performance similar to wired networksHigh data rates (>20Mbps throughput)Over 2.5B Wi-Fi units deployed in the market today; ~1 billion units/year projected starting in 2011Why TI Wi-Fi?Wi-Fi + Bluetooth in a single-chip with best-in-class coexistenceBring multi-radios to battery powered applicationsHighly integrated, fully certified modules available to reduce cost and time to marketPlatforms offered that integrate system hardware and software
Why ZigBee?Self healing (Mesh networks)Operate on battery (many years on AA batteries) Low node cost Easy to deploy (low installation cost) Support Large networks (hundreds of nodes)Intended for monitoring & control applicationsStandardized protocol (interoperability)Why TI ZigBee?With power amplifying support (cc2591) to boost the signal above 100mOne of the major promoter in the ZigBee alliance.One of the early adopters with years of accumulated experience. Wide variety of products compatible with ZigBee.
Wireless Technologies ComparisonRangeThroughput20 MbpsZigbeeWiFi<2 MbpsANTBLE/ANTRF4CEZigbeeSub-1GHz2.4GHzBluetooth<250 kbpsRF4CETechnologyBLESub-1GHzTechnologyLi-IonTypical Power Source RequiredWiFiAAABluetoothWiFi2.4GHzProprietaryBluetoothZigbeeRF4CECoin CellBLE/ANTSub-1GHz2.4GHzProprietary10,00010010Range (m)RFIDTechnology
Typical Decision ParametersHighest Data RateWLAN (Video)Bluetooth (Audio)Zigbee/802.15.4Highest Battery LifeZigbee/802.15.4 (Alkaline/Li-Ion)Bluetooth (Alkaline/Li-Ion)WLAN/UWB (Line powered/Li-Ion)Longest Range (Radio Only, not boosted)WLANZigbee802.15.4Bluetooth
Commercially deployed ZigBee
www.tizigbeedemo.com16
17
18
19
MSP430 20
Ultra-Low-Power+ High PerformanceIntegration• 14 to 113 pin devices• 1-256kB Flash/ROM• 10-/12-/16-bit ADC• 12-bit D/A, LCD Drivers, RTC, DMA• Comparators and Op Amps• Supply Voltage Supervisor & BOR• 16-bit and 8-bit timers; WDT• I2C, SPI, UART/LIN, IrDA• USB & RFPerformance16-bit RISC CPU up to 25MHz
Industry leading code density
Flexible clock system
Single-cycle register operations
16 GP 16-bit Registers
No accumulator bottleneckLow PowerIndustry’s Lowest Power
Standby <1 μ A
Includes RTC and BOR
Active 160 μA/MIPS
Fast wake-up <1 μs
Internal voltage regulator
4 Programmable voltage levels
<50 nA pin leakageEase of UseC friendly IDE and compiler
One programmer for all devices
Embedded emulation
Trace, single-stepping, in-system debug
Intelligent peripherals reduce overhead
DTC, DMA, Autoscanning A/D
Free & Low cost dev toolsMSP430 Key Application SpacesMedical and Industrial MeteringSensoring• Glucose and cholesterol meters, thermometer, EKG, heart rate monitor, pulsoximeters• Voltage, current, temperature,pressure, pH meters• Alarm system, smoke detector• Home control and automation• Wireless asset tracking• Wireless sensors• System supervisorUtility MeteringPortable Consumer• Cell phone, digital camera, MP3• Fitness monitors and sensors• Toothbrush, shaver• Remote control• Wireless keyboard and mouse• Battery charging• Energy• Water• Gas• Automated Meter Reading (AMR)• Advanced Metering Infrastructure• Heat Cost Allocation
Ultra-Low Power Is In Our DNAMultiple operating modes0.1 µA power down0.3 µA standby160 µA / MIPSInstant-on stable high-speed clock
1.8 - 3.6V single-supply operation
Zero-power BOR
<50nA pin leakage
CPU that minimizes cycles per task
Low-power intelligent peripheralsADC that automatically transfers dataTimers that consume negligible power100 nA analog comparatorsPerformance over required operating conditionsMSP430 designed for ULP from ground upPeripherals optimized to reduce power and minimize CPU usageIntelligent, low power peripherals can operate independently of CPU and let the system stay in a lower power mode longerwww.ti.com/ulp
16-bit Orthogonal RISC CPUEfficient, ultra-low power CPUC-compiler friendlyRISC architecture27 core instructions24 emulated instructions7 addressing modesConstant generatorSingle-cycle register operationsMemory-to-memoryatomic addressingBit, byte and word processing20-bit addressing on MSP430X for Flash >64KB
Ultra-Low PowerActivity ProfileExtended Ultra-Low Power standby modeMinimum active duty cycleInterrupt driven performance on-demand
MSP430 Low Power ModesOffAll Clocks Off0.1µAActiveDCO onACLK on160µACPU OffDCO onACLK on45µA<6µsLPM0LPM4RAM/SFR retained<1-6µsLPM3RTC function
LCD driver
RAM/SFR retainedStand-byDCO offACLK on1.0µASpecific values vary by device
10-bit & 12-bit ADCs200ksps+AutoscanSingleSequenceRepeat-singleRepeat-sequence Int/ext refTA SOC triggers Data Transfer Controller(DTC)DMA EnabledFast Flexible 10- and 12-bit ADCsDirectTransferControllerDataTransferController
12-bit monotonic8/12-bit voltage outputProgrammable settlingtime versus power  Int/ext referenceBinary or 2’s complimentSelf-calibrationGroup sync loadDMA enabledDAC12
~100nA operation (Comp_B)Hysteresis generator (B)Input multiplexerReference generatorLow-pass filterBattery detectInterrupt sourceTimer_A capture  Multiplexer short for sample-and-holdAnalog Comparators
USCI: Serial Communication I/FUSCI_AUART with IrDA/LIN support or SPIBaud-rate generator with auto-baud rate detectDouble buffered TX/RXUSCI_BI2C master/slave up to 400kHz or SPI
Bit clock generator
Double buffered TX/RXsQ&A31regarding to MSP430…
32CC2530 ZigBee Network Processor
Two approaches to use CC2530ZNP Basic ZigBee networking examples
Educational tool
No ZigBee Profile support
Not for ZigBee certfied products
Easy portable to other TI platforms
Porting guide to Stellaris on Wiki page
ZigBee Profile Examples
Home Automation
Smart Energy
ZigBee Certification Ready
Includes Operating System Abstraction Layer
Easy to add real-time tasks34CC2530 ZNP Mini Development KitThe PCB included a CC2530 chip on the front and MSP430F2274 on the back.The MSP430 is designed to handle the main task and CC2530 act as a slave to handle ZigBee network communication.PeripheralsAccelerometerLight SensorVoltage3 ZigBee nodes1 USB dongle and 2 battery nodes
35Wireless Utility Meter32, 64, 128 or 256KB32KB1KBLow cost, Low power, SoC2.4GHz RF TransceiverLow cost, Low powerMixed Signal Microcontroller
36
Three paths to ZigBee
38
39Flexible low-power modesPowerful 5-channel DMA engineUp to 256k of flashIR generation circuitry 102 dBm link budget

Introduction to Ti wireless solution: ZigBee

  • 1.
    1ZigBee Introduction toTI wireless solutionCC2530 ZigBee Network Processor Mini Kit
  • 2.
    2Agenda Brief introductionon ZigBee and current wireless technologies MSP430CC2530 ZigBee Network Processor IAR Embedded WorkbenchUnderstanding CC2530ZNP Mini Kit demo codeHardware Interface Example
  • 3.
  • 4.
  • 5.
    ZigBee Alliance“The ZigBeeAlliance is an association of companies working together to enable reliable, cost-effective, low-power, wirelessly networked monitoring and control products based on an open global standard”Source: ZigBee Alliance homepagePromoters of the ZigBee alliance are:
  • 6.
    What are thealternatives to ZigBee?5
  • 7.
  • 8.
  • 9.
    Why Bluetooth®?Wireless data,audio or voice Replacement of serial cables10-100m range personal ‘bubble’ (Personal Area Network)Instant, secure, automatic connectionsLow power consumption (AAA battery power source)Good data rates (~2Mbps throughput) Install base of 3 billion unitsWhy TI Bluetooth?Best in-class RF performance (Transmit and Receive)Dual-mode options with ANT & BluetoothAvailable with Wi-FiHighly integrated, fully certified module available to reduce cost and time to market
  • 10.
    Why ANT?Ultra lowpower (ULP) enables coin cell operation for wireless sensorsDevices can operate for more than a year without rechargingIdeal for sports and fitness sensors, medical and healthcare devicesEstablished ANT+ interoperable ecosystem utilizing 2.4GHz for global deploymentInstall base of over 13 million devices (Dec’10)Why TI ANT?TI offers single-mode and dual-mode solutionsDual-mode is the first single-chip solutionFully tested ANT ecosystem solution – for both sensor and mobile handheld devicesBest in class RF performanceExcellent coexistence with other 2.4GHz devices Highly integrated, optimized hardware chipsets or fully certified modules to reduce cost, size and time to market
  • 11.
    Why Bluetooth LowEnergy (BLE)?Ultra-low power communicationFraction of the power of BluetoothEnables sensor applications to operate on a coin cell for >1 yearConsumer medical, sports and wellness applications, mobile accessoriesWhy TI BLE?TI provides both single mode and dual mode Bluetooth low energy solutionsBoth sides of the link to create a fully tested Bluetooth low energy ecosystem - from smart sensors to smart phonesLeading RF performance up to +97dB output powerExcellent coexistence with other 2.4GHz devices System on a chip integrated solution and modules available
  • 12.
    Why Wi-Fi?Connect electronicdevices to each other, to the Internet, and to wired networks – quickly and securelyMost prominent wireless connectivity technology for computers and internet Real-world performance similar to wired networksHigh data rates (>20Mbps throughput)Over 2.5B Wi-Fi units deployed in the market today; ~1 billion units/year projected starting in 2011Why TI Wi-Fi?Wi-Fi + Bluetooth in a single-chip with best-in-class coexistenceBring multi-radios to battery powered applicationsHighly integrated, fully certified modules available to reduce cost and time to marketPlatforms offered that integrate system hardware and software
  • 13.
    Why ZigBee?Self healing(Mesh networks)Operate on battery (many years on AA batteries) Low node cost Easy to deploy (low installation cost) Support Large networks (hundreds of nodes)Intended for monitoring & control applicationsStandardized protocol (interoperability)Why TI ZigBee?With power amplifying support (cc2591) to boost the signal above 100mOne of the major promoter in the ZigBee alliance.One of the early adopters with years of accumulated experience. Wide variety of products compatible with ZigBee.
  • 14.
    Wireless Technologies ComparisonRangeThroughput20MbpsZigbeeWiFi<2 MbpsANTBLE/ANTRF4CEZigbeeSub-1GHz2.4GHzBluetooth<250 kbpsRF4CETechnologyBLESub-1GHzTechnologyLi-IonTypical Power Source RequiredWiFiAAABluetoothWiFi2.4GHzProprietaryBluetoothZigbeeRF4CECoin CellBLE/ANTSub-1GHz2.4GHzProprietary10,00010010Range (m)RFIDTechnology
  • 15.
    Typical Decision ParametersHighestData RateWLAN (Video)Bluetooth (Audio)Zigbee/802.15.4Highest Battery LifeZigbee/802.15.4 (Alkaline/Li-Ion)Bluetooth (Alkaline/Li-Ion)WLAN/UWB (Line powered/Li-Ion)Longest Range (Radio Only, not boosted)WLANZigbee802.15.4Bluetooth
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
    Ultra-Low-Power+ High PerformanceIntegration•14 to 113 pin devices• 1-256kB Flash/ROM• 10-/12-/16-bit ADC• 12-bit D/A, LCD Drivers, RTC, DMA• Comparators and Op Amps• Supply Voltage Supervisor & BOR• 16-bit and 8-bit timers; WDT• I2C, SPI, UART/LIN, IrDA• USB & RFPerformance16-bit RISC CPU up to 25MHz
  • 23.
  • 24.
  • 25.
  • 26.
    16 GP 16-bitRegisters
  • 27.
    No accumulator bottleneckLowPowerIndustry’s Lowest Power
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
    <50 nA pinleakageEase of UseC friendly IDE and compiler
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
    Free & Lowcost dev toolsMSP430 Key Application SpacesMedical and Industrial MeteringSensoring• Glucose and cholesterol meters, thermometer, EKG, heart rate monitor, pulsoximeters• Voltage, current, temperature,pressure, pH meters• Alarm system, smoke detector• Home control and automation• Wireless asset tracking• Wireless sensors• System supervisorUtility MeteringPortable Consumer• Cell phone, digital camera, MP3• Fitness monitors and sensors• Toothbrush, shaver• Remote control• Wireless keyboard and mouse• Battery charging• Energy• Water• Gas• Automated Meter Reading (AMR)• Advanced Metering Infrastructure• Heat Cost Allocation
  • 41.
    Ultra-Low Power IsIn Our DNAMultiple operating modes0.1 µA power down0.3 µA standby160 µA / MIPSInstant-on stable high-speed clock
  • 42.
    1.8 - 3.6Vsingle-supply operation
  • 43.
  • 44.
  • 45.
    CPU that minimizescycles per task
  • 46.
    Low-power intelligent peripheralsADCthat automatically transfers dataTimers that consume negligible power100 nA analog comparatorsPerformance over required operating conditionsMSP430 designed for ULP from ground upPeripherals optimized to reduce power and minimize CPU usageIntelligent, low power peripherals can operate independently of CPU and let the system stay in a lower power mode longerwww.ti.com/ulp
  • 47.
    16-bit Orthogonal RISCCPUEfficient, ultra-low power CPUC-compiler friendlyRISC architecture27 core instructions24 emulated instructions7 addressing modesConstant generatorSingle-cycle register operationsMemory-to-memoryatomic addressingBit, byte and word processing20-bit addressing on MSP430X for Flash >64KB
  • 48.
    Ultra-Low PowerActivity ProfileExtendedUltra-Low Power standby modeMinimum active duty cycleInterrupt driven performance on-demand
  • 49.
    MSP430 Low PowerModesOffAll Clocks Off0.1µAActiveDCO onACLK on160µACPU OffDCO onACLK on45µA<6µsLPM0LPM4RAM/SFR retained<1-6µsLPM3RTC function
  • 50.
  • 51.
    RAM/SFR retainedStand-byDCO offACLKon1.0µASpecific values vary by device
  • 52.
    10-bit & 12-bitADCs200ksps+AutoscanSingleSequenceRepeat-singleRepeat-sequence Int/ext refTA SOC triggers Data Transfer Controller(DTC)DMA EnabledFast Flexible 10- and 12-bit ADCsDirectTransferControllerDataTransferController
  • 53.
    12-bit monotonic8/12-bit voltageoutputProgrammable settlingtime versus power Int/ext referenceBinary or 2’s complimentSelf-calibrationGroup sync loadDMA enabledDAC12
  • 54.
    ~100nA operation (Comp_B)Hysteresisgenerator (B)Input multiplexerReference generatorLow-pass filterBattery detectInterrupt sourceTimer_A capture Multiplexer short for sample-and-holdAnalog Comparators
  • 55.
    USCI: Serial CommunicationI/FUSCI_AUART with IrDA/LIN support or SPIBaud-rate generator with auto-baud rate detectDouble buffered TX/RXUSCI_BI2C master/slave up to 400kHz or SPI
  • 56.
  • 57.
  • 58.
  • 59.
    Two approaches touse CC2530ZNP Basic ZigBee networking examples
  • 60.
  • 61.
  • 62.
    Not for ZigBeecertfied products
  • 63.
    Easy portable toother TI platforms
  • 64.
    Porting guide toStellaris on Wiki page
  • 65.
  • 66.
  • 67.
  • 68.
  • 69.
    Includes Operating SystemAbstraction Layer
  • 70.
    Easy to addreal-time tasks34CC2530 ZNP Mini Development KitThe PCB included a CC2530 chip on the front and MSP430F2274 on the back.The MSP430 is designed to handle the main task and CC2530 act as a slave to handle ZigBee network communication.PeripheralsAccelerometerLight SensorVoltage3 ZigBee nodes1 USB dongle and 2 battery nodes
  • 71.
    35Wireless Utility Meter32,64, 128 or 256KB32KB1KBLow cost, Low power, SoC2.4GHz RF TransceiverLow cost, Low powerMixed Signal Microcontroller
  • 72.
  • 73.
  • 74.
  • 75.
    39Flexible low-power modesPowerful5-channel DMA engineUp to 256k of flashIR generation circuitry 102 dBm link budget

Editor's Notes

  • #4 There is an alliance that was formed way back in 2003, 2004. It’s around 200-250 companies came together and they decided that they want a standard for wireless communication. Specifically they don’t want to focus on bluetooth, which is point to point with higher data rate. They want to focus focus on markets where data gets send across buildings and large area, potentially traversing multiple hops. AND everything needs to be really low power. So zigbee actually defines a mesh network protocol between devices out in the field. It’s a lot more than that, it’s not just a mesh network protocol. But the idea being that it’s not just a point to point protocol market whereas one device sending data to another device. Or streaming audios or videos. It’s is more suitable for sensor, monitoring, control type applications AND low power. Battery operated devices.
  • #6 It is important to cover the alternatives to ZigBee because in that sense, it gives you a better idea of what kind of application suits ZigBee and what not. There are some miscommunication going on in the field where, people heard zigbee and zigbee is the end-all-be-all solution. But in a lot of places mention from previous slide such as, streaming audios/video, point to point application. You don’t need the full comprehensive zigbee mesh network protocol. In those scenario, for example you just have one device reporting in, through 5 feet. Maybe those are more suitable to use 802.15MAC Layer, it’s not full zigbee. It’s just the physical and the mac component of it. So it can gets you point to point or point to multi-point communication. One of the key major buzz word for zigbee is the interoperability. That’s to say, I want my device to work with some other vendors device without us collaborating on the side. Because ZigBee is a global standard protocol, our devices can work together. And the second big buzz word is the Mesh Network. So being able to get a large network devices with redundancy in the data path from the sensor to a sink, Or point where we’re sending out data, which is usually a pc or a handheld.
  • #39 I will mention some highlight of the cc2530…
  • #40 101dBm link budget: to maximize communication range, best in class selectivity to minimize the effect of interference sources. Flexible low-power modes: to maximize longevity of battery operated device.Powerful 5-channel DMA engine: IR generation circuitry: for remote control application Up to 256k of flash for those applications that requires a little more code space.