English
Language : 

Z8F0830HH020SG Datasheet, PDF (163/257 Pages) Zilog, Inc. – High-Performance 8-Bit Microcontrollers
Z8 Encore!® F0830 Series
Product Specification
145
Table 95. On-Chip Debugger Command Summary (Continued)
Debug Command
Command
Byte
Read Program Memory CRC 0EH
Reserved
0FH
Step Instruction
10H
Stuff Instruction
11H
Execute Instruction
12H
Reserved
13H–FFH
Enabled when not
in DEBUG Mode?
–
–
–
–
–
–
Disabled by
Flash Read Protect Option Bit
–
–
Disabled
Disabled
Disabled
–
In the following bulleted list of OCD commands, data and commands sent from the host to
the OCD are identified by DBG ← Command/Data. Data sent from the OCD 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
DBG
DBG
←→ →
00H
OCDRev[15:8] (Major revision number)
OCDRev[7:0] (Minor revision number)
Read OCD Status Register (02H). The read OCD Status Register command reads the
OCDSTAT register.
DBG
DBG
←→
02H
OCDSTAT[7:0]
Read Runtime Counter (03H). The runtime counter counts system clock cycles in
between breakpoints. The 16-bit runtime counter counts from 0000H and stops at the max-
imum count of FFFFH. The runtime counter is overwritten during the write memory, read
memory, write register, read register, read memory CRC, step instruction, stuff instruction
and execute instruction commands.
DBG
DBG
DBG
←→ →
03H
RuntimeCounter[15:8]
RuntimeCounter[7:0]
Write OCD Control Register (04H). The write OCD Control Register command writes
the data that follows to the OCDCTL register. When the Flash read protect option bit is
enabled, the DBGMODE bit (OCDCTL[7]) can only be set to 1, it cannot be cleared to 0. To
return the device to normal operating mode, the device must be reset.
DBG
DBG
←
←
04H
OCDCTL[7:0]
PS025113-1212
On-Chip Debugger Commands