AN2548 Freescale Semiconductor / Motorola, AN2548 Datasheet - Page 8

no-image

AN2548

Manufacturer Part Number
AN2548
Description
Serial Monitor Program for HCS12 MCUs
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2548/D
$A8 — Write_Block
$A9 — Read_Regs
$AA — Write_SP
$AB — Write_PC
$AC — Write_IY
$AD — Write_IX
8
A8/AAAA/NN/WB
256) bytes of data into the target MCU memory starting at address AAAA and ending
with address AAAA+NN. This routine assumes that accesses to the paged memory
area have been preceded by a PPAGE register access (Write_Byte 0030 = page) to
select the appropriate page. All writes are processed through an intelligent routine that
programs FLASH/EEPROM or writes to RAM or registers based on the address being
written. If any error occurs during an attempt to program a nonvolatile memory location,
an error code is transmitted before a new prompt is issued. See
details. Although this command can be executed while a user program is running, it is
not recommended because it could slow down operation of the user program.
A9/SP/PC/IY/IX/D/CCR
PC, IY, IX, D, and CCR (in that order) to the host PC. The SP value is the user
SP value, and while the monitor is active and waiting for commands, the real
SP is 9 less due to the user register stack frame. Although this command can
be executed while a user program is running, it is not recommended because
these register values change much more quickly than they could be read.
AA/SP
stack frame (–9) and writes this adjusted value to the stack pointer register. The
monitor uses stack space below the user register stack frame. When a GO or
TRACE1 command is executed, the monitor exits to the user program by
executing an RTI instruction. The monitor doesn’t move the user register
values to the new user register stack frame, so the host should rewrite all user
register values after changing the SP value and before attempting to display
current user register values. This command is not allowed when the user
program is running.
AB/PC
frame. This command is not allowed when the user program is running.
AC/IY
register stack frame. This command is not allowed when the user program is
running.
AD/IX
register stack frame. This command is not allowed when the user program is
running.
Freescale Semiconductor, Inc.
For More Information On This Product,
Serial Monitor Program for HCS12 MCUs
Writes the specified 16-bit data to the Y index register in the user
Writes the specified 16-bit data to the X index register in the user
Adjusts the specified 16-bit data to compensate for the user register
Writes the specified 16-bit data to PCH:PCL in the user register stack
Go to: www.freescale.com
(AAAA)
/WB
(AAAA+1)
Sends the current contents of user registers SP,
/.../WB
(AAAA+NN)
— Writes a series of NN+1 (1 to
Intelligent Writes
MOTOROLA
for

Related parts for AN2548