ETC HD64738024

Notes on Connecting the H8/3672F,
H8/36014F, and H8/36024F
Separate Document for Tiny/SLP E7 Emulator User’s
Manual
REJ11B0003-0100Z
Rev. 1.0
03/27/03
Renesas Technology Corp.
HS0007TCU01HEP2
Cautions
Keep safety first in your circuit designs!
1. Renesas Technology Corporation puts the maximum effort into making semiconductor products better
and more reliable, but there is always the possibility that trouble may occur with them. Trouble with
semiconductors may lead to personal injury, fire or property damage.
Remember to give due consideration to safety when making your circuit designs, with appropriate
measures such as (i) placement of substitutive, auxiliary circuits, (ii) use of nonflammable material or
(iii) prevention against any malfunction or mishap.
Notes regarding these materials
1. These materials are intended as a reference to assist our customers in the selection of the Renesas
Technology Corporation product best suited to the customer's application; they do not convey any
license under any intellectual property rights, or any other rights, belonging to Renesas Technology
Corporation or a third party.
2. Renesas Technology Corporation assumes no responsibility for any damage, or infringement of any
third-party's rights, originating in the use of any product data, diagrams, charts, programs, algorithms, or
circuit application examples contained in these materials.
3. All information contained in these materials, including product data, diagrams, charts, programs and
algorithms represents information on products at the time of publication of these materials, and are
subject to change by Renesas Technology Corporation without notice due to product improvements or
other reasons. It is therefore recommended that customers contact Renesas Technology Corporation
or an authorized Renesas Technology Corporation product distributor for the latest product information
before purchasing a product listed herein.
The information described here may contain technical inaccuracies or typographical errors.
Renesas Technology Corporation assumes no responsibility for any damage, liability, or other loss
rising from these inaccuracies or errors.
Please also pay attention to information published by Renesas Technology Corporation by various
means, including the Renesas Technology Corporation Semiconductor home page
(http://www.renesas.com).
4. When using any or all of the information contained in these materials, including product data, diagrams,
charts, programs, and algorithms, please be sure to evaluate all information as a total system before
making a final decision on the applicability of the information and products. Renesas Technology
Corporation assumes no responsibility for any damage, liability or other loss resulting from the
information contained herein.
5. Renesas Technology Corporation semiconductors are not designed or manufactured for use in a device
or system that is used under circumstances in which human life is potentially at stake. Please contact
Renesas Technology Corporation or an authorized Renesas Technology Corporation product distributor
when considering the use of a product contained herein for any specific purposes, such as apparatus or
systems for transportation, vehicular, medical, aerospace, nuclear, or undersea repeater use.
6. The prior written approval of Renesas Technology Corporation is necessary to reprint or reproduce in
whole or in part these materials.
7. If these products or technologies are subject to the Japanese export control restrictions, they must be
exported under a license from the Japanese government and cannot be imported into a country other
than the approved destination.
Any diversion or reexport contrary to the export control laws and regulations of Japan and/or the
country of destination is prohibited.
8. Please contact Renesas Technology Corporation for further details on these materials or the products
contained therein.
High-performance Embedded Workshop User’s Manual
Contents
Section 1 Connecting the E7 Emulator with the User System...........................1
Section 2 Pin Arrangement of the E7 Connector...............................................3
Section 3 Example of Emulator Connection......................................................5
Section 4 Differences between the MCUs and the Emulator.............................9
i
High-performance Embedded Workshop User’s Manual
ii
High-performance Embedded Workshop User’s Manual
Section 1 Connecting the E7 Emulator with the User System
Before connecting an E7 emulator (hereafter referred to as emulator) with the user system, a
connector must be installed in the user system so that an user system interface cable can be
connected. When designing the user system, refer to the connector and recommended circuits
shown in this manual.
Before designing the user system, be sure to read the E7 emulator user’s manual and the hardware
manual for related MCUs.
Connect pins 2, 4, 6, 10, 12, and 14 of the user system connector to GND firmly on the PCB.
These pins are used as electrical GND and to monitor the connection of the user system connector.
Note the pin arrangement of the user system connector.
User system interface cable
Tab
Connector
Pin 2
Pin 1
User system
Figure 1.1 Connecting the User System Interface Cable to the User System
Notes:
1.
The pin number assignment of the 14-pin connector differs from that of the E10A
emulator; however, the physical location is the same.
2.
When the connector is used, do not install any components within 3 mm of the
connector.
1
High-performance Embedded Workshop User’s Manual
2
High-performance Embedded Workshop User’s Manual
Section 2 Pin Arrangement of the E7 Connector
Figure 2.1 shows the pin arrangement of the connector.
Pin No.
Pin 1 mark
Connector
14 pin
13 pin
2 pin
1 pin
Top view
Pin 1 mark
Signal of H8/3672F,
H8/36014F, or H8/36024F
1
E10T_2
2
Vss
3
N.C.
4
Vss
5
E10T_1
6
Vss
7
/NMI *
8
Vcc
9
N.C.
10
Vss
11
E10T_0
12
Vss
13
/RES*
14
Vss
Note:
The slash (/) means that the signal is active-low.
Figure 2.1 Pin Arrangement of the Connector
3
High-performance Embedded Workshop User’s Manual
4
High-performance Embedded Workshop User’s Manual
Section 3 Example of Emulator Connection
Pulled up at 4.7 kΩ or more
Vcc
Vcc Vcc Vcc Vcc
Vcc
/NMI
/NMI
E10T_0
E10T_0
E10T_1
E10T_1
E10T_2
E10T_2
Vcc
User
logic
H8/3672F,
H8/36014F,
or
H8/36024F
*
/RES
/RES
Pulled up at 4.7 kΩ or more
Vss
User system
*: Open-collector buffer
Connector
14 pins with a 2.54-mm pitch
Figure 3.1 Example of Emulator Connection
5
High-performance Embedded Workshop User’s Manual
Notes: 1. E10T_0 to E10T_2 pins are used by the emulator. Pull up and connect the emulator
and MCU pins.
H8/3672F, H8/36014F, or H8/36024F
User system
connector
Vcc
4.7 kΩ
Pins 1, 5, and 11
E10T_0 to E10T_2
Figure 3.2 Connection of Emulator and E10T_0 to E10T_2 Pins
2.
The /NMI signal is used for forced break control by the emulator. Connect the
emulator and MCU pins directly. In debugging without forced break control, change
the mode with the HEW. Then, when the user logic is connected with the opencollector output buffer, the /NMI pin can be used in the user system (however, at
power-on, the /NMI pin is used by the emulator).
H8/3672F, H8/36014F, or H8/36024F
When connected directly:
User system
connector
Vcc
4.7 kΩ
/NMI pin
Pin 7
When the /NMI pin is used (forced break cannot be used):
H8/3672F, H8/36014F, or H8/36024F
Vcc
User system
connector
User logic
*
4.7 kΩ
/NMI pin
Pin 7
*Open-collector
output buffer
Figure 3.3 Connection of Emulator and /NMI Pin
6
High-performance Embedded Workshop User’s Manual
3.
The /RES pin is used by the emulator. Create the following circuit by connecting the
open-collector output buffer so that reset input can be accepted from the emulator:
Example of reset circuit
User system
connector
H8/3672F, H8/36014F, or H8/36024F
Vcc
User logic
*
4.7 kΩ
/RES pin
Pin 13
*Open-collector
output buffer
Figure 3.4 Example of a Reset Circuit
4.
Connect Vss and Vcc with the Vss and Vcc of the MCU, respectively.
5.
Connect nothing with N.C.
6.
The input voltage, Vcc, must be connected to the user system Vcc (power supply).
The amount of voltage permitted to input to Vcc must be within the guaranteed range
of the microcomputer.
7
High-performance Embedded Workshop User’s Manual
7.
Figure 3.5 shows the interface circuit in the emulator. Use this figure as a reference
when determining the pull-up resistance value.
Emulator control circuit
User connector
Vcc
8
HD74LV125A
10 k
x2
22
22
E10T_2
E10T_0
1
11
10 k
x3
HD74LVC244
22
E10T_1
5
22
/NMI
7
22
Note: The power of HD74LV125A is supplied from Vcc in the user connector.
Figure 3.5 Interface Circuit in the Emulator (Reference)
8
/RES
13
High-performance Embedded Workshop User’s Manual
Section 4 Differences between the MCUs and the Emulator
1. When the emulator system is initiated, it initializes the general registers and part of the control
registers as shown in table 4.1.
Table 4.1 Register Initial Values at Emulator Power-On
Register
Initial Value
PC
Reset vector value in the vector address table
ER0 to ER6
H’0000
ER7 (SP)
H'0010
CCR
H’80
2. Low-Power Mode
During a user program break, the CPU operating frequency is forced to a system clock (φ) for
high-speed operation.
3. RES Signal
The MCU signals are only valid during user program execution started with clicking the GO
or STEP-type button. During a user program break, the RES signal is not sent to the MCUs.
Note: Do not start user program execution or access the memory while control input signal
(RES) is being low. A TIMEOUT error will occur.
4. System Control Register
In the emulator, the internal I/O registers can be accessed from the [I/O] window. However,
be careful when accessing the system control register. The emulator saves the register value of
the system control register at a break and returns the value when the user program is executed.
Since this is done during a break, do not rewrite the system control register in the [I/O]
window.
5. Memory Access during Emulation
If the memory contents are referenced or modified during emulation, realtime emulation
cannot be performed because the user program is temporarily halted.
6. The emulator communicates with the MCUs by using the NMI, RES, and E10T_2 to E10T_0
pins. These pins cannot be used, however, the NMI pin can be used by changing the setting of
the [NMI signal] group box in the [Configuration] window.
7.
The power consumed by the MCU can reach several mA. This is because the user power
supply drives one HD74LV125A to make the communication signal level match the user9
High-performance Embedded Workshop User’s Manual
system power-supply voltage. The power consumed rises little during user program
execution since the emulator does not perform communication; it rises more during a break.
8.
Program Area for the Emulator
Do not access a part of areas in the flash memory or the internal RAM since the emulator
program uses these areas. If the contents of the program area for the emulator are changed,
the emulator will not operate normally. In this case, restart the emulator with the Download
emulator firmware mode.
Table 4.2 Program Area for the E7 Emulator
Mode
Program Area
H8/3672F
Flash memory: H’4000 to H’4FFF
Internal RAM: H’F780 to H’FB7F
Vector, etc.: H’0002 to H’0007, H’000E to H’000F, H’0018 to H’0019
H8/36014F
Flash memory: H’7000 to H’7FFF
H8/36024F
Internal RAM: H’F780 to H’FB7F
Vector, etc.: H’0002 to H’0007, H’000E to H’000F, H’0018 to H’0019
9.
The emulator uses a two-word stack pointer for values stored on a user program break.
Therefore, the stack area must accept two-word addresses.
10. Do not use an MCU that has been used for debugging.
If the flash memory is rewritten many times, data may be lost due to retention problems after
the emulator has been left for a few days and the data will be erased. If an error message is
displayed, exchange the MCU for a new one.
11. Forced Break Function
When the NMI signal is used for a forced break in the emulator, the vector address of NMI is
rewritten by the emulator program. An error will occur if a file in the host computer and the
flash memory contents are verified. Do not use the flash memory contents as the ROM data
for the mask ROM after it has been saved.
12. Setting the Usage of the NMI Signal
In the [Configuration] dialog box, when the NMI signal is changed as it is used in the user
program, the vector address of NMI is not recovered. Reload the user program.
10
High-performance Embedded Workshop User’s Manual
13. Address Break Release Function
When the address break function is not released for users, the vector address of address break
is rewritten by the emulator program. An error will occur if a file in the host computer and the
flash memory contents are verified. Do not use the flash memory contents as the ROM data
for the mask ROM after it has been saved.
14. Initializing the Internal I/O Register with the Reset_CPU Function
Be sure to initialize the following internal I/O registers by the user program since they are not
initialized by selecting [Debug] – [Reset CPU] or using the RESET command:
SYSCR1, SYSCR2, IEGR1, IEGR2, IENR1, IRR1, IWPR, MSTCR1, and TSCR
15. Step Execution of the SLEEP Instruction
When the interrupt mask bit (I) in the condition code register (CCR) is 1, do not perform step
execution of the SLEEP instruction. If the step execution is performed and not finished
correctly, restart the emulator.
11
High-performance Embedded Workshop User’s Manual
12