AN2707 Freescale Semiconductor / Motorola, AN2707 Datasheet - Page 49

no-image

AN2707

Manufacturer Part Number
AN2707
Description
Software Drivers for Tango3 RF Transmitter and Romeo2 RF Receiver ICs
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
MOTOROLA
/*****************************************************************************************/
/*
/*****************************************************************************************/
#include <MC68HC908GZ60.h>
/* Specify start adress of SPI registers
#define ROMEO_SPI_ADDRESS
/* Set length of data field in receive data buffers
#define ROMEO_MAX_DATA_SIZE 8
/* Set Romeo reset pin
#define ROMEO_RESET
#define ROMEO_RESET_DDR
/* Set Romeo mode
#define ROMEO_MODE_VALUE
/* Set Romeo band
#define ROMEO_BAND_VALUE
/* Enable/disable Strobe osc
#define ROMEO_SOE_VALUE
/* Header word present select
#define ROMEO_HE_VALUE
/* Define ID word value
#define ROMEO_ID_VALUE
/* SPI clock speed
#define ROMEO_SPI_CLOCK_SPEED
/* Strobe Ratio value
#define ROMEO_SR_VALUE
/* Data rate
#define ROMEO_DR_VALUE
/* Mixer gain
#define ROMEO_MG_VALUE
/* MS switch
#define ROMEO_MS_VALUE
/* Phase comparator gain
#define ROMEO_PG_VALUE
/*****************************************************************************************/
/*
/*****************************************************************************************/
#define ROMEO_STROBE
#define ROMEO_STROBE_DDR
#define ROMEO_AGC
#define ROMEO_AGC_DDR
#define ROMEO_AGC_VALUE
/*These are required for use with Motorola's rf modules
#define ROMEO_ENABLELNA
#define ROMEO_ENABLELNA_DDR DDRG_DDRG2
Software Drivers for Tango3 RF Transmitter and Romeo2 RF Receiver ICs
THIS SECTION CONTAINS VALUES YOU MUST DEFINE!
These may be omitted depending on hardware setup
Freescale Semiconductor, Inc.
For More Information On This Product,
Figure 23. Example Romeo.h File
0x10
PTG_PTG0
DDRG_DDRG0
ROMEO_OOK
1
1
1
0x55
1
0
0
0
1
PTG_PTG1
DDRG_DDRG1
PTG_PTG3
DDRG_DDRG3
1
PTG_PTG2
8000000
Go to: www.freescale.com
/* 1 -> slow, OOK
/* 0 -> fast, FSK
/* #defines for STROBE pin
/* If hardwired,delete #defines
/* #defines for AGC pin
/* If hardwired,delete #defines
/* #defines for LNA pin
/* If hardwired,delete #defines
/* 0 = strobe ratio
/* 1 = strobe ratio
/* 2 = strobe ratio
/* 3 = strobe ratio
/* 0 = 1.0 - 1.4kbaud
/* 1 = 2.0 - 2.7kbaud
/* 2 = 4.0 - 5.3kbaud
/* 3 = 8.6 - 10.6kbaud
/* 0 = Normal
/* 1 = -17dB (typical)
/* 0 = to mixer output
/* 1 = to IF input
/* 0 = high gain mode
/* 1 = low gain mode
/* ROMEO_OOK = OOK reception
/* ROMEO_KSF = FSK reception
/* 0 = lower band
/* 1 = higher band
/* 0 = strobe oscillator disabled
/* 1 = strobe oscillator enabled
/* 0 = No header word used
/* 1 = Header word present
/* ID word recognised by Romeo
/* include peripheral declarations */
/* Address varies from mcu to mcu
/* Max length of data field in msg */
/* Define pin used for Reset
Adding the Romeo2 Driver to an Application
3
7
15
31
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
AN2707
49

Related parts for AN2707