To our customers, Old Company Name in Catalogs and Other Documents On April 1st, 2010, NEC Electronics Corporation merged with Renesas Technology Corporation, and Renesas Electronics Corporation took over all the business of both companies. Therefore, although the old company name remains in this document, it is a valid Renesas Electronics document. We appreciate your understanding. Renesas Electronics website: http://www.renesas.
Notice 1. 2. 3. 4. 5. 6. 7. All information included in this document is current as of the date this document is issued. Such information, however, is subject to change without any prior notice. Before purchasing or using any Renesas Electronics products listed herein, please confirm the latest product information with a Renesas Electronics sales office.
User’s Manual SH-2A, SH-2 E200F Emulator Additional Document for User’s Manual Supplementary Information on Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC Renesas Microcomputer Development Environment System SuperH™ Family SH7254R Group SH7253 Group R0E572546EMU00E Rev.2.00 2009.
Rev. 2.00 Feb.
Notes regarding these materials 1. This document is provided for reference purposes only so that Renesas customers may select the appropriate Renesas products for their use. Renesas neither makes warranties or representations with respect to the accuracy or completeness of the information contained in this document nor grants any license to any intellectual property rights or any other rights of Renesas or any third party with respect to the information in this document. 2.
Rev. 2.00 Feb.
Contents Section 1 System Configuration ........................................................................1 1.1 1.2 Components of the Emulator ............................................................................................ 1 System Configuration ....................................................................................................... 5 Section 2 Connecting the Emulator to the User System ....................................9 2.1 2.2 2.3 2.4 2.5 2.6 2.
3.2.10 EVA AUD Monitoring Function ......................................................................... 83 Section 4 User System Interface Circuits ..........................................................85 4.1 4.2 User System Interface Circuits ......................................................................................... 85 Delay Time for the User System Interface........................................................................ 94 Rev. 2.00 Feb.
Section 1 System Configuration Section 1 System Configuration 1.1 Components of the Emulator The E200F emulator supports the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC. Table 1.1 lists the components of the emulator. Table 1.1 Components of the Emulator Classification Component Hardware Emulator main unit AC adapter Appearance Quantity 1 Remarks R0E0200F1EMU00: Depth: 185.0 mm, Width: 130.0 mm, Height: 45.0 mm, Mass: 321.
Section 1 System Configuration Table 1.1 Components of the Emulator (cont) Classification Component Hardware (cont) USB cable External probe Appearance Quantity Remarks 1 Length: 1500 mm, Mass: 50.
Section 1 System Configuration Table 1.2 Optional Components of the Emulator Classification Component Hardware Trace cable Appearance Quantity Remarks 1 R0E200F0ACC00 Length: 300mm, Mass: 65g Profiling expansion unit 1 R0E200F0EPU00 Depth: 98.0 mm, Width: 115.0 mm, Height: 15.2 mm, Mass: 52 g Expansion AUD trace unit 1 R0E0200F1ATU00: Depth: 90.0 mm, Width: 125.0 mm, Height: 15.2 mm, Mass: 88 g Emulation memory unit 1 R0E0200F1MSR00 (8 Mbytes), R0E0200F1MSR01 (16 Mbytes): Depth: 90.
Section 1 System Configuration Table 1.2 Optional Components of the Emulator (cont) Classification Component User system interface cable (board unit and cable unit) Appearance Quantity Remarks 1 R0E0200F1CKL10: (board unit) Depth: 60.0 mm, Width: 110.0 mm, Height: 26.0 mm, Mass: 44 g R0E0200F1CKL10: (cable unit) Depth: 35.0 mm, Width: 267.0 mm, Height: 5.05 mm, Mass: 8 g User-system interface converter board 1 R0E572546CBF10: Depth: 43.5 mm, Width: 30.0 mm, Height: 10.
Section 1 System Configuration 1.2 System Configuration Figures 1.1 shows examples of the emulator system configuration. - When the EV-chip unit is used Expansion AUD trace unit Profiling expansion unit High-performance Embedded Workshop Emulation memory unit Trace cable EV-chip unit USB 2.0/1.1 User system interface cable PC E200F IC socket User system - When the EV-chip unit is not used Profiling expansion unit Expansion AUD trace unit High-performance Embedded Workshop Trace cable USB 2.
Section 1 System Configuration (1) System Configuration of the SH72546RFCC, SH72544R, and SH72543R Table 1.3 shows the system configuration supported by the SH72546RFCC, SH72544R, and SH72543R. Table 1.
Section 1 System Configuration Table 1.
Section 1 System Configuration (2) System Configuration of the SH72531 and SH72531FCC Table 1.4 shows the system configuration supported by the SH72531 and SH72531FCC. Table 1.
Section 2 Connecting the Emulator to the User System Section 2 Connecting the Emulator to the User System 2.1 Connecting the Emulator to the User System When the emulator is connected to the user system, use the optional EV-chip unit, user system interface cable, and trace cable. 2.
Section 2 Connecting the Emulator to the User System Figure 2.1 Connecting the Trace Cable to E200F when Using the EV-chip Unit Rev. 2.00 Feb.
Section 2 Connecting the Emulator to the User System • Connect the EV-chip unit to the trace cable (CN1 side). Figure 2.2 Connecting the Trace Cable to the EV-chip Unit CAUTION Check the location of pin 1 before connecting. Rev. 2.00 Feb.
Section 2 Connecting the Emulator to the User System 2.2.2 Connecting the E200F Expansion AUD Trace Unit to the EV-chip Unit • When the expansion AUD trace unit is used with the EV-chip unit, connect the expansion AUD trace unit to the EV-chip unit as shown in figure 2.3. Figure 2.3 Connecting the Expansion AUD Trace Unit to the EV-chip Unit • After checking the location of pin 1, connect the EV-chip unit, expansion AUD trace unit, and trace cable. Rev. 2.00 Feb.
Section 2 Connecting the Emulator to the User System Figure 2.4 Connecting the Expansion AUD Trace Unit, EV-chip Unit, and Trace Cable CAUTION Check the location of pin 1 before connecting. Rev. 2.00 Feb.
Section 2 Connecting the Emulator to the User System 2.2.3 Connecting the H-UDI/AUD Probe to the EV-chip Unit • Connect the H-UDI/AUD probe to the EV-chip unit as shown in figure 2.5. Figure 2.5 Connecting the H-UDI/AUD Probe to the EV-chip Unit CAUTION Check the location of pin 1 before connecting. Rev. 2.00 Feb.
Section 2 Connecting the Emulator to the User System 2.2.4 Connecting the E200F Expansion AUD Trace Unit, Emulation Memory Unit, and EV-chip Unit • When the expansion AUD trace unit is used with the emulation memory unit and EV-chip unit, as shown in figure 2.6, connect them in the positions of (a), (b), and (c) for the expansion AUD trace unit, emulation memory unit, and EV-chip unit, respectively.
Section 2 Connecting the Emulator to the User System 2.2.5 Connecting the EV-chip Unit to the User System Interface Cable • After checking the location of pin 1, connect the EV-chip unit to the user system interface cable. (1) Connecting the SH72546RFCC, SH72544R, or SH72543R EV-chip Unit to the User System Interface Cable.
Section 2 Connecting the Emulator to the User System (2) Connecting the SH72531 or SH72531FCC EV-chip Unit to the User System Interface Cable. Expansion AUD trace unit EV-chip unit Common user-system interface adaptor cable (board unit) x3 Common user-system interface adaptor cable (cable unit) User-system interface converter board Cover for connecting the emulator IC socket User system Figure 2.
Section 2 Connecting the Emulator to the User System 2.2.6 Using the E200F Emulator as a Stand-Alone Unit If you are using the E200F emulator unit without connecting it to a user system, refer to table 1.3 and table 1.4 in section 1.2, System Configuration, and make connections as shown in figure 2.9 until the EV-chip unit becomes available.
Section 2 Connecting the Emulator to the User System 2.3 Connecting the Emulator to the User System by Using the H-UDI Port Connector To connect the E200F emulator (hereinafter referred to as the emulator) in a configuration without an Ev-chip unit, the H-UDI port connector must be installed on the user system to connect the user system interface cable. When designing the user system, refer to the recommended circuit between the H-UDI port connector and the MCU.
Section 2 Connecting the Emulator to the User System 2.4 Installing the H-UDI Port Connector on the User System Table 2.2 shows the recommended H-UDI port connectors for the emulator. Table 2.2 Recommended H-UDI Port Connectors Connector Type Number Manufacturer Specifications 36-pin connector DX10M-36S Hirose Electric Co., Ltd.
Section 2 Connecting the Emulator to the User System 2.5 Pin Assignments of the H-UDI Port Connector Figure 2.10 shows the pin assignments of the 36-pin H-UDI port connectors. (1) Pin assignment of the SH72546RFCC, SH72544R, and SH72543R Note: Note that the pin number assignments of the H-UDI port connector shown on the following page differ from those of the connector manufacturer. Rev. 2.00 Feb.
Section 2 Connecting the Emulator to the User System Pin No. Signal 1 AUDCK 2 GND 3 AUDATA0 Input/ Output*1 Pin No. Note Output 19 Output Signal Input/ Output*1 TMS Input 20 GND 21 _TRST 22 (GND)*4 23 TDI 24 GND *2 4 GND 5 AUDATA1 6 GND 7 AUDATA2 8 GND 9 AUDATA3 10 GND 28 GND 11 _AUDSYNC*2 Output 29 UVCC 12 GND 30 GND 13 N.C. 31 _RES*2 14 GND 32 GND 15 N.C. 33 GND *3 16 GND 34 GND 17 TCK 35 N.C.
Section 2 Connecting the Emulator to the User System (2) Pin assignment of the SH72531 and SH72531FCC Note: Note that the pin number assignments of the H-UDI port connector shown on the following page differ from those of the connector manufacturer. Rev. 2.00 Feb.
Section 2 Connecting the Emulator to the User System Pin No. Signal Input/ Output*1 Pin No. Note Signal Input/ Output*1 TMS Input 1 N.C. 19 2 GND 20 GND 3 N.C. 21 _TRST *2 4 GND 22 (GND)*4 5 N.C. 23 TDI 6 GND 24 GND 7 N.C. 25 TDO 8 GND 26 GND 9 N.C. 27 N.C. 10 GND 28 GND 11 N.C. 29 UVCC GND 12 GND 30 13 N.C. 31 _RES*2 14 GND 32 GND 15 N.C. 33 GND *3 16 GND 34 GND 17 TCK 35 N.C.
Section 2 Connecting the Emulator to the User System 2.6 Recommended Circuit between the H-UDI Port Connector and the MCU 2.6.1 Recommended Circuit (36-Pin Type) Figure 2.12 shows the recommended circuit for connection between the H-UDI and AUD port connectors (36 pins) and the MCU, and figure 2.13 shows a recommended circuit for connection between the H-UDI port connectors (36 pins) and the MCU when the emulator is in use. Notes: 1. Do not connect anything to the N.C.
Section 2 Connecting the Emulator to the User System Vcc = 3.3-V power supply All pulled-up at 4.7 kΩ or more Vcc Vcc Vcc H-UDI port connector (36-pin type) 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 GND AUDCK GND AUDATA0 GND AUDATA1 AUDATA2 GND GND AUDATA3 GND AUDSYNC GND AUDRST GND AUDMD GND TCK GND TMS GND TRST GND TDI GND TDO GND ASEBRKAK GND UVCC GND RES GND GND GND N.C.
Section 2 Connecting the Emulator to the User System Vcc = 3.3-V power supply All pulled-up at 4.7 kΩ or more Vcc Vcc Vcc H-UDI port connector (36-pin type) 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 GND N.C. GND N.C. GND N.C. GND N.C. GND N.C. GND N.C. GND N.C. GND N.C. GND TCK GND TMS GND TRST GND TDI GND TDO GND N.C. GND UVCC GND RES GND GND GND N.C.
Section 2 Connecting the Emulator to the User System 2.7 Using the IC Socket to Mount an MCU on the User System Figure 2.14 shows the example of the configuration when the IC socket is used to mount an MCU on the user system using and the E200F emulator is connected in on-chip debugging mode. (1) Example of the configuration of the on-chip connection when the IC socket is used for SH72546RFCC, SH72544R, or SH72543R Rev. 2.00 Feb.
Section 2 Connecting the Emulator to the User System Screws MCU Top cover for IC socket IC socket User system H-UDI/AUD probe Figure 2.14 Example of the Configuration of the On-Chip Connection when the IC Socket is Used for the SH72546RFCC, SH72544R, or SH72543R Rev. 2.00 Feb.
Section 2 Connecting the Emulator to the User System CAUTION 1. Check the location of pin 1 before connecting. 2. IC socket and IC top cover for mounting on the user system, we recommend the following products. IC socket: BSSOCKET272Z2021RE21N socket (manufactured by Tokyo Eletech Corporation). Top cover for IC socket : LSPACK272Z22021RE02 cover (manufactured by Tokyo Eletech Corporation). Rev. 2.00 Feb.
Section 2 Connecting the Emulator to the User System (2) Example of the configuration of the on-chip connection when the IC socket is used for SH72531 or SH72531FCC Screws Top cover for IC socket MCU IC socket User system H-UDI/AUD probe Figure 2.15 Example of the Configuration of the On-Chip Connection when the IC Socket is Used for the SH72531 or SH72531FCC Rev. 2.00 Feb.
Section 2 Connecting the Emulator to the User System CAUTION 1. Check the location of pin 1 before connecting. 2. IC socket and IC top cover for mounting on the user system, we recommend the following products. IC socket: NQPACK176SD-ND socket (manufactured by Tokyo Eletech Corporation). Top cover for IC socket : HQPACK176SD cover (manufactured by Tokyo Eletech Corporation). Rev. 2.00 Feb.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC 3.1 Differences between the MCU 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 3.1. The initial values of the MCU registers are undefined.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC 3. Low-Power States (Sleep, Software Standby, and Module Standby) ⎯ When the emulator is used, the sleep state can be cleared with either the clearing function or with the [STOP] button, and a break will occur. ⎯ Emulation is not possible in the hardware standby mode. 4. Reset Signals The MCU reset signals are only valid during emulation started with clicking the GO or STEPtype button.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC Table 3.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC Table 3.4 Operation for ROM Cache Function Operation Write and erase of the flash memory Writes or erases all contents of ROM cache.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC Table 3.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC 13.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC 3.2 Specific Functions for the Emulator when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC In on-chip debugging mode, a reset must be input when the emulator is activated. 3.2.1 Event Condition Functions The emulator is used to set event conditions for the following three functions: • Break of the user program • Internal trace • Start or end of performance measurement Table 3.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC Table 3.7 lists the combinations of conditions that can be set under Ch1 to Ch11 and the software trace. Table 3.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC 3. The [Event Condition 11] dialog box is used to specify the count of [Event Condition 1] and becomes a reset point when the sequential condition is specified. Sequential Setting: Use the [Combination action(Sequential or PtoP)] dialog box to specify the sequential condition and the start or end of performance measurement. Table 3.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC Table 3.8 Conditions to Be Set (cont) Classification Item Description [Ch1, 2, 3] list box (cont) Ch2 to Ch1 PA Sets the performance measurement period during the time from the satisfaction of the condition set in Event Condition 2 (start condition) to the satisfaction of the condition set in Event Condition 1 (end condition).
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC Usage Example of Sequential Break Extension Setting: A tutorial program provided for the product is used as an example. For the tutorial program, refer to section 6, Tutorial, in the SH-2A, SH-2 E200F Emulator User’s Manual. The conditions of Event Condition are set as follows: 1. Ch1 Breaks address H’000010F2 when the condition [Prefetch address break after executing] is satisfied. 2.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC Figure 3.1 [Source] Window at Execution Halt (Sequential Break) If the sequential condition, performance measurement start/end, or point-to-point for the internal trace is set, conditions of Event Condition to be used will be disabled. Such conditions must be enabled from the popup menu by clicking the right mouse button on the [Event Condition] sheet. Notes: 1.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC 6. If a condition of which intervals are satisfied closely is set, no sequential condition will be satisfied. • Set the Event conditions, which are satisfied closely, by the program counter with intervals of two or more instructions. • After the Event condition has been matched by accessing data, set the event condition by the program counter with intervals of 17 or more instructions. 7.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC 3.2.2 Trace Functions The emulator supports the trace functions listed in table 3.9. Table 3.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC (1) Internal Trace Function To acquire the internal trace, open the [Internal trace] window by selecting [Internal trace] in the [Trace Window Type] dialog box which is opened by selecting [View] -> [Code] -> [Trace] from the menu. When [I-Trace] is selected for [Trace type] on the [Trace mode] page of the [ITrace/AUD-Trace acquisition] dialog box, the internal trace is available. Figure 3.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC The following six items can be selected as the internal trace from [Type] of [I-Trace mode]. Table 3.10 Information on Acquiring the Internal Trace Item Acquisition Information [M-Bus & Branch] Acquires the data and branch information on the M-bus. • Data access (read/write) • PC-relative access • Branch information [I-Bus] Acquires the data on the I-bus.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC Using the Event Condition restricts the condition; the following three items are set as the internal trace conditions. Table 3.11 Trace Conditions of the Internal Trace Item Acquisition Information Trace halt Acquires the internal trace until the Event Condition is satisfied. (The trace content is displayed in the [Trace] window after a trace has been halted. No break occurs in the user program.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC Set [I-Trace] as [Ch4 to Ch5 PtoP] in the [Combination action (Sequential or PtoP)] dialog box. When point-to-point and trace acquisition condition are set simultaneously, they are ANDed. Notes on Internal Trace (2) • Timestamp The timestamp is the clock counts of Pφ (48-bit counter). Table 3.12 shows the timing for acquiring the timestamp. Table 3.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC • Trace acquisition condition Do not set the trace-end condition for the SLEEP instruction and the branch instruction according to which the delay slot becomes the SLEEP instruction.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC (3) AUD Trace Functions This function is operational when the AUD pins of the MCU are connected to the emulator. Table 3.13 shows the AUD trace acquisition mode that can be set in each trace function. Table 3.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC Figure 3.3 [Trace mode] Page Rev. 2.00 Feb.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC To acquire the AUD trace, open the [AUD trace] window by selecting [AUD trace] in the [Trace Window Type] dialog box which is opened by selecting [View] -> [Code] -> [Trace] from the menu. When [AUD function] is selected for [Trace type] on the [Trace mode] page of the [ITrace/AUD-Trace acquisition] dialog box, the AUD trace is available.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC Figure 3.4 [AUD Branch trace] Page Rev. 2.00 Feb.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC (b) Window Trace Function Memory access in the specified range can be acquired by trace. Two memory ranges can be specified for channels A and B. The read, write, or read/write cycle can be selected as the bus cycle for trace acquisition. [Setting Method] (i) Select the [Channel A] and [Channel B] check boxes in the [AUD mode] group box of the [Trace mode] page. Each channel will become valid.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC Figure 3.5 [Window trace] Page Note: When [M-BUS] or [I-BUS] is selected, the following bus cycles will be traced. • M-BUS: A bus cycle generated by the CPU is acquired. A bus cycle is also acquired when the cache has been hit. • I-BUS: A bus cycle generated by the CPU or DMA is acquired. A bus cycle is not acquired when the cache has been hit. Rev. 2.00 Feb.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC (c) Software Trace Function Note: This function can be supported with SuperH C/C++ compiler (manufactured by Renesas Technology Corp.; including OEM and bundle products) V7.0 or later. When a specific instruction is executed, the PC value at execution and the contents of one general register are acquired by trace.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC 8. If breaks occur immediately after executing non-delayed branch and TRAPA instructions and generating a branch due to exception or interrupt, a trace for one branch will not be acquired immediately before such breaks. However, this does not affect on generation of breaks caused by a BREAKPOINT and a break before executing instructions of Event Condition. 9.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC Clicking on the [EVA AUD] window with the right mouse button and selecting [Setting] from the pop-up menu opens the [EVAAUD trace acquisition] dialog box. Figure 3.7 [EVA AUD trace acquisition] Dialog Box Table 3.14 shows the EVA AUD trace acquisition modes, which can be set for tracing functions. Table 3.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC The EVA AUD trace acquisition mode is set in the [Trace buffer full] group box. [Trace buffer full] [Trace continue] Selects the continued tracing mode. [Trace stop] Selects the stop tracing mode. [Break] Selects the break mode.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC (a) Window Trace Function Trace information on access to a specified range of memory is acquired. Four memory ranges can be specified, i.e. one each for channels A, B, C, and D. The following conditions are selectable.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC Figure 3.8 [EVAAUD trace acquisition] Dialog Box Rev. 2.00 Feb.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC (b) Branch Trace Function Branch source and destination addresses and the corresponding lines of source code are displayed. Select the [Branch trace] check box to acquire a branch trace. Branch types can be selected in the [Branch trace] group box. Figure 3.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC (d) Items Displayed in the [EVA AUD Trace] Window Table 3.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC Table 3.15 Items Displayed in the [EVA AUD Trace] Window (cont.) Column Contents Bus Displays the type of cycles accessed. M-BUS: M-bus I-BUS: I-bus R/W Displays whether data access is read from or written to. READ: Read access WRITE: Write access Size Displays the access size. BYTE: Byte size WORD: Word size LONG: Longword size Data Displays the data value.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC 3. Clicking on the [Cancel] button, which is displayed on the progress bar during analysis, stops trace analysis. At this time, nothing will be displayed in the [EVA AUD Trace] window. 3.2.3 Notes on Using the JTAG (H-UDI) Clock (TCK) and AUD Clock (AUDCK) 1. Set the JTAG clock (TCK) frequency to lower than the frequency of the SH72546R peripheral module clock (CKP). 2.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC 3.2.5 Notes on Setting the [Event Condition] Dialog Box and the BREAKCONDITION_ SET Command 1. When [Go to cursor], [Step In], [Step Over], or [Step Out] is selected, the settings of Event Condition 3 are disabled. 2. When an Event Condition is satisfied, emulation may stop after two or more instructions have been executed. 3.2.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC Figure 3.10 [Performance Analysis] Dialog Box For measurement tolerance, • The measured value includes tolerance. • Tolerance will be generated before or after a break. Note: When [Ch2 to Ch1 PA] or [Ch1 to Ch2 PA] is selected, to execute the user program, specify conditions set in Event Condition 2 and Event Condition 1 and one or more items for performance measurement.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC Table 3.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC 3. Even when [Exception/interrupt counts (EA)] is selected as the measurement condition, no trap-instruction exception caused by TRAPA instructions will be counted. 2. Displaying the measured result The measured result is displayed in the [Performance Analysis] window or the PERFORMANCE_ANALYSIS command in hexadecimal (32 bits).
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC 3.2.7 Emulation RAM Setting Function The emulation RAM can be set in the [ERAM Mapping] dialog box which is opened by selecting [Setup] -> [Emulator] -> [ERAM] from the menu. The emulator incorporates eight 64-kbyte blocks of emulation RAM. These can be set on any 64kbyte boundary within the address range from H’00000000 to H’001FFFFF.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC The contents of the [Memory Mapping] dialog box are shown below. [Mode] [User] The emulator does not use the emulation RAM. [Emulator] The emulator uses the emulation RAM. [Edit…] Open the dialog box for setting [Memory Mapping] to change the address ranges and attributes of the emulation RAM. [ERAM Setting] [Reset] Reset the selected emulation RAM as default.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC The contents of the dialog box for setting [Memory Mapping] are shown below. [From:] Enter the start address for the ranges. [Setting:] [ERAM to FLASH] Reflect the contents of the emulation RAM in the internal flash memory when address allocation is cancelled. [ERAM not to FLASH] Reflect no contents of the emulation RAM in the internal flash memory when address allocation is cancelled.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC 3.2.8 [Select Emulation] Dialog Box at Activation of the Emulator When the emulator is activated, the [Select Emulation] dialog box will appear. The following explains this dialog box. Figure 3.13 [Select Emulation] Dialog Box Rev. 2.00 Feb.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC The contents of the [Select Emulation] dialog box are shown below. [Device] Displays the selected device. [Change Emulation in start up] check box Displays the [Select Emulation] dialog box when the emulator is activated. [Operating mode] group box Specifies MD2, MD1, MD0, and FEW and selects the operating mode.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC mode 5 (PLL x 6, P = EXTAL x 2): MD_CLKP = 1, MD_CLK1 = 0, and MD_CLK0 = 1 mode 6 (PLL x 10, P = EXTAL x 2): MD_CLKP = 1, MD_CLK1 = 1, and MD_CLK0 = 0 mode 7 (PLL x 8, P = EXTAL x 2): MD_CLKP = 1, MD_CLK1 = 1, and MD_CLK0 = 1 [User system Clock Mode] Settings of the corresponding pins on the user system are reflected in MD_CLKP, MD_CLK1, and MD_CLK0. Rev. 2.00 Feb.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC 3.2.9 [Configuration] Dialog Box The [Configuration] dialog box is displayed by selecting [Setup] -> [Emulator] -> [System] from the menu. The following explains this dialog box. Figure 3.14 [Configuration] Dialog Box ([General] Page) Rev. 2.00 Feb.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC The contents of the [General] page are shown below. [Mode] Displays the MCU name. [Emulation mode] Selects the emulation mode when user program is executed. [Step option] [Read/Write on the fly] Normal: Normal operation No break: Temporarily disables the software and hardware breakpoints to execute the user program. Sets the step interrupt option.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC [Eeprom memory synchronization] [FCU message] Selects synchronization of the internal EEPROM when the user program is stopped. Disable: Synchronization is not performed except when the emulator is activated and the internal EEPROM area is modified. Eeprom memory to PC: The internal EEPROM is synchronized with the host computer.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC Figure 3.15 [Configuration] Dialog Box ([Eva Board] Page) Rev. 2.00 Feb.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC The contents of the [Eva Board] page are shown below. [Change Emulation in start up] check box Displays the [Select Emulation] dialog box when the emulator is activated by connecting the EV-chip unit. [User Signals] check boxes Enables or disables output of the reset and NMI signals from the user system.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC 3.2.10 EVA AUD Monitoring Function The [Monitor setting] group box in the [Function select] dialog box has two radio buttons. Figure 3.16 [Function select] Dialog Box • [H-UDI] radio button When this radio button is selected, the contents of memory are displayed by the H-UDI in the monitoring function.
Section 3 Software Specifications when Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC Notes: 1. With the above settings, if a value is changed other than through access by the CPU, the changed value will not be shown. 2. If a “LOST” condition is generated in the EVA AUD trace function, the correct values will not be shown. 3.
Section 4 User System Interface Circuits Section 4 User System Interface Circuits 4.1 User System Interface Circuits Figures 4.1 through 4.11 show user system interface circuits. Use them as a reference to determine the value of the pull-up resistance. (1) User system interface circuits for SH72546RFCC, SH72544R, or SH72543R MCU MD4 MD3 MD2 MD1 MD0 MD_CLK1 MD_CLK0 MD_CLKP User system Vcc EP1S20F 47 kΩ MD4 MD3 MD2 MD1 MD0 MD_CLK1 MD_CLK0 MD_CLKP Figure 4.
Section 4 User System Interface Circuits User system MCU Vcc EP1S20F AHC14 AHC14 47 kΩ NMI NMI Vcc LVC08 EP1S20F AHC14 AHC14 47 kΩ _RES _RES ALVCH16244 Figure 4.3 User System Interface Circuits for SH72546RFCC, SH72544R, or SH72543R (3) Rev. 2.00 Feb.
Section 4 User System Interface Circuits MCU User system Vcc PLLVcc 0.001 μF 120 pF N.C. PLLVcc PLLVss N.C. XTAL PLLVss EP1S20F XTAL EXTAL EXTAL MAX709 47 Ω PVcc1 MAX709 47 Ω Vcc Vcc 0.001 μF PVcc2 MAX709 0.01 μF 47 Ω Vss Vcc G6K 2G AVREFHA AVREFHA 1000 pF 0.01 μF 0.1 μF 0.1 μF G6K 2G AVREFLA AVREFLA 1000 pF 0.01 μF 0.1 μF 0.1 μF G6K 2G AVREFHB AVREFHB 1000 pF 0.01 μF 0.1 μF 0.1 μF G6K 2G AVREFLB AVREFLB 1000 pF 0.01 μF 0.1 μF 0.1 μF G6K 2G AVcc AVcc 1000 pF 0.
Section 4 User System Interface Circuits PVcc1 MCU User system 47 kΩ PA0-PA21 PB0-PB14 PC0-PC15 PA0-PA21 PB0-PB14 PC0-PC15 EP1S20F PVcc2 PD0-PD13 PE0-PE13 PF0-PF15 PG0-PG15 PH0-PH5 PJ0-PJ9 PK0-PK11 PL8 47 kΩ PVcc2 PD0-PD13 PE0-PE13 PF0-PF15 PG0-PG15 PH0-PH5 PJ0-PJ9 PK0-PK11 PL8 47 kΩ PL0-PL7 PL0-PL7 EP1S20F Figure 4.5 User System Interface Circuits for SH72546RFCC, SH72544R, or SH72543R (5) Rev. 2.00 Feb.
Section 4 User System Interface Circuits User system MCU AN(27:0) AN(48:40) AVcc AN(27:0) AN(48:40) DALC112S1 LVC244 ASEBCK N.C. ASEBCK EP1S20F ASEBRK N.C. ASEBRK Figure 4.6 User System Interface Circuits for SH72546RFCC, SH72544R, or SH72543R (6) Rev. 2.00 Feb.
Section 4 User System Interface Circuits (2) User system interface circuits for SH72531 or SH72531FCC MCU User system Vcc MDD MDC MDB MD_CLK0 MD_CLKP EP1S20F 47 kΩ MDD MDC MDB MD_CLK0 MD_CLKP Figure 4.7 User System Interface Circuits for SH72531 or SH72531FCC (1) Rev. 2.00 Feb.
Section 4 User System Interface Circuits MCU User system Vcc EP1S20F AHC14 AHC14 47 kΩ NMI NMI Vcc LVC08 EP1S20F AHC14 AHC14 47 kΩ _RES _RES ALVCH16244 Figure 4.8 User System Interface Circuits for SH72531 or SH72531FCC (2) Rev. 2.00 Feb.
Section 4 User System Interface Circuits User system MCU Vcc PLLVcc 0.001 μF 120 pF N.C. PLLVcc PLLVss N.C. XTAL PLLVss EP1S20F XTAL EXTAL EXTAL MAX709 47 Ω PVcc MAX709 Vcc Vcc 0.001 μF 47 Ω Vcc 0.01 μF Vss AN(22:0) AN(48:40) AVcc AN(22:0) AN(48:40) DALC112S1 G6K 2G AVREFH AVREFH 1000 pF 0.01 μF 0.1 μF 0.1 μF G6K 2G AVREFL AVREFL 1000 pF 0.01 μF 0.1 μF 0.1 μF G6K 2G AVcc AVcc 1000 pF 0.01 pF 0.33 μF 1.0 μF 0.1 μF Figure 4.
Section 4 User System Interface Circuits MCU User system _WDTOVF _WDTOVF EP1S20F Figure 4.10 User System Interface Circuits for SH72531 or SH72531FCC (4) PVcc MCU User system 47 kΩ PA0-PA21 PB0-PB14 PC0-PC15 PG0-PG3 PA0-PA21 PB0-PB14 PC0-PC15 PG0-PG3 EP1S20F PVcc 47 kΩ PF0-PF15 PG4-PG15 PJ0-PJ9 PF0-PF15 PG4-PG15 PJ0-PJ9 Figure 4.11 User System Interface Circuits for SH72531 or SH72531FCC (5) Rev. 2.00 Feb.
Section 4 User System Interface Circuits 4.2 Delay Time for the User System Interface Since the _RES and NMI signals are connected to the user system via the logic on the EV-chip unit, a delay time shown in table 4.1 will be generated until the signal is input from the user system to the MCU. Table 4.1 Delay Time for Signals via the EV-chip Unit No. Signal Name Delay Time (ns) 1 _RES 12 2 NMI 12 Rev. 2.00 Feb.
SH-2A, SH-2 E200F Emulator Additional Document for User's Manual Supplementary Information on Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC Publication Date: Rev.2.00, February 18, 2009 Published by: Sales Strategic Planning Div. Renesas Technology Corp. Edited by: Customer Support Department Global Strategic Communication Div. Renesas Solutions Corp. © 2009. Renesas Technology Corp., All rights reserved. Printed in Japan.
Sales Strategic Planning Div. Nippon Bldg., 2-6-2, Ohte-machi, Chiyoda-ku, Tokyo 100-0004, Japan RENESAS SALES OFFICES http://www.renesas.com Refer to "http://www.renesas.com/en/network" for the latest and detailed information. Renesas Technology America, Inc. 450 Holger Way, San Jose, CA 95134-1368, U.S.A Tel: <1> (408) 382-7500, Fax: <1> (408) 382-7501 Renesas Technology Europe Limited Dukes Meadow, Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, U.K.
SH-2A, SH-2 E200F Emulator Additional Document for User’s Manual Supplementary Information on Using the SH72546RFCC, SH72544R, SH72543R, SH72531, and SH72531FCC 1753, Shimonumabe, Nakahara-ku, Kawasaki-shi, Kanagawa 211-8668 Japan REJ10J1938-0200