English
Language : 

Z8FMC16100 Datasheet, PDF (273/402 Pages) Zilog, Inc. – Z8 Encore-R Motor Control Flash MCUs
Z8FMC16100 Series Flash MCU
Product Specification
251
Read Program Memory. The Read Program Memory command reads data from Program
Memory. This command is equivalent to the LDC and LDCI instructions. Data can be read
1–65536 bytes at a time (65536 bytes can be read by setting size to 0). If the device is not
in DEBUG mode or if the Read Protect option bit is enabled, this command returns FFh
for the data.
DBG ← 0Bh
DBG ← Program Memory Address[15:8]
DBG ← Program Memory Address[7:0]
DBG ← Size[15:8]
DBG ← Size[7:0]
DBG → 1-65536 data bytes
Write Data Memory. The Write Data Memory command writes data to Data Memory.
This command is equivalent to the LDE and LDEI instructions. Data can be written 1–
65536 bytes at a time (65536 bytes can be written by setting size to 0). If the device is not
in DEBUG mode or if the Read Protect option bit is enabled, the data is discarded.
DBG ← 0Ch
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
Read Data Memory. 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 0). If the device is not in
DEBUG mode, this command returns FFh for the data.
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
Read Program Memory CRC. The Read Program Memory CRC command computes and
returns the CRC (cyclic redundancy check) of Program Memory using the 16-bit CRC-
CCITT polynomial (x16 + x12 + x5 + 1). The CRC is preset to all 1s. The least-significant
bit of the data is shifted through the polynomial first. The CRC is inverted when it is trans-
mitted. If the device is not in DEBUG mode, this command returns FFFFh for the CRC
value. Unlike most other OCD Read commands, there is a delay from issuing of the com-
mand until the OCD returns the data. The OCD reads the Program Memory, calculates the
PS024604-1005
PRELIMINARY
On-Chip Debugger Commands