UBI >> Contents Chapter 15 Advanced Laboratories RF link using the eZ430-RF2500 MSP430 Teaching Materials Texas Instruments Incorporated University of.

Slides:



Advertisements
Similar presentations
Chapter 6 General Purpose Input/Output
Advertisements

Chapter 9 Data Acquisition Comparator_A
Chapter 9 Data Acquisition Comparator-Based Slope ADC
Chapter 14 Communications Introduction
System Integration and Performance
UBI >> Contents Chapter 2 Software Development Tools Code Composer Essentials v3: Overview Texas Instruments Incorporated University of Beira Interior.
UBI >> Contents Chapter 7 Timers Laboratories MSP430 Teaching Materials Texas Instruments Incorporated University of Beira Interior (PT) Pedro Dinis Gaspar,
PROGRAMMABLE PERIPHERAL INTERFACE -8255
Chapter 3 Hardware Development tools
CCNA2 Module 4. Discovering and Connecting to Neighbors Enable and disable CDP Use the show cdp neighbors command Determine which neighboring devices.
CS-334: Computer Architecture
FIU Chapter 7: Input/Output Jerome Crooks Panyawat Chiamprasert
Chapter 9 Data Acquisition A/D Conversion Introduction
Performed by: Yair Sommer Rea Yeheskel Instructor: Idan Katz Cooperated with:Motorola הטכניון - מכון טכנולוגי לישראל הפקולטה להנדסת חשמל Technion - Israel.
Basic Input/Output Operations
A Framework for Patient Monitoring A. L. Praveen Aroul, William Walker, Dinesh Bhatia Department of Electrical Engineering University of Texas at Dallas.
1 Application Accessory For Cellular Phone - Final Presentation - Performed by: Omer Kamerman Avi Feldman Project instructor: Boaz Mizrachi Technion –
UBI >> Contents Chapter 12 Hardware Multiplier MSP430 Teaching Materials Texas Instruments Incorporated University of Beira Interior (PT) Pedro Dinis Gaspar,
UBI >> Contents Chapter 9 Data Acquisition Introduction MSP430 Teaching Materials Texas Instruments Incorporated University of Beira Interior (PT) Pedro.
Evolution of Microcontroller Firmware Development David Benjamin.
Protocols and the TCP/IP Suite Chapter 4. Multilayer communication. A series of layers, each built upon the one below it. The purpose of each layer is.
The 6713 DSP Starter Kit (DSK) is a low-cost platform which lets customers evaluate and develop applications for the Texas Instruments C67X DSP family.
Oppenheimer Technologies Rick King Jonathan Creekmore.
Input/Output. Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower.
RADIO + MCU + FLASH + USB Low-Power RF System-on-Chip
Wireless Sensor Monitoring Group Members: Daniel Eke (COMPE) Brian Reilly (ECE) Steven Shih (ECE) Sponsored by:
DESIGN & IMPLEMENTATION OF SMALL SCALE WIRELESS SENSOR NETWORK
UART and UART Driver B. Ramamurthy.
Multimedia & Communications ATMEL Bluetooth Background information on Bluetooth technology ATMEL implementation of Bluetooth spec.
Lab 4 ZigBee & with PICDEM Z Boards 55:088 Fall 2006.
Teachers Name : Suman Sarker Telecommunication Technology Subject Name : Microcontroller & Embedded System Subject Code : 6871 Semester : 7th Department.
Protocol Architectures. Simple Protocol Architecture Not an actual architecture, but a model for how they work Similar to “pseudocode,” used for teaching.
RoboTeam 9/1/2011 Preformed by:Costia Parfeniev, Boris Pinzur Supervised by: Kobi Kohai.
MICROPROCESSOR INPUT/OUTPUT
1 Lecture 20: I/O n I/O hardware n I/O structure n communication with controllers n device interrupts n device drivers n streams.
By : Anand Yadav. What is Zigbee?  The CC2520 is Texas Instrument’s second generation ZigBee/IEEE RF transceiver for the 2.4 GHz unlicensed.
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK
 Adviser : Dr. Lei Ying  Research Assistant: Ming Ouyang  Team Members:  Prashanth Yanamandra  Wyatt Brenneman  Taylor McKechnie  Client: ECpE.
Dr Mohamed Menacer College of Computer Science and Engineering Taibah University CE-321: Computer.
UBI >> Contents Chapter 2 Software Development tools Code Composer Essentials v3: Code Debugging Texas Instruments Incorporated University of Beira Interior.
CE Operating Systems Lecture 3 Overview of OS functions and structure.
UBI >> Contents Chapter 2 Software Development tools Code Composer Essentials v3: Creating a project Texas Instruments Incorporated University of Beira.
Accessing I/O Devices Processor Memory BUS I/O Device 1 I/O Device 2.
UBI >> Contents Lecture 14 RF link using the eZ430-RF2500 & Interrupts MSP430 Teaching Materials Texas Instruments Incorporated University of Beira Interior.
Term 2, 2011 Week 2. CONTENTS Communications devices – Modems – Network interface cards (NIC) – Wireless access point – Switches and routers Communications.
1 Chapter 4. Protocols and the TCP/IP Suite Wen-Shyang Hwang KUAS EE.
Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower than CPU.
IT3002 Computer Architecture
Lecture 7: Overview Microprocessors / microcontrollers.
DSP C5000 Chapter 10 Understanding and Programming the Host Port Interface (EHPI) Copyright © 2003 Texas Instruments. All rights reserved.
بسم الله الرحمن الرحيم MEMORY AND I/O.
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
Low Power Sensor Node Design with MSP430 + CC2520 YoonMo Yeon
SUBMITTED BY EDGEFX TEAM PORTABLE CODED WIRELESS MESSAGE COMMUNICATION BETWEEN TWO PARTIES SECRETLY WITH LCD DISPLAY.
TRANSMISSION LINE MULTIPLE FAULT DETECTION AND INDICATION TO EB
DALCON RFID IMPROVEMENT ECE 599, SPRING 2011 Brad Gasior, ECE Mike Fradkin, ECE Richard Young, ECE Sean Rinehart, ECE.
BUILDING AND IMPLEMENT A EMBEDDED WEB SERVER BASE ON TCP/IP STACK WITH A SoC PLATFORM Professor : CHI-JO WANG Name : Bui Quang Hoa (M982b211)
Chapter 6 General Purpose Input/Output
SUBMITTED BY EDGEFX TEAM
Operating Systems (CS 340 D)
UART and UART Driver B. Ramamurthy.
AT91RM9200 Boot strategies This training module describes the boot strategies on the AT91RM9200 including the internal Boot ROM and the U-Boot program.
UART and UART Driver B. Ramamurthy.
Training Module Introduction to the TB9100/P25 CG/P25 TAG Customer Service Software (CSS) Describes Release 3.95 for Trunked TB9100 and P25 TAG Release.
Chapter 15 Advanced Laboratories RF link using the eZ430-RF2500
Presentation transcript:

UBI >> Contents Chapter 15 Advanced Laboratories RF link using the eZ430-RF2500 MSP430 Teaching Materials Texas Instruments Incorporated University of Beira Interior (PT) Pedro Dinis Gaspar, António Espírito Santo, Bruno Ribeiro, Humberto Santos University of Beira Interior, Electromechanical Engineering Department Copyright 2009 Texas Instruments All Rights Reserved

UBI >> Contents 2 Copyright 2009 Texas Instruments All Rights Reserved Contents  Introduction Introduction  The application The application  The hardware The hardware  The software The software  Configuration Configuration  Algorithms Algorithms  New challenges New challenges

UBI >> Contents 3 Copyright 2009 Texas Instruments All Rights Reserved Introduction (1/3)  This laboratory demonstrates the operation of a small wireless communication application;  The purpose of this laboratory is to send and receive text messages, making use of RF links between the central unit (base unit) and the various peripheral units (remote units).  It is an integrated application, using some peripherals of the MSP430, in particular, the USCIx communication modules;  Additionally, it uses the CC2500 radio transceiver as an interface to external devices;  Even though the application is simple, it is motivating to the user because the IO console allows easy interaction with the system;

UBI >> Contents 4 Copyright 2009 Texas Instruments All Rights Reserved  This laboratory has the following objectives:  To demonstrate the importance of software organization as a fundamental part of an embedded systems project: To approach the problem using a top-down approach, applying the necessary abstraction to organize the software into functional layers.  To give an example of the management of a complex project, integrating together more than one functional module: To develop a modular structure so that several functional modules co-exist together within a single software project. Introduction (2/3)

UBI >> Contents 5 Copyright 2009 Texas Instruments All Rights Reserved Introduction (3/3)  This laboratory has the following objectives (continued):  Make use of the wireless communications capability of the MSP430, demonstrating its practical advantages;  Consolidate knowledge acquired during the previous laboratories, namely: From the MSP430 communications interfaces laboratories: –SPI mode to access the transceiver CC2500; –UART mode to interface with the IO console.

UBI >> Contents 6 Copyright 2009 Texas Instruments All Rights Reserved The application (1/4)  This laboratory establishes communications between various RF units;  The stations are identified by an ID, i.e., the address for presentation to the network. When a station wants to communicate with another station, it must use the address of the target station in the message;  The CC2500 has several ways to communicate, which determine the size of the messages exchanged;  In order to simplify the communication process, fixed- size address and data have been used (maximum message size 64 bytes). This corresponds to the size of the CC2500 FIFO.

UBI >> Contents 7 Copyright 2009 Texas Instruments All Rights Reserved The application (2/4)  CC2500 packages format:

UBI >> Contents 8 Copyright 2009 Texas Instruments All Rights Reserved The application (3/4)  This laboratory has two units with distinct functional differences:  The code differs between the two units:  One unit contains the base station functionality: Receives messages from all peripheral units; Works as a radio beacon; Sends to to all remote stations; Acknowledges messages received.  The other unit acts as a remote station.

UBI >> Contents 9 Copyright 2009 Texas Instruments All Rights Reserved The application (4/4)  Block Diagram of the Application:

UBI >> Contents 10 Copyright 2009 Texas Instruments All Rights Reserved The hardware (1/4)  The application is ready to run on the eZ430-RF2500 hardware development kit (see Chapter 3 for details). The devices used are the: CC2500 radio transceiver; MSP430F2274; RS232 interface, accessed through the USB interface, which is available for development.

UBI >> Contents 11 Copyright 2009 Texas Instruments All Rights Reserved The hardware (2/4)  The CC2500 is a radio frequency transceiver operating in the widely used ISM/SRD (Industrial-Scientific-Medical /Short-Range-Devices) 2.4 GHz frequency band;  It is a low-cost device with low power consumption, designed for consumer electronics applications.

UBI >> Contents 12 Copyright 2009 Texas Instruments All Rights Reserved The hardware (3/4)  The communications protocol uses very little data formatting. It is up to the user to define the communications protocol that best suits their application and implement their own software;  The CC2500 is a low pin-out device, because it integrates all the radio functions, except the antenna;  This device is not sufficiently independent that it can operate without the aid of a microcontroller;  When coupled to the MSP430, connection is made between: Access to internal registers: SPI interface belongs to the USCIB0 unit; Status pins: GDO0 and GDO2 (P2.6 and P2.7).

UBI >> Contents 13 Copyright 2009 Texas Instruments All Rights Reserved The hardware (4/4)  CC250 RF transceiver:

UBI >> Contents 14 Copyright 2009 Texas Instruments All Rights Reserved The software (1/5)  Internal structure:  Structured in layers: Base layer: Hardware abstraction layer. Responsible for separating the higher layers of software from the hardware; Middle SPI layer: Ensures the communication functions for the correct operation of CC2500; UART layer: Provides connection to the PC via RS232; CC2500 layer: Access and control functions controlling the CC2500 (SPI and the GPIO); Application layer: Uses the features offered by layers at a lower level to implement the tasks necessary for the correct operation of the application.

UBI >> Contents 15 Copyright 2009 Texas Instruments All Rights Reserved The software (2/5)  Software structure:

UBI >> Contents 16 Copyright 2009 Texas Instruments All Rights Reserved The software (3/5)  Each layer has different functional responsibilities:  Hardware definition layer: FileDescription TI_CC_CC1100-CC2500.hDefinitions specific to the CC1100/2500 devices (Chipcon’s/TI SmartRF Studio software can assist in generating register contents) TI_CC_MSP430.hDefinitions specific to the MSP430 device TI_CC_hardware_board.hDefinitions specific to the board (connections between MSP430 and CCxxxx)

UBI >> Contents 17 Copyright 2009 Texas Instruments All Rights Reserved The software (4/5)  SPI layer:  CC2500 layer: FileDescription TI_CC_spi.hFunction declarations for hal_spi.c TI_CC_spi.cFunctions for accessing CC1100/CC2500 registers via SPI from MSP430 FileDescription cc1100-CC2500.cInitialization of messages, transmission and reception functions. TI_CC_CC1100-CC2500.hFunction declarations for cc1100- CC2500.c

UBI >> Contents 18 Copyright 2009 Texas Instruments All Rights Reserved The software (5/5)  UART layer: FileDescription hal_uart.cInitialization of messages and transmission functions via RS232. hal_uart.hFunction declarations for hal_uart.c

UBI >> Contents 19 Copyright 2009 Texas Instruments All Rights Reserved Configuration (1/5)  Clearly defined start-up of the multiple hardware modules and the various software modules;  Important: The unit’s address needs to be changed during compilation, to allocate a unique address.

UBI >> Contents 20 Copyright 2009 Texas Instruments All Rights Reserved Configuration (2/5)  Base station code:  Two interrupt service routines (ISR) and two buffers:

UBI >> Contents 21 Copyright 2009 Texas Instruments All Rights Reserved Configuration (3/5)  Base station code: Port2 ISR: –Enabled by GDO0, which causes a L-H transition when it receives a valid Sync_Word; –H-L transition at the end of a message reception; –The contents of the received messages are sent to the IO console via the RS232 connection; The Timer_A service routine is used to send a message to check for correct reception from the remote stations (maximum of 15); The two buffers are used to hold the messages: –The transmit buffer is used to build the message for later transmission; –The receive buffer is used to hold the data read from the CC2500 FIFO when a message is received.

UBI >> Contents 22 Copyright 2009 Texas Instruments All Rights Reserved Configuration (4/5)  Remote station code:  Composed of two interrupt service routines (ISR) and two buffers:

UBI >> Contents 23 Copyright 2009 Texas Instruments All Rights Reserved Configuration (5/5)  Remote station code: Port2 ISR: –Enabled by the GDO0, which causes a L-H transition when it receives a valid Sync_Word; –H-L transition at the end of a message reception; –Received message contents to IO console (RS232). Port1 ISR: Generated when the button is pressed, sending the signal announcing the presence of the remote station; Two buffers used to hold the messages: –Transmit buffer is used to build the message for later transmission; –The receive buffer is used to hold the data read from the CC2500 FIFO after receiving a message.

UBI >> Contents 24 Copyright 2009 Texas Instruments All Rights Reserved Algorithms (1/2)  Transmission algorithm implemented by Port1 ISR:

UBI >> Contents 25 Copyright 2009 Texas Instruments All Rights Reserved Algorithms (2/2)  Reception algorithm used by the Port2 ISR in both stations:

UBI >> Contents 26 Copyright 2009 Texas Instruments All Rights Reserved New challenges  This laboratory has brought together the range of ideas and concepts taught in the CDROM. It can also be used as the basis for other and more exciting new challenges;  Using the present laboratory as a starting point, develop an application to exchange written messages between a series of stations scattered inside a room, a kind of "wireless messenger“;  The messages typed into the IO console for a particular address would be sent by wireless support to the console addressed.

UBI >> Contents 27 Copyright 2009 Texas Instruments All Rights Reserved New challenges  To achieve this objective, it is useful to define a small set of user-defined commands, such as: Address allocation at the local station; Address allocation at the remote station; Sending a message; Neighbourhood screening of possible talking partners; Among others…