MINICUBE is a registered trademark of NEC Electronics Corporation in Japan and Germany and Germany or a
trademark in the United States of America.
Windows is either a registered trademarks or a trademark of Microsoft Corporation in the United States
and/or other countries.
PC/AT is a trademark of International Business Machines Corporation.
C-SPY is registered trademark owned by IAR Systems AB.
•
The information in this document is current as of July, 2008. The information is subject to change
without notice. For actual design-in, refer to the latest publications of NEC Electronics data sheets or
data books, etc., for the most up-to-date specifications of NEC Electronics products. Not all
products and/or types are available in every country. Please check with an NEC Electronics sales
representative for availability and additional information.
•
No part of this document may be copied or reproduced in any form or by any means without the prior
written consent of NEC Electronics. NEC Electronics assumes no responsibility for any errors that may
appear in this document.
•
NEC Electronics does not assume any liability for infringement of patents, copyrights or other intellectual
property rights of third parties by or arising from the use of NEC Electronics products listed in this document
or any other liability arising from the use of such products. No license, express, implied or otherwise, is
granted under any patents, copyrights or other intellectual property rights of NEC Electronics or others.
Descriptions of circuits, software and other related information in this document are provided for illustrative
•
purposes in semiconductor product operation and application examples. The incorporation of these
circuits, software and information in the design of a customer's equipment shall be done under the full
responsibility of the customer. NEC Electronics assumes no responsibility for any losses incurred by
customers or third parties arising from the use of these circuits, software and information.
•
While NEC Electronics endeavors to enhance the quality, reliability and safety of NEC Electronics products,
customers agree and acknowledge that the possibility of defects thereof cannot be eliminated entirely. To
minimize risks of damage to property or injury (including death) to persons arising from defects in NEC
Electronics products, customers must incorporate sufficient safety measures in their design, such as
redundancy, fire-containment and anti-failure features.
•
NEC Electronics products are classified into the following three quality grades: "Standard", "Special" and
"Specific".
The "Specific" quality grade applies only to NEC Electronics products developed based on a customerdesignated "quality assurance program" for a specific application. The recommended applications of an NEC
Electronics product depend on its quality grade, as indicated below. Customers must check the quality grade of
each NEC Electronics product before using it in a particular application.
"Standard":
"Special":
"Specific":
Computers, office equipment, communications equipment, test and measurement equipment, audio
and visual equipment, home electronic appliances, machine tools, personal electronic equipment
and industrial robots.
Transportation equipment (automobiles, trains, ships, etc.), traffic control systems, anti-disaster
systems, anti-crime systems, safety equipment and medical equipment (not specifically designed
for life support).
Aircraft, aerospace equipment, submersible repeaters, nuclear reactor control systems, life
support systems and medical equipment for life support, etc.
The quality grade of NEC Electronics products is "Standard" unless otherwise expressly specified in NEC
Electronics data sheets or data books, etc. If customers wish to use NEC Electronics products in applications
not intended by NEC Electronics, they must contact an NEC Electronics sales representative in advance to
determine NEC Electronics' willingness to support a given application.
(Note)
(1)
"NEC Electronics" as used in this statement means NEC Electronics Corporation and also includes its
majority-owned subsidiaries.
(2)
"NEC Electronics products" means any product developed or manufactured by or for NEC Electronics (as
defined above).
M8E 02. 11-1
User’s Manual U18371EJ3V0UM
3
General Precautions for Handling This Product
1. Circumstances not covered by product guarantee
• If the product was disassembled, altered, or repaired by the customer
• If it was dropped, broken, or given another strong shock
• Use at overvoltage, use outside guaranteed temperature range, storing outside guaranteed
temperature range
• If power was turned on while the USB cable or connection to the target system was in an
unsatisfactory state
• If the cable of the USB cable, the target cable, or the like was bent or pulled excessively
• If the product got wet
• If this product is connected to the target system when there is a potential difference between the
GND of this product and GND of the target system.
• If the connectors or cables are plugged/unplugged while this product is in the power-on state.
• If excessive load is applied to the connectors or sockets.
• If a metal part of the interface connector or another such part comes in contact with an electrostatic
charge
• If specifications other than those specified are used for the USB port
2. Safety precautions
• The product may become hot depending on the status of use. Be careful of low temperature burns
and other dangers due to the product becoming hot.
• Be careful of electrical shock. There is a danger of electrical shock if the product is used as
described above in 1 Circumstances not covered by product guarantee.
• Do not use a device that was used for on-chip debugging as the official product.
4
User’s Manual U18371EJ3V0UM
INTRODUCTION
Readers This manual is intended for users who wish to perform debugging using the QB-MINI2
(generic name: MINICUBE2).
The readers of this manual are assumed to be familiar with the device functions and
usage, and to have knowledge of debuggers and flash programming.
PurposeThis manual is intended to give users an understanding of the basic specifications and
correct use of MINICUBE2.
OrganizationThis manual is divided into the following sections.
• General
• Names and functions of hardware
• Self-testing
• Firmware update
How to Read This ManualIt is assumed that the readers of this manual have general knowledge in the fields of
electrical engineering, logic circuits, and microcontrollers.
This manual describes the basic setup procedures.
To understand the basic specifications and usages of MINICUBE2
→ Read this manual according to the CONTENTS. The mark <R> shows major
revised points. The revised points can be easily searched by copying an “<R>” in
the PDF file and specifying it in the “Find what:” field.
To know the manipulations, command functions, and other software-related settings
of MINICUBE2
→ See the user’s manual of the debugger to be used.
Conventions Note: Footnote for item marked with Note in the text
Caution: Information requiring particular attention
Remark: Supplementary information
Numeric representation: Binary ... xxxx or xxxxB
Decimal ... xxxx
Hexadecimal ... xxxxH
Prefix indicating power of 2
(address space, memory
capacity): K (kilo): 2
M (mega): 2
10
= 1,024
20
= 1,024
2
User’s Manual U18371EJ3V0UM
5
Terminology The meanings of the terms used in this manual are described in the table below.
Term Meaning
MINICUBE2 Generic name of QB-MINI2
Target device This is the device to be emulated.
Target system This is the system to be debugged (user-created system).
It includes software and hardware created by the user.
OCD unit OCD is an abbreviation of On-Chip Debug
The OCD unit means the debug function block embedded in the target
device.
Firmware Program embedded in the device for controlling MINICUBE2
QB-Programmer GUI software used to perform flash programming
Related Documents Please use the following documents in conjunction with this manual.
The related documents listed below may include preliminary versions. However,
preliminary versions are not marked as such.
Documents Related to Development Tools (User’s Manuals)
Document Name Document Number
QB-MINI2 On-Chip Debug Emulator with Programming Function This document
1.1 Features ....................................................................................................................................... 10
1.2 Notes Before Using MINICUBE2 ................................................................................................ 11
Remark The above-mentioned document is posted on the MINICUBE2 information Web site.
User’s Manual U18371EJ3V0UM
11
CHAPTER 1 OVERVIEW
1.4 Hardware Specifications
This section describes the MINICUBE2 hardware specifications.
The specifications related to the on-chip debug and flash memory programming functions are described in the
following chapters.
Table 1-2. Hardware Specifications
Classification Item Specifications
MINICUBE2
Host machine interface
Target interface
Operating power supply Supplied via USB interface (5 V)
Operating environment
conditions
Storage environment
conditions
External dimensions 48 × 48 × 13.9 mm
Weight Approximately 40 g
Target host machine PC98-NX Series, IBM PC/ATTM compatibles
Target OS WindowsTM 98, Windows Me, Windows 2000, Windows XP
USB 2.0 (1.1 compatible)
USB cable 2 m
Current consumption 500 mA max.
Target cable length 16-pin cable: 10 cm
Supported connector 2.54 mm pitch general-purpose connector
Supply voltage 3.1 V (typ.) or 5.0 V (typ.)
Supply current 100 mA max.
Current consumption 8 mA (typ.)
Voltage range 1.65 to 5.5 V
Temperature: ±0 to +40°C
Humidity: 10 to 80% RH (no condensation)
Temperature: -15 to +60°C
Humidity: 10 to 80% RH (no condensation)
10-pin cable: 10 cm
12
User’s Manual U18371EJ3V0UM
CHAPTER 2 NAMES AND FUNCTIONS OF HARDWARE
This chapter describes the part names and functions of MINICUBE2 and its accessories.
The part names described in this chapter are used throughout this document. This chapter provides an
overview of the various functions. Reading it through, the reader will gain a basic grasp of MINICUBE2 and the
self-check board that will facilitate reading of subsequent chapters. While reading this chapter, also check if the
hardware has a defect.
2.1 Names of Supplied Hardware
Figure 2-1 shows the names of hardware supplied with MINICUBE2.
Figure 2-1. Names of Supplied Hardware
MINICUBE2
MINICUBE2
16-pin target cable
16-pin target cable
USB cable
USB cable
10-pin target cable
10-pin target cable
78K0-OCD board
78K0-OCD board
(A 20 MHz oscillator mounted)
(A 20 MHz oscillator mounted)
User’s Manual U18371EJ3V0UM
13
CHAPTER 2 NAMES AND FUNCTIONS OF HARDWARE
2.2 Part Names and Functions of MINICUBE2
Figure 2-2 shows the part names of the MINICUBE2 main unit. For their functions, refer to (1) to (5) below.
Figure 2-2. Part Names of MINICUBE2
USB interface
Target interface
Target interface
connector
connector
Mode LED
Mode LED
Mode select switchPower select switch
Mode select switchPower select switch
USB interface
connector
connector
(1) Mode select switch
This switch is used to select the target device. Table 2-1 describes the setting details. This switch is set to
″M2″ at shipment.
Table 2-1. Description of Mode Select Switch
Setting Description
M1 Sets 78K0S or 78K0R microcontroller as target device
M2 Sets V850 or 78K0 microcontroller as target device (factory setting)
(2) Power select switch
This switch is used to set the power supplied to the target system. Table 2-2 describes the setting details.
This switch is set to ″3″ at shipment.
Caution Do not change the switch setting while the USB cable is connected.
Table 2-2. Setting of Power Select Switch
Setting Description
Note
3
5
T
3 V is supplied from MINICUBE2 to the target system
The supplied power is fed back to MINICUBE2 and used only for power detection.
5 V is supplied from MINICUBE2 to the target system
The supplied power is fed back to MINICUBE2 and used only for power detection.
Power supply of the target system is used.
MINICUBE2 only detects the power for the target system.
. (Factory setting)
Note
.
Note The maximum rating of the current is 100mA, so do not use MINICUBE2 with the target system with
the higher current rating. The power is always supplied after MINICUBE2 is connected to the host
machine.
14
User’s Manual U18371EJ3V0UM
CHAPTER 2 NAMES AND FUNCTIONS OF HARDWARE
(3) USB interface connector
This is a connector used to connect MINICUBE2 with the host machine, via a USB cable.
A USB 2.0 compliant mini-B connector (UX60A-MB-5ST: Made by Hirose Electric Co., Ltd.) is employed.
(4) Target interface connector
This is a connector used to connect MINICUBE2 with the target system, via a 16-pin target cable. Connect
the 78K0-OCD board for debugging a 78K0 microcontroller. To prevent the 78K0-OCD board from being
inserted by mistake, pin 11 is removed at shipment.
Since this connector is compatible with 16-core 2.54 mm pitch general-purpose connectors (female), a
commercially available cable can be substituted.
(5) Mode LED
The appearance of the mode LED changes according to the status of hardware and software, as shown in
Table 2-3.
Table 2-3. Mode LED Status
Appearance
Color
- Extinguished Not
White
Blue
Orange
Green
Yellow
Red Glowing
Illumination The illumination mode is entered when MINICUBE2 is connected to a USB interface and 15
Flashing
Glowing Not yet started
Glowing
Flashing
Glowing
Flashing
Glowing
Flashing
Glowing
Flashing
USB
Connection
connected
Connected
seconds or longer have elapsed. This mode is also entered when the debugger is terminated
normally.
Target VDD
Detection
Not detected
Not detected
Detected
Description Mode LED
Software Operation Status
Not yet started
Not yet started
A debugger for V850 microcontrollers has been started and
CPU is in the break mode.
A debugger for V850 microcontrollers has been started and
the CPU is running, or a program is being downloaded.
A debugger for 78K0 microcontrollers has been started and
the CPU is in the break mode.
A debugger for 78K0 microcontrollers has been started and
the CPU is running, or a program is being downloaded.
A debugger for 78K0S microcontrollers has been started and
the CPU is in the break mode. The QB-Programmer has
been started and is waiting for execution processing.
Alternatively, execution processing has been completed.
A debugger for 78K0S microcontrollers has been started and
the CPU is running, or a program is being downloaded.
A debugger for 78K0R microcontrollers has been started and
the CPU is in the break mode.
A debugger for 78K0R microcontrollers has been started and
the CPU is running, or a program is being downloaded.
A command from the QB-Programmer is being executed for
the flash memory.
A command from the QB-Programmer is ended abnormally
(results in error)
User’s Manual U18371EJ3V0UM
15
CHAPTER 2 NAMES AND FUNCTIONS OF HARDWARE
2.3 Part Names and Functions of 78K0-OCD Board
The 78K0-OCD board is used for debugging a 78K0 microcontroller (not used for flash programming). Figure
2-3 illustrates the external view of the 78K0-OCD board. The name of each part is printed on the 78K0-OCD
board. For each function, refer to (1) to (4), below.
Figure 2-3. Part Names of 78K0-OCD Board
(1) CLK1
For clock supply to the target device, a 14-pin DIP socket is implemented as CLK1. A 14-pin type oscillator (5
V) or a parts board that can configure an oscillation circuit can be mounted on the 14-pin DIP socket. A parts
board such as the 160-90-314 (manufactured by PRECI-DIP) can be used with this socket to configure
oscillation circuit.
(2) CN1
This is a connector used to connect MINICUBE2 with the target interface connector of MINICUBE2. To
prevent the 78K0-OCD board from being inserted by mistake, a dummy pin is mounted in the place of pin 11 in
CN1.
(3) CN2
This is a connector used to connect MINICUBE2 with the target system, via a 10-pin target cable.
A 10-core 2.54 mm pitch general-purpose connector (TSM-105-01-L-DV) is employed.
(4) CN3
This is a connector used to connect MINICUBE2 with the target system, via a 16-pin target cable.
A 16-core 2.54 mm pitch general-purpose connector (TSM-108-01-L-DV) is employed.
16
User’s Manual U18371EJ3V0UM
CHAPTER 3 HOW TO USE MINICUBE2 WITH V850 MICROCONTROLLER
This chapter describes how to use MINICUBE2 when performing on-chip debugging and flash programming for
a V850 microcontroller.
On-chip debugging is a method to debug a microcontroller mounted on the target system, using a debug
function implemented in the device. Since debugging is performed with the target device operating on the board,
this method is suitable for field debugging.
Flash programming is a method to write a program to the flash memory embedded in a device. Erasing, writing
and verifying the program can be performed on-board with the device.
Read the following chapters if you are using MINICUBE2 for the first time with a V850 microcontroller as the
target device.
• 3.1 Target System Design
For communication between MINICUBE2 and the target system, communication circuits must be mounted on
the target system. This section describes the circuit design and mounting of connectors.
• 3.2 On-Chip Debugging
This section describes the system configuration and startup method to perform on-chip debugging with
MINICUBE2.
• 3.3 Flash Programming
This section describes the system configuration and startup method to perform flash programming with
MINICUBE2.
User’s Manual U18371EJ3V0UM
17
CHAPTER 3 HOW TO USE MINICUBE2 WITH V850 MICROCONTROLLER
3.1 Target System Design
This section describes the target system circuit design required for on-chip debugging and flash programming.
Figure 3-1 presents an overview of the MINICUBE2 communication interface. As shown on the left side of
the figure, MINICUBE2 performs serial communication with the target device on the target system. For this
communication, communication circuits must be mounted on the target system. Refer to this section to design
circuits appropriately.
UART and CSI-H/S are supported as communication modes. Note that CSI-H/S is not available if there is no
H/S pin connection. The H/S pin is the name of the pin for the programmer and this pin might not be described as
an alternate-function pin in the user's manual of the device. In such a case, connect the relevant port that is
assigned to the H/S pin. (In the V850ES/JJ, for example, the PCM0 pin is assigned to the H/S pin.)
The pins used for serial communication are basically the same as those of the flash memory programmer
(such as PG-FP4), but some devices do not support some of them. Refer to the document ″QB-MINI2 Operating
Precautions″ and check the supported pins.
Figure 3-1. Outline of Communication Interface
Communication circuits
Communication circuits
must be mounted on
must be mounted on
the target system.
the target system.
Target device
Target device
Target system
Target system
Serial communication
Serial communication
(UART, CSI-H/S)
(UART, CSI-H/S)
MINICUBE2
MINICUBE2
USB
USB
communication
communication
Host machine
Host machine
18
User’s Manual U18371EJ3V0UM
CHAPTER 3 HOW TO USE MINICUBE2 WITH V850 MICROCONTROLLER
3.1.1 Pin assignment
This section describes the interface signals used between MINICUBE2 and the target system. Table 3-1 lists
the pin assignment. Table 3-2 describes the functions of each pin. The pin assignment varies depending on
whether CSI-H/S or UART is used, so design the circuit appropriately according to the circuit connection examples
described on the following sections.
Table 3-1. Pin Assignment
TOP VIEW
TOP VIEW
Target system
Target system
9107856341
9107856341
12
12
Pin 1
Pin 1
2
2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Pin Name
CSI-H/S Used UART Used
GND
RESET_OUT
SI
VDD
SO
R.F.U.
SCK R.F.U.
H/S R.F.U.
CLK
R.F.U.
R.F.U.
FLMD1
R.F.U.
FLMD0
RESET_IN
R.F.U.
Note
RXD
TXD
Pin No.
131411
15
131411
15
16
16
Pin assignment of target connector
Pin assignment of target connector
to be mounted on target system
to be mounted on target system
Note Signal names in MINICUBE2
Table 3-2. Pin Functions
Pin Name IN/OUT
Note
Description
RESET_IN IN Pin used to input reset signal from the target system
RESET_OUT OUT Pin used to output reset signal to the target device
CLK OUT Pin used to output clock signal to the target device
FLMD0 OUT Pin used to set the target device to debug mode or
programming mode
FLMD1 OUT Pin used to set programming mode
RxD/SI IN Pin used to receive command/data from the target device
TxD/SO OUT Pin used to transmit command/data to the target device
SCK OUT Pin used to output clock signal for 3-wire serial communication
H/S IN Pin used to input handshake signal from the target device
R.F.U.
-
This pin is not used, so leave it open.
Note As seen from MINICUBE2
User’s Manual U18371EJ3V0UM
19
CHAPTER 3 HOW TO USE MINICUBE2 WITH V850 MICROCONTROLLER
3.1.2 Circuit connection examples
The circuit design on the target system varies depending on the communication interface mode. Refer to the
following table and see the relevant circuit connection example.
Caution The constants described in the circuit connection example are reference values. If you perform
flash programming aiming at mass production, thoroughly evaluate whether the specifications of
CHAPTER 3 HOW TO USE MINICUBE2 WITH V850 MICROCONTROLLER
N
1
N
2
N
3
N
4
r
N
1
_
<R>
Figure 3-2. Recommended Circuit Connection When UART Is Used for Communication Interface
V
RESET_OUT
RXD
TxD
CLK
FLMD1
RESET_IN
GND
ote
V
DD
ote
R.F.U.
R.F.U.
R.F.U.
ote
R.F.U.
R.F.U.
ote
R.F.U.
FLMD0
ote
R.F.U.
VDD
DD
3k to 10kΩ
1
2
3
4
5
6
6
7
8
9
1k to 10kΩ
Note 7
10
11
12
13
14
15
16
Note 5
1k to
10kΩ
Note 7
V
DD
1kΩ10kΩ
Note 7
10kΩ
V
DD
Target deviceTarget connector
GND
RESET
TxD
V
DD
RxD
FLMD1
FLMD0
100Ω
Note 6
PortX
Reset connecto
X1
Clock
circuit
X2
RESET signal
Notes 1. Connect TxD (transmit side) of the target device to RxD (receive side) of the target connector, and TxD
(transmit side) of the target connector to RxD (receive side) of the target device. Read the serial interface
pin names on the target device side as those for flash programming supported by the target device.
2. This pin may be used to supply an external clock during flash programming (4, 8 or 16 MHz). For the
connection, refer to the user's manual for the target device.
3. The alternate function of this pin can be used because this pin changes to input (unused) when debugging.
In MINICUBE2, it is pulled down at 100 kΩ.
4. This connection is designed assuming that the RESET signal is output from the N-ch open-drain buffer
(output resistance: 100Ω or less). For details, refer to 3.1.3 Connection of reset pin.
5. The circuit enclosed by a dashed line is not required when only flash programming is performed.
6. The circuit enclosed by a dashed line is designed for flash self programming, which controls the FLMD0
pin via ports. Use the port for inputting or outputting the high level. When flash self programming is not
performed, a pull-down resistance for the FLMD0 pin can be within 1 to 10 kΩ.
7. This is for pin processing when not used as a device.
To change this value to another resistance value, see APPENDIX A EQUIVALENT CIRCUIT.
User’s Manual U18371EJ3V0UM
21
CHAPTER 3 HOW TO USE MINICUBE2 WITH V850 MICROCONTROLLER
N
1
N
1
N
2
N
4
_
r
r
<R>
Figure 3-3. Recommended Circuit Connection When CSI-H/S Is Used for Communication Interface
Target connecto
RESET_OUT
SO
CLK
FLMD1
RESET_IN
GND
ote
SI
V
ote
R.F.U.
SCK
H/S
ote
R.F.U.
R.F.U.
Note3
R.F.U.
FLMD0
ote
R.F.U.
VDD V
1k to 10kΩ
1
2
3
4
DD
5
6
7
8
9
10
11
12
13
14
15
16
Note 5
Note 7
1k to 10kΩ
1k to 10kΩ
V
DD
DDVDD
Note 7
3k to 10kΩ
Note 7
Note 7
1k to 10kΩ
10kΩ
V
DD
Target device
GND
RESET
SO
DD
V
SI
SCK
H/S
Note 7
X1
X2
FLMD1
FLMD0
100Ω
Note 6
PortX
Clock
circuit
10kΩ 1kΩ
Reset connecto
RESET signal
Notes 1. Connect SO (transmit side) of the target device to SI (receive side) of the target connector, and SO
(transmit side) of the target connector to SI (receive side) of the target device. Read the serial interface
pin names on the target device side as those for flash programming supported by the target device.
2. This pin may be used to supply an external clock during flash programming (4, 8 or 16 MHz). For the
connection, refer to the user's manual for the target device.
3. The alternate function of this pin can be used because this pin changes to input (unused) when debugging.
In MINICUBE2, it is pulled down at 100 kΩ.
4. This connection is designed assuming that the RESET signal is output from the N-ch open-drain buffer
(output resistance: 100Ω or less). For details, refer to 3.1.3 Connection of reset pin.
5. The circuit enclosed by a dashed line is not required when only flash programming is performed.
6. The circuit enclosed by a dashed line is designed for flash self programming, which controls the FLMD0
pin via ports. Use the port for inputting or outputting the high level. When flash self programming is not
performed, a pull-down resistance for the FLMD0 pin can be within 1 to 10 kΩ.
7. This is for pin processing when not used as a device.
To change this value to another resistance value, see APPENDIX A EQUIVALENT CIRCUIT.
22
User’s Manual U18371EJ3V0UM
CHAPTER 3 HOW TO USE MINICUBE2 WITH V850 MICROCONTROLLER
3.1.3 Connection of reset pin
This section describes the connection of the reset pin, for which special attention must be paid, in circuit
connection examples shown in the previous section.
During on-chip debugging, a reset signal from the target system is input to MINICUBE2, masked, and then
output to the target device. Therefore, the reset signal connection varies depending on whether MINICUBE2 is
connected.
For flash programming, the circuit must be designed so that the reset signals of the target system and
MINICUBE2 do not conflict.
Select one of the following methods and connect the reset signal in the circuit. The details of each method
are described on the following pages.
(1) Automatically switching the reset signal via series resistor (recommended; described in recommended
circuit connection in the previous section)
(2) Manually switching the reset signal with jumper
(3) Resetting the target device by power-on clear (POC) only
User’s Manual U18371EJ3V0UM
23
CHAPTER 3 HOW TO USE MINICUBE2 WITH V850 MICROCONTROLLER
(1) Automatically switching the reset signal via series resistor
Figure 3-4 illustrates the reset pin connection described in 3.1.2 Circuit connection examples.
This connection is designed assuming that the reset circuit on the target system contains an N-ch
open-drain buffer (output resistance: 100Ω or less). The VDD or GND level may be unstable when the logic
of RESET_IN/OUT of MINICUBE2 is inverted, so observe the conditions described below in Remark.
Figure 3-4. Circuit Connection with Reset Circuit That Contains Buffer
MINICUBE2
MINICUBE2
RESET_OUT
RESET_OUT
RESET_IN
RESET_IN
R1
R1
Target device
Target device
_RESET
_RESET
R2
R2
Reset connector
Reset connector
V
V
DD
DD
Buffer
Buffer
V
V
DD
DD
Remark Make the resistance of at least R1 ten times that of R2, R1 being 10 kΩ or more.
Pull-up resistor R2 is not required if the buffer of the reset circuit consists of CMOS output.
The circuit enclosed by a dashed line is not required when only flash programming is performed.
Figure 3-5 illustrates the circuit connection for the case where the reset circuit on the target system contains
no buffers and the reset signal is only generated via resistors or capacitors. Design the circuit, observing
the conditions described below in Remark.
Figure 3-5. Circuit Connection with Reset Circuit That Contains No Buffers
MINICUBE2
MINICUBE2
RESET_OUT
RESET_OUT
R1
R1
_RESET
_RESET
Reset connectorTarget device
Reset connectorTarget device
V
V
DD
DD
R2
R2
RESET_IN
RESET_IN
Remark Make the resistance of at least R1 ten times that of R2, R1 being 10 kΩ or more.
The circuit enclosed by a dashed line is not required when only flash programming is performed.
24
User’s Manual U18371EJ3V0UM
CHAPTER 3 HOW TO USE MINICUBE2 WITH V850 MICROCONTROLLER
(2) Manually switching the reset signal with jumper
Figure 3-6 illustrates the circuit connection for the case where the reset signal is switched using the jumper,
with or without MINICUBE2 connected. This connection is simple, but the jumper must be set manually.
Figure 3-6. Circuit Connection for Switching Reset Signal with Jumper
Target connector
Target connector
RESET_OUT
RESET_OUT
RESET_IN
RESET_IN
Jumper
Jumper
1
1
2
2
3
3
Target device
Target device
_RESET
_RESET
Reset connector
Reset connector
RESET signal
RESET signal
* Jumper setting
When MINICUBE2 is connected: 1-2 shorted
When MINICUBE2 is not connected: 2-3 shorted
(3) Resetting the target device by power-on clear (POC) only
Figure 3-7 illustrates the circuit connection for the case where the target device is only reset via POC
without using the reset pin. RESET_OUT is valid only when the debugger is running or during flash
programming.
The operation is not guaranteed if the power to the target system is shut down during debugging. Note that
the POC function cannot be emulated.
Figure 3-7. Circuit Connection for the Case Where Target Device Is Only Reset via POC
V
V
DD
DD
Target connector
Target connector
RESET_OUT
RESET_OUT
RESET_IN
RESET_IN
1 to 10 kΩ
1 to 10 kΩ
Target device
Target device
_RESET
_RESET
User’s Manual U18371EJ3V0UM
25
CHAPTER 3 HOW TO USE MINICUBE2 WITH V850 MICROCONTROLLER
3.1.4 Mounting connector onto target system
The connector must be mounted on the target system for connecting MINICUBE2 with the target system. A
2.54 mm pitch 16-pin general-purpose connector can be used. The following products are recommended.
• HIF3FC-16PA-2.54DS (right-angle type, made by Hirose Electric Co., Ltd.)
• HIF3FC-16PA-2.54DSA (straight type, made by Hirose Electric Co., Ltd.)
• 7616-5002PL (right-angle type, made by Sumitomo 3M, Ltd.)
• 7616-6002PL (straight type, made by Sumitomo 3M, Ltd.)
Compact connectors and loose-wire cables are also available as options. For more information on these
Figure 3-8. 2.54 mm Pitch 16-Pin General-Purpose Connector Pin Layout
TOP VIEW
TOP VIEW
Pin 1
Pin 1
Target system
Target system
131411
15
131411
15
16
16
Pin assignment of target connector
Pin assignment of target connector
to be mounted on target system
to be mounted on target system
9107856341
9107856341
12
12
Pin assignment when MINICUBE2
Pin assignment when MINICUBE2
is connected in this direction
is connected in this direction
2
2
26
User’s Manual U18371EJ3V0UM
CHAPTER 3 HOW TO USE MINICUBE2 WITH V850 MICROCONTROLLER
3.2 On-Chip Debugging
This section describes the system configuration, startup/shutdown procedure and cautions for debugging when
on-chip debugging is performed with MINICUBE2.
3.2.1 Debug functions
Table 3-4 lists the debug functions when a V850 microcontroller is the target device and the ID850QB is used.
If a debugger other than the ID850QB (made by partner manufacturer) is used, the available functions may differ,
so check the specifications of the debugger used.
Table 3-4. Debug Functions
Functions Specifications
Security
Download
Execution
Hardware break
Software break
Forced break
RAM monitoring
DMM (writing to memory during RUN)
Pin masking
Time measurement
(from execution start to break)
User spaces used for debugging
Function pins used for debugging
ROM area
RAM area
Notes 1. The following devices are not yet supported.
V850ES/KE2, V850ES/KF2, V850ES/KG2,
2. Available with restrictions. For details, refer to 3.2.6 Cautions on debugging.
10-byte ID code authentication
Available
Go & Go, Start from Here, Come Here, Restart, step execution
Note 1
2 points
4 points
2,000 points
Available
Available
Available
Available (reset pin only)
Measurement resolution: 100
Max. measurement time: Approximately 100 hours
Internal ROM: 2 K bytes+12 bytes
Internal RAM: 16 bytes max.
UART selected: RXD, TXD
CSI-H/S selected: SI, SO, SCK, H/S
(commonly used by execution and access)
Note 2
μ
s
μ
PD70F3733, V850ES/IE2
User’s Manual U18371EJ3V0UM
27
CHAPTER 3 HOW TO USE MINICUBE2 WITH V850 MICROCONTROLLER
3.2.2 System configuration
Figure 3-9 illustrates the system configuration for on-chip debugging.
Figure 3-9. System Configuration for On-Chip Debugging
<5>
<5>
<6>
<6>
Target system
Target system
<1> Host machine
Products with USB ports
<2> Software
Includes the debugger, USB driver, device files, and so on.
Download these NEC Electronics software from the following website (ODS).
URL: http://www.necel.com/micro/ods/eng/
<3> USB cable (accessory)
<4> MINICUBE2 (this product)
<5> 16-pin target cable (accessory)
<6> Target connector (sold separately)
<4>
<4>
<3>
<3>
<1>
<1>
<2>
<2>
28
User’s Manual U18371EJ3V0UM
CHAPTER 3 HOW TO USE MINICUBE2 WITH V850 MICROCONTROLLER
3.2.3 System startup procedure
This section describes the system startup procedure. Observe the following order.
(1) Preparation and installation of software
The following software is required to perform on-chip debugging. For details on preparation and installation of
software, refer to the setup manual supplied with MINICUBE2.
• Debugger
• USB driver
• Device file (may be unnecessary when using a partner manufacture’s debugger)
(2) Switch setting
Set the mode select switch to ″M2″. Set the power select switch by referring to Table 3-5.
Caution Do not change the switch setting while the USB cable is connected.
Table 3-5. Setting of Power Select Switch
Setting Description
3 3 V is supplied from MINICUBE2 to the target system
5 5 V is supplied from MINICUBE2 to the target system
T Power supply of the target system is used.
MINICUBE2 detects the power for the target system.
The detected power is also used as the power supply for the communication interface.
Note The maximum rating of the current is 100 mA, so do not use MINICUBE2 with the target system with
the higher current rating. The power is always supplied after MINICUBE2 is connected to the host
machine.
(3) Connecting the target system
Connect MINICUBE2 to the target system as shown in Figure 3-10, before the power to the target system is
turned on.
Figure 3-10. Connecting MINICUBE2 to Target System
Note
Note
.
.
Target system
Target system
16-pin target cable
16-pin target cable
User’s Manual U18371EJ3V0UM
MINICUBE2
MINICUBE2
29
CHAPTER 3 HOW TO USE MINICUBE2 WITH V850 MICROCONTROLLER
(4) Connecting the USB cable
Connect MINICUBE2 to the host machine as shown in Figure 3-11, before the power to the target system is
turned on.
When the power select switch is set to ″T″, the mode LED flashes white after connection.
When the power select switch is set to ″3″ or ″5″, the mode LED glows white after connection.
Turn on power to the target system. This step is not necessary if the power select switch is set to ″3″ or ″5″.
The mode LED glows white after power application.
(6) Debugger startup
Start the debugger. The mode LED glows blue after debugger startup.
For the operation after this step, refer to the user's manual for the debugger.
If the debugger does not start normally or the operation is unstable, the possible causes may be the following.
• Communication error between MINICUBE2 and target system
Whether communication is performed normally can be checked using the OCD Checker. For details, refer
to the user's manual for the OCD Checker.
• The user resource has not been secured or the security ID has not been set
To perform debugging with MINICUBE2, the debug monitor area and communication serial interface for
communication must be secured and the security ID must be set. For details, refer to 3.2.5 Securing of
user resources and setting of security ID.
• Unsupported software (debugger, device file, or firmware) is used
The software used may not support debugging of the target device. Refer to the document ″QB-MINI2
Operating Precautions″ and check the supported version. When using software provided by an NEC
Electronics partner, refer to the documents prepared by the partner company.
• Defect of MINICUBE2
MINICUBE2 may have a defect. Refer to CHAPTER 7 SELF-TESTING.
30
User’s Manual U18371EJ3V0UM
Loading...
+ 144 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.