Adding the Echo Driver to an Application
/* the next byte arriving before
/* assuming an error and timing out
/* back to the ready state (up to 255)
*/
*/
*/
/* --- Low Voltage status -------------------
#define ECHO_LVD_ENABLE
*/
*/
0
/* Enable low voltage detection
/* 0 = Disabled
*/
*/
*/
/* 1 = Enabled
/* --- Misc -------------------------------
#define ECHO_MCU_BUS_SPEED8000000
/* In Hz
*/
#define ECHO_SWITCH_LEVEL0
/* Set active level of SWITCH o/p pin
/* 0 = Rx low, Tx high
/* 1 = Tx low, Rx high
*/
*/
*/
#define ECHO_AUTO_SWITCH 1/* if is used both bank, then can switch automatically
to both banks used after each transmit
*/
*/
/* 0 = Switching to both banks manually
/* 1 = Switching to both banks automatically */
/************************************************/
/*
/*
/*
*/
*/
*/
Properties for BANK A in MC33696
/************************************************/
/* --- Echo Bank A Enable ------------
*/
#define ECHO_BANK_A_EN
1 /* Switch if you want use Bank A in MC33696
*/
/* 0 - Bank B disable
/* 1 - Bank B enable
*/
*/
#if ECHO_BANK_A_EN == 1
/* --- Echo modulation parameters ---------
#define ECHO_MODE_VALUE ECHO_FSK
*/
/* ECHO_OOK = OOK reception
*/
*/
*/
*/
/* ECHO_FSK = FSK reception
#define ECHO_MODE_DSREF1
/* Select the data slicer reference in
/* OOK mode: 0 = fixed, 1 = adaptive
/* Can delete/ignore if using FSK
*/
#define ECHO_BAND_VALUE ECHO_F434MHz/* ECHO_F304MHz, ECHO_F315MHz,
/* ECHO_F434MHz, ECHO_F868MHz,
*/
*/
*/
/* or ECHO_F916MHz
#define ECHO_DATA_RATE 19200
/* Set Echo data rate in Hz (before
/* Manchester encoding)
*/
*/
/* --- ID and Header set up ---------------
*/
*/
43
#define ECHO_ID_LENGTH
#define ECHO_ID_VALUE
6
0xC8
/* 6 Length of ID (2,4,5,6 or 8 bits)
/* 11 ID word recognized by Echo
*/
*/
#define ECHO_HEADER_LENGTH4
#define ECHO_HEADER_VALUE0x06
/* Length of header (1,2,4,6 bits)
/* Header word recognized by Echo (must
/* not be present in Preamble/ID)
*/
*/
*/
/* These values are calculated from the Echo datasheet or supporting driver spreadsheet
#define ECHO_RXON_VALUE 2
#define ECHO_RXOFF_VALUE2
/* On time: 1->15
/* Off time: 0->7
*/
*/
Software Drivers for MC33696, Rev. 1
Freescale Semiconductor