Вы находитесь на странице: 1из 8

Application Report

SLAA325A – July 2006 – Revised January 2010

MSP430 Interface to CC1100/2500 Code Library


Keith Quiring, William Goh ..................................................................................... MSP430 Applications

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

2 2Purpose and Scope


Цель и объем
Чтобы облегчить
To aid in interfacing взаимодействие
these devices, TI этих
hasустройств,
produced a создала
TIcode библиотеку
library кода,the
that eliminates которая избавляет
need to write от
необходимости писать низкоуровневые интерфейсные функции. Это дает толчок
low-level interface functions. It provides a boost in the development of an MSP430/CCxxxx-based product, в разработке продукта на
базе MSP430 / CCxxxx,экономия времени и возможность быстрого перехода
saving time and allowing quick progression to the application-specific aspects of the project. к конкретным аспектам
проекта.Эта библиотека предназначена для использования с любым устройством MSP430. Поскольку
This library
мастер SPI is designed
может бытьtoреализован
be used with any MSP430 device.
с использованием Since
одного из aмногих
SPI master can be implemented
периферийных устройств в
using one of
семействе many peripherals
MSP430, и поскольку within the MSP430
доступные family, and since
периферийные the peripherals
устройства available may
могут отличаться differ by и
наустройства
device and application,
приложения, для каждого library calls интерфейсов
из этих are provided for each of these interfaces.
предусмотрены The chosenВыбранный
вызовы библиотеки. interface is
selected by выбирается
интерфейс assigning a valueпутемtoприсвоения
a system variable,
значенияwhich causes the
системной compiler toчто
переменной, conditionally
заставляет include the
компилятор
appropriate function calls. As such, application code utilizing the library remains
условно включать соответствующие вызовы функций. Таким образом, код приложения, использующий portable between various
MSP430 devices,
библиотеку, with переносимым
остается minimal modification
междуrequired.
различными устройствами MSP430 с минимальными
изменениями.Полный
A complete example project is provided with the library. Theвместе
пример проекта предоставляется purpose с библиотекой.
of this project Цель этого проекта
is to demonstrate use-
продемонстрировать использование библиотеки. Он не является исчерпывающим
of the library. It is not intended as a comprehensive guide to using the CC1100/CC2500, and it does not руководством по
использованию
make use of all the CC1100 / CC2500
features of theseи не использует
devices. It does,все функции
however, useэтих устройств.
all the Однакоfunctions
register access он использует все
функции
provided доступа к регистрам, предоставляемые библиотекой.
by the library.

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.

Table 1. Hardware Definition Files


Filename Description
TI_CC_CC1100-CC2500.h Определения, относящиеся к устройствам
Definitions specific to the CC1100/2500 devices, CC1100 / 2500,
including включая
register местоположения
locations and регистров и
часто используемые
commonly-used masksмаски дляwith
for use использования с этими регистрами.
these registers.
TI_CC_MSP430.h Определения, относящиеся
Definitions specific к устройству
to the MSP430 MSP430; the
device; primarily, в первую очередь,
pins used in the контакты, используемые в
SPI interface.
интерфейсе SPI.
Definitions for Включены
USART0/1, определения USCI_B0/1/2/3,
USCI_A0/1/2/3, для USART0 / 1, USCI_A0
USI, / 1/2/3, USCI_B0
and bit-banging are / 1/2/3, USI и
передачи битов.
included. Also, Кроме
labels areтого, метки
defined for определены для использования
use with the system с системной
variable RF_SER_INTF. переменной
This
RF_SER_INTF. Это выбирает
selects the modules to be usedмодули, которые
for the CCxxxx будут
SPI использоваться для интерфейса CCxxxx SPI.
interface.
TI_CC_hardware_board.h Определения, характерные
Definitions specific дляbeing
to the board используемой
used; that платы; то есть соединения
is, the connections between theмежду MSP430 и CC1100 /
MSP430
2500, такие как контакты
and CC1100/2500, GDO.
such as Соединения
the GDO SPI
pins. SPI здесь не определены,
connections потому
are not defined что они изначально
here because
определены в TI_CC_MSP430.h.
they are defined Этот файл определяет
inherently within TI_CC_MSP430.h. подключения
This file к общей to
defines connections плате.
a
generic board.
TI_CC_hardware_board_EXP4618.h Определения аналогичны
Definitions similar except за
TI_CC_hardware_board.h,
to TI_CC_hardware_board.h theисключением того, что
ports are configured порты настроены
specifically
специально для экспериментальной
for the MSP430F4618 платы MSP430F4618.
Experimenter Board.
TI_CC_hardware_board_EXP5438.h Definitions similar to TI_CC_hardware_board.h except the ports are configured specifically
for the MSP430F5438 Experimenter Board.
TI_CC_hardware_board_eZ430.h Definitions similar to TI_CC_hardware_board.h except the ports are configured specifically
for the eZ430-RF2500 kit.

Table 2. Library Code


Filename Description
TI_CC_spi.c Functions for accessing CC1100/CC2500 registers via SPI from MSP430.
TI_CC_spi.h Function declarations for TI_CC_spi.c.

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

Table 3. Application Included With the Library


Filename Description
CC1100-CC2500.c Functions for programming the CC1100/CC2500, including calls for initialization, send, packet, and
receive packet.
CC1100-CC2500.h Function declarations for CC1100-CC2500.c.
include.h High-level include file that lists all other include files.
main.c Application code file
main_EXP4618.c Application code file written specifically for the MSP430F4618 Experimenter Board
main_EXP5438.c Application code file written specifically for the MSP430F5438 Experimenter Board
main_eZ430_RF.c Application code file written specifically for the eZ430-RF2500 kit

На рисунке
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

TI_CC_spi.c SPI Library

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

Figure 1. Code Library Stack

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.

Table 4. Register Access Functions Provided by the Library


Function Name Description
void TI_CC_SPISetup(void) Настраивает
Configures theпорт port назначенный
SPISPI, assigned by theсистемной переменной
RF_SER_INTF systemRF_SER_INTF.
variable. Must
Должен
be calledвызываться перед
before calling вызовом
any of любой
the other другой функции.
functions.
void TI_CC_power_up_reset_CCxxxx(void) Реализует
Implementsпоследовательность запуска
the reset startup sequence сброса, рекомендованную
recommended таблицей
by the CC1100/CC2500
данных CC1100
datasheet, / CC2500,
including включая
transmission передачу
of the строба команды
SRES command ShouldДолжен
strobe. SRES. be
вызываться послеto
called after power включения и выключения
the CC1100/CC2500 питания CC1100 / CC2500.
is cycled.
void TI_CC_SPIWriteReg(char addr, char Записывает
Writes a byteбайтовое значение
value to the registerвat
регистр
locationпоaddr.
адресу местоположения
value)
void TI_CC_SPIWriteBurstReg Записывает
Writes значения в несколько
values to multiple регистров
configuration конфигурации,
registers, первыйbeing
the first register регистр
at
(char addr, char *buffer, char count) находится по адресу
address addr. The firstПервый
addr. data byteбайт данных
is at buffer, находится
and both addrв буфере, и адрес,
and buffer are и
буферincremented
последовательно увеличиваются
sequentially (в пределах CC1100
(within the CC1100/CC2500 / CC2500 и MSP430
and MSP430,
соответственно)
respectively)доuntil
техcount
пор, пока
writesнеhave
будут выполнены
been performed. записи счетчика.
char TI_CC_SPIReadReg(char addr) Считывает
Readsодин регистрconfiguration
a single конфигурацииregister
по адресу
at addr и возвращает
address addr andпрочитанное значение.
returns the value read.
void TI_CC_SPIReadBurstReg Читает
Readsнесколько регистров конфигурации,
multiple configuration первый
registers, the first регистр
register beingнаходится
at address по
addr.
(char addr, char *buffer, char count) адресу Считанные
addr. read
The values значения
are deposited сохраняются
sequentially, последовательно,
starting начиная
at address buffer, until с
адресного буфера,
count registers до been
have тех пор, пока счетные регистры не будут прочитаны.
read.
char TI_CC_SPIReadStatus(char addr) Специальная функция
Special чтенияfor
read function для получения
obtaining значения
the value регистров
of status состояния.
registers. Reads status
Считывает регистр
register состояния
at address addrпоand
адресу theи value
addr
returns возвращает
read. прочитанное значение.
void TI_CC_SPIStrobe(char strobe) Специальная функцияfor
Special write function записи дляcommand
signaling сигнализации командных
strobes. Writes toстробов.
the strobe
Записывает в регистр
register located строба,
at address расположенный по адресу addr.
addr.

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.1 Support for 5xx Devices


5xx family of devices uses a slight variation of register names compared to its previous generations. To
support these new register names, a custom line has to be added inside TI_CC_hardware_board_xxx.h
file.
#define TI_5xx // Using a 5xx device

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

5.1 Demo Project Hardware Configuration


Демонстрационное приложение простое: нажатие переключателя на одной плате вызывает
The demo application is simple: pressing a switch on one board causes a corresponding LED on another
переключение соответствующего светодиода на другой плате. Приложение поддерживает до
board to toggle. The application supports up to four sets of LEDs and switches, located on pins identified
четырех наборов светодиодов и переключателей, расположенных на контактах, указанных в
within TI_CC_hardware_board.h.
TI_CC_hardware_board.h.Демонстрационное приложение можно использовать с любой из
стандартных несущих
The demo application can частот,
be usedподдерживаемых
with any of the standard
CC1100carrier Частота
frequencies
/ CC2500. выбирается
supported by
системной
CC1100/CC2500.переменной
The frequency is selectedвby
TI_CC_RF_FREQ the system variable
CC1100-CC2500.c. Конфигурация
TI_CC_RF_FREQ, файлов описания
within
оборудования
CC1100-CC2500.c. в библиотеке, распространяемая TI, предназначена для платы с MSP430F1612 /
'F5438 /' FG4618. На каждой плате есть светодиоды и переключатели, где каждый переключатель
The configuration of the hardware definition files in the library as distributed by TI is for an MSP430F1612
переключается.соответствует
/ 'F5438 / 'FG4618 equipped board.пакетной
Each board передаче.
has LEDsНа каждой
and плате
switches контакты
where each switch от MSP430
SPItoggle
подключены к CC1100 / CC2500. Системная переменная TI_CC_RF_SER_INTF, определенная
corresponds to a packet transmission. On each board, the SPI pins from the MSP430 are wired to the в
TI_CC_hardware_board.h,идентифицирует это как подключенный порт, и поэтому
CC1100/CC2500. The system variable TI_CC_RF_SER_INTF, defined within TI_CC_hardware_board.h, компилятор
использует
identifies thisкод, поддерживающий
as the connected port, этот интерфейс.Демонстрационное
and therefore the compiler uses the code приложение
that supportsиспользует
this interface.
вывод GDO0 на CC1100 / CC2500, настраивая его на вывод при получении
The demo application makes use of the GDO0 output on the CC1100/CC2500, configuring пакета.Распиновка
it to output
периферийных
when a packet isустройств может незначительно отличаться между отдельными устройствами и
being received.
семействами MSP430. По этой причине TI_CC_MSP430.h идентифицирует контакты, которые
соответствуют
Peripheral pinouts периферийному
can change slightlyустройству для любого
between individual данного
MSP430 устройства.
devices and families. For this reason
TI_CC_MSP430.h identifies the pins which correspond to a peripheral for any given device.

5.2 Support for MSP430 Development Tools


В This
этомapplication
отчете по применению
report представлена
provides support поддержка
for various MSP430 различных
developmentкомплектов разработки
kits. Each MSP430
experimenter's board has a connector designed to support the CC1100/CC2500 Evaluationдля
MSP430. Каждая плата экспериментатора MSP430 имеет разъем, предназначенный поддержки
Module
оценочного модуля CC1100 / CC2500 (EVM). Для поддержки этой доски необходимо добавить
(EVM). Several files and comments must be implemented to allow this board support. The included files
несколько
allow oneфайлов и комментариев.
to quickly Включенныеkitфайлы
use a MSP430 development позволяют
with the быстро
CC1100/CC2500 использовать
library комплект
as an example of
разработчика
which pins areMSP430
connectedс библиотекой CC1100and
to the radio, buttons, LEDs. в качестве примера того, какие контакты
/ CC2500
подключены к радио, кнопкам и светодиодам. К любому данному устройству.
5.2.1 MSP430F5438 Experimenter Board
The following instructions should be used for the MSP430F5438 Experimenter Board with a
CC1100/CC2500 Evaluation Module (EVM).
Required files:
main_EXP5438.c (Do not include any other main.c files)
TI_CC_hardware_board_EXP5438.h
Modify files:
Open include.h file
Uncomment "#include "TI_CC_hardware_board_EXP5438.h"
Comment the rest of the TI_CC_hardware_board_xxx.h"

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

5.2.2 MSP430FG4618 Experimenters Board


The following instructions should be used for the MSP430F4618 Experimenters Board with a
CC1100/CC2500 Evaluation Module (EVM).
Required files:
main_EXP4618.c (Do not include any other main.c files)
TI_CC_hardware_board_EXP4618.h
Modify files:
Open include.h file
Uncomment "#include "TI_CC_hardware_board_EXP4618.h"
Comment the rest of the TI_CC_hardware_board_xxx.h"

5.2.3 eZ430-RF2500 Development Kit


Следующие инструкции
The following следует
instructions использовать
should be для радиомодуля
used for the eZ430-RF2500 eZ430-RF2500
Development Development
Kit CC2500 radio. KitCC2500.
Required files:
Необходимые файлы:
main_eZ430_RF.c(не
main_eZ430_RF.c включать
(Do другие
not include файлы
any other main.c files)
main.c)
TI_CC_hardware_board_eZ430.h
TI_CC_hardware_board_eZ430.h
Modify files:
Изменить файлы:Откройте файл include.h
Раскомментируйте
Open include.h file
"#include TI_CC_hardware_board_eZ430.h"
Прокомментируйте остальную
Uncomment "#include часть TI_CC_hardware_board_xxx.h
TI_CC_hardware_board_eZ430.h"
Comment the rest of the TI_CC_hardware_board_xxx.h"

5.3 Adapting the Demo Project to Other Hardware


Процедура адаптации
The procedure этогоthis
for adapting кода к другому
code to otherоборудованию
hardware is as следующая:
follows:
• Измените имя файла в ссылке на файл #include в верхней части TI_CC_MSP430.h (обычно в формате
• Edit the filename in the #include file reference at the top of TI_CC_MSP430.h (usually of format
msp430xxxxx.h), указав файл из числа стандартных включаемых файлов TI, поставляемых с компилятором,
msp430xxxxx.h), referencing a file from among the standard TI include files provided with the compiler,
специфичных для используемого устройства MSP430.
specific to the MSP430 device being used.
• Отредактируйте назначения контактов в TI_CC_MSP430.h для используемых интерфейсных модулей.
• Edit the pin assignments
Нет необходимости изменять within TI_CC_MSP430.h
контакты for the interface
для интерфейсов, modules для
не выбранных being used. It is not с шиной SPI,
использования
поскольку на них не будет ссылаться библиотека. Метки, на которые есть ссылки as
necessary to modify the pins for the interfaces not selected for use with the SPI bus, they will not be
в назначениях #define,
referenced by the library. The labels being referenced in the #define
будут взяты из файла стандартного определения, указанного в верхней части TI_CC_MSP430.h. assignments will be drawn from
the standard definition
• Отредактируйте file listedконтактов
назначение at the top ofв TI_CC_MSP430.h.
TI_CC_hardware_board.h, учитывая все необходимые
соединения
• Edit theнаpin
используемой
assignments плате. В демонстрационном
in TI_CC_hardware_board.h, приложении
taking into account
GDO1 / 2 не
all the используются.
necessary
connections
Назначенные меткиon the
взятыboardизbeing
файла used. In the demo определения,
стандартного application, GDO1/2 are notв used.
указанного верхней Theчасти
assigned
labels are drawn from the standard definition file listed at the top of TI_CC_MSP430.h.
TI_CC_MSP430.h.• Присвойте правильные значения TI_CC_RF_SER_INTF в TI_CC_hardware_board.h. Ярлыки,
доступные
• Assignдляthe назначения,
proper valuesможно найти внизу TI_CC_MSP430.h.После
to TI_CC_RF_SER_INTF in TI_CC_hardware_board.h. внесения Theэтих изменений
labels available
перестройте проект
for assignment canи загрузите
be found at образ кода of
the bottom наTI_CC_MSP430.h.
две отдельные платы.Приложение должно работать, как
описано ранее.
After making these changes, rebuild the project and download the code image to two separate boards.
The application should function as described earlier.

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

5.4 Using the Library With an Application


Для
Theадаптации библиотеки
same procedure к новому
as described оборудованию
in the section aboveнеобходимо применить
should be applied in orderту
to же процедуру,
adapt the libraryчто
to и в
предыдущем разделе.Переключатели и светодиоды могут не использоваться в новом приложении,
the new hardware. The switches and LEDs may not be used in the new application, but the chip select will
ноbeвыбор микросхемы
necessary, as may будет необходим,
be the GDOn signals.как и сигналы GDOn.Функция TI_CC_SPISetup () всегда
должна вызываться после события POR в MSP430. Функция I_CC_power_up_reset_CCxxxx всегда
The function
должна TI_CC_SPISetup()
вызываться should
после события always beпитания
включения called after
наaCC1100
POR event within the MSP430.
/ CC2500.После The
этих вызовов
functionк TI_CC_power_up_reset_CCxxxx
доступ регистрам становится простым. should always be called
Синхронизация, after a power-up
генерируемая event onбыла
функциями, the
CC1100/CC2500.
уточнена в соответствии с таблицами данных CC1100 / CC2500, что позволяет минимизировать
время, затрачиваемое
After these на выполнение
calls, the access of registers доступа, с целью The
is straightforward. максимального повышения
timing generated by the functions has
энергоэффективности.
been refined according to the CC1100/CC2500 datasheets, minimizing time spent performing the access
in order to maximize power efficiency.

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

Вам также может понравиться