Z8 Encore!® Motor Control Flash MCUs
Product Specification
248
Table 134. On-Chip Debugger Commands (Continued)
Command
Byte
Enabled When Not
In Debug Mode?
Disabled by Read Protect
Option Bit
Debug Command
Write OCD Control Register
Read OCD Control Register
Write Program Counter
Read Program Counter
Write Register
04h
05h
06h
07h
08h
Yes
Yes
—
—
—
Disabled
Disabled
—
—
Writes to on-chip peripheral
registers are enabled. Writes to
the on-chip RAM are disabled.
Read Register
09h
—
Reads from on-chip peripheral
registers are enabled. Reads from
the on-chip RAM are disabled.
Write Program Memory
Read Program Memory
Write Data Memory
Read Data Memory
Read Program Memory CRC
Reserved
0Ah
0Bh
0Ch
0Dh
0Eh
0Fh
10h
11H
12H
1BH
—
—
—
—
—
—
—
—
—
—
Disabled
Disabled
Disabled
Disabled
—
—
Step Instruction
Disabled
Disabled
Disabled
—
Stuff Instruction
Execute Instruction
Read Baud Reload Register
Note: Unlisted command byte values are reserved.
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 Revision. The Read Revision command returns the revision identifier. DBG ←
00h
DBG → REVID[15:8](Major revision number)
DBG → REVID[7:0](Minor revision number)
On-Chip Debugger
P R E L I M I N A R Y
PS024604-1005