AN2707 Freescale Semiconductor / Motorola, AN2707 Datasheet - Page 27

no-image

AN2707

Manufacturer Part Number
AN2707
Description
Software Drivers for Tango3 RF Transmitter and Romeo2 RF Receiver ICs
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Adding the Tango3 Driver to an Application
MOTOROLA
Software Drivers for Tango3 RF Transmitter and Romeo2 RF Receiver ICs
Description:
Values:
Example:
#define TANGO_BAND_DDR
TANGO_BAND_DDR
To add the Tango3 driver to an application:
The files are now added to the project.
Figure 13
and showing the main application program file with correct entries added.
Figure 14
the TangoTimerInterrupt function call. In this example, it is linked to timer 1,
channel 0.
Figure 15
for use with an MC9S08GB60 MCU. Tango3 is configured for 434 MHz
operation with a data rate of 1 kbps. Timer 0, channel 1 is used on the MCU.
1. Add Tango.h and Tango.c files to project (in CodeWarrior, right click on
2. Add line #include ‘Tango.h’ to main application program file.
3. Add line 'extern unsigned char tangoTransmitBuffer();' to main
4. Decide which I/O pins in your application will control Tango3 functions.
5. Decide which timer channel will be used to generate data for Tango3.
6. Modify project parameter file to link timer channel to
7. Modify Tango.H file to define timer speed and other parameters.
Freescale Semiconductor, Inc.
For More Information On This Product,
sources folder, then add files).
application program file.
Modify the Tango.H file to link these pins to Tango3.
Modify the Tango.H file to link these pins to Tango3.
TangoTimerInterrupt service
is a screen shot of an application template with Tango3 files included
is a screenshot of the project parameter file showing how to include
shows an example Tango.H header file. This has been configured
Go to: www.freescale.com
This defines the data direction bit for the I/O pin used to
control Tango3's BAND pin. If BAND is not controlled by
the MCU in your system, delete this #define from the
header file.
Any I/O pin configurable as an output can be used. Use
the naming convention specified in the CodeWarrior
header files.
PTADD_PTADD2
/* DDR for PortA pin 2
Adding the Tango3 Driver to an Application
*/
AN2707
27

Related parts for AN2707