Echo Driver Configuration
ECHO_SEB_DDR
Description: This defines the data direction bit for the I/O pin used to control Echo’s SEB pin.
Values:
Any I/O pin configurable as an output can be used. Use the naming convention specified
in the CodeWarrior header file.
#define ECHO_SEB_DDR PTEDD_PTEDD0
Example:
11.1.2 SPI Setup
ECHO_SPI_ADDRESS
Description: This defines the start address of the SPI control registers in the MCU’s memory map.
Values:
0x0000–0xFFFF (see MCU data sheet for actual address)
#define ECHO_SPI_ADDRESS 0x40 /* Location of SPI registers */
Example:
ECHO_SPI_CLOCK_SPEED
Description: Defines the speed of the SPI clock.
Values:
0–20000000
#define ECHO_SPI_CLOCK_SPEED 8000000 /* SPI clock speed 8MHz */
Example:
11.1.3 Timer set up
ECHO_TIMER_ADDRESS
Description: This defines the address of the timer status and control register in the MCU’s memory map.
The timers on all HCS08 MCUs have the same layout of control registers. The driver uses
this base address to access the timer and control registers.
Values:
Address in the range 0x0000 – 0xFFFF
#define ECHO_TIMER_ADDRESS 0x30 /* Location of 1st timer register */
Example:
ECHO_TIMER_CHANNEL
Description: This defines the timer channel used to output the Manchester encoded waveform to Echo.
Values:
Channel number in the range 0–15
#define ECHO_TIMER_CHANNEL 1 /* Define which timer channel to use */
Example:
Software Drivers for MC33696, Rev. 1
30
Freescale Semiconductor