English
Language : 

Z8F6421PM020SC Datasheet, PDF (219/299 Pages) Zilog, Inc. – High Performance 8-Bit Microcontrollers Z8 Encore-R 64K Series
Z8 Encore!® 64K Series
Product Specification
199
Table 100. On-Chip Debugger Commands (Continued)
Debug Command
Enabled when NOT
Command Byte in DEBUG mode?
Disabled by
Read Protect Option Bit
Write Register
08H
-
Only writes of the Flash Memory Control
registers are allowed. Additionally, only the
Mass Erase command is allowed to be
written to the Flash Control register.
Read Register
09H
-
Disabled-
Write Program Memory
0AH
-
Disabled
Read Program Memory
0BH
-
Disabled
Write Data Memory
0CH
-
Disabled
Read Data Memory
0DH
-
Disabled
Read Program Memory CRC
0EH
-
-
Reserved
0FH
-
-
Step Instruction
10H
-
Disabled
Stuff Instruction
11H
-
Disabled
Execute Instruction
12H
-
Disabled
Reserved
13H - FFH
-
-
In the following bulleted list of OCD Commands, data and commands sent from the host
to the On-Chip Debugger are identified by ’DBG ← Command/Data’. Data sent from the
On-Chip Debugger back to the host is identified by ’DBG → Data’
• Read OCD Revision (00H)—The Read OCD Revision command determines the
version of the On-Chip Debugger. If OCD commands are added, removed, or
changed, this revision number changes.
DBG ← 00H
DBG → OCDREV[15:8] (Major revision number)
DBG → OCDREV[7:0] (Minor revision number)
• Read OCD Status Register (02H)—The Read OCD Status Register command reads
the OCDSTAT register.
DBG ← 02H
DBG → OCDSTAT[7:0]
• Write OCD Control Register (04H)—The Write OCD Control Register command
writes the data that follows to the OCDCTL register. When the Read Protect Option
Bit is enabled, the DBGMODE bit (OCDCTL[7]) can only be set to 1, it cannot be
cleared to 0 and the only method of putting the device back into normal operating
mode is to reset the device.
PS019915-1005
On-Chip Debugger