CMT2380F17
Rev0.1 | 337/347
www.cmostek.com
The proprietary 6-
pin “Megawin 8051 ICE Adapter” can support the In-Circuit Programming of
MG82F6D17. “Megawin 8051 ICE Adapter” has the in-system storage to store the user program code and
device options. So, the tools can perform a portable and stand-alone programming without a host on-line,
such as connecting the tool to PC. Following lists the features of the ICP function:
No need to have a loader program pre-programmed in the target MCU.
Dedicated serial interface; no port pin is occupied.
The target MCU needn’t be in running state; it just needs to be powered.
Capable of portable and stand-
alone working without host’s intervention.
The above valuable features make the ICP function very friendly to the user. Particularly, it is capable of
stand-alone working after the programming data is downloaded. This is especially useful in the field without a
PC. The system diagrams of the ICP function for the stand-alone programming are shown in Figure 32
–4.
Only five pins are used for the ICP interface: the SDA line and SCL line function as serial data and serial clock,
respectively, to transmit the programming data from the 6-
pin “Megawin 8051 ICE Adapter” to the target MCU;
the RST line to halt the MCU, and the VCC & GND are the power supply entry of the 6-
pin “Megawin 8051
ICE Adapter” for portable programming application. The USB connector can be directly plugged into the PC’s
USB port to download the programming data from PC to the 6-
pin “Megawin 8051 ICE Adapter”.
"Megawin 8051 OCD ICE"
Target System
ICP & OCD
Interface
MCU
(less than 20cm)
MEGAWIN
MAKE YOU WIN
8051 ICE Adapter
P3.0
SCL
VCC
SDA
GND
RST
USB
OCD_SCL
VDD
OCD_SDA
VSS
RST
N.C.
SCL
VCC
SDA
GND
RST
Program code
download path
START
button: for code programming
Figure 32-4. Stand-alone programming via ICP
32.5
On-Chip-Debug Function
The CMT2380F17 is equipped with a Megawin 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, M
egawin provides the “Megawin 8051 OCD ICE” for the user, as shown in
Figure 32
–5. 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 6-pin connector on
the system for the dedicated OCD interface: P3.0, RST, VCC, OCD_SDA, OCD_SCL and GND as shown in
Figure 32
–5.
In addition, the most powerful feature is that it can directly connect the user’s target system to the Keil
8051 IDE so
ftware 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.”.
ICE Adapter
Summary of Contents for CMT2380F17
Page 27: ...CMT2380F17 Rev0 1 27 347 www cmostek com 1 25 Phase Noise...
Page 177: ...CMT2380F17 Rev0 1 177 347 www cmostek com Figure 17 3 PCA Interrupt System...
Page 246: ...CMT2380F17 Rev0 1 246 347 www cmostek com SnMIPS S0MI S1MI 1 P3 3 P4 7...