EasyManua.ls Logo

Megawin 8051 OCD ICE User Manual

Megawin 8051 OCD ICE
33 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
Page #1 background imageLoading...
Page #1 background image
This document information is the intellectual property of Megawin Technology Co., Ltd. 1
Megawin Technology Co., Ltd. 2014 All right reserved.
MEGAWIN
MAKE YOU WIN
8051 OCD ICE
User Manual, v3.00
Megawin
8051 OCD ICE
User Manual
Question and Answer IconNeed help?

Do you have a question about the Megawin 8051 OCD ICE and is the answer not in the manual?

Megawin 8051 OCD ICE Specifications

General IconGeneral
BrandMegawin
Model8051 OCD ICE
CategoryComputer Hardware
LanguageEnglish

Summary

Introduction to Megawin 8051 OCD ICE

Key Features of Megawin 8051 OCD ICE

Lists key features of the Megawin 8051 OCD ICE, including on-chip debugging and Keil IDE integration.

Megawin 8051 OCD ICE Description

Describes the Megawin 8051 OCD ICE as a powerful development tool for 8051 embedded systems.

Hardware Setup for 8051 OCD ICE

Hardware Connection Diagram

Illustrates the connection between the target system, ICE adapter, and PC via USB.

OCD ICE Interface Pin Number Mapping

Provides a table mapping MCU part numbers to OCD ICE interface pin assignments.

Software Setup for 8051 OCD ICE

Install USB Device Driver for ICE Adapter

Explains that no separate USB driver installation is needed for the ICE adapter.

Install Megawin 8051 Database in Keil IDE

Guides users on installing the Megawin database into the Keil 8051 IDE software.

Keil IDE Configuration for Debugging

Keil IDE Options: Device Selection

Instructions for selecting the Megawin Device Database and target part number in Keil IDE options.

Keil IDE Options: Target Settings

Guide to enable on-chip ROM and on-chip XRAM settings in Keil IDE's target options.

Keil IDE Options: Output Settings

Enabling 'Debug Information' for creating OMF files for source-level debugging in Keil IDE.

Keil IDE Options: C51 Compiler Settings

Configuring C51 compiler options, specifically disabling code optimization for debugging.

Keil IDE Options: Debug Driver Setup

Setting up the Megawin On-Chip-Debug Driver and enabling startup options in Keil IDE.

Keil IDE Options: Utilities Setup

Instructions on disabling 'Update Target before Debugging' in Keil IDE utilities.

Starting and Performing Debugging

Activate dScope-Debugger Function

Steps to activate the dScope-Debugger function in Keil IDE by clicking the button.

Introduction to Debugger Environment

Overview of the four main debugger windows: Register, Disassembly, Watch, and Memory.

Basic Debug Actions: Reset, Run, Halt, Step

Explains how to invoke basic debug actions using shortcut buttons in the debugger GUI.

Performing Source-Level Debugging

Guide to performing source-level debugging by opening source files and navigating the debugger.

Setting Breakpoints in the Debugger

Instructions on how to insert, remove, enable, and disable breakpoints in the debugger.

Viewing and Editing Peripheral SFRs

How to view and edit peripheral Special Function Registers (SFRs) via the Peripherals menu.

Using the Disassembly Window

How to open and view the Disassembly Window to see source code alongside assembly code.

Using the Watch Window for Variables

How to use the Watch Window to check local and global variables, including adding variables.

Using the Memory Window for Data View

How to open and use the Memory Window to view different memory spaces (data, idata, xdata, code).

Megawin ICP Tools and Usage

About In-Circuit Programming (ICP)

Explains In-Circuit Programming (ICP) and its benefits like updating without removing the MCU.

Methods to Use ICP Application

Describes two methods to open the ICP application: executing a file or using the Keil menu.

Updating the ICP Programmer

Step-by-step guide to updating the programmer by selecting the MCU Part No. and other options.

Updating the Target System

Instructions for updating the target system, either online or offline, using the ICP programmer.

Special Notes and Considerations

Register Definition Files for Keil IDE

Information about register definition files (INC/H) and how to include them in Keil IDE projects.

On-chip XRAM vs. External Data Memory

Explains the usage and distinction between on-chip XRAM and external data memory in Megawin MCUs.

Code Optimization Impact on Debugging

Discusses how C51 compiler code optimization affects debugging and potential linking errors.

Debugging 'for-Loop' Statements

Addresses performance differences in stepping through C 'for' loops in the debugger.

Hardware Requirements for Debugging

Details hardware requirements for debugging, like un-locked chip and disabled ISP function.

Troubleshooting Common Error Messages

Explains common error messages during debugging and their potential causes and solutions.

Optimal ICE Adapter to Host Connection

Recommends direct USB connection over hubs for optimal ICE adapter data transfer speed.