AN2548 Freescale Semiconductor / Motorola, AN2548 Datasheet - Page 5

no-image

AN2548

Manufacturer Part Number
AN2548
Description
Serial Monitor Program for HCS12 MCUs
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Run/Load Switch
Monitor Commands
MOTOROLA
It is recommended that systems using the serial monitor incorporate a run/load
switch attached to a general-purpose I/O (GPIO) pin. Definitions for GPIO uses
are located in the S12SerMonxrx.def file. They are:
The monitor recognizes 23 primitive binary commands that enable a third-party
development tool vendor to create a full-featured debug program. These
commands use 8-bit command codes optionally followed by binary address,
control, and data information, depending upon the specific command.
In the following command descriptions, a shorthand notation is used to
describe the command syntax. Each command starts with a binary command
code. A slash (/) is used to separate parts of the command in these
descriptions, but these slash characters are not sent as serial characters in
commands. Underlined parts of the command are transmitted from the host PC
to the target MCU while the portions that are not underlined are transmitted
from the target MCU to the host PC. The first two characters in each command
sequence are the 1-byte command codes and are shown as a literal
hexadecimal value such as A1. Other abbreviations used in the command
sequences are in
:
Abbreviation
Freescale Semiconductor, Inc.
EADR
For More Information On This Product,
AAAA
CCR
IDID
SwPort — defines which port the switch is connected to
Switch — defines which bit of the above port the switch is connected to
SwPullup — defines which register controls the pullup for the switch
mSwPullup — defines the switch bit position in the pullup control register
Serial Monitor Program for HCS12 MCUs
IX
IY
D
Table 1. Abbreviations Used in Command Sequences
Go to: www.freescale.com
Table
A 16-bit address
The contents of the 8-bit condition codes register
The contents of the 16-bit D register, consisting of the
The 16-bit end address for an erase or block command
The 2-byte device ID from PARTID register
The contents of the 16-bit X index register
The contents of the 16-bit Y index register
A and B accumulators
1.
Definition
Run/Load Switch
AN2548/D
5

Related parts for AN2548