AN2548 Freescale Semiconductor / Motorola, AN2548 Datasheet - Page 7

no-image

AN2548

Manufacturer Part Number
AN2548
Description
Serial Monitor Program for HCS12 MCUs
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
$A3 — Read_Word
$A4 — Write_Word
$A5 — Read_Next
$A6 — Write_Next
$A7 — Read_Block
MOTOROLA
A3/AAAA/RDW — Reads a word of data from the specified 16-bit address and
sends the 16-bit data back to the host PC. 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.
A4/AAAA/WW — Writes the supplied word of data to the specified 16-bit
address. 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
A5/RDW — Pre-increments the user IX register (by 2), reads the word of data
from the address pointed to by IX, and sends the 16-bit data back to the host
PC. 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. This command is not allowed when the user program is
running. If executed during run mode, this command will return an
Command Not Allowed in Run Mode
A6/WW — Pre-increments the user IX register (by 2) and writes the supplied
word to the address pointed to by IX. 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. This command is not allowed when the user program is running. If
executed during run mode, this command will return an
Allowed in Run Mode
A7/AAAA/NN/RDB
to 256) bytes of data starting at address AAAA and returns the data one byte at a time
to the host starting with the data read from address AAAA and ending with the data
from 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. 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.
Freescale Semiconductor, Inc.
For More Information On This Product,
Serial Monitor Program for HCS12 MCUs
Go to: www.freescale.com
Intelligent Writes
(AAAA)
/RDB
error and the write data will be ignored.
(AAAA+1)
for details.
/.../RDB
error and $0000 data.
(AAAA+NN)
— Reads a series of NN+1 (1
$E2 — Command Not
Intelligent Writes
Monitor Commands
$E2 —
AN2548/D
for
7

Related parts for AN2548