Академический Документы
Профессиональный Документы
Культура Документы
ABSTRACT
MSP430 - идеальный микроконтроллер для недорогих
The MSP430 is an ideal microcontroller solution for low-cost, беспроводных
low-powerприложений с низким because it
wireless applications
энергопотреблением, поскольку он потребляет очень мало энергии.
consumes very little power. The CC1100/CC2500 are market-leading RF devices in the -ISM
CC1100 / CC2500 ведущие
RF bands
РЧ-устройства в диапазонах ISM RF (промышленные, научные и медицинские). Эта библиотека
(Industrial, Scientific, and Medical). This library provides functions to facilitate the interfacing of an
предоставляет
MSP430 device функции
to these RFдляdevices.
облегчения
Any сопряжения
device withinустройства
the MSP430 MSP430 с этими
family can радиочастотными
be used with this library,
устройствами. С этой библиотекой можно использовать любое устройство семейства
made possible by hardware abstraction. Similarly, any SPI-capable interface module within MSP430, что
the MSP430
стало возможным благодаря аппаратной абстракции. Точно так же любой интерфейсный
family is supported by the library. This allows the designer maximum flexibility in choosing the best модуль с
поддержкой
MSP430 device в MSP430семья
SPI for поддерживается
the application. This document библиотекой. Это дает
provides descriptive разработчику
information and instructions for
максимальную
using the libraryгибкость
either forпри выборе лучшего
demonstration устройства
purposes MSP430 для
or implementation into приложения.
a project. Этот документ
содержит описательную информацию и инструкции дляиспользование библиотеки либо для
Source code discussed
демонстрационных целей,inлибо
thisдля
application
внедрения report can be downloaded
в проект.Исходный from the following
код, обсуждаемый в этом отчетеURL:о
http://www.ti.com/lit/zip/slaa325
приложении, можно загрузить по следующему URL-адресу:http://www.ti.com/lit/zip/slaa325
Contents
1 Introduction .................................................................................................................. 1
2 Purpose and Scope ......................................................................................................... 2
3 File Organization ............................................................................................................ 2
4 Functions ..................................................................................................................... 4
5 Usage Considerations ...................................................................................................... 5
List of Figures
1 Code Library Stack ......................................................................................................... 3
List of Tables
1 Hardware Definition Files .................................................................................................. 2
2 Library Code ................................................................................................................. 2
3 Application Included With the Library .................................................................................... 3
4 Register Access Functions Provided by the Library .................................................................... 4
1 Introduction
1. Введение
MSP430отлично
MSP430 is a greatподходит
fit for anyдля любого
mobile мобильного
application, where приложения, где энергосбережение
power conservation is a priority. Theявляется
many
приоритетом. Многочисленные
power-saving mechanisms механизмы
designed into the энергосбережения,
MSP430 make it ideal разработанные в MSP430,
for such applications. делают его
An emerging
идеальным для таких
mobile application приложений.
is ISM-band НовоеScientific,
(Industrial, мобильное andприложение
Medical) and- это беспроводные
SRD-band соединения
(Short Range Device)в
диапазонах ISM (промышленный, научный и медицинский) и SRD (устройства ближнего
wireless connections, in the 315/433/868/915-MHz and 2.4-GHz bands. Markets served by this application действия) в
диапазонах (Automatic MeterМГц
include AMR315/433/868/915 и 2,4 ГГц.
Reading), Рынки, telemetry,
low-power обслуживаемые этим приложением,
and wireless sensor networks. включают AMR
(автоматическое считывание показаний счетчика), маломощную телеметрию и сети беспроводных
Two market-leading
датчиков.Два devicesна
лидирующих that support
рынке this RF link
устройства, are the CC1100/CC2500
поддерживающих from Chipcon
этот РЧ-канал, (now part
- это CC1100 / of
TI). These
CC2500 от are low-cost,
Chipcon single-chip
(теперь UHF
часть TI). Этоtransceivers
недорогиеdesigned for very low-power
однокристальные wireless applications.
УВЧ-трансиверы,
The CC1100 operates
предназначенные для up to 928 MHz, приложений
беспроводных while the CC2500
с оченьoperates
низкимatэнергопотреблением.CC1100
2.4 GHz. One of these devices,работает
на частоте до 928 МГц, а CC2500 - на частоте 2,4 ГГц. Одно из этих power-efficient
paired with an MSP430 ultra-low-power microcontroller, forms a highly wireless node
устройств в сочетании с that
can transceive data at rates up to 500 kbps. The CC1100/CC2500 are
микроконтроллером со сверхнизким энергопотреблением MSP430 образует высокоэффективный each equipped with a SPI port,
through which they
беспроводной узел,can communicate
способный with an данные
передавать MSP430.со скоростью до 500 кбит / с.Каждый CC1100 /
CC2500 оснащен
This software портом
is based on SPI,через который они
the CC1100/CC2500 могут связываться
Examples and Libraries,с MSP430.Это
available fromпрограммное
the TI product
обеспечение основано
folder web pages for thoseна примерах
devices. и библиотеках CC1100 / CC2500, доступных в продукте
TI.веб-страницы папок для этих устройств.
SLAA325A – July 2006 – Revised January 2010 MSP430 Interface to CC1100/2500 Code Library 1
Submit Documentation Feedback
Copyright © 2006–2010, Texas Instruments Incorporated
Purpose and Scope www.ti.com
3 File Organization
Организация файлов
В библиотеке реализована модульная аппаратная абстракция. Существует файл заголовка, специфичный
The library has been implemented with modular hardware abstraction. There is a header file specific to
для каждогор из аппаратных компонентов (CCxxxx, MSP430 и плата). Заголовочные файлы определения
each of the hardware components (CCxxxx, MSP430, and the board).
оборудования показаны в таблице 1. В таблице 2 показан файл кода библиотеки и его заголовок, а в
таблице 3 показано
The hardware демонстрационное
definition приложение,
header files are shown in Tableприлагаемое к библиотеке.Таблица
1. Table 2 shows the library code file 1.
andФайлы
its описания
оборудования
header, and Table 3 shows the demonstration application that accompanies the library.
2 MSP430 Interface to CC1100/2500 Code Library SLAA325A – July 2006 – Revised January 2010
Submit Documentation Feedback
Copyright © 2006–2010, Texas Instruments Incorporated
www.ti.com File Organization
На рисунке
Figure 11показана
shows aстековая диаграммаofбиблиотеки.
stack diagram Обратите
the library. внимание,
Note that one ofчто
theодин
filesизdisplayed
файлов, отображаемых
in the stackв is
стеке,
the является
файлом стандартного определения для конкретного используемого устройства MSP430. Этот файл включен всреда разработки,
standard для
используемая definition file
создания for the specific
программного MSP430
обеспечения device being used. This file is included with the
MSP430.
development environment being used to create the MSP430 software.
main.c
Application
CCxxxx configuration;
tx/rx packet functions { CC1100-CC2500.c
Board
definition { TI_CC_hardware_board.h
Hardware
Chip
definition { TI_CC_MSP430.h
msp430xxxxx.h
TI_CC_CC1100-
CC2500.h
Definition
Standard MSP430
device definition file
SLAA325A – July 2006 – Revised January 2010 MSP430 Interface to CC1100/2500 Code Library 3
Submit Documentation Feedback
Copyright © 2006–2010, Texas Instruments Incorporated
Functions www.ti.com
4 Functions
Table 4 shows the SPI register-access functions provided in the library, with a brief description.
A version of these functions is provided for all MSP430 peripherals that are capable of communicating
using the SPI protocol. These peripherals are:
• USART0
• USART1
• USCI_A0
• USCI_A0 for 5xx
• USCI_A1
• USCI_A1 for 5xx
• USCI_A2 for 5xx
• USCI_A3 for 5xx
• USCI_B0
• USCI_B0 for 5xx
• USCI_B1
• USCI_B1 for 5xx
• USCI_B2 for 5xx
• USCI_B3 for 5xx
• USI
• Bit-banging (emulation) with general I/O pins
4 MSP430 Interface to CC1100/2500 Code Library SLAA325A – July 2006 – Revised January 2010
Submit Documentation Feedback
Copyright © 2006–2010, Texas Instruments Incorporated
www.ti.com Usage Considerations
5 Usage Considerations
SLAA325A – July 2006 – Revised January 2010 MSP430 Interface to CC1100/2500 Code Library 5
Submit Documentation Feedback
Copyright © 2006–2010, Texas Instruments Incorporated
Usage Considerations www.ti.com
6 MSP430 Interface to CC1100/2500 Code Library SLAA325A – July 2006 – Revised January 2010
Submit Documentation Feedback
Copyright © 2006–2010, Texas Instruments Incorporated
www.ti.com Usage Considerations
SLAA325A – July 2006 – Revised January 2010 MSP430 Interface to CC1100/2500 Code Library 7
Submit Documentation Feedback
Copyright © 2006–2010, Texas Instruments Incorporated
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 and complete. 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’s standard
warranty. Testing and other quality control techniques are used to the extent TI deems necessary to support this warranty. Except where
mandated by government requirements, testing of all parameters of each product is not necessarily performed.
TI assumes no liability for applications assistance or customer product design. Customers are responsible for their products and
applications using TI components. To minimize the risks associated with customer products and applications, customers should provide
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, mask work right,
or other TI intellectual property right relating to any combination, machine, or process in which TI products or services are used. Information
published by TI regarding third-party products or services does not constitute a license from TI to use such products or services or a
warranty or endorsement thereof. Use of such information may require a license from a third party under the 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 TI information in TI data books or data sheets is permissible only if reproduction is without alteration and is accompanied
by all associated warranties, conditions, limitations, and notices. Reproduction of this information with alteration is an unfair and deceptive
business practice. TI is not responsible or liable for such altered documentation. Information of third parties may be subject to additional
restrictions.
Resale of TI products or services with statements different from or beyond the parameters stated by TI for that product or service voids all
express and any implied warranties for the associated TI product or service and is an unfair and deceptive business practice. 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 would reasonably
be expected to cause severe personal injury or death, unless officers of the parties have executed an agreement specifically governing
such use. Buyers represent that they have all necessary expertise in the safety and regulatory ramifications of their applications, and
acknowledge and agree that they are solely responsible for all legal, regulatory and safety-related requirements concerning their products
and any use of TI products in such safety-critical applications, notwithstanding any applications-related information or support that may be
provided by TI. Further, Buyers must fully indemnify TI and its representatives 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 are
specifically designated by TI as military-grade or "enhanced plastic." Only products designated by TI as military-grade meet military
specifications. Buyers acknowledge and agree that any such use of TI products which TI has not designated as military-grade is solely at
the Buyer's risk, and that they are solely responsible for compliance with all legal and regulatory requirements in connection with such use.
TI products are neither designed nor intended for use in automotive applications or environments unless the specific TI products are
designated by TI as compliant with ISO/TS 16949 requirements. Buyers acknowledge and agree that, if they use any non-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
DLP® Products www.dlp.com Communications and www.ti.com/communications
Telecom
DSP dsp.ti.com Computers and www.ti.com/computers
Peripherals
Clocks and Timers www.ti.com/clocks Consumer Electronics www.ti.com/consumer-apps
Interface interface.ti.com Energy www.ti.com/energy
Logic logic.ti.com Industrial www.ti.com/industrial
Power Mgmt power.ti.com Medical www.ti.com/medical
Microcontrollers microcontroller.ti.com Security www.ti.com/security
RFID www.ti-rfid.com Space, Avionics & www.ti.com/space-avionics-defense
Defense
RF/IF and ZigBee® Solutions www.ti.com/lprf Video and Imaging www.ti.com/video
Wireless www.ti.com/wireless-apps
Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265
Copyright © 2010, Texas Instruments Incorporated