Configuration Items - Freescale Semiconductor DSP56800E User Manual

Hide thumbs Also See for DSP56800E:
Table of Contents

Advertisement

5.15.2.2

Configuration Items

This section summarizes the symbols used in macro definitions for the static SCI module
configuration by the driver initialization routine. Symbol x in the table should be replaced with the
number of the SCI module e.g. SCI_0_SCIBR_INIT. These symbols are intended for the
application (project) specific configuration file appconfig.h. See e.g. Example 5-523 for more
details.
SYMBOL
SCI x CHAR
SCI_ x _SCIBR_INIT
SCI_ x _SCICR_INIT
SCI_ x _SCICR2_INIT
SCI_CORE_FREQ
In addition to standard configuration values described above, the DSP56800E_Quick_Start tool
contains also SCI software interface which enables buffered operations in various configurations.
To enable this built-in software layer, the following configuration items have to be specified in
the appconfig.h file.
SYMBOL
INT_VECTOR_ADDR_yy
yy = SCI Receiver Full Interrupt
INT_VECTOR_ADDR_yy
yy = SCI Receiver Error Interrupt
INT_VECTOR_ADDR_yy
yy = SCI Transmitter Empty Interrupt
INT_PRIORITY_LEVEL_yy
yy = the three SCI interrupts as described
above
The built-in software layer can operate in two different modes, depending on the
SCI_x_HIGHLEVEL_MODE macro value. When high level layer is to be used on more than one
SCI module, the same mode must be selected for all modules.
5-646
Table 5-529. SCI Configuration Items for appconfig.h
TYPE
type name
Specifies the type of single 'character' for buffer operations. The
char or
'UWord16' is default and is backward compatible with HawkV1 imple-
UWord16
mentation. The 'char' is the optimal choice for 56F800E family as it
supports arrays or byte-wide elements.
UWord16
Initial value of the SCI Baud Rate Register.
UWord16
Initial value of the SCI Control (Control 1) Register.
UWord16
Initial value of the SCI Control 2 Register.
UWord16
This value specifies the SCI clock frequency in Hz. When this macro is
not defined, the frequency is calculated from OCCS settings. The
occs.h file should be included before the sci.h .
Table 5-530. SCI Operation Items for appconfig.h
Sci0RxFullISR,
Sci1RxFullISR
Sci0RxErrorISR,
Sci1RxErrorISR
Sci0TxEmptyISR,
Sci1TxEmptyISR
INTC_LEVEL0 |
INTC_LEVEL1 |
INTC_LEVEL2
Targeting 56F8xxx Platform
DESCRIPTION
TYPE
/ VALUE
Name of the built in interrupt service routine
implemented in SCI driver.
Name of the built in interrupt service routine
implemented in SCI driver.
Name of the built in interrupt service routine
implemented in SCI driver.
To enable the SCI interrupts, they must be
assigned a interrupt priority level.
DESCRIPTION
FREESCALE SEMICONDUCTOR

Advertisement

Table of Contents
loading

Table of Contents