Echo Driver Configuration
ECHO_TIMER_CLOCK_SOURCE
Description: This defines the clock used to control the timer.
Values:
1 = BUSCLK
2 = XCLK
3 = External clock source
#define ECHO_TIMER_CLOCK_SOURCE 1 /* Select clock source for timer */
Example:
ECHO_USE_DATACLK
Description: This defines whether DATACLK should be used by the driver. If this function is enabled
and an external clock source is also selected, the external clock source is assumed to be
DATACLK and ECHO_TIMER_CLOCK_SPEEDis overwritten with the value calculated for the
speed of DATACLK.
Values:
0 = disable DATACLK
1 = enable DATACLK
#define ECHO_USE_DATACLK 0 /* Indicate if Ext clock is DATACLK */
Example:
ECHO_TIMER_CLOCK_SPEED
Description: This defines the clock speed (in Hz) of the timer if an internal clock is chosen or if
DATACLK is not enabled.
Values:
Integer from 0 to MCU bus speed divided by four for an external clock
#define ECHO_TIMER_CLOCK_SPEED 8000000 timer clock speed in Hz */
Example:
ECHO_TIMER_PRESCALE]
Description: This defines the prescaler value of the timer used to send data to Echo. This will generally
be set to 1. If the application sets the timer prescaler, this configuration option should be
changed to reflect the selected prescaler.
Values:
See data sheet for S08 MCU.
#define ECHO_TIMER_PRESCALE 1 /* Specify timer prescaler value */
Example:
ECHO_TIMER_DISABLE
Description: This allows the driver to switch off the MCU timer when it is not required by the driver.
This can reduce power consumption; however, some applications may require that the
timer continues running. The driver will always start the timer when required.
Values:
0 = Timer remains running when not required by the driver
1= Timer is disabled when not required by the driver
#define ECHO_TIMER_DISABLE 1 /* Allows driver to turn off timer */
Example:
Software Drivers for MC33696, Rev. 1
Freescale Semiconductor
31