AN2616 Freescale Semiconductor / Motorola, AN2616 Datasheet - Page 15

no-image

AN2616

Manufacturer Part Number
AN2616
Description
Getting Started with HCS08 and CodeWarrior Using C
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Initial code
Connecting the
hardware
Background debug
mode (BDM)
Selecting a BDM
HCS08 serial monitor
mode
MOTOROLA
NOTE:
The new project wizard creates enough code to actually load into a board and
run/debug, the main program (main.c) being:
The preferred method of connecting the target device is via a BDM pod, but a
standard RS232 serial connection to the monitor of the HCS08 can also be
used.
The following sections discuss the BDM and HCS08 serial monitor connection.
To set up: connect the BDM pod to the PC with the appropriate cable supplied
with the pod (for example, parallel cable, USB cable), connect the BDM pod to
the target board, paying particular attention to ensure correct alignment of pin
1 of the BDM cable with the BDM connector on the board. Refer to the
appropriate BDM and board for additional help.
The BDM on the HCS08 evolved from the BDM used on the HCS12 (BDM
Version 4).
The preferred method of connecting to an S08 device for code development or
debugging is using one of the following BDM interfaces:
M68MULTILINK08 and M68MULTILINKS08 are NOT the same. The
M68MULTILINK08 is a MON08 interface for use with HC08 devices; the
M68MULTILINKS08 is a BDM pod for HCS08 that is also compatible with HC12
and HCS12.
To set up: connect the serial cable to the PC, and connect the other end to SCI1
on the target board. Refer to the appropriate board manual for additional help.
The HCS08 devices supplied with the demo and evaluation boards are pre-
programmed with the HCS08 serial monitor. Refer to Motorola application note
#include <hidef.h> /* for EnableInterrupts macro */
#include <MC9S08GB60.h> /* include peripheral declarations */
void main(void) {
}
Getting Started with HCS08 and CodeWarrior Using C
EnableInterrupts; /* enable interrupts */
/* include your code here */
for(;;) {
} /* loop forever */
Freescale Semiconductor, Inc.
__RESET_WATCHDOG(); /* kicks the dog */
For More Information On This Product,
M68MULTILINK12 (P&E BDM Multilink)
M68MULTILINKS08 (NOT the similarly named M68MULTILINK08)
P&E USB ML12 / P&E USB HCS08/HCS12 MULTILINK
P&E Cyclone Pro
Go to: www.freescale.com
Developing an Application with CodeWarrior
AN2616
15

Related parts for AN2616