AN2292 Freescale Semiconductor / Motorola, AN2292 Datasheet - Page 3

no-image

AN2292

Manufacturer Part Number
AN2292
Description
8-Bit Software Development Kit
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Core-System
Infrastructure
Static Initialization
MOTOROLA
The 8-bit SDK core drivers and algorithms are intended to provide a high level
of code efficiency, comparable with pure assembly language code.
All the components of the 8-bit SDK use a C compatible interface.
This section provides an overview of the SDK components, while a
comprehensive description can be found in the 8-bit SDK M68HC08 target
documentation (see References).
The core-system infrastructure creates the fundamental infrastructure for
M68HC08 device operation and enables further integration with the 8-bit SDK
components. The provided basic development support includes:
The 8-bit SDK uses static initialization of the peripheral configuration. The
default configuration of the peripherals corresponds to the default RESET
values of the microcontroller. The default configuration is stored in the header
files of the peripheral drivers, such as “pwmdrv.h” for the PWM driver, “spidrv.h”
for the SPI driver, etc. You can modify any of the default peripheral registers
using the application-specific file “appconfig.h”. Then, the configuration bits of
the individual registers are composed according to the required setting in the
“appconfig.h”. When the configuration of the register is equal to its default
value, no code is generated and the original RESET content of the register is
preserved. Finally, the generated configuration is stored in the configuration file
“config.c” that is used during the initialization of the microcontroller. The static
initialization is depicted in
Such an approach allows the easy initialization of the on-chip peripherals using
just the application-specific file “appconfig.h”. You do not need to study the
placement and syntax of the individual bits of the configuration registers of
on-chip peripherals. Any modification of the settings can easily be done in the
application-specific file without any accidental side effects.
Freescale Semiconductor, Inc.
For More Information On This Product,
Commonly used macro definitions
Portable architecture-dependent register declaration
Generic types
A mechanism for static configuration of on-chip peripherals
Interrupt vectors
Project templates
Figure 2. Static Initialization of On-Chip Peripherals
8-Bit Software Development Kit
Go to: www.freescale.com
appconfigh
Figure
configh
configc
2.
DRIVER INIT FUNCTION
USER CONFIGURATION
DRIVER DEFAULT
CONFIGURATION
8-Bit SDK Features
AN2292
3

Related parts for AN2292