Renesas QB-RL78G1A User manual

i87
User’s Manual
QB-RL78G1A
In-Circuit Emulator
User’s Manual
RL78/G1A
Target Devices
Rev.1.00 2012.1


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 connection to the AC adapter, USB interface cable, or target system was in an
unsatisfactory state
• If the cable of the AC adapter, the USB interface cable, the emulation probe, or the like was bent or pulled excessively
• If an AC adapter other than the supplied product was used
• 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 (As for handling, please see 2.3 Mounting and Connecting
Connectors (When Using S Type) or 2.4 Mounting and Connecting Connectors (When Using T Type).
• If a metal part of the power switch, cooling fan, or another such part comes in contact with an electrostatic charge.
• If the product is used or stored in an environment where an electrostatic or electrical noise is likely to occur.
2. Safety precautions
• If used for a long time, the product may become hot (50°C to 60°C). 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.

How to Use This Manual
Readers This manual is intended for users who wish to perform debugging using the QB-
RL78G1A. The readers of this manual are assumed to be familiar with the device
functions and usage, and to have knowledge of debuggers.
Purpose This manual is intended to give users an understanding of the basic specifications and
correct usage of the QB-RL78G1A.
Organization This manual is divided into the following sections.
• General
• Setup procedure
• Settings at product shipment
• Cautions
How to Read This Manual It 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 and how to set switches.
To understand the overall functions and usages of the QB-RL78G1A
→Read this manual in the order of 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
the QB-RL78G1A
→See the user’s manual of the debugger (supplied with the QB-RL78G1A) 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): 210 = 1,024
M (mega): 220 = 1,0242

Terminology The meanings of the terms used in this manual are described in the table below.
Term Meaning
Target device This is the device to be emulated.
Target system This is the system to be debugged.
This includes the target program and the hardware provided by the user.
IECUBE TM Generic name for Renesas Electronics’ high-performance / compact
in-circuit emulator.
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-RL78G1A In-Circuit Emulator This manual
RL78/G1A Microcontrollers for Instructions R01US0015E
Start R20UT0727E
RL78 Design R20UT0728E
RL78,78K0R Cording R20UT0729E
RL78,78K0R Build R20UT0730E
RL78 Debug R20UT0733E
Analysis R20UT0735E
CubeSuite+ Integrated Development
Environment User’s Manual
Message R20UT0727E
Caution The related documents listed above are subject to change without notice. Be sure to use
the latest version of each document for designing, etc.
IECUBE is a registered trademark of Renesas Electronics Corporation in Japan and Germany.
Windows is either registered trademarks or trademarks of Microsoft Corporation in the United States and/or
other countries.
PC/AT is a trademark of International Business Machines Corporation.

CONTENTS
CHAPTER 1 GENERAL.....................................................................................................................................7
1.1 Hardware Specifications.......................................................................................................................8
1.2 Names and Functions of Hardware....................................................................................................10
1.3 System Specifications.........................................................................................................................12
1.4 System Configuration .........................................................................................................................13
1.5 System Configuration for Each Target Device ...................................................................................15
1.6 Package Contents ..............................................................................................................................15
1.7 AC Adapter for IECUBE......................................................................................................................17
CHAPTER 2 SETUP PROCEDURE................................................................................................................18
2.1 Software Settings................................................................................................................................19
2.2 Clock Settings.....................................................................................................................................19
2.3 Mounting and Connecting Connectors (When Using S Type)............................................................23
2.3.1 Mounting TC to target system..................................................................................................23
2.3.2 Mating theTC to EA..................................................................................................................24
2.3.3 General Precautions when Using the EA, TC..........................................................................25
2.4 Mounting and Connecting Connectors (When Using T Type)............................................................26
2.4.1 Mounting NQ to target system..................................................................................................26
2.4.2 Mounting YQ to NQ..................................................................................................................27
2.4.3 Plugging EA into YQ.................................................................................................................27
2.4.4 Precautions for handling NQ, YQ, SA, and CA........................................................................28
2.4.5 Precautions for mounting IC using NQ and MA .......................................................................29
2.5 Connecting QB-RL78G1A to Target System......................................................................................30
2.6 Notes on Power Supply and GND Pin Connection.............................................................................32
2.7 Connecting USB Interface Cable and AC Adapter.............................................................................32
2.8 Switching Power On and Off...............................................................................................................32
CHAPTER 3 SETTINGS AT PRODUCT SHIPMENT......................................................................................33
CHAPTER 4 CAUTIONS ...............................................................................................................................34
4.1 Cautions Regarding Differences Between Target Device and Emulator ...........................................34
4.2 Debugging Note..................................................................................................................................37

QB-RL78G1AIn-CircuitEmulator CHAPTER1 GENERAL
CHAPTER 1 GENERAL
The QB-RL78G1A is an in-circuit emulator for emulating the RL78/G1A.
Hardware and software can be debugged efficiently in the development of systems in which the RL78/G1A is used.
This manual descries basic setup procedures, hardware specifications, system specifications, and how to set switches.
R20UT0948EJ0100 Rev.1.00 Page 7 of 40
2012.1.30

QB-RL78G1AIn-CircuitEmulator CHAPTER1 GENERAL
1.1 Hardware Specifications
Table 1-1. QB-RL78G1A Hardware Specifications
Parameter Specification
Target device RL78/G1A
Operating voltage 1.6V to 3.6V
2.7 V VDD 3.6V: 1 to 20 MHz
1.8 V VDD < 2.7 V: 1 to 8 MHz
High-speed
system clock
1.6 V VDD 1.8 V: 1 to 4 MHz
1.6 V VDD 3.6V: 1 MHz (Typ.)
1.6 V VDD 3.6V: 2 MHz (Typ.)
1.8 V VDD 3.6V: 3 MHz (Typ.)
1.6 V VDD 3.6V: 4 MHz (Typ.)
1.8 V VDD 3.6V: 8 MHz (Typ.)
2.4 V VDD 3.6V: 12 MHz (Typ.)
2.4 V VDD 3.6V: 16 MHz (Typ.)
2.58 V VDD 3.6V: 24 MHz (Typ.)
High-speed
on-chip oscillator clock
2.7 V VDD 3.6V: 32 MHz (Typ.)
2.7 V VDD 3.6V: 1 to 20 MHz
1.8 V VDD < 2.7 V: 1 to 8 MHz
Main system clock
External main system clock
1.6 V VDD 1.8 V: 1 to 4 MHz
Subsystem clock 1.6 V VDD 3.6V: 32.768 KHzSubsystem clockNote2
External subsystem clock 1.6 V VDD 3.6V: 32 to 35 KHz
Operating
frequencyNote1
Low-speed on-chip oscillator clock 1.6 V VDD 3.6V: 15K Hz
Operating temperature range 0 to 40°C (No condensation)
Storage temperature range −15 to 60°C (No condensation)
External dimensions See figure below
Power
consumption Target system power supply Voltage: 1.6 to 3.6 V
Current: approx. 150 mA MAX
Weight Approx. 400 g
Host interface USB interface (1.1, 2.0)
Note1 Errors are within ±0.05%. However, this does not apply to errors of the oscillator or clock system
on the target board.
Note2 Errors are within ±0.005%. However, this does not apply to errors of the oscillator or clock
system on the target board.
R20UT0948EJ0100 Rev.1.00 Page 8 of 40
2012.1.30

QB-RL78G1AIn-CircuitEmulator CHAPTER1 GENERAL
112mmNote1
108mmNote2
58mm
Rear space adapterNote3
Front space adapterNote4
Notes 1. Does not include projection of power switch
2. Includes projection of screw that fixes rear space adapter
3. Rear space adapter can adjust the height from 30 mm (longest) to 0 mm (shortest)
4. Front space adapter can adjust the height from 20 mm (longest) to 5 mm (shortest)
R20UT0948EJ0100 Rev.1.00 Page 9 of 40
2012.1.30

QB-RL78G1AIn-CircuitEmulator CHAPTER1 GENERAL
1.2 Names and Functions of Hardware
Top View
Bottom View
OSC1
TCN3
TCN2
TCN1
CN6
POWER TARGET
(Red LED)
(Green LED)
Power switch Side View
USB connector
Power supply connector
Cooling fan
Figure 1-1. Names of Parts of QB-RL78G1A
R20UT0948EJ0100 Rev.1.00 Page 10 of 40
2012.1.30

QB-RL78G1AIn-CircuitEmulator CHAPTER1 GENERAL
(1) TCN1, TCN2, TCN3
These are connectors for connecting a check pin adapter or emulation probe.
(2) OSC1
This is a socket for mounting the oscillator.
(3) CN6
This is a connector for the shipment inspection. It is not something that the user will need.
(4) POWER (Red LED)
This is an LED that shows whether the power supply of the QB-RL78G1A is switched on.
LED State QB-RL78G1A State
Lit Power switch ON
Not lit Power switch OFF or AC adapter not connected to QB-RL78G1A
Blinking Internal error occurred (Contact an Renesas Electronics sales representative or
distributor)
(5) TARGET (Green LED)
This is an LED that shows whether the power supply of the target system is switched on.
LED State Target System State
Lit Target system power supply ON
Not lit Target system power supply OFF or target system not connected
(6) Power switch
This is the power switch of the QB-RL78G1A.
It is OFF at shipment.
(7) Cooling fun
This is the cooling fun of the QB-RL78G1A.
It works when the power supply of the QB-RL78G1A is switched on.
R20UT0948EJ0100 Rev.1.00 Page 11 of 40
2012.1.30

QB-RL78G1AIn-CircuitEmulator CHAPTER1 GENERAL
1.3 System Specifications
This section shows the QB-RL78G1A system specifications.
Table 1-2. QB-RL78G1A System Specifications
Parameter Specification
Internal ROM 512 KB (MAX.)Emulation memory capacity Internal RAM 61.75 KB (MAX.)
Real-time execution function Go, Start from Here, Come Here, Restart, Return Out,
Ignore break points and Go
Program execution
functions Non-real-time execution function Step In, Next Over, Slowmotion, Go & Go
Memory manipulation Available (initialize, copy, compare)
Register manipulation Available (general-purpose registers, control registers, SFRs)
Disassemble function Available
Local variable view Local variables
Watch data view Local variables, global variables, or else
Stack trace view Available
Event break Execution: 8 points
Access: 8 points
Software break 2000 points
Pre-execution break 4 points
Fail-safe break Non-map, write protect, SFR illegal access, stack overflow, or else
Break functions
Other Forcible break, trace full break, trace delay break, timeout break,
timer overflow break
Trace data types Program address, program data, access address, access data,
status, time tag
Trace modes Unconditional trace, section trace, qualify trace, delay trigger trace
Trace functions Non-stop, full stop, full break, delay trigger stop, delay trigger
break
Trace functions
Memory capacity 128K frames
Real-time RAM monitoring function All internal RAM spaces
Measurement clock 120 MHz
Measurement objects Start through end of program execution
Start event through end event
Maximum measurement time Approx. 40 hours and 43 minutes
Minimum resolution 8ns
Number of timers for
measurement Start through end of program execution: 1
Start event through end event: 2
Measurement results Execution time (start through end of execution)
Maximum, minimum, average, total, pass count (between events)
Time measurement
functions
Other Timer overflow break function, timeout break function
Other functions Command functions set in the console, mapping function, event
function, coverage function, snapshot function, DMM function,
power-off emulation function, pin mask function, flash self
programming emulation function
R20UT0948EJ0100 Rev.1.00 Page 12 of 40
2012.1.30

QB-RL78G1AIn-CircuitEmulator CHAPTER1 GENERAL
1.4 System Configuration
This section shows the system configuration when using the QB-RL78G1A connected to a PC (WindowsTM PC,
PC/ATTM compatible). Connection is possible even without optional products.
Figure 1-2. System Configuration
< 14 >
< 13 >
< 11 >
< 10 >
< 2 >
< 6 >
< 5 >
< 4 >
< 3 >
< 12 > < 9 >
< 7 >
< 8 >
S type
< 11 >
< 8 >
< 1 >
< 14 >
T type
<1> Host machine : Windows PC, IBM PC/AT compatible can be used
<2> Accessory Disk : Manual, etc.
<3> USB interface cable : Cable connecting QB-RL78G1A to host machine
<4> AC adapter : AC adapters classified by region
<5> QB-RL78G1A : This product
<6> Check pin adapter (optional) : Adapter used for monitoring waveforms with oscilloscope
<7> Emulation probe : High-characteristic FPC type emulation probe
<8> Exchange adapter : Adapter that performs pin conversion
<9> Space adapter (optional) : Adapter used for height adjustment
<10> YQ connector : Connector that connects exchange adapter to target connector
<11> Target connector : Connector soldered to target system
<12> Mount adapter (optional) : Adapter used for mounting target device into socket
<13> Device : Target device
<14> Target system
R20UT0948EJ0100 Rev.1.00 Page 13 of 40
2012.1.30

QB-RL78G1AIn-CircuitEmulator CHAPTER1 GENERAL
Remarks1. Refer to 1.6 Package Contents for the purchase forms of the above products.
2. As for handling of connectors, refer to 2.3 Mounting and Connecting Connectors (When Using S
Type) or 2.4 Mounting and Connecting Connectors (When Using T Type).
3. The part number of <4> differs depending on the region of use. See Table 1-5 Part Numbers of AC
Adapter for IECUBE Classified by Region for the part numbers. The IECUBE requires an AC
adapter that must be purchased separately.
4. See Table 1-4 Common Probe and Adapter for the part numbers of <6> and <7>.
5. The combination of <8>, <9>, <10>, <11>, and <12> varies depending on the emulation device. See
Table 1-3 Adapters and Connectors for Each Target Device for the combinations.
6. To determine the T Type socket or the S Type socket, check for "T" or "S" at the end of the socket
product name.
Example:
QB-64FB-EA-01T -> T Type
QB-48NA-EA-02S -> S Type
7. Even with the T Type socket, there may not be a space adapter/YQ connector/mount adapter.
In this case, the device cannot be mounted in the socket.
Check Table 1-3 Adapters and Connectors for Each Target Device.
R20UT0948EJ0100 Rev.1.00 Page 14 of 40
2012.1.30

QB-RL78G1AIn-CircuitEmulator CHAPTER1 GENERAL
1.5 System Configuration for Each Target Device
The following table lists the system configuration for each target device of the QB-RL78G1A.
The adapter and connector for each device, and common probe and adapter are sold separately. An exchange
adapter, a YQ connector, a target connector, and an emulation probe are included, depending on the order product
name. For details, refer to 1.6 Package Contents.
Remark For the package drawings of the connector, adapter, and probe, refer to the following URL.
http://www.renesas.com/products/tools/emulation_debugging/incircuit_emulators/iecube/rl78/index.jsp
Table 1-3. Adapters and Connectors for Each Target Device
Target Device Package Exchange Adaptor Space Adaptor YQ Connector Target Connector Mount Adaptor
64FB QB-64FB-EA- 03T QB-64FB-YS-01T QB-64FB-YQ-01T QB-64FB-NQ-01T QB-64FB-HQ-01TR5F10EL
64BG QB-64BG-EA-02T --QB-64BG-NQ-01T -
48FB QB-48FB-EA-03T QB-48FB-YS-01T QB-48FB-YQ-01T QB-48FB-NQ-01T QB-48FB-HQ-01TR5F10EG
48NA QB-48NA-EA-02S --QB-48NA-TC-01S -
R5F10EB 32NA QB-32NA-EA-03S --QB-32NA-TC-01S -
R5F10E8 25LA QB-25LA-EA-02T --QB-25LA -NQ-01T -
Table 1-4. Common Probe and Adapter
Name Part Number Target Device
Check pin adapter QB-144-CA-01 RL78/G1A
Emulation probe QB-80-EP-01T RL78/G1A
1.6 Package Contents
The included products are described for each order product name.
Products supplied with QB-RL78G1A-ZZZ
1: QB-RL78G1A
2: USB interface cable (2 meters)
3: Online user registration card (warranty card and software contract in one)
4: Accessory Disk (CD-ROM)
5: Packing list
Products supplied with QB-RL78G1A-T64FB
1 to 5
6: Emulation probe QB-80-EP-01T
7: Exchange adapter QB-64FB-EA-03T
8: YQ connector QB-64FB-YQ-01T
9: Target connector QB-64FB-NQ-01T
R20UT0948EJ0100 Rev.1.00 Page 15 of 40
2012.1.30

QB-RL78G1AIn-CircuitEmulator CHAPTER1 GENERAL
Products supplied with QB-RL78G1A-T64BG
1 to 5
6: Emulation probe QB-80-EP-01T
7: Exchange adapter QB-64BG-EA-02T
8: Target connector QB-64BG-NQ-01T
Products supplied with QB-RL78G1A-T48FB
1 to 5
6: Emulation probe QB-80-EP-01T
7: Exchange adapter QB-48FB-EA-03T
8: YQ connector QB-48FB-YQ-01T
9: Target connector QB-48FB-NQ-01T
Products supplied with QB-RL78G1A-S48NA
1 to 5
6: Emulation probe QB-80-EP-01T
7: Exchange adapter QB-48NA-EA-02S
8: Target connector QB-48NA-TC-01S
Products supplied with QB-RL78G1A-S32NA
1 to 5
6: Emulation probe QB-80-EP-01T
7: Exchange adapter QB-32NA-EA-03S
8: Target connector QB-32NA-TC-01S
Products supplied with QB-RL78G1A-T25LA
1 to 5
6: Emulation probe QB-80-EP-01T
7: Exchange adapter QB-25LA-EA-02T
8: Target connector QB-25LA-NQ-01T
R20UT0948EJ0100 Rev.1.00 Page 16 of 40
2012.1.30

QB-RL78G1AIn-CircuitEmulator CHAPTER1 GENERAL
R20UT0948EJ0100 Rev.1.00 Page 17 of 40
2012.1.30
1.7 AC Adapter for IECUBE
The specifications of the AC adapter for IECUBE differ depending on the region of use. Be sure to use an AC adapter
corresponding to the region of use.
Table 1-5. Part Numbers of AC Adapter for IECUBE Classified by Region
Product Destination (Region)Notes 1, 2 Part NumberNote 3
Japan QB-COMMON-PW-JP
USA QB-COMMON-PW-EA
China QB-COMMON-PW-CN
Hong Kong QB-COMMON-PW-HK
South Korea QB-COMMON-PW-KR
Singapore QB-COMMON-PW-SG
AC adapter
(sold separately)
Taiwan QB-COMMON-PW-TW
Notes 1. Products are shipped only on order from each region.
2. Contact a distributor or a Renesas Electronics sales representative for information on regions
other than the above.
3. Only the AC adapter usable in each region can be ordered.

QB-RL78G1AIn-CircuitEmulator CHAPTER2 SETUPPROCEDURE
CHAPTER 2 SETUP PROCEDURE
This chapter explains the QB-RL78G1A setup procedure.
Setup can be completed by performing installation setup in the order in which it appears in this chapter.
Perform setup along the lines of the following procedure.
See 1.2 Names and Functions of Hardware for clock positions.
Clock settings
2.2 See Clock Settings.
Software settings
2.1 Software Settings.
Mounting and connecting connectors
When using the S Type, se 2.3 Mounting and Connecting Connectors (When Using S Type)
When using the T Type, se 2.4 Mounting and Connecting Connectors (When Using T Type)
2.5 See Connecting QB-RL78G1A to target system.
Connecting QB-RL78G1A to target system
2.6 See Connecting USB interface cable and AC adapter.
Switching power on and off
2.7 See Switching power on and off.
Connecting USB interface cable and AC adapter
R20UT0948EJ0100 Rev.1.00 Page 18 of 40
2012.1.30

QB-RL78G1AIn-CircuitEmulator CHAPTER2 SETUPPROCEDURE
2.1 Software Settings
Check the user's manual for the debugger that will be used.
2.2 Clock Settings
The IECUBE clock must be set to the clock used by the target device. For details about how to set the clock, check
the user's manual for the debugger that will be used.
IECUBE clock settings for the clock used by the target device are shown below.
Oscillation with the resonator on the target system is not supported. Therefore, the in-circuit emulator cannot
emulate the oscillation operation of the clock on the target system.
Table 2-1. List of clock settings
Clock Used Clock Supply
(a) When the clock generated within the emulator is used
(b) When the clock (a square wave) is supplied from the
target system
(1) High-speed system clock
(X1 oscillator or External input)
(c) When the oscillator (OSC1) mounted onto the emulator
is used
(2) Internal high-speed
oscillation clock
Uses the clock internally generated from the emulator
(3) Internal low-speed
oscillation clock
Uses the clock internally generated from the emulator
(a) When the clock generated within the emulator is used(4) Subsystem clock
(XT1 oscillator or External
input) (b) When the clock (a square wave) is supplied from the
target system
R20UT0948EJ0100 Rev.1.00 Page 19 of 40
2012.1.30

QB-RL78G1AIn-CircuitEmulator CHAPTER2 SETUPPROCEDURE
(1) High-speed system clock
The clock settings are listed below.
Table 2-2. Settings for High-Speed System Clock
Type of Clock to Be Used OSC1
(a) When the clock generated within the emulator is used –
(b) When the clock (a square wave) is supplied from the target systemNote –
(c) When the oscillator (OSC1) mounted onto the emulator is used Oscillator mounted
Note This setting is not possible when TARGET LED is not lit.
Remarks 1. Settings other than the above are prohibited.
2. Selection of (a) or (b) is possible regardless of whether the oscillator is not mounted in the
OSC1socket.
(a) When the clock generated within the emulator is used
This method uses the clock generated inside the emulator.
The oscillation frequency that will be used must be set in the debugger. For details about how to set the
oscillation frequency, check the user's manual for the debugger that will be used.
(b) When the clock (a square wave) is supplied from the target system
The clock input from the target system is then used.
To input a clock from the target system, input to the clock pin (X2) the square-wave signal with the same
voltage potential as that of the target device supply voltage (VDD). Inputting the inverted signal to X1 is not
necessary.
The selectable frequencies are same as those of the target device.
For debugger settings, check the user's manual for the debugger that will be used. Oscillation by a resonator
in the target system is not supported.
(c) When the oscillator (OSC1) mounted onto the emulator is used
Mount an oscillator in the OSC1 socket in the emulator and then select the “Clock socket” in the debugger.
The clock generated from the oscillator mounted on the emulator is used.
The selectable frequencies are same as those of the target device.
To modify the clock setting, the acrylic board on the bottom of the QB-RL78G1A must be removed.
The acrylic board can be removed by lifting it up.
For debugger settings, check the user's manual for the debugger that will be used.
R20UT0948EJ0100 Rev.1.00 Page 20 of 40
2012.1.30
Table of contents
Other Renesas Network Hardware manuals

Renesas
Renesas M38000T2-CPE User manual

Renesas
Renesas R-IN32 Series User manual

Renesas
Renesas YCONNECT-IT-RZN2L User manual

Renesas
Renesas H8S/2268 Series Owner's manual

Renesas
Renesas RL78/L12 User manual

Renesas
Renesas Synergy AE-CAP1 User manual

Renesas
Renesas Target Board S3A3 User manual

Renesas
Renesas RX600 Series User manual

Renesas
Renesas H8S/2633 User manual

Renesas
Renesas RH850/U2A Y-RH850-U2A-176PIN-PB-T1-V1 User manual