AN2616 Freescale Semiconductor / Motorola, AN2616 Datasheet - Page 6

no-image

AN2616

Manufacturer Part Number
AN2616
Description
Getting Started with HCS08 and CodeWarrior Using C
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2616
HCS08 serial
monitor
BDM or monitor
mode?
Developing an Application with CodeWarrior
6
NOTE:
As the HCS08 does not have a ROM-resident monitor like the HC08, Motorola
has written a monitor; this is programmed into the HCS08 device and occupies
about 1K of FLASH memory. The monitor enables debugging of an HCS08
through one of the on-board serial modules (SCI1) and provides a seamless
integration with the CodeWarrior tools, providing almost all the functionality of
BDM, albeit slightly slower.
The HCS08 monitor is not the same as or compatible with the HC08 monitor
commonly referred to as MON08.
This application note was written with the use of a BDM pod (USB version), and
verified using the HCS08 serial monitor mode and parallel BDM. Differences in
operation between BDM and monitor mode are discussed, where appropriate.
The major advantages of using BDM over HCS08 serial monitor mode are as
follows.
This section develops a simple application which illustrates the development
process involved in using CodeWarrior.
The application uses the M68DEMO908GB60 board, and its five LEDs and four
switches. When the complete application is built, the code will:
Getting Started with HCS08 and CodeWarrior Using C
Freescale Semiconductor, Inc.
For More Information On This Product,
Background Debug Controller (BDC) — the module that controls access
to the HCS08 core
DeBuG module (DBG) — essentially a dual breakpoint controller and
8-word (16-bit) FIFO trace buffer
Only one pin of the target device is used
BDM does not use any peripherals
BDM does not use any RAM or FLASH
BDM cannot be locked out due to interrupts being disabled
BDM can operate at any processor speed
BDM can re-sync if processor speed changes during debug
Device programming times are faster
initialize peripherals
set up interrupt handler
configure a PWM waveform
turn off all LEDs
Go to: www.freescale.com
MOTOROLA

Related parts for AN2616