Professional Documents
Culture Documents
Advanced Laboratories: RF Link Using The eZ430-RF2500 Texas Instruments Incorporated University of Beira Interior (PT)
Advanced Laboratories: RF Link Using The eZ430-RF2500 Texas Instruments Incorporated University of Beira Interior (PT)
UBI
Chapter 15
Advanced Laboratories
RF link using the eZ430-RF2500
Pedro Dinis Gaspar, António Espírito Santo, Bruno Ribeiro, Humberto Santos
University of Beira Interior, Electromechanical Engineering Department
www.msp430.ubi.pt
www.msp430.ubi.pt
Contents
UBI
Introduction
The application
The hardware
The software
Configuration
Algorithms
New challenges
RS232 Console in PC
Messages from
We Are Table#01 Remote stations to
Base station We Are Table#03 Base station
RS232 We Are Table#02
ID 0x43
Messages from Base ......
station to Remote We Are Table#n
station #3
You Are Table#03 Remote station Remote station You Are Table#n
RS232 RS232
You Are Table#03 ID 0x03 ID 0xn You Are Table#n
...... ......
You Are Table#03 You Are Table#n
CC250 RF transceiver:
Internal structure:
Structured in layers:
• Base layer: Hardware abstraction layer. Responsible for
separating the higher layers of software from the
hardware;
Software structure:
Application
CC2500
UART
SPI
Hardware Definition
CC2500 + SPI +UART
File Description
TI_CC_CC1100-CC2500.h Definitions specific to the
CC1100/2500 devices
(Chipcon’s/TI SmartRF Studio
software can assist in
generating register contents)
TI_CC_MSP430.h Definitions specific to the
MSP430 device
TI_CC_hardware_board.h Definitions specific to the board
(connections between MSP430
and CCxxxx)
Copyright 2009 Texas Instruments
>> Contents All Rights Reserved
16
www.msp430.ubi.pt
The software (4/5)
UBI
SPI layer:
File Description
TI_CC_spi.h Function declarations for hal_spi.c
TI_CC_spi.c Functions for accessing
CC1100/CC2500 registers via SPI
from MSP430
CC2500 layer:
File Description
cc1100-CC2500.c Initialization of messages,
transmission and reception
functions.
TI_CC_CC1100-CC2500.h Function declarations for cc1100-
CC2500.c
Copyright 2009 Texas Instruments
>> Contents All Rights Reserved
17
www.msp430.ubi.pt
The software (5/5)
UBI
UART layer:
File Description
hal_uart.c Initialization of messages and
transmission functions via
RS232.
hal_uart.h Function declarations for
hal_uart.c
Configure MSP430 IO
Initialize MS430 Interface
Write RF Settings to
CC2500 Enter Sleep mode 3
RX Buffer TX Buffer
Port2 Timer A
ISR ISR
UART Timer A
RS232
TX
Port2 Port1
RSI RSI
UART Keyboard
RS232 GPIO
TX Switch
Switch pressed?
Yes
Build a packet
No Send
Put CC2500 in TX state Packet
Clear flag
END
Rx Buffer have
data
Yes
Read
packet
No Read len byte from FIFO
Clear flag
END
• Sending a message;
• Among others…