AN2777 Freescale Semiconductor / Motorola, AN2777 Datasheet

no-image

AN2777

Manufacturer Part Number
AN2777
Description
Tango3 Monitor for the MC9S08RG60 MCU
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Freescale Semiconductor
Application Note
Tango3 Monitor for the
MC9S08RG60 MCU
by: John Logan
Introduction
This application note describes how to use the Tango3 Monitor program to evaluate the performance of
the MC33493 RF transmitter IC (Tango3). It shows the hardware setup required, describes how to set up
the monitor, lists all available commands, and gives some examples of usage.
The reader should be familiar with the Tango3 device data sheet and the RF data formats described in
the MC33591 RF receiver (Romeo2) data sheet.
Description
The Tango3 Monitor is a software program that runs on Freescale's MC9S08RG60 Demo Board. The
MC9S08RG60 Demo Board is connected to a Tango3 RF module, and to a PC via a serial port. The PC
runs a terminal emulation program, for example, Hyperterminal.
showing the monitor program.
program.
© Freescale Semiconductor, Inc., 2004. All rights reserved.
8/16-bit Division
East Kilbride
Figure 2
and
Figure 3
show the hardware setup required to use the monitor
Figure 1
is a screenshot of Hyperterminal
Rev. 0, 8/2004
AN2777

Related parts for AN2777

AN2777 Summary of contents

Page 1

... MC9S08RG60 Demo Board is connected to a Tango3 RF module, and via a serial port. The PC runs a terminal emulation program, for example, Hyperterminal. showing the monitor program. Figure 2 program. © Freescale Semiconductor, Inc., 2004. All rights reserved. Figure 1 and Figure 3 show the hardware setup required to use the monitor AN2777 Rev. 0, 8/2004 is a screenshot of Hyperterminal ...

Page 2

Description The pins of the Tango3 RF module can be controlled by typing simple commands into the PC. The user can also trigger transmission of data messages from Tango3 by typing them into the PC. Figure 1. Tango3 Monitor Communicating ...

Page 3

Figure 3. Close-up of MC9S08RG60 Demo Board and Tango3 RF Module Tango3 Monitor for the MC9S08RG60 MCU, Rev. 0 Freescale Semiconductor Figure 2. Tango3 Monitor Setup Description 3 ...

Page 4

... A copy of CodeWarrior is supplied with the MC9S08RG60 Demo Board. Please follow the instructions supplied with the demo board. 6. Unzip file Tango3RG60MonSource.zip (contained within AN2777SW.zip). This unzips a CodeWarrior project containing the programming file for the monitor. This project does not contain any source code. If you wish to read or modify the Tango3 monitor source code, you should unzip file Tango3RG60MonProg ...

Page 5

Programming Tango3 Monitor into the MC9S08RG60 MCU Using MC9S08RG60 Serial Monitor code, you require a full license for CodeWarrior, which can be purchased from www.metrowerks.com, or your local Freescale or MetroWerks. representative. 7. Start CodeWarrior (Start menu->MetroWerks->CodeWarrior->CodeWarrior IDE). 8. Select ...

Page 6

... A setup file (Tango3Monitor.ht) for Hyperterminal is supplied in the software package for this application note (AN2777SW.zip), which can be downloaded from www.freescale.com. Tango3 Monitor for the MC9S08RG60 MCU, Rev. 0 ...

Page 7

Figure 5. Terminal Program Configuration To start the monitor: 1. Connect the Tango3 RF Module to connector J1 on the Mc9S08RG60 Demo Board. Pin 1 on each board should be aligned. 2. Connect an antenna to the Tango3 RF module. ...

Page 8

Command List You should now see the screen shown in Demo Board. This screen shows the state of various pins that connect between theTango3 RF module and the MC9S08RG60 Demo Board. It also shows the currently selected data rate for ...

Page 9

STATUS Description: Displays the current status of Tango3 RF module pins and parameters. DATA Description: DATA allows the user to configure the DATA pin connection to Tango3. The pin can be set to an output at logic 1 or logic ...

Page 10

RF Message Formats DATARATE Description: DATARATE allows the user to set the data rate for RF transmissions. This can be set to any value with the range 500 bps to 10600 bps. DATARATE value <return> — Set data rate to ...

Page 11

Preamble Preamble The various fields in the messages are described below. Preamble — The Preamble is a fixed format field that allows Romeo to detect the start of a message. The Tango3 monitor can transmit Preambles with the correct format ...

Page 12

RF Message Formats 1 1 bit time The Tango3 monitor also can also construct RF messages without Manchester encoding using the H and L fields. Figure 9 shows an example bit time Message = 01101 Figure 9. Data ...

Page 13

Set required baud rate with data rate DATARATE 2400 <return> select OOK modulation, set the MODE pin to 0 using command MODE 0 <return> enable the Tango3 IC, set the Enable pin to 1 with ...

Page 14

RF Message Formats Figure 11. Transmitting an FSK Message Without Header Transmitting Messages With Header Field Sending a message with a header field can easily be done. Simply place the sequence '0110' in the message at the required position. For ...

Page 15

Figure 12. Transmitting Message With Header Transmitting a Continuous Logic (No Manchester Encoding) To set Tango3 to continuously output a logic 1 signal: 1. Set DATA pin to the required level using DATA command. 2. Enable Tango3 ...

Page 16

... Tango3 Monitor Source Code The Tango3 monitor was written using the C programming language. Full source code is supplied in file AN2777SW.zip, which can be downloaded from www.freescale.com. Modifying Tango3 Monitor The Tango3 monitor program has a simple structure. It has been written to allow easy porting to other MCUs ...

Page 17

Decoding of commands typed into the PC terminal program is done in the SCIRx() routine. This routine is called each time the MCU receives a character from the PC keyboard. It stores characters in a buffer until a carriage return ...

Page 18

... Learn More: For more information about Freescale Semiconductor products, please visit http://www.freescale.com AN2777 Rev. 0, 8/2004 Information in this document is provided solely to enable system and software implementers to use Freescale Semiconductor products. There are no express or implied copyright licenses granted hereunder to design or fabricate any integrated circuits or integrated circuits based on the information in this document ...

Related keywords