Z8F160x Zilog, Z8F160x Datasheet - Page 178

no-image

Z8F160x

Manufacturer Part Number
Z8F160x
Description
Z8 Encore / Microcontrollers with Flash Memory and 10 Bit A/D Converter
Manufacturer
Zilog
Datasheet
PS017610-0404
Read Data Memory (0DH)—The Read Data Memory command reads from Data
Memory. This command is equivalent to the LDE and LDEI instructions. Data can be
read 1-65536 bytes at a time (65536 bytes can be read by setting size to zero). If the
Z8F640x family device is not in Debug mode, this command returns
Read Program Memory CRC (0EH)—The Read Program Memory CRC command
computes and returns the CRC (cyclic redundancy check) of Program Memory using
the 16-bit CRC-CCITT polynomial. If the Z8F640x family device is not in Debug
mode, this command returns
commands, there is a delay from issuing of the command until the OCD returns the
data. The OCD reads the Program Memory, calculates the CRC value, and returns the
result. The delay is a function of the Program Memory size and is approximately equal
to the system clock period multiplied by the number of bytes in the Program Memory.
Step Instruction (10H)—The Step Instruction command steps one assembly
instruction at the current Program Counter (PC) location. If the Z8F640x family
device is not in Debug mode or the Read Protect Option Bit is enabled, the OCD
ignores this command.
Stuff Instruction (11H)—The Stuff Instruction command steps one assembly
instruction and allows specification of the first byte of the instruction. The remaining
0-4 bytes of the instruction are read from Program Memory. This command is useful
for stepping over instructions where the first byte of the instruction has been
overwritten by a Breakpoint. If the Z8F640x family device is not in Debug mode or
the Read Protect Option Bit is enabled, the OCD ignores this command.
Execute Instruction (12H)—The Execute Instruction command allows sending an
entire instruction to be executed to the eZ8 CPU. This command can also step over
Breakpoints. The number of bytes to send for the instruction depends on the opcode. If
the Z8F640x family device is not in Debug mode or the Read Protect Option Bit is
enabled, this command reads and discards one byte.
DBG <-- 0DH
DBG <-- Data Memory Address[15:8]
DBG <-- Data Memory Address[7:0]
DBG <-- Size[15:8]
DBG <-- Size[7:0]
DBG --> 1-65536 data bytes
DBG <-- 0EH
DBG --> CRC[15:8]
DBG --> CRC[7:0]
DBG <-- 10H
DBG <-- 11H
DBG <-- opcode[7:0]
DBG <-- 12H
DBG <-- 1-5 byte opcode
FFFFH
Z8F640x/Z8F480x/Z8F320x/Z8F240x/Z8F160x
for the CRC value. Unlike most other OCD Read
On-Chip Debugger
FFH
Z8 Encore!
for the data.
®
160

Related parts for Z8F160x