Z8F160x Zilog, Z8F160x Datasheet - Page 179

no-image

Z8F160x

Manufacturer Part Number
Z8F160x
Description
Z8 Encore / Microcontrollers with Flash Memory and 10 Bit A/D Converter
Manufacturer
Zilog
Datasheet
Table 94. OCD Control Register (OCDCTL)
On-Chip Debugger Control Register Definitions
PS017610-0404
RESET
FIELD
BITS
R/W
OCD Control Register
DBGMODE
R/W
7
0
The OCD Control register controls the state of the On-Chip Debugger. This register enters
or exits Debug mode and enables the BRK instruction. It can also reset the Z8F640x fam-
ily device.
A “reset and stop” function can be achieved by writing
go” function can be achieved by writing
is in Debug mode, a “run” function can be implemented by writing
DBGMODE—Debug Mode
Setting this bit to 1 causes the Z8F640x family device to enter Debug mode. When in
Debug mode, the eZ8 CPU stops fetching new instructions. Clearing this bit causes the
eZ8 CPU to start running again. This bit is automatically set when a BRK instruction is
decoded and Breakpoints are enabled or when a Watchpoint Debug Break is detected. If
the Read Protect Option Bit is enabled, this bit can only be cleared by resetting the
Z8F640x family device, it cannot be written to 0.
0 = The Z8F640x family device is operating in normal mode.
1 = The Z8F640x family device is in Debug mode.
Write Watchpoint (20H)—The Write Watchpoint command sets and configures the
debug Watchpoint. If the Z8F640x family device is not in Debug mode or the Read
Protect Option Bit is enabled, the WPTCTL bits are all set to zero.
Read Watchpoint (21H)—The Read Watchpoint command reads the current
Watchpoint registers.
DBG <-- 20H
DBG <-- WPTCTL[7:0]
DBG <-- WPTADDR[7:0]
DBG <-- WPTDATA[7:0]
DBG <-- 21H
DBG --> WPTCTL[7:0]
DBG --> WPTADDR[7:0]
DBG --> WPTDATA[7:0]
BRKEN
R/W
6
0
DBGACK
R/W
5
0
R
4
0
Z8F640x/Z8F480x/Z8F320x/Z8F240x/Z8F160x
41H
to this register. If the Z8F640x family device
R
3
0
Reserved
81H
R
2
0
to this register. A “reset and
40H
On-Chip Debugger
R
1
0
to this register.
Z8 Encore!
RST
R/W
0
0
®
161

Related parts for Z8F160x