English
Language : 

Z8FMC16100 Datasheet, PDF (271/402 Pages) Zilog, Inc. – Z8 Encore-R Motor Control Flash MCUs
Z8FMC16100 Series Flash MCU
Product Specification
249
Write OCD Counter Register. The Write OCD Counter Register command writes the
data that follows to the OCDCNTR register. If the device is not in DEBUG mode, the data
is discarded.
DBG ← 01h
DBG ← OCDCNTR[15:8]
DBG ← OCDCNTR[7:0]
Read OCD Status Register. The Read OCD Status Register command reads the OCD-
STAT register.
DBG ← 02h
DBG → OCDSTAT[7:0]
Read OCD Counter Register. The OCD Counter Register can be used to count system
clock cycles in between break points, generate a BRK when it counts down to 0, or gener-
ate a BRK when its value matches the Program Counter. Because this register is really a
down counter, the returned value is inverted when this register is read so the returned
result appears to be an up counter. If the device is not in DEBUG mode, this command
returns FFFFh.
DBG ← 03h
DBG → ~OCDCNTR[15:8]
DBG → ~OCDCNTR[7:0]
Write OCD Control Register. The Write OCD Control Register command writes the data
that follows to the OCDCTL register.
DBG ← 04h
DBG ← OCDCTL[7:0]
Read OCD Control Register. The Read OCD Control Register command reads the value
of the OCDCTL register.
DBG ← 05h
DBG → OCDCTL[7:0]
Write Program Counter. The Write Program Counter command writes the data that fol-
lows to the eZ8 CPU’s Program Counter (PC). If the device is not in DEBUG mode or if
the Read Protect option bit is enabled, the Program Counter (PC) values are discarded.
DBG ← 06h
DBG ← ProgramCounter[15:8]
DBG ← ProgramCounter[7:0]
PS024604-1005
PRELIMINARY
On-Chip Debugger Commands