M30803T-RPD-E Emulation Pod for M16C/80 Group MCUs User's Manual Rev. 1.
* IC61-1004-051 is a product of Yamaichi Electronics Co., Ltd. * NQPACK, YQPACK, YQSOCKET, YQ-Guide, HQPACK, TQPACK and TQSOCKET are products of Tokyo Eletech Corporation. Keep safety first in your circuit designs! • Renesas Technology Corporation and Renesas Solutions Corporation put the maximum effort into making semiconductor products better and more reliable, but there is always the possibility that trouble may occur with them.
Preface The M30803T-RPD-E is an emulation pod for the M16C/80 Group of Renesas 16-bit MCUs. It's used with a PC4701 emulator. This user's manual mainly describes specifications of the M30803T-RPD-E emulation pod and how to setup it. For details on the following products, which are used with M30803T-RPD-E, refer to each product's user's manual. • Emulator: • Emulator debugger: PC4701 User's Manual M3T-PD308 User's Manual All the components of this product are shown in "Table 2.
Contents Chapter 1. Precautions for Safety .......................................................................................... 7 1.1 Safety Symbols and Meanings ............................................................................. 8 Chapter 2. Preparation ......................................................................................................... 17 2.1 Terminology ....................................................................................................... 18 2.
4.4 Self-check ........................................................................................................... 53 (1) Self-check Procedure ............................................................................... 53 (2) If an Error is Detected in the Self-check .................................................. 53 Chapter 5. Specifications .....................................................................................................55 5.1 Specifications .............................
MEMO ( 6 / 74 )
Chapter 1. Precautions for Safety This chapter describes precautions for using this product safely and properly. For precautions for the emulator main unit and the emulator debugger, refer to each user's manual included with your product. 1.1 Safety Symbols and Meanings ..................................................................................................... 8 WARNING Warning for Installation ...............................................................................................
Chapter 1. Precautions for Safety In both the user's manual and on the product itself, several icons are used to insure proper handling of this product and also to prevent injuries to you or other persons, or damage to your properties. This chapter describes the precautions which should be taken in order to use this product safely and properly. Be sure to read this chapter before using this product. 1.
WARNING Warning for Installation: • Do not set this product in water or areas of high humidity. Make sure that the main unit does not get wet. Spilling water or some other liquid into the main unit can cause an unrepairable damage. Warnings for Use Environment: • The emulation pod is air-cooled with the ventilation slot. Therefore, do not block the ventilation slot. When heated to high temperatures, the emulation pod may not work properly.
IMPORTANT Notes on Downloading Firmware: • Before using this product for the first time, it is necessary to download the dedicated firmware (control software for the emulation pod built into the PC4701). Please note that, to do this, it is necessary to start up the PC4701 in maintenance mode. For firmware download procedures, see "4.2 Downloading Firmware" (page 48). Once the firmware has been downloaded, the product can be used by simply turning on the power.
IMPORTANT Note on RDY* Input: • Be sure to input "L" to the RDY* pin of the target system during the user program executing (only while the RUN status LED on the PC4701's front panel is lit). Inputting "L" to the RDY* pin during the user program stopping may cause a malfunction of the emulator. Note on HOLD* Input: • Be sure to input "L" to the HOLD* pin of the target system during the user program executing (only while the RUN status LED on the PC4701's front panel is lit).
IMPORTANT Notes on Stack Area: • With this product, a maximum 20 bytes of the user stack is consumed as work area. • If the user stack does not have enough area, do not use areas which cannot be used as stack (SFR area, RAM area which stores data, or ROM area) as work area. Using areas like this is a cause of user program crashes and destabilized emulator control. Therefore, ensure the +20 byte maximum capacity used by the user program as the user stack area.
IMPORTANT Notes on EMEM Dialog: Observe the following when setting up EMEM dialog of the emulator debugger. (1) Debug Monitor Bank Address • When "F0" is specified, 64 KB of area starting from F00000h are allocated for use by the debug monitor. • The 64 KB allocated to the debug monitor cannot be used. • The below areas cannot be set for the debug monitor.
IMPORTANT Note on Differences between Actual MCU and Emulator: • Operations of the emulator differs from those of mask MCUs as listed below. (1) Reset condition (2) Initial values of internal resource data at power-on (3) Interrupt stack pointer (ISP) after releasing reset (4) Internal memories (ROM and RAM) capacities, etc. This emulator system has an MCU with 24KB RAM (0400h - 63FFh).
IMPORTANT Notes on A-D Input Selection Function: • To use A-D input group selection, it is necessary to set the direction register of port P10 to input. Port 10 corresponds to the pin that performs A-D conversion. Example: To select A-D input for P00-P07, set the direction register of P100-P107 and P00-P07 to input. Also, when the port P0 group and port P2 group are selected for A-D input, port P10 cannot be used as an I/O port.
MEMO ( 16 / 74 )
Chapter 2. Preparation This chapter describes the package components, the system configuration and the preparation for using this product for the first time. 2.1 Terminology ............................................................................................................................... 18 2.2 Package Components.................................................................................................................. 19 2.3 Other Tool Products Required for Development.................
Chapter 2. Preparation 2.1 Terminology Some specific words used in this user's manual are defined as follows: Emulator system This means an emulator system built around the PC4701 emulator. The PC4701 emulator system is configured with an emulator main unit, emulation pod, host machine and emulator debugger. Emulator main unit (Hereafter PC4701) This means a generic name for emulators for 8 and 16-bit MCUs. For details on specific models of PC4701, visit Renesas Tools Homepage. Homepage URL http://www.
2.2 Package Components The M30803T-RPD-E package consists of the following items. When unpacking, check to see if your M30803T-RPD-E contains all of these items. Table 2.
2.4 Name of Each Part (1) System Configuration Figure 2.1 System configuration (1) to (4) in Figure 2.1 are included in this product package. (1) Emulation pod (M30803T-RPD-E) This emulation pod contains an evaluation MCU, emulation memory and circuit to feature the debugging function. (2) Flexible cable (FLX120-RPD) This 120-pin flexible cable connects the PC4701 emulator and the emulation pod. (3) Flexible cable (FLX160) This 160-pin flexible cable connects the emulation pod and the target system.
(2) Inside of Emulation Pod Figure 2.2 Internal view of emulation pod (1) Base board Base board for the M16C/80 Group MCUs which controls the interface with the PC4701 and the evaluation MCU. (2) Memory board Board on which the 1.5MB emulation memory is mounted. (3) Oscillation circuit board Board on which the internal oscillation circuit of the emulation pod is mounted. Operating frequency can be changed by replacing this board with other available oscillation circuit boards.
2.5 When Using the Emulator for the First Time If you have purchased this emulation pod newly, it is necessary to download the firmware. The download procedure is given in Figure 2.3. Before attempting to download the firmware, check the emulator debugger is installed and the emulator is connected to the host machine. For more information, see each user's manual of the emulator debugger and the PC4701. Connect the PC4701 and this product. See "3.5 Connecting the PC4701 and Emulation Pod" (page 34).
Chapter 3. Setting Up This chapter describes switch settings required for using this product and how to connect this product to the PC4701 and the target system. 3.1 Removing the Upper Cover ........................................................................................................ 24 3.2 Switch Settings ........................................................................................................................... 25 3.3 Selecting Clock Supply .....................................
Chapter 3. Setting Up To use this emulation pod with your application system, it is necessary to set as follows. Set the following after removing the upper cover. • Change the oscillation frequency. • Set the XCIN and XCOUT pins for the target system. • Set the signals such as HOLD/RDY to control the external device. • Install the A-D conversion bypass capacitor. 3.1 Removing the Upper Cover The procedure of removing the upper cover is shown below.
3.2 Switch Settings Figure 3.2 shows the positions of switches and Tables 3.1, 3.2 and 3.3 show each switch setting. Figure 3.
Table 3.1 Switch settings of the M30803T-RPD-E (1/3) Signal Switch Setting Description Connects the P87/XCIN pin of MCU to the target system (uses the P87/XCIN pin as Port P87). SW1 Connects the P87/XCIN pin of MCU to the sub-clock oscillator circuit (32.768 kHz) on the emulation pod. P87/XCIN P86/XCOUT Connects the P86/XCOUT pin of MCU to the target system (uses the P86/XCOUT pin as Port P86). P86/XCOUT pin of MCU is unconnected.
Table 3.2 Switch settings of the M30803T-RPD-E (2/3) Signal Switch Setting Description Pulls down the CNVSS pin with a resistance of 33 kΩ (when target system is unconnected and using in single-chip mode or memory expansion mode). Be sure to set this when using the emulation pod while not connecting the target system. CNVSS SW5 Connects the CNVSS pin to the target system. Pulls up the CNVSS pin with a resistance of 33 kΩ (when target system is unconnected and using in microprocessor mode).
Table 3.3 Switch settings of the M30803T-RPD-E (3/3) Signal Switch Setting Description Set when using at the range of the voltage within +4.2 to +5.5 V. Voltage JP1 M30803T-RPDM Board Set when using at the range of the voltage within +2.7 to +4.2 V. IMPORTANT Note on Switch Setting: • Switch settings of RDY*/HOLD*, CNVss and BYTE are provided to enable debugging without connecting to the target system.
3.3 Selecting Clock Supply There are two ways to supply a clock to the MCU, using the oscillator circuit of the emulation pod or using the oscillator circuit on the target system. Table 3.4 shows the factory-settings of each clock supply. Table 3.4 Clock supply to the MCU Clock Description Display of emulator debugger Factory-setting Internal oscillator circuit of emulation pod (OSC-3: 20 MHz) Internal Yes Target system External - Internal oscillator circuit of emulation pod (32.
(1) Using the Oscillator Circuit on the Target System When turning on the power supply, the internal clock of emulation pod is selected to supply the clock to the MCU. To use the external clock on the target system, change the clock by the CLK command or the Init dialog on the emulator debugger. (For details, refer to the user's manual of the emulator debugger.) Figure 3.3 External oscillator circuit Figure 3.
(2) Changing the Internal Oscillator Circuit of Emulation Pod An oscillator circuit board (OSC-3) for 20 MHz is mounted on this product. To use the emulation pod at a frequency other than 20 MHz, build the desired oscillator circuit on the included OSC-2 oscillator circuit board (bare board) and replace the board installed in the emulation pod when shipped from the factory. Figure 3.5 shows a view of the OSC-2 oscillator circuit board (bare board) and where connector pins are located. Figure 3.
(3) Replacing the Oscillator Circuit Boards Figure 3.7 shows how to replace the oscillator circuit boards. For the position of the oscillator circuit board, see Figure 2.2. (1) Unscrew the screw connecting the oscillator circuit board. (2) Lift off the oscillator circuit board. (3) Attach the J1 connector of another oscillator circuit board for replacement to the connector of the MCU-dependent board. (4) Secure the oscillator circuit board with the screw. Figure 3.
3.4 A-D Conversion Bypass Capacitor The emulation pod has foot patterns on the board for mounting a bypass capacitor. Mount a suitable bypass capacitor as occasion demands. Figure 3.2 shows where the bypass capacitors are mounted, whereas Figure 3.8 shows an enlargement of the foot patterns. Figure 3.
3.5 Connecting the PC4701 and Emulation Pod To connect the emulation pod to the PC4701, use the FLX120-RPD 120-pin flexible cable included in this product package. Connect the PC4701 side connector of FLX120-RPD to the cable connector of the PC4701, then secure with screws. (1) Connecting the Cable to the PC4701 Figure 3.9 shows how to connect the PC4701 and FLX120-RPD. Figure 3.9 Connecting PC4701 and FLX120-RPD CAUTION Note on Connecting the Cable: • Always shut OFF power before connecting the cable.
(2) Connecting the Cable to the Emulation Pod Figure 3.10 shows how to connect the FLX120-RPD and the emulation pod. Figure 3.10 Connecting emulation pod and FLX120-RPD CAUTION Note on Connecting the Cable: • Always shut OFF power before connecting the cable. The power ON state could destroy internal circuits. Note on Securing the Screws: • After connecting the emulator main unit to the cable, be sure to secure the screws.
3.6 Connecting the Target System There are seven ways available to connect the emulation pod to target systems as shown in Figure 3.11. Figure 3.11 Connecting emulation pod and target systems CAUTION Note on Connecting the Target System: • Take care not to attach the converter board in a wrong direction. It may cause a fatal damage to the emulation pod.
(1) Connecting 100-pin LCC Socket When connecting the emulation pod probe to the 100-pin LCC socket (Yamaichi Electronics Co., Ltd.: IC51-1004-051 etc.) on the target system, following the procedure below. (1) Attach the CN2 side of the FLX160-PRB to the CN2 side of the M30800T-PTC. (2) Attach the M30800T-PTC to the 100-pin LCC socket. Figure 3.
(2) Connecting 100-pin 0.65-mm-pitch Foot Pattern (Part 1) Figure 3.13 shows how to connect the emulation pod probe to the 100-pin 0.65-mm-pitch foot pattern on the target system with the DUMMY100S (not included), and here following is its procedure. For details on the 100LCC-DMS and DUMMY100S, refer to each user's manual. (1) Attach the DUMMY100S to the target system. (2) Attach the 100LCC-DMS to the DUMMY100S. (3) Attach the M30800T-PTC to the FLX160-PRB. (4) Attach the M30800T-PTC to the 100LCC-DMS.
(3) Connecting 100-pin 0.65-mm-pitch Foot Pattern (Part 2) Figure 3.14 shows how to connect the emulation pod probe to the 100-pin 0.65-mm-pitch foot pattern on the target system with the DIRECT100S (not included), and here following is its procedure. For details on the 100LCC-DMS and DIRECT100S, refer to each user's manual. (1) Attach the DIRECT100S to the target system. (2) Attach the 100LCC-DMS to the DIRECT100S. (3) Attach the M30800T-PTC to the FLX160-PRB. (4) Attach the M30800T-PTC to the 100LCC-DMS.
(4) Connecting 100-pin 0.65-mm-pitch Foot Pattern (Part 3) Figure 3.15 shows how to connect the emulation pod probe to the 100-pin 0.65-mm-pitch foot pattern on the target system with the FLX-100NRB (not included), and here following is its procedure. For details on the 100LCC-DMS and FLX-100NRB, refer to each user's manual. (1) Attach the FLX-100NRB to the target system. For details on how to attach the FLX-100NRB to the target system, see the user's manual of the FLX-100NRB.
(5) Connecting 100-pin 0.5-mm-pitch Foot Pattern (Part 1) Figure 3.16 shows how to connect the emulation pod probe to the 100-pin 0.5-mm-pitch foot pattern on the target system with the 100LCC-QSD (not included), and here following is its procedure. For details on the 100LCC-QSD, refer to its user's manual. (1) Attach the 100LCC-QSD to the target system. For details on how to attach the 100LCC-QSD to the target system, see the user's manual of the 100LCC-QSD. (2) Attach the M30800T-PTC to the FLX160-PRB.
(6) Connecting 100-pin 0.5-mm-pitch Foot Pattern (Part 2) Figure 3.17 shows how to connect the emulation pod probe to the 100-pin 0.5-mm-pitch foot pattern on the target system with the FLX-100NSD (not included), and here following is its procedure. For details on the 100LCC-DMS and FLX-100NSD, refer to each user's manual. (1) Attach the FLX-100NSD to the target system. For details on how to attach the FLX-100NSD to the target system, see the user's manual of FLX-100NSD.
(7) Connecting 144-pin 0.5-mm-pitch Foot Pattern Figure 3.18 shows how to connect the emulation pod probe to the 144-pin 0.5-mm-pitch foot pattern on the target system with the FLX-144NSD (not included), and here following is its procedure. (1) Attach the NQPACK144SD (NQPACK, hereafter) included with the FLX-144NSD to the target system. (2) Attach the YQPACK144SD (YQPACK, hereafter) included with the FLX-144NSD to the NQPACK, matching three holes of NQPACK and YQPACK.
MEMO ( 44 / 74 )
Chapter 4. Usage This chapter describes from turning on the power of this product to starting up the emulator debugger. 4.1 Turning On the Power Supply .................................................................................................... 46 (1) Checking the Connection of the System ............................................................................... 46 (2) Turning On the Power Supply ..............................................................................................
Chapter 4. Usage 4.1 Turning On the Power Supply (1) Checking the Connection of the System Before turning the power ON, check the connection of the PC4701, emulation pod, converter board and target system. (2) Turning On the Power Supply Power ON/OFF the target system and the PC4701 as simultaneously as possible. CAUTION Notes on Power Supply: • The emulator's VCC pin is connected to the target system in order to monitor target system voltage.
(3) LED Display When PC4701 Starts Up Normally After the emulator starts up, check the status of the LEDs on the front panel to see whether emulation pod operation is enabled or not. Figure 4.1 shows front panel LED lighting status when the emulator is turned ON. Figure 4.
4.2 Downloading Firmware (1) When It is Necessary to Download Firmware It is necessary to download firmware when: (1) you use this product for the first time (2) the firmware is upgraded (3) the emulator debugger is upgraded (4) use this product with the PC4701 which was used with other emulation pod before (2) Downloading Firmware in Maintenance Mode Download the firmware in maintenance mode as explained here following. The target system must not be connected when downloading the firmware.
4.3 Starting Up the Emulator Debugger (Setting EMEM Dialog) The EMEM dialog will appear after setting the Init dialog by starting up the emulator debugger or completing downloading the firmware. Here explains how to set the processor mode of the target MCU, allocate the emulation memory and set the emulator work area. Figure 4.3 shows the EMEM dialog display. 1. Debug monitor bank address 2. Processor mode 3. Allocation of the internal ROM area 4. Display of the level of each pin 5.
(2) Selecting the Processor Mode Here explains about the setting of processor mode. Selectable modes are listed in Table 4.1. Table 4.1 Selecting the processor mode Processor mode Select from the list Single-chip mode Single-chip Mode Memory expansion mode Memory Expansion Mode Microprocessor mode Microprocessor Mode IMPORTANT Notes on Selecting the Processor Mode: • When setting single-chip mode and memory expansion mode, the level of the CNVss pin of the target system should be "L".
(2) Specifying area size (Length): Specify the size of the specified expansion area. The area from the specified address to the size specified here is allocated as external area or internal area. Length can be specified as 256 KB or 1 MB. (3) Specifying area map (Map): Select whether the specified area is to be allocated as internal area (used as emulation memory) or external area (used by external device, etc.). • When INTERNAL is specified: This bank is allocated as internal area and used for expansion.
Table 4.3 Specifications of expansion emulation memory Maximum operating frequency 20 MHz, 1 wait Number of area which can be set Max. 4 areas Area size Successive 256 KB or 1 MB Emulation memory size Total of 4 areas: 1.5 MB Possible bank to be set (1) For area size 256 KB X0h, X4h, X8h, XCh bank e.g.) 20 bank, 64 bank, A8 bank, EC bank etc. (2) For area size 1 MB X0h bank e.g.) 20 bank, 40 bank, 80 bank, A0 bank etc.
4.4 Self-check (1) Self-check Procedure To run the emulator self-check, do so as explained here below. While the self-check is in progress, LEDs will change as shown in Figure 4.5. (1) Set the switches in the emulation pod same as the factory setting (see Figure 4.4). (2) When the target system is connected, disconnect the target system. (3) Within 2 seconds of activating power to the emulator, press the RESET button on the emulator front panel to switch the emulator to maintenance mode.
Figure 4.
Chapter 5. Specifications This chapter describes specifications of this product. 5.1 Specifications ............................................................................................................................. 56 5.2 Connection Diagram ................................................................................................................... 57 5.3 Operation Timing in Memory Expansion Mode and Microprocessor Mode ............................. 59 (1) Timing Requirements ............
Chapter 5. Specifications 5.1 Specifications Table 5.1 lists the specifications of the M30803T-RPD-E. Table 5.
5.2 Connection Diagram Figures 5.1 and 5.2 show the connection diagram of the M30803T-RPD-E. This connection diagram mainly shows the interface section, and the circuits which are not connected to the target system such as the emulator's control system are omitted. Figure 5.
Figure 5.
5.3 Operation Timing in Memory Expansion Mode and Microprocessor Mode As there are a flexible cable and other devices between this product and the target system, I/O timing will differ from that of the actual MCU. Use the following as a reference when using the emulation pod. (1) The output signal (address, RD*, WR*, etc.) of the evaluation MCU mounted on this product is output delayed by about 4 ns. (2) It takes longer time to setup the data than actual MCU by approx. 8 ns.
5.5 External Dimensions (1) External Dimensions of Emulation Pod Unit: mm Figure 5.
(2) External Dimensions of Converter Board (M30800T-PTC) Figure 5.4 shows the external dimensions of the converter board M30800T-PTC for 100-pin QFP (100P6N). Unit: mm Figure 5.
(3) External Dimensions of Converter Board (FLX-144NSD) Figure 5.5 shows the external dimensions and the foot pattern of the converter board FLX-144NSD for 144-pin LQFP (144P6Q). Unit: mm Figure 5.
Chapter 6. Troubleshooting This chapter describes how to troubleshoot when this product does not work properly. 6.1 Flowchart to Remedy the Troubles ............................................................................................ 64 6.2 When the Emulator Debugger Does Not Start Up Properly....................................................... 65 (1) When the LED Display of PC4701 is Abnormal ..................................................................
Chapter 6. Troubleshooting 6.1 Flowchart to Remedy the Troubles Figure 6.1 shows the flowchart to remedy the troubles from when power to the emulator is activated until the emulator debugger starts up. Check this while the target system is disconnected. For the latest FAQs visit the following URL. http://www.renesas.com/en/tools Turning on the power of PC4701 Front panel LED of PC4701 Not normal 1. Check emulator system connections. See, "3.5 Connecting the PC4701 and Emulation Pod" (page 34).
6.2 When the Emulator Debugger Does Not Start Up Properly (1) When the LED Display of PC4701 is Abnormal Table 6.1 LED's abnormal display and its checkpoints Error LEDs do not light up. Connection to the target system Checkpoint - Recheck the power cable is connected to the PC4701. See the instruction manual of the PC4701. All LEDs remain lit. The POWER LED of "STATUS OF TARGET" does not light up. - Connected Recheck the connection between the PC4701 and this product. See "3.
(2) EMEM Dialog is Not Displayed When the Emulator Debugger Starts Up (When the target system is connected) Table 6.2 Checkpoints of errors when starting up the emulator debugger (target is connected) Error Checkpoint Communication error occurred. Data was not sent to the target. Check all emulator debugger settings, interface cable settings and switches on the rear of the PC4701 match. See the instruction manuals of the PC4701 and emulator debugger. Target system cannot be properly built.
(3) EMEM Dialog is Not Displayed When the Emulator Debugger Starts Up (When the target system is not connected) Table 6.3 Checkpoints of errors when starting up the emulator debugger (target is not connected) Checkpoint Error Check all emulator debugger settings, interface cable settings and switches on the rear of the PC4701 match. Communication error occurred. Data was not sent to the target. See the instruction manuals of the PC4701 and emulator debugger. Target system cannot be properly built.
MEMO ( 68 / 74 )
Chapter 7. Maintenance and Guarantee This chapter describes how to maintenance, repair provisions and how to request for repair. 7.1 Maintenance ............................................................................................................................... 70 7.2 Guarantee .................................................................................................................................... 70 7.3 Repair Provisions...............................................................
Chapter 7. Maintenance and Guarantee 7.1 Maintenance If dust or dirt collects on any equipment of your emulation system, wipe it off with a dry soft cloth. Do not use thinner or other solvents because these chemicals can cause the equipment's surface coating to separate. 7.
7.4 How to Request for Repair If your product is found faulty, follow the procedure below to send your product for repair. Customer Fill in the Repair Request Sheet included with this product, then send it along with this product for repair to your local distributor. Make sure that information in the Repair Request Sheet is written in as much detail as possible to facilitate repair.
MEMO ( 72 / 74 )
M30803T-RPD-E User's Manual Rev. 1.