28 On-Chip Debug Function
The MPC82G516A is equipped with a proprietary On-Chip Debug (OCD) interface for In-Circuit Emulator (ICE).
The OCD interface provides on-chip and in-system non-intrusive debugging without any target resource occupied.
Several operations necessary for an ICE are supported, such as Reset, Run, Stop, Step, Run to Cursor and
Breakpoint Setting.
Using the OCD technology, Megawin provides the “Megawin 8051 OCD ICE” for the user, as shown in Figure 28-
1. The user has no need to prepare any development board during developing, or the socket adapter used in the
traditional ICE probe. All the thing the user needs to do is to reserve a 4-pin connector on the system for the
dedicated OCD interface: VCC, OCD_SDA, OCD_SCL and GND. Figure 28-2 shows the system diagram of the
OCD ICE.
In addition, the most powerful feature is that it can directly connect the user’s target system to the Keil 8051 IDE
software for debugging, which directly utilizes the Keil IDE’s dScope-Debugger function. Of course, all the
advantages are based on your using Keil 8051 IDE software.
Note:
“Keil” is the trade mark of “Keil Elektronik GmbH and Keil Software, Inc.”, and “Keil 8051 IDE software” is the
most popular C51 compiler for 8051 embedded system development.
Features
z
z
z
z
z
z
z
z
z
Megawin proprietary OCD (On-Chip-Debug) technology
On-chip & in-system real-time debugging
Two-pin dedicated serial interface for OCD, no target resource occupied
Directly linked to the debugger function of the Keil 8051 IDE Software
USB connection between target and host (PC)
Helpful debug actions: Reset, Run, Stop, Step and Run to Cursor
Programmable breakpoints, up to 4 breakpoints can be inserted simultaneously
Several debug-helpful windows: Register/Disassembly/Watch/Memory Windows
Source-level (Assembly or C-language) debugging capability
Figure 28-1. Picture of the “8051 ICE Adapter”
Figure 28-2. System Diagram for the ICE Function
Target System
OCD ICE
Interface
PC
MPC82G516A
"Megawin 8051 OCD ICE"
SCL
OCD_SCL
SCL
VDD
MEGAWIN
(less than 30cm)
USB
VDD
OCD_SDA
VSS
VCC
MAKE YOU WIN
SDA
GND
SDA
GND
8051 ICE Adapter
Note: For more detailed information about the OCD ICE, please feel free to contact Megawin.
131
MPC82G516A Data Sheet
MEGAWIN