Home
Renesas M306NKT3 User's Manual
Contents
1. Figure 4 12 External dimensions and a sample foot pattern of the M3T F160 128NRD REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 91 of 104 M306NKT3 RPD E User s Manual 4 Hardware Specifications 4 6 Notes on Using This Product Notes on using this product are listed below When debugging the MCU using he emulator be careful about the following precautions IMPORTANT Note on the Version of the Emulator Debugger Be sure to use this product with one of the following emulator debuggers 1 M16C PC4701 Emulator Debugger 2 M3T PD30 V8 20 Release 1 or later Note on Selecting the MCU File It is necessary to make an MCU file which contains information such as SFR area internal RAM area and internal ROM area etc to use this product For creating an MCU file see 3 1 Making an MCU File on page 50 For each memory map of MCU refer to its hardware manual Note on Malfunctions in the PC4701 System If the emulator malfunctions because of interference like external noise do the following to remedy the trouble 1 Press the RESET switch on the emulator front panel 2 If normal operation is not restored after step 1 shut OFF power to the emulator once and then reactivate It Notes on Downloadi
2. Figure 4 10 External dimensions and a sample foot pattern of the M3T F160 100NRB 4 5 4 External Dimensions of the Converter Board M3T F160 100NSD Figure 4 11 shows external dimensions and a sample foot pattern of the converter board for a 100 pin 0 5mm pitch LQFP M3T F160 100NSD not included INO 0P ZN g0p gt i 4 0 25 NVdVf NI SQV V A3H GSNO01 09 L3 LEIN N Figure 4 11 External dimensions and a sample foot pattern of the M3T F160 100NSD REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 90 of 104 M306NKT3 RPD E User s Manual 4 Hardware Specifications 4 5 5 External Dimensions of the Converter Board M3T F160 128NRD Figure 4 12 shows external dimensions and a sample foot pattern of the converter board for a 128 pin 0 5mm pitch LQFP M3T F160 128NRD not included 55 0 MST F160 128NRD REV A 02 65 gt i 0 25 MADE IN JAPAN
3. REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 65 of 104 M306NKT3 RPD E User s Manual 3 Example Data Settings 3 Usage How to Use the Emulator Debugger Setting events for wordwise accesses to the even addresses STE W A0 20E8h A0 5423h High order and low order data effective Setting events for wordwise accesses to the odd addresses STE W A0 20E5h A0 AB79h Cycle Label Address Data BUS BHE BIU R W RYT CPU 00021 0020E5 7946 16b 0 DV W O CB 00020 0020E6 7848 16b 1 DW W 0 CB Odd address high order data effective Even address low order data effective Setting events for byte accesses to the even addresses STE B ROL A1A0 ROL E5h A1 0000h A0 20E2h Setting events for byte accesses to the odd addresses STE B ROL A1A0 ROL E6h A1 Label Address Data BUS BHE BIU R W RWT CPU 002063 E600 16b O DB V 0 CB High order data effective Cycle Label Address Data BUS BHE BIU R W RWT CPU 00023 0020E8 5423 16b O DY W 0o cu Cycle Label Address Data BUS BHE BIU R W RWT CPU 00022 0020E2 ODES 16b 1 DB y 0 CB Low order data effective Setting a break event Al Address 1 0020E8 Data 1 15423 MASK FFFF Access WRITE Setting a break event Al Address 1 0020E5 Data 1 AB79 MASK FFFF Access WRITE Setting a break event Al Address 1 0020E2 Data 1 00ES MASK 00FF Access WRITE qs Setting a break event
4. 1 4 Source mode 00031 0007156 OFOO 16b 1 cB 3 200030 000719 D500 16b DW 5 o 3 The execution paths of the source program can be inspected 00029 00071A OF07 16b DW R 0 3 Data access mode 00028 000718 OFO 16b DB R 0 3 l 00023 000715 DFD7 16b 2 1 2 3 Data read write cycles can be inspected D0026 exit OFO7D5 OOOF 16b IB R o eo 1 00025 OFO7D6 FBFF 16b IW R 0 3 OF07D8 0404 16b IW R o CB 4 of The trace window shows the measurement result when a E real time trace measurement has finished The trace window remains blank until the real time trace measurement in progress finishes REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 67 of 104 M306NKT3 RPD E User s Manual 3 Trace Window Bus mode display 3 Usage How to Use the Emulator Debugger TOTIS d ien E d 00s toros fONM poena E ooro zron oe INC 00407 0494 049 ORS ator 4 Trace Window Disassemble mode display avp QQQ varz ev 5 Trace Window Source mode display Juves aaa wage sy 6 Trace Window Data access mode display yp QQQ vaza Bw EOS Ed scent wem tous ups 00495 op ion roe fows 00482 seks Coo eg E rear fone POLL sorts E D 00407 Explanation of the trace window bus display Shows the status of the address bus Address Shows the status of the address b
5. A low input from the user system to pin NMI is accepted only while a user program is being executed only while the RUN status LED on the PC4701 s front panel is lit Note on RDY Input 9 Be sure to input L to pin RDY of the user system while a user program is being executed when the RUN status LED on the PC4701 s front panel is lit Inputting L to pin RDY during the user program stopping may cause a malfunction of the emulator Note on HOLD Input You cannot use the hold function with this product Be sure to input H to pin HOLD of the user system when you use a processor mode other than single chip mode If L is input to pin HOLD this product will not work normally Notes on Maskable Interrupts Even if a user program is not being executed including when run time debugging is being performed the evaluation MCU keeps running so as to control the emulation pod If a maskable interrupt 1s requested when the user program is not being executed including when run time debugging is being performed the maskable interrupt request cannot be accepted because the emulator disables interrupts The interrupt request is accepted immediately after the user program execution is started Take note that when the user program is not being executed including when run time debugging is being performed a peripheral I O interruption is not accepted Note on DMA Transfer With this product the program is sto
6. Internal oscillator circuit of emulation pod Internal 32 768kHz Sub Xcm Xcour External User system IMPORTANT Notes on Changing the Clock Supply The clock supply can be set in the Init dialog box when starting up the emulator debugger or inputting CLK command on the script window For pins Xcm Xcour it is necessary to set the switches in the emulation pod For details refer to 2 9 4 Switch Settings page 45 2 Using the Internal Oscillator Circuit Board An oscillator circuit board for 16 0MHz OSC 3 is mounted on this product Also the oscillator circuit board OSC 2 is attached to change the oscillation frequency When you use an internal oscillator circuit as a main clock Internal can be set by the emulator debugger REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 41 of 104 M306NKT3 RPD E User s Manual 2 Setup 8 Replacing Oscillator Circuit Boards Figure 2 19 shows how to replace the oscillator circuit boards For the position of the oscillator circuit board see Figure 2 18 1 Unscrew the screw securing the oscillator circuit board 2 Lift off the oscillator circuit board 3 Insert the connector of a new oscillator circuit board to the connector of the main board 4 Secure the new oscillator circuit board with the screw Figure 2 19 Replacing oscillator circuit boards A CAUTION Note on Replacing the Oscillator Ci
7. Connect the emulation pod to the emulator v Connect the power supply for the emulator v Connect the user system v Turning on the power supply v Check the LED display of the emulator v v v Debug a program with various functions of the emulator debugger Refer to 1 1 Package Components page 13 Refer to User Registration page 11 Install the M16C PC4701 Emulator Debugger Connect the PC4701 to the host machine with each interface connector Set the interface selection switch on the rear panel of the PC4701 to the using interface Connect the emulation pod M306NKT3 RPD E to the PC4701 using the FLX120 RPD Connect a power supply for the emulator Connect the user system as occasion demands Turn ON the power to the emulator and the user system as simultaneously as possible Check that system status LED and POWER CLOCK RESET and WARNING of target status LED are lighting When the user system is not connected the POWER LED does not light up Start up the High performance Embedded Workshop and the emulator debugger Set the INIT dialog box of the emulator debugger For how to use the High performance Embedded Workshop and the emulator debugger refer to each online manual Figure 2 1 Flowchart of starting up the emulator REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 20 of 104 M306NKT3 RPD E User s Manual 2 Setup 2 2 Installing the Emulator Debugger M16C PC4701 Emu
8. IMPORTANT Note on BYTE and CNVss Switch Settings Switch settings of the BYTE and CNVss are for debugging without the user system connected REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 46 of 104 M306NKT3 RPD E User s Manual 2 Setup 2 9 5 Jumper Switches JP1 and JP2 on he M30620T3 PRT MCU dependent board 1 Table 2 5 Switch settings of the M306NKT3 RPD E 3 Switch Description Always use this setting A18 SEL Do not use this setting Always use this setting o a a gt N oa iP gt gt factory settings Do not use this setting A CAUTION Note on Switch Settings Qo Always shut OFF power before changing switch setting REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 47 of 104 M306NKT3 RPD E User s Manual 2 Setup 2 9 6 Installing and Removing Network Resistors for Pullup In this product you cannot control pullup for ports PO to P5 by pullup control registers pullup control register read write are possible A socket for installing the network resistor for pullup is mounted in this product Mount the 51kQ network resistor supplied with this product to the port for which pullup control is required For the mounting location refer to Figure 2 24 below And for the positions of each part refer to Figure 2 18 000000000 C0000000 9900000000 060000000 nvs nve P5 PO P1 P2 P3 Fig
9. E Reset Go Runs the program after resetting the target MCU p ie Step In Single steps the program executing each statement including those in functions Tu Step Over Single steps the program executing each function call as one step We Step Out Exits a function and stops at a statement in the program next to the one that called the function 9 STOP Stops the program Go Free Runs the program beginning with the current PC position The software and hardware breaks set in it are temporarily ignored REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 60 of 104 M306NKT3 RPD E User s Manual 2 Software break 1 Setting the software break point 3 Usage How to Use the Emulator Debugger 167 168 169 170 f06c1 171 06c5 172 foco 173 f 6cc 174 f 6cf 175 f06d3 176 f06d7 177 fO06db 178 179 180 181 Ide ttistack_top mov b 02h Qah mov b stack top sp set stack Ide data SE top sb sset st Idintb VECTOR ADR Execution setup procedure with software break 1 By double clicking the break point setting line on the software break point setting column in the editor source window the break point can be set up and released In this case the red circle is displayed on the setting line as shown in the window on the left Bl 2 Click the execution button 2 Execution completed with software break The c
10. FLXI2O RPD flexible cable for connecting PC4701 I M30800T PTC converter board for 100 pin 0 65mm pith LCC 1 1C61 1004 051 100 pin 0 65mm pitch LCC socket made by Yamaichi Electronics Co Ltd 1 OSC 3 16MHz oscillator circuit board for main clock preinstalled 1 OSC 2 oscillator circuit board bare board l Network resistors for pulling up ports PO PS 51kQx8 O d 6 Please keep the M306NKT3 RPD E s packing box and cushion material in your place for reuse at a later time when sending your product for repair or other purposes Always use these packing box and cushion material when transporting this product fthere is any question or doubt about the packaged product contact your local distributor For purchasing the IC61 1004 051 or for technical information contact Yamaichi Electronics Co Ltd REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 13 of 104 M306NKT3 RPD E User s Manual 1 Outline 1 2 Other Tool Products Required for Development To bring forward programs development on the MI6C 6N Group M16C 6N4 M16C 6N5 M16C 6NK MI6C 6NL M16C 6NM and M16C 6NN the products listed below are necessary in addition to those contained package above Get them separately Table 1 2 Other tool products required for development Product Product name Notes Emulator main unit POM S i excluding the PC4700L and PC4701L Emulator debugger MISC POA
11. C 1 B6 000000 FETCH addr 000000 You can specify a trace range for the trace event Break Combination PID 32K cycles of instruction execution before the user program aD Detail Detail stopped is recorded A Before m Trace Area Write Condition 3 32K cycles of instruction execution before a trace point Total bd Detail condition was met is recorded About 16K cycles of instruction execution before and after a trace point condition was met is recorded After 32K cycles of instruction execution after a trace point condition was met is recorded Full 32K cycles of instruction execution after a trace began is recorded Reset Save Load set Close 2 Setting the trace write condition Setting the trace write condition You can specify a condition for the cycles to be written into the trace memory Trace Points x r Event Status Total ADDRE AGCE CONDITION __ All cycles are written into memory B1 000000 FETCH addr 000000 Pick up Only the cycles in which the specified condition was met are written into memory Exclude Only the cycles in which the specified condition was not met are written into memory B2 000000 FETCH addr 000000 B3 000000 FETCH addr 000000 B4 000000 FETCH addr 000000 B5 000000 FETCH addr 000000 B6 000000 FETCH addr 000000 OOOOO8 When you have finis
12. Connected OF TARGET does not go out REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 97 of 104 M306NKT3 RPD E User s Manual 5 Troubleshooting 2 Program Window is Not Displayed at Debugger Startup User System Connected Table 5 2 Checkpoints of errors when starting up the emulator debugger user system connected Error Checkpoint ERROR 16005 Can t connect with the target 1 Check the connection between the PC4701 and host machine See the PC4701 User s Manual 2 Check that the PCA701 is powered on See the PC4701 User s Manual 3 Check that all switch settings on the rear of the PC4701 and interface cable settings of the emulator debugger match See the PC4701 User s Manual and the emulator debugger user s manual online manual ERROR 16211 The version of the emulator and the firmware on the target are not same 1 Check the connection between the PC4701 and this product See 2 4 Connecting the PC4701 page 23 2 Download the proper firmware See 2 6 Downloading Firmware page 27 3 Choose the proper MCU file in the Init dialog box See the emulator debugger user s manual online manual 4 Check that the descriptions in the MCU file are correct See 3 1 Making an MCU File page 50 ERROR 16215 Cannot communicate with the debugging monitor Execute the RESET command 1 Check the connection between the PC4701 and this product See 2 4 Connecting the P
13. End address C0000 Internal ROM Start address FFFFF End address M30620P Name of firmware Do not change 0 Expansion No Do not change When using this product in microprocessor mode set the internal ROM area as follows 00000 Internal ROM Start address 00001 End address REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 50 of 104 M306NKT3 RPD E User s Manual 3 Usage How to Use the Emulator Debugger 3 2 Setting the Work Area With this product the emulator uses 54 bytes as a work area in emulation memory Therefore according to the memory mapping of the MCU you use specify the work area addresses In single chip mode set the work area address at 10000h In memory expansion or microprocessor mode the areas listed below cannot be used as a work area specify a work area other than the areas listed below And the top address of the work area should be an even numbered address 1 SFR area 0000h 003FFh 2 External area of multiplex bus setting 3 Reserved area of 27000h 27FFFh 4 Stack area used by the emulator for reset command execution OFFF9h OFFFFh 5 F6000h to F63FFh and F8000h to F83FFh The area used as a work area 54 bytes is specified in the F W and Work Area tab of the INIT dialog box of the emulator debugger And set the work area as MAP INT REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 51 of 104 M306NKT3 RPD E User s Manual 3 3 Starting Up the Emulator Debugger 3 Usage
14. Figure 2 10 Connecting to a 100 pin LCC socket A CAUTION Note on Connecting the User System Q Take care not to attach the converter board in a wrong direction It may cause a fatal damage to the emulation pod The connectors of the M30800T PTC are guaranteed for only 50 insertion removal iterations The connectors of the IC61 1004 051 are guaranteed for only 20 insertion removal iterations For purchasing the IC61 1004 051 or for technical information contact Yamaichi Electronics Co Ltd REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 32 of 104 M306NKT3 RPD E User s Manual 2 Setup 2 8 2 Connecting to a 100 pin 0 65mm pitch Foot Pattern Part 1 Figure 2 11 shows how to connect a 100 pin 0 65mm pitch foot pattern on the user system to the M3T F160 100NRB not included and here following is its procedure For details on the M3T F160 100NRB not included refer to its user s manual 1 Attach the NQPACK100RB included with the M3T F160 100NRB to the user system 2 Attach the YQPACK100RB included with the M3T F160 100NRB to the NQPACKIOORB and secure it with the YQ GUIDE s 3 Attach the CN2 side of the M3T F160 100NRB to the CN2 side of the package converter board connected to the emulation pod probe 4 Attach the M3T F160 100NRB to the YQPACK100RB Tip of emulation pod probe Package converter board CN2 side M3T F160 100NRB not included On board evaluation HQPACK100RB168
15. IC 61 1004 051 made by Yamaichi Electronics Co Ltd be sure to create foot patterns for the holding metal fixtures in four locations 2 When using the AXS 4003 M295C made by Matsushita Electric Works Ltd note that the contacts of the IC socket proper touch the PC board in the shaded section Therefore be especially careful with pattern wiring to ensure that other pins will not be shorted Through holes are not SN TTT ITA gs Pattern wiring 2 EE 18 85 gt e 1990r i Foot pattern for 26 10 holding metal fixture 1 Figure 4 9 External dimensions of the M30800T PTC Unit mm REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 89 of 104 M306NKT3 RPD E User s Manual 4 Hardware Specifications 4 5 3 External Dimensions of the Converter Board M3T F160 100NRB Figure 4 10 shows external dimensions and a sample foot pattern of the converter board for a 100 pin 0 65mm pitch QFP M3T F160 100NRB not included 55 0 RENESAS M3T F160 100NRB REV A MADE IN JAPAN
16. Pulls up pin BYTE of the MCU with a resistance of 33kO Sets pin CNVss of the MCU to L when the user system is SW2 unconnected Pulls down pin CNVss of the MCU with a resistance of 1kO e factory settings n no Use this setting when the user system is connected Does not pull up down pin CNVss of the MCU Inputs the level of the user system to pin CNVss of the MCU LO LOPEN H Sets pin CNVss of the MCU to H when the user system is unconnected Pulls up pin CNVss of the MCU with a resistance of 1kQ 2 s L OPENH REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 45 of 104 M306NKT3 RPD E User s Manual 2 Setup Table 2 4 Switch settings of the M306NKT3 RPD E 2 Switch Description Does not connect pin Xout of the MCU to the user system factory settings SW3 Connects pin Xout of the MCU to the user system Xout OP Xout Connects pin P86 Xcout of the MCU to the user system to use it as port P86 or Xcout P86 Xcout de eb P86 XC OP n Az P86 Xcout factory settings Does not connect pin P86 Xcout of the MCU to the user system P86 Xcout O 02 z Re P87 Xcin d Connects pin P87 Xcin of the MCU as port P87 e SW5 factory settings U P87 Xcin Connects pin P87 Xcin of the MCU as Xcin P87 Xcin P87 Xcin A CAUTION Note on Switch Settings Always shut OFF power before changing switch setting
17. no wait actual MCU BCLK HOLD input HLDA output Co f REA td BCLK HLDA Hi Z td BCLK HLDA P0 P1 P2 P3 P4 ED ew LUPA MEE oe P5o P52 Common to with wait and no wait this product BCLK D t HOLD BCLK su 9 th BCLK HOLD HOLD input HLDA output Hi Z td BCLK HLDA PO P1 P2 P3 P4 IR ER EC m a i Jp ee l P50 P52 o oo REN MEN td BCLK HLDA Compared with an actual MCU this product enters high impedance state after a 0 5 cycle delay Figure 4 3 Timing requirements REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 77 of 104 M306NKT3 RPD E User s Manual 4 Hardware Specifications 4 2 2 Operation Timing of Memory Expansion Mode and Microprocessor Mode Vcc 3V 1 Separate Bus Timing Table 4 5 and Figure 4 4 show the bus timing in memory expansion mode and microprocessor mode 3 wait accessing external area Table 4 5 Memory expansion mode and microprocessor mode 3 wait accessing external area Actual MCU This product ns ns td BCLK AD Address output delay time Max Min Max See left th BCLK AD Address output hold time BCLK standard See left th RD AD Address output hold time RD standard 1 th WR AD Address output hold time WR standard See left td BCLK CS Chip select output delay time See left th BCLK CS Chi
18. td BCLK DB th BCLK DB ex oi td DB WR th WR DB Figure 4 1 Memory expansion mode and microprocessor mode 3 wait accessing external area REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 74 of 104 M306NKT3 RPD E User s Manual 4 Hardware Specifications 2 Multiplex Bus Timing Table 4 3 and Figure 4 2 show the bus timing in memory expansion mode and microprocessor mode 2 wait accessing external area using multiplex bus Table 4 3 Memory expansion mode and microprocessor mode 2 wait accessing external area using multiplex bus Symbol td BCLK AD Address output delay time Actual MCU ns This product ns Min Max Min Max th BCLK AD Address output hold time BCLK standard See left th RD AD Address output hold time RD standard See left th WR AD Address output hold time WR standard See left td BCLK CS Chip select output delay time See left th BCLK CS Chip select output hold time BCLK standard See left th RD CS Chip select output hold time RD standard See left th WR CS Chip select output hold time WR standard See left td BCLK RD RD signal output delay time See left th BCLK RD RD signal output hold time 1 td BCLK WR WR signal output delay time See left th BCLK WR WR signal output hold time 4 td BCLK DB Data output delay time
19. 0I Emulator DPI ESSE Included with the PC4701 M3T PD30 M3T F160 100NRB M3T 100LCC DMS 100 pin 0 65mm pitch QFP PRQP0100JB A M3T DIRECTI100S MI6C 6N4 Previous code 100P6S A M3T 100LCC DMS S MI6C 6NS 4 5 H M3T DUMMY 100S Required according to a foot 5 100 pin 0 5mm pitch LQFP M3T F160 100NSD pattern of a user system a PLQP0100KB A Refer to 2 8 Connecting S Previous code 100P6Q A M3T 100LCC QSD the User System page 30 ES A 2 100 pin 0 5mm pitch LQFP M3T F160 100NSD amp MI6C 6NK PLQPO100KB A MI6C 6NL Previous code 100P6Q A M3T 100LCC QSD MI16C 6NM 128 pin 0 5mm pitch LQFP MI6C 6NN PLQPOI28KB A M3T F160 128NRD Previous code 128P6Q A To purchase these products contact your local distributor REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 14 of 104 M306NKT3 RPD E User s Manual 1 Outline 1 3 System Configuration 1 3 1 System Configuration Figure 1 1 shows a configuration of the PC4701 system __ 6 Host machine Interface cable 5 Emulator main unit Host machine 2 Flexible cable connecting PC4701 1 Emulation pod 3 Flexible cable connecting user system 4 Package converter board for connecting user system 7 User system Figure 1 1 System configuration 1 Q 3 4 5 6 7 Emulation pod M306NKT3 RPD E this product Emulation pod for the M16C 6N Group M16C 6N4 M16C 6N5 MI6
20. 1 Operating environment of the host machine PC4701 Interface Remarks The dedicated parallel interface cable is supplied with the PC4701HS For connection with the dedicated parallel interface the parallel interface printed circuit board PCA4202G02 discontinued product is required on the host machine side The RS232C interface cable 25 pin female 25 pin female conversion cable Serial RS232C and 25 pin female 9 pin female conversion cable are supplied with the PC4701HS LAN IOBASE 2 5 The LAN interface cable IOBASE 2 5 is supplied with the PCA701HS LPT parallel The LPT parallel interface cable is supplied with the PCA701M PC4701M The RS232C interface cable and 25 pin female 9 pin male conversion cable sonal Reese are supplied with the PC4701M i LPT parallels The LPT parallel interface cable is supplied with the PC4701U USB The USB interface cable is supplied with the PC4701U No LAN interface cable is supplied with the PC4701U it is therefore DAN ESSE necessary to arrange a LAN interface cable at your end Dedicated parallel PC4701HS PC4701U REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 22 of 104 M306NKT3 RPD E User s Manual 2 Setup 2 4 Connecting the PC4701 To connect the emulation pod to the PC4701 use the FLX120 RPD 120 pin flexible cable included with this product package Connect the PC4701 side connector of the FLX120 RPD to the cable connector of the PC4701 the
21. 4 th WR CS Fs peat F 3 icr th BCLK AD 3 f ae yas ia BHE td BCLK ALE DOE c3 th BCLK ALE D ith WR AD td BCLK WR gt lt th BCLK wR Id BCLK DB Lo th BCLK DB gt AE td DB WR i O7 th WR DB Figure 4 4 Memory expansion mode and microprocessor mode 3 wait accessing external area REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 79 of 104 M306NKT3 RPD E User s Manual 4 Hardware Specifications 2 Multiplex Bus Timing Table 4 6 and Figure 4 5 show the bus timing in memory expansion mode and microprocessor mode 2 wait accessing external area and using multiplex bus Table 4 6 Memory expansion mode and microprocessor mode 2 wait accessing external area and using multiplex bus Symbol td BCLK AD Address output delay time Actual MCU ns This product ns Min Max Min Max See left th BCLK AD Address output hold time BCLK standard See left th RD AD Address output hold time RD standard See left th WR AD Address output hold time WR standard See left td BCLK CS Chip select output delay time See left th BCLK CS Chip select output hold time BCLK standard See left th RD CS Chip select output hold time RD standard See left th WR CS Chip select output hold time WR standard See left td BCLK
22. C Serial C LAN C LPT C ASB Host re M PO AT IO Address MCU Clock MHz Resource Cancel Hep _ I Next Hide Executing the self check Enable this function when you want the emulator to be self checked at startup Be sure to select the check box only when you want the emulator to be self checked at startup Note In case where self checking was normally completed terminate the emulator debugger once then start operation with no self checking carried out again with leaving the check box unchecked This function may be enabled in the following cases When you are using the emulator you have just purchased When you successfully download the firmware but fail to start up the emulator debugger When you want to confirm whether the emulator is operating normally because for example the MCU runs out of control or something is wrong with the trace results This function can be enabled only when you are starting up the emulator debugger REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 54 of 104 M306NKT3 RPD E User s Manual 3 Usage How to Use the Emulator Debugger 4 Specifying the clock frequency Init M160 PC4701 Emulator x FAW and Work Area Memory Space Expansion Glock Script MCU Debugging Information MCL Refer Parallel Serial C LAN LPT Host IBM PC AT x USB Target VO Address Self Check
23. Check the SAFE LED starts blinking and then press the system reset switch again 5 The self check will start If the normal result is displayed in about 30 seconds the self check has terminated normally POWER d ERROR a STATUS OF SYSTEM POWER Z cLock lt RESET cL RUN c POWER c SAFE ERROR STATUS OF SYSTEM POWER c SAFE Zz ERROR STATUS OF SYSTEM HALT C 1 All the LEDs light Immediately after turning on the power Completed normally POWER c POWER amp Blinking SNPE A cLock c zc RESET A STATUS OF RUN aA SYSTEM HALT lt RESET ERROR LED lights System status error POWER ze power C SAFE B ERROR e STATUS OF RUN a SYSTEM clock A RESET W HALT CA RESET SAFE and ERROR LED blink Target status error Figure 2 6 LED display in the self check procedure RENESAS REJ10J0326 0400 Rev 4 00 Sep 01 2006 Page 28 of 104 M306NKT3 RPD E User s Manual Q factory settings w2 d p e factory settings factory settings gi sg sw4 SW5 ud factory settings factory settings factory settings M30620T3 PRT board P86 Xcout P86 XC OP P87 Xcin P87 Xcin Figure 2 7 Switch settings for the self check factory settings 2 7 2 If an Error is Detected in the Self check If the self check does not result normally check the following 1 Whether the emulation pod and PC4701 are connected properly 2 Whether the proper firm
24. How to Use the Emulator Debugger When debugging the completed programs switch the session The session can be changed by the drop down list of the tool bar shown below You will have as many sessions created as the number of targets you selected when creating a project so select the session that corresponds to the target to be connected from the drop down list Select SessionM16C PC4701 Emulator 3 3 1 Init Dialog Box After specifying the session an Init dialog box to connect the target 1s displayed The Init dialog box is used to set the items that need to be set when the emulator debugger starts up The contents set in this dialog box remain effective the next time you start the debugger 1 MCU tab 1 Specifying the MCU file Init M16C PC4701 Emulator FAW and Work Area Memory Space Expansion l Clock Script MCU Debugging Information MGU Parallel C Serial C LAN C LPT C USB Host JIBM PC AT 7 Target VO Address Self Check MOU Clock MHz Resource OK Cancel Help Next Hide Select MCU File E 21x Look in a McuFiles z 5 a M30620TB mcu ji M306H0 mcu in M306K5 mcu joe M306 V0 mou la M30620TL mcu ia M306H1 mcu a M306N0T2 mof ia M306V2 mcu je M30626MWP mcu a M305H2 mcu ha M306NOTB ycu aa M306V3 meu a M3062NT3 mcu ha M306H3T3 mcu ji M305NATJ mcu a M306V7 mou wa M3062PT3 mcu a M306H5T3 mcu wa M
25. Manual Precautions for Safety A WARNING Warnings for AC Power Supply If the attached AC power cable does not fit the receptacle do not alter the AC power cable and do not plug it forcibly Failure to comply may cause electric shock and or fire Use an AC power cable which complies with the safety standard of the country Do not touch the plug of the AC power cable when your hands are wet This may cause electric shock This product is connected signal ground with frame ground If your developing product is transformless not having isolation transformer of AC power this may cause electric shock Also this may give an unrepairable damage to this product and your developing one While developing connect AC power of the product to commercial power through isolation transformer in order to avoid these dangers If other equipment is connected to the same branch circuit care should be taken not to overload the circuit When installing this equipment insure that a reliable ground connection is maintained If you smell a strange odor hear an unusual sound or see smoke coming from this product then disconnect power immediately by unplugging the AC power cable from the outlet Do not use this as it is because of the danger of electric shock and or fire In this case contact your local distributor 9 Before setting up this emulator and connecting it to other devices turn off power or remove a power cable to pre
26. RD RD signal output delay time See left th BCLK RD RD signal output hold time 1 td BCLK WR WR signal output delay time See left th BCLK WR WR signal output hold time 4 td BCLK DB Data output delay time BCLK standard See left th BCLK DB Data output hold time BCLK standard See left td DB WR Data output delay time WR standard See left th WR DB Data output hold time WR standard See left td BCLK ALE ALE output delay time BCLK standard See left th BCLK ALE ALE output hold time BCLK standard See left td AD ALE ALE output delay time Address standard See left th ALE AD ALE output hold time Address standard See left td AD RD After address RD signal output delay time td AD WR After address WR signal output delay time tdz RD AD Address output floating start time Calculated by the following formula according to the frequency of BCLK 0 5x10 Mu ns f BCLK 2 Calculated by the following formula according to the frequency of BCLK n 0 5 x10 f BCLK ns n 2 for 2 wait 3 Calculated by the following formula according to the frequency of BCLK 9 0 5x10 40 ns f BCLK 4 Calculated by the following formula according to the frequency of BCLK 0 5x10 15 ns f BCLK RENESAS REJ10J0326 0400 Rev 4 00 Sep 01 20
27. Specifications IMPORTANT Note on Breaks The area displaying break points in the program window of the emulator debugger shows the following breaks 1 Software break This is a debugging function which generates a BRK interruption by changing an instruction at a specified address to a BRK instruction 00h to break a program immediately before the system executes an instruction at a specified address The instruction at the preset address will not be executed Hardware break This is a debugging function which breaks a program by setting the detection of an execution of an instruction at a specified address as a break event The program will break after the instruction at the specified address is executed Notes on Software Breaks Software breaks change the instruction at a specified address to a BRK 00h Therefore take note that when you reference the result of a trace in bus mode 00h is displayed The BRK instruction can be used for the emulator only You cannot use it in a user program It is not possible to use a software break and a hardware break at the same time If doing so it may not operate normally In the area where the MAP setting is EXTERNAL software breaks cannot be used Note on Power Supply to the User System Pins Vccl and Vcc2 are connected to the user system to observe the voltage Therefore the power is not supplied to the user system from the emulator design your system so that the
28. emulator and host machine listed in Tables 1 7 and 1 8 Table 1 7 Operating environmental conditions Item Description Operating temperature 5 to 35 C no dew Storage temperature 10 to 60 C no dew Table 1 8 Operating environment of the host machine Item Description Host machine IBM PC AT compatibles Windows 98SE Windows Me Windows XP Windows 2000 CPU Pentium III 600 MHz or more recommended Memory 128 MB or more recommended Pointing device such as mouse Mouse or any other pointing device usable with the above OS that can be connected to the main body of the host machine CD drive Needed to install the emulator debugger or refer to the user s manual OS Windows is trademarks of Microsoft Corporation in the United states and other countries REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 19 of 104 M306NKT3 RPD E User s Manual 2 Setup 2 Setup This chapter describes the preparation for using this product the procedure for starting up the emulator and how to change settings 2 1 Flowchart of Starting Up the Emulator The procedure for starting up the emulator is shown in Figure 2 1 For details refer to each section hereafter And when the emulator does not start up normally refer to 5 Troubleshooting page 96 Check the package components v User registration v Install the M16C PC4701 Emulator Debugger v Connect the host machine v
29. finished 60 7772 z22z2Zz222z2z2z2z2z2z2z2z2z2z2z2z2z2z22222 27 61 Initialize Macro declaratio 62 pe0 4 63 N BZERO macro TOP 64 f0039 mow b 00H RO 65 f003a mov w TOP OFFFFH Al 66 f003d mow w ttsjz of SECT_ R3 67 0041 68 69 70 macro FROM_ TO_ SECT_ 71 0061 w CFROM_ amp OFFFFH A0 72 0064 o mow b FROM_ gt gt 16 R1H 73 0067 mow w TO_ Al 74 006a mow sizeof SECT_ R3 75 006e smovf b 76 endm TAE The cursor stops in the position where the come command was executed The statement specified with the come command is not executed REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 62 of 104 M306NKT3 RPD E User s Manual 3 Usage How to Use the Emulator Debugger 3 6 Hardware Break Hardware break is set by event condition such as FETCH or DATA ACCESS etc The program stops after executing the instruction at the set breakpoint after several cycles 1 Break event setup dialog box 1 Opening the hardware break point setup dialog box Hardware Break Point m m Clicking this button opens the hardware break point setup dialog box 2 H W Break Points Setting Window H W Break Points Setting Window Select the Enable H W Break check box and this break function will be enabled allowing you to set hardware break points HAW Break Points Se
30. on the Target Status POWER LED If the MCU has two or more Vcc terminals the LED does not light unless power is supplied to all the terminals Notes on the Target Status CLOCK LED CLOCK LED is turned off when both main and sub clocks are not oscillating If either clock is oscillating the LED is turned on If the LED is not turned on check the following 1 After powering on the PC4701 before starting up the emulator debugger Make sure that the oscillator circuit board in the emulation pod is properly installed and it is oscillating normally 2 After the emulator debugger is started up after the Init dialog box settings are completed Make sure that the oscillator selected in the Init dialog box is oscillating normally REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 17 of 104 M306NKT3 RPD E User s Manual 1 4 Specifications 1 Outline Tables 1 5 and 1 6 list the specifications of the M306NKT3 RPD E Table 1 5 M306NKT3 RPD E specifications 1 2 Item Description M16C 6N Group Applicable MCU MI6C 6N4 MI6C 6N5 M16C 6NK M16C 6NL M16C 6NM and M16C 6NN Single chip mode Usable MCU mode Memory expansion mode Microprocessor mode Maximum operating frequency 16MHz Applicable power supply 3 0 to 5 5V Internal ROM RAM capacity 0 wait 16 MHz max Emulation Memory IMB 0 wait 8MHz max External area 1 wait 16MHz max Internal oscillator circuit board OSC 3
31. product s user s manual or online manual All the components of this product are shown in 1 1 Package components page 13 If there is any question or doubt about this product contact your local distributor The related manuals for using this product are listed below You can download the latest manuals from the Renesas Tools homepage http www renesas com en tools Related manuals Item Manual Emulator main unit PC4701U User s Manual PC4701M User s Manual PC4701HS User s Manual Integrated development environment High performance Embedded Workshop User s Manual Emulator debugger M16C PC4701 Emulator Debugger User s Manual M3T PD30 User s Manual C compiler C compiler package for R8C Tiny M16C 60 30 Tiny 20 and 10 Series C Compiler User s Manual Assembler C compiler package for R8C Tiny M16C 60 30 Tiny 20 and 10 Series Assembler User s Manual REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 3 of 104 M306NKT3 RPD E User s Manual Important Important Before using this product be sure to read this user s manual carefully Keep this user s manual and refer to this when you have questions about this product Emulator The emulator in this document refers to the following products that are manufactured by Renesas Technology Corp 1 PC4701 main unit 2 Emulation pod 3 Package converter board for connecting the user system The emulator herein does not include the custome
32. r Resource MOU Oleck 16000000 MHz fl Next Hide Cancel Help Specifying the clock frequency Specify the target MCU operation clock and clock dividing ratio Specify the operation clock and clock dividing ratio In case where no value was set up in the area in which the operation clock is Specified the unit operates with the reference clock 16MHz inside the emulator PC4701 as time measurement resource Incase where no value was set up in the area in which the dividing ratio is Specified the unit operates as No dividing Same as when 1 was Specified 2 Debugging Information tab hit MI6C PC4701 Emulator xj F W and Work Area Memory Space Expansion Clock Script MCU Debugging Information NCSOWA NG8C Compiler Object Format IEEE 695 Cance Help Next Hide Referencing the compiler used and the object format Reference the compiler you are using and the format of the object file output by the compiler To make this setting use the dialog box that is brought up by selecting Debug and then Debug Settings from the menu Specifying the method for storing debug information There are two methods for storing debug information on memory method and an on demand method Select the compiler you are using By default the on memory is selected When selecting the on demand method check the On Demand
33. to read this chapter before using this product potential danger that will possibly inflict an injury on persons To avoid a possible f This symbol represents a warning about safety It is used to arouse caution about a injury or death please be sure to observe the safety message that follows this symbol N DANGER indicates an imminently dangerous situation that will cause death or heavy DANGER wound unless it is avoided However there are no instances of such danger for the product presented in this user s manual AN WwW ARN NG WARNING indicates a potentially dangerous situation that will cause death or heavy wound unless it is avoided AN C AUTION CAUTION indicates a potentially dangerous situation that will cause a slight injury or a medium degree injury unless it is avoided C AUTI ON CAUTION with no safety warning symbols attached indicates a potentially dangerous situation that will cause property damage unless it is avoided IM PO RT ANT This is used in operation procedures or explanatory descriptions to convey exceptional conditions or cautions to the user In addition to the five above the following are also used as appropriate Z means WARNING or CAUTION x IN CAUTION AGAINST AN ELECTRIC SHOCK means PROHIBITION SS oisassEvaLv PROHIBITED means A FORCIBLE ACTION LA QE uNPLuc THE POWER CABLE FROM THE RECEPTACLE REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 6 of 104 M306NKT3 RPD E User s
34. user system is powered separately 1 The voltage of the user system should be within the operating range of the evaluation MCU 2 Do not change the voltage of the user system after turning on the power Notes on Address Match Interrupts To debug address match interrupts set a software break or hardware break at the top address of the address match interrupt process If you set a software break or hardware break at an address where an address match interrupt occurs the program may run out of control When an address at which an address match interrupt occurs is executed in single step mode the program stops after executing the first instruction after returning from the address match interrupt processing Note on Accessing Addresses 00000h and 00001h With this product the yellow LED lights when address 00000h is read out by a process other than an interrupt However because the LED is turned off by other than the reset switch of the emulator main unit accessing address 00000h can not be detected properly Therefore to detect that address 00000h is read out by a process other than an interrupt enable a hardware breakpoint and using an event check the program with the following settings Event type DATA ACCESS Address Range addr Address1 Address1 00000h Data Range Not Specify Access READ Note on Debugging Operations After Releasing a Reset from the Target Do not execute debugging operations s
35. 00S not included e FLASH MCU etc M3T 100LCC DMS 2 100 pin 0 65mm pitch PRQP0100JB A foot pattern Se No 1pin User system Figure 2 13 Connecting to a 100 pin 0 65mm pitch foot pattern 3 3 A CAUTION Note on Connecting the User System o Take care not to attach the converter board in a wrong direction It may cause a fatal damage to the emulation pod The connectors of the M30800T PTC are guaranteed for only 50 insertion removal iterations The connectors of the M3T 100LCC DMS and M3T DUMMY100S are guaranteed for only 20 insertion removal iterations REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 35 of 104 M306NKT3 RPD E User s Manual 2 Setup 2 8 5 Connecting to a 100 pin 0 5mm pitch Foot Pattern Part 1 Figure 2 14 shows how to connect a 100 pin 0 5mm pitch foot pattern on the user system to the M3T F160 100NSD not included and here following is its procedure For details on the M3T F160 100NSD not included refer to its user s manual 1 Attach the NQPACK100SD included with the M3T F160 100NSD to the user system 2 Attach the YOPACKI100SD included with M3T F160 100NSD to the NQPACKIOO0SD and secure it with the YQ GUIDE s 3 Attach the CN2 side of the M3T F160 100NSD to the CN2 side of the package converter board connected to the emulation pod probe 4 Attach the M3T F160 100NSD to the YQPACK100SD Tip of emulation pod probe Packag
36. 06 Page 80 of 104 M306NKT3 RPD E User s Manual 4 Hardware Specifications Read timing tcyc td BCLK CS th BCLK CS i H 7 B td AD ALE th ALE AD tac3 RD DB ioi z A RD GS 3 ADi M Hiz o l wo oo a a S O X tdz RD AD tsu DE RD amp 36 gt Y th RD DB td AD RD th BCLK AD c DadBCLK e D ADi TE ENS BHE A NE TE td BCLK ALE 25 eea oOo ag Lor NE th RD AD ALE td BCLK RD th BCLK ALE X X y th BCLK RD Write timing tcyc BCLK d BCLK CS F th BCLK CS x a i DO gt td AD ALE th ALE AD MERES CIK ub uy ie DB c A a lt Stq BCLK DB X DB DBi E Po oo vus gt td DB WR th WR DB Do th BCLK AD X lt td BCLK ALE 3 td BCLK AD 3 ADi BHE th WR AD ALE th BCLK ALE gt 3 td BCLK WR XGIh BCLK WR p i D r z D x Figure 4 5 Memory expansion mode and microprocessor mode 2 wait accessing external area and using multiplex bus REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 81 of 104 M306NKT3 RPD E User s Manual 4 Hardware Specifications 8 Timing Requirements Table 4 7 and Figures 4 6 show timing requirements in memory expansion mode and microprocessor mo
37. 1 Electrical characteristics of the Port Emulation FPGA Condition Standard values Standard High level input voltage Low level input voltage High level output voltage Ion 8mA DC Vcc 4 75V Ion 8mA DC Vcc 3 00V Low level output voltage IoL 8mA DC Vcc 4 75V IoL 8mA DC Vcc 3 00V Input leak current VI Vcc or GND Leak current Tristate Vo Vcc or GND I O pin input capacitance REJ10J0326 0400 Rev 4 00 Sep 01 2006 VIN 0V f 1 0MHz RENESAS Page 87 of 104 M306NKT3 RPD E User s Manual 4 Hardware Specifications 4 5 External Dimensions 4 5 1 External Dimensions of the Emulation Pod Figure 4 8 shows external dimensions of the M306NKT3 RPD E Unit mm Figure 4 8 External dimensions of the emulation pod REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 88 of 104 M306NKT3 RPD E User s Manual 4 Hardware Specifications 4 5 2 External Dimensions of the M30800T PTC Figure 4 9 shows external dimensions of the converter board M30800T PTC for a 100 pin LCC included with the M306NKT3 RPD E M30800 T PTC aoan panan a m o0o0ooooooqooooooo o0oooooooloooooooo 50 e ND Y ee Y 31 1 I I 4 L I I L 0000000000 0000000 00000000 External dimension when connecting 100 pin LCC socket 1 When using the AXS 4003 M295 C made by Matsushita Electric Works Ltd and
38. 306 e m M3062PTStest mcu a M306H7T3 mcu M306NKT3 meu aaa File name MS06NKT3 mcu F W and Work Area Memory Space Expansion Clock Script MCU Debugging Information MCLE M308NKT3 G Parallel C Serial CLAN CLPT C USB Host IBM PO AT z TP VO Address Self Check Resource MCU Clock Mhz File of type MCU Files mouw Cancel Ir ZA Specifying the MCU file Specify the MCU file for the target MCU 1 Click the Refer Button 2 Select MCU File dialog box will be displayed Specify the MCU file for the target MCU The MCU file contains the information specific to the target MCU The specified MCU file is displayed at the MCU area field of MCU tab REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 52 of 104 M306NKT3 RPD E User s Manual 2 Specifying the communication interface 3 Usage How to Use the Emulator Debugger Init M160 PO4701 Emulator e C Serial C LAN C LPT C USB IO Address I Self Check Resource Host IBM PC AT 7 Target Specifying the communication interface Parallel communication In case where the parallel communication is set up click the radio button Parallel of MCU tab For the host area only IBM PC AT can be designated Set the I O address value that was set up with the special interface board PCA4202G02 to the I O address area Input the I O address in hexadeci
39. 6 of 104 M306NKT3 RPD E User s Manual 3 Usage How to Use the Emulator Debugger 3 7 Trace Window The trace window is used to show the results of real time trace measurements 1 Trace window 1 Opening the trace window Trace window x a Clicking this button opens the trace window 2 Trace window Trace window E ez v z aaa v a vz HY The trace window is used to show the results of real time trace Range 00576 00000 Area Break File Cycle 00044 Address OFO7DO Time 00 00 00 000 033 measurements It has the following four display modes Mixed Cycle Label Address Data BUS BIU R W RWT cpu on mode also can be displayed 00044 0F07D0 FD O 16b IW R 0 3 00043 0F07D0 FD O 16b 1 3 Bus mode 00042 OF07D2 0010 16b IW R 0 RW 3 i f saa aroma Odor ICE IN 7 M CH A Bus information per cycle can be inspected The contents are 00040 OF 7D6 FBFF 16b IW R o RW 4 displayed in order of execution paths 00039 F 7D6 FBFF 16b 1 RB 3 E 1 00038 main OF0D10 D4F3 16b IW R 0 oc 2 Disassemble mode 00037 bcopy OF0012 F27C 16b IW R 0 4 The execution paths of the executed instructions can be 00036 000719 D507 16b DW w 0 4 00035 00071A D507 16b DW w 0 zm ow inspected The contents are displayed in order of execution 00034 000718 OFOO 16b DB W 0 4 paths 00033 000715 OF00 16b 1 4 00032 000715 OFOO 16b
40. Al Address 1 0020E3 Data 1 00E6 MASK OOFF Access WRITE 4 Setting the combinatorial event condition for the hardware break point 1 Window for setting the combinatorial event condition tH AW Break Points r w Enable HAW Break PASS E ADDRE ACCE CONDITION 1 Al 000000 READ addr 000000 O 1 2 000000 FETCH add 000000 O 43 000000 FETCH add 000000 O 1 4 000000 FETCH addr 000000 OF 1 5 000000 FETCH add 000000 O 1 46 000000 FETCH add goatoo PID Enable Reset Save Load r Combination AND Detail Setting the combinatorial event condition There are following four conditions that you can choose for the combinatorial events AND The program breaks when all of the specified events occur AND Same Time The program breaks when the specified events occur at the same time OR The program breaks when one of the specified events occurs STATE TRANSITION The program breaks when the state transition diagram goes into the break state For each event a pass count number of passing is specifiable 1 255 When AND same time is specified for Combination you can not specify the pass count fixed to one When you have finished setting the combinatorial event condition click the Set button REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 6
41. BCLK standard See left th BCLK DB Data output hold time BCLK standard See left td DB WR Data output delay time WR standard See left th WR DB Data output hold time WR standard See left td BCLK ALE ALE output delay time BCLK standard See left th BCLK ALE ALE output hold time BCLK standard See left td AD ALE ALE output delay time Address standard See left th ALE AD ALE output hold time Address standard See left td AD RD After address RD signal output delay time td AD WR After address WR signal output delay time tdz RD AD Calculated by the following formula according to the frequency of BCLK 05x10 f BCLK 2 Calculated by the following formula according to the frequency of BCLK n 0 5 x10 f BCLK 3 Calculated by the following formula according to the frequency of BCLK 0 5x10 f BCLK 4 Calculated by the following formula according to the frequency of BCLK 0 5x10 f BCLK REJ10J0326 0400 Rev 4 00 Sep 01 2006 25 Address output floating start time ns ns n 2 for 2 wait ns 5 ns RENESAS Page 75 of 104 M306NKT3 RPD E User s Manual 4 Hardware Specifications Read timing tcyc td BCLK CS th BCLK CS gt x ee tac3 RD DB T th RD CS td AD ALE th ALE AD ADi P
42. C 6NK MI6C 6NL M16C 6NM and M16C 6NN This emulation pod contains an evaluation MCU Flexible cable FLX120 RPD included This is a 120 conductor flexible cable for connecting the PC4701 emulator and the emulation pod Flexible cable M3T FLX160C included This is a 160 conductor flexible cable for connecting the emulation pod and the user system Converter board M30800T PTC included This is a converter board for connecting to 100 pin 0 65mm pitch LCC socket IC61 1004 051 on the user system For details refer to 2 8 Connecting the User System page 30 Emulator main unit PC4701 The emulator main unit for the M16C 7700 and 740 families to be used with this product Host machine A personal computer to control the emulator User system This is your application system This emulator cannot supply the power to the user system Therefore design your system so that the user system 1s powered separately REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 15 of 104 M306NKT3 RPD E User s Manual 1 Outline 1 3 2 Names and Functions of the PC4701 Front Panel LEDs Figure 1 2 shows the names of the LEDs on the front panel of the emulator Target status LEDs STATUS OF TA RGET System status LEDs STATUS OF SYSTEM eee PC4701 HIGH PERFORMANCE EMULATOR Figure 1 2 Names of the LEDs on the front panel of the PC4701 1 System Status LEDs The system status LEDs indicate the emulator PC4701 s power s
43. C QSD 100 pin LQFP not included o Take care not to attach the converter board in a wrong direction It may cause a fatal damage to the emulation pod REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 30 of 104 M306NKT3 RPD E User s Manual 2 Setup Tip of emulation pod probe Y 100 pin 128 pin 0 5mm pitch 0 5mm pitch v Y M30800T PTC included e MS3T F160 100NSD MS3T 100LCC QSD M3T F160 128NRD 100 pin LQFP 100 pin LOFP 128 pin LOFP not included not included not included Figure 2 9 Connecting the user system for MI6C 6NK M16C 6NL M16C 6NM and M16C 6NN A CAUTION Note on Connecting the User System Q Take care not to attach the converter board in a wrong direction It may cause a fatal damage to the emulation pod REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 31 of 104 M306NKT3 RPD E User s Manual 2 Setup 2 8 1 Connecting to a 100 pin LCC socket Figure 2 10 shows how to connect a 100 pin LCC socket IC61 1004 051 of Yamaichi Electronics Co Ltd on the user system to the M30800T PTC included 1 Attach the CN2 side of the M30800T PTC to the CN2 side of the package converter board connected to the emulation pod probe 2 Attach the M30800T PTC to the 100 pin LCC socket Tip of emulation pod probe Package converter board CN2 side A M30800 T PTC 100 pin LCC socket No 1 pin User system
44. C4701 page 23 2 Check that the reset pin of the user system is at H level See the MCU specifications 3 Check that CNVSS is held low See the MCU specifications 4 Check that the oscillator circuit of the emulation pod is oscillating properly See 2 9 3 Selecting Clock Supply page 41 ERROR 16014 Communication ERROR Can t accept data 1 Check that the oscillator circuit of the user system is oscillating properly See 2 9 3 Selecting Clock Supply page 41 2 Check that the PCA701 LEDs at startup show normal operation See 2 5 3 LED Display When the Emulator Starts Up Normally page 26 ERROR 16231 There was sent undefined data from the emulator REJ10J0326 0400 Rev 4 00 Sep 01 2006 Check that the emulator debugger has not been started up without shutting down the PC4701 See 4 6 IMPORTANT Note on Quitting the Emulator Debugger page 92 RENESAS Page 98 of 104 M306NKT3 RPD E User s Manual 5 Troubleshooting 8 Program Window is Not Displayed at Debugger Startup User System Not Connected Table 5 3 Checkpoints of errors when starting up the emulator debugger user system not connected Error Checkpoint ERROR 16005 Can t connect with the target 1 Check the connection between the PC4701 and host machine See the PC4701 User s Manual 2 Check that the PCA701 is powered on See the PC4701 User s Manual 3 Check that all switch settings on the r
45. DMS not included MST DIRECT100S not included 100 pin 0 65mm pitch PRQP0100JB A foot pattern User system Figure 2 12 Connecting to a 100 pin 0 65mm pitch foot pattern 2 3 A CAUTION Note on Connecting the User System Take care not to attach the converter board in a wrong direction It may cause a fatal damage to the emulation pod The connectors of the M30800T PTC are guaranteed for only 50 insertion removal iterations The connectors of the M3T 100LCC DMS and M3T DIRECTI100S are guaranteed for only 20 insertion removal iterations REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 34 of 104 M306NKT3 RPD E User s Manual 2 Setup 2 8 4 Connecting to a 100 pin 0 65mm pitch Foot Pattern Part 3 Figure 2 13 shows how to connect a 100 pin 0 65mm pitch foot pattern on the user system to the M3T DUMMY100S not included and here following is its procedure For details on the M3T 100LCC DMS not included and M3T DUMMY 100S not included refer to each user s manual 1 Attach the M3T DUMMY 100S to the user system 2 Attach the M3T 100LCC DMS to the M3T DUMMY 00S 3 Attach the CN2 side of the M30800T PTC to the CN2 side of the package converter board connected to the emulation pod probe 4 Attach the M30800T PTC to the M3T 100LCC DMS Tip of emulation pod probe Package converter board CN2 side M30800T PTC 4 not included M On board evaluation M3T DUMMY1
46. E ALE signal output hold time See left td BCLK RD RD signal output delay time See left th BCLK RD RD signal output hold time See left td BCLK WR WR signal output delay time See left th BCLK WR WR signal output hold time See left td BCLK DB Data output delay time BCLK standard See left th BCLK DB Data output hold time BCLK standard See left td DB WR Data output delay time WR standard See left th WR DB Data output hold time WR standard See left Calculated by the following formula according to the frequency of BCLK 9 0 5 x10 49 fas nc for 3 wait f BCLK 2 Calculated by the following formula according to the frequency of BCLK 0 5x10 fGcLK REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 73 of 104 M306NKT3 RPD E User s Manual 4 Hardware Specifications Read timing BCLK CSi DO o Jm RD cS tcyc E BE td BCLK AD l e 3 e HR BCLK AD BHE i 7 7 54 td BCLK ALE 2 Ge c3 th BCLK ALE gt th RD AD ALE td BCLK RD E th BCLK RD tac2 RD DB tsu DB RD h RD DB Write timing th WR CS th BCLK AD x RS CE EAENMEOIINNE KEEN KC KM ANNE I NN OU Coo 2 td BCLK ALE D D6 c3 th BCLK ALE A gt ith WR AD c td BCLK WR gt lt Sth BCLK WR
47. ENES Do HO pia A a UNE A Do tdz RD AD tsu DB RD lt 3 i gt DOO th RD DB a A d AD RD E th BCLK AD Loi s td BCLK AD lt gt th RD AD th BCLK ALE lt 3 an lt th BCLK RD i p td AD ALE th ALE AD d PONES BR T c gt 2 1 DB c E ES lt td BCLK DB i l B DBi LN s OO es td DB WR th WR DB is th BCLK AD D j td BCLK ALE gt td BCLK AD x i th WR AD th BCLK ALE gt td BCLK WR XGih BCLK WR Figure 4 2 Memory expansion mode and microprocessor mode 2 wait accessing external area using multiplex bus REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 76 of 104 M306NKT3 RPD E User s Manual 4 Hardware Specifications 8 Timing Requirements Table 4 4 and Figure 4 3 list the timing requirements in memory expansion mode and microprocessor mode Table 4 4 Timing requirements Actual MCU This product ns ns Max Min Max tsu DB RD Data input setup time 65 tsu RDY BCLK RDY input setup time 55 tsi HOLD BCLK HOLD input setup time 80 th RD DB Data input hold time See left th BCLK RDY RDY input hold time See left th BCLK HOLD HOLD input hold time See left td BCLK HLDA HLDA output delay time See left Common to with wait and
48. LER KEY d IRR VI TERRA dI KE da dd 3 ng ole n 1a ED 4 Precautions for Safety sd da dne tae ctae da feuded sc do Lt wap sevens aab dedu Lada pede ea ada ad rane a sida be eaa ke dida nuda 6 Teri A PA 9 User Registrato Mahassine er tnnt dee abes aeaa ices baw cian e unen Ry pan ERAEN ER cede ped za Aaa ena IRR ANNERES 11 Beso a 9 n 12 JEUDI 13 1 1 Package COorhporients s c erudire retener per reae xe ee eared eee ed ties 13 1 2 Other Tool Products Required for Development sssssseeeeeemeemmeenns 14 1 3 System Configuration iudici airiran sie di bn Deir ra dod Cui CESA UEBER VE Uere LE REB D EEEE a saa E VE Roo oe 15 1 3 1 SYStem eher 15 1 3 2 Names and Functions of the PC4701 Front Panel LEDS sse nene 16 UN eroe EN PI Ta 18 1 5 Operating Environment rero ertum rre eri ee De ape EE Ee e ev cix re fera pde eu ee Pan e RES 19 2 SeU re S a nbn Ir I EM MEDI LEE 20 2 1 Flowchart of Starting Up the Emulator sse mener enne nenne 20 2 2 Installing the Emulator Debugger M16C PC4701 Emulator Debugger eene 21 2 2 1 Installing the Emulator Debugger sssssssesssesesee eene nennen neret nennen nnn enean 21 2 3 Connecti
49. M and M16C 6NN 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 integrated development environment High performance Embedded Workshop Renesas integrated development environment High performance Embedded Workshop This tool provides powerful support for the development of embedded applications for Renesas microcomputers It has an emulator debugger function allowing for the emulator PC4701 and emulation pod to be controlled from the host machine via an interface Furthermore it permits a range of operations from editing a project to building and debugging it to be performed within the same application What s more it supports version management Emulator debugger M16C PC4701 emulator debugger This means a software tool starting up from the High performance Embedded Workshop to control the emulator and this product and enables debugging Firmware Program that analyzes contents of communication with the emulator debugger and controls the emulator hardware This program is installed in the flash memory in the emulator main unit This program is downloadable from the emulator debugger to upgrade the firmware or to support other MCUs Host machine This means a personal computer used to control the emulator main unit and emulation pod Software break A software break is a function to break the program before the s
50. Main clock Clock suppl Switchable to external oscillator input PPly Sub clock Internal oscillator circuit fixed 32 768kHz Pee Switchable to external oscillator input Download Basic debugging functions Software break max 64 points Program execution stop allows free run execution supporting software breaks Memory reference setting reference setting C variables run time execution Register reference setting Disassemble display C level debugging etc Real time trace function 32K cycle bus information recordable Bus external trigger time stamp 5 trace modes supported Break Before About A fter Full Can be recorded ON OFF by events Real time RAM monitor function 1 024 bytes Data last access result Hardware break function 6 points Bus detection interrupt external trace signal Execution time measurement function Time between program start and stop Maximum minimum average execution time and pass count of specified four zones Count clock Equal to MCU Clock or 16MHz C0 coverage 256KB Event output Break x1 Event x6 External trigger input TTL level x8 Host machine interface see 2 3 Connecting the Host Machine on page 22 Dedicated parallel PC4701HS LPT parallel PC4701M PC4701U Serial PC4701HS PC4701M USB USB 1 1 full speed 1 PC4701U LAN PC4701HS PC4701U 1 Available to connect the host machine that supports USB 2 0 Wit
51. REJ10J0326 0400 T Everywhere you imagine g gE NESAS M306NK I 3 RPD E Users Manual Emulation Pod for M16C 6N Group M16C 6N4 6N5 6NK 6NL 6NM and 6NN Hev 4 00 RenesasTechnology Sep 01 2006 www renesas com Keep safety first in your circuit designs 1 Renesas Technology Corp 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 ap propriate measures such as i placement of substitutive auxiliary circuits ii use of non flammable 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 Corp 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 Corp or a third party 2 Renesas Technology Corp 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 in
52. S Page 99 of 104 M306NKT3 RPD E User s Manual 5 Troubleshooting 5 3 How to Request for Support After checking the items in 5 Troubleshooting fill in the text file which is downloaded from the following URL then send the information to your local distributor http tool support renesas com eng toolnews registration support txt For prompt response please specify the following information 1 Operating environment Operating voltage V Operating frequency MHz Clock supply to the MCU Internal oscillator External oscillator 2 Condition The emulator debugger starts up does not start up The error is detected not detected in the self check Frequency of errors always frequency 3 Problem REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 100 of 104 M306NKT3 RPD E User s Manual 6 Maintenance and Guarantee 6 Maintenance and Guarantee This chapter describes how to maintenance repair provisions and how to request for repair 6 1 User Registration When you purchase our product be sure register as a user For user registration refer to User registration page 11 of this user s manual 6 2 Maintenance 1 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 2 When you do not use this product for a long period for safety purposes di
53. W3 xo O XOUT OPEN AVCC VREF AVSS AN7 ANO P107 P100 INT3 INT5 E o E D gt 2 x o o 2 P107 P100 Pullup registers indicated by i dashed line socket mounted P07 P00 P07 P00 P27 P20 P27 P20 P17 P10 HM P17 P10 P37 P30 P37 P30 P47 P40 P47 P40 P57 P50 P57 P50 M30620T3 PRT Port Emulation FPGA IC21 CNVss CNVss BYTE BYTE RESET RESET Xin Xin Vcc1 Vcc2 Vcc1 Vcc2 Vss Figure 4 7 Part of the connection diagram of the M306NKT3 RPD E REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 86 of 104 M306NKT3 RPD E User s Manual ON resistor Table 4 9 Electrical characteristics of the 74HC4066 Condition Vcc 4 5V 4 Standard values Hardware Specifications Standard ON resistor difference Vcc 4 5V Leak current Off Vcc 12 0V Leak current On output open Item Vcc 12 0V Table 4 10 Electrical characteristics of the 7WH125 Condition Standard values Min Standard Max High level input voltage Vcc 3 0 to 5 5V Low level input voltage Vcc 3 0 to 5 5V Vcc x 0 7 lon 4mA Vcc 3 0V 2 48 High level output voltage Ion 8mA Vcc 4 5V 3 80 Iogn 4mA Vcc 3 0V Low level output voltage Leak current Tristate Ion 8mA Vec 4 5V VIN VIH or VIL Vo Vcc or GND Vec 5 5V I O pin input capacitance Item VIN 0V f 1 0MHz Table 4 1
54. YQ GUIDE x4 not included YQPACK100RB lt gt FLASH MCU etc NQPACK100RB These corners are not round 100 pin 0 65mmpitch PRQP0100JB A foot pattern e 4 NO 1 pin These four items are available in one package User system Figure 2 11 Connecting to a 100 pin 0 65mm pitch foot pattern 1 3 A CAUTION Note on Connecting the User System Take care not to attach the converter board in a wrong direction It may cause a fatal damage to the emulator or user system The connectors of the M3T F160 100NRB are guaranteed for only 50 insertion removal iterations REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 33 of 104 M306NKT3 RPD E User s Manual 2 Setup 2 8 3 Connecting to a 100 pin 0 65mm pitch Foot Pattern Part 2 Figure 2 11 shows how to connect a 100 pin 0 65mm pitch foot pattern on the user system to the M3T DIRECT100S not included and here following is its procedure For details on the M3T 100LCC DMS not included and M3T DIRECTI100S not included refer to each user s manual 1 Attach the M3T DIRECT100S to the user system 2 Attach the M3T 100LCC DMS to the M3T DIRECT100S 3 Attach the CN2 side of the M30800T PTC to the CN2 side of the package converter board connected to the emulation pod probe 4 Attach the M30800T PTC to the M3T 100LCC DMS Tip of emulation pod probe Package converter board CN2 side M30800T PTC MST 100LCC
55. a Memory Space Expansion Clock Script MCU Debugging Information C Parallel C Serial C LAN LPT C USB Type auro z Target VO Address 378h v J Self Check MCU Glock Mkz Resource Next Hide Cancel Help Init M16C PC4701 Emulator xj FAW and Work Area Memory Space Expansion Clock Script MCU Debugging Information MOU Refer C Parallel C Serial C LAN GER Serial No rasoz51 4 x Tareet J Self Check Resource 1 MCU Clock MHz Cancel Help Next Hide Specifying the communication interface LPT communication For selecting the LPT communication click the radio button LPT of the MCU tab For the Type area specify the LPT interface communication mode to be used Specify the I O address of the parallel port at the I O address area For BIOS setup the following addresses are available 378h 278h Specifyin the communication interface USB communication For selecting the USB communication click the radio button USB of the MCU tab The emulators connected by USB cable are shown at Serial No area Select the serial No of the emulator you are going to connect 3 Executing the self check Init M16C PO4701 Emulator xj FAW and Work Area Memory Space Expansion Clock Script MCU Debugging Information MCU M306H T3 mcu Refer Parallel
56. board CN2 side M30800T PTC M3T 100LCC QSD not included TQSOCKET100SDG_ TQPACK100SD 100 pin 0 5mm pitch PLQP0100KB A foot pattern User system Figure 2 15 Connecting to a 100 pin 0 65mm pitch foot pattern 2 2 A CAUTION Note on Connecting the User System Take care not to attach the converter board in a wrong direction It may cause a fatal damage to the emulation pod The connectors of the M30800T PTC are guaranteed for only 50 insertion removal iterations The connectors of the M3T 100LCC QSD are guaranteed for only 20 insertion removal iterations REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 37 of 104 M306NKT3 RPD E User s Manual 2 Setup 2 8 7 Connecting to a 128 pin 0 5mm pitch Foot Pattern Figure 2 16 shows how to connect a 128 pin 0 5mm pitch foot pattern on the user system to the M3T F160 128NRD not included and here following is its procedure For details on the M3T F160 128NRD not included refer to its user s manual 1 Attach the NQPACK128RD included with the M3T F160 128NRD to the user system 2 Attach the YOPACKI28RD included with M3T F160 128NRD to the NQPACK128RD and secure it with the YQ GUIDE s 3 Attach the CN2 side of the M3T F160 128NRD to the CN2 side of the package converter board connected to the emulation pod probe 4 Attach the M3T F160 128NRD to the YQPACK128RD Tip of emulation pod probe Package convert
57. check box On Memory The debug information is stored in the memory of your computer This method is suitable when the size of the load module user program is small On Demand The debug information is saved to a reusable temporary file When you download the same load module for a second time on the saved debug information will be reused and the load module can therefore be downloaded fast This method is suitable when the size of the load module user program is large RENESAS REJ10J0326 0400 Rev 4 00 Sep 01 2006 Page 55 of 104 M306NKT3 RPD E User s Manual 3 Usage How to Use the Emulator Debugger 3 Work area tab 1 Specifying the firmware Specifying the firmware file For the radio button of the firmware group box be sure to click Default Ina M165 PC4701 Emulator Specifying the work area Specifies the top address which is used as a work area at the start address area of the work area group box For details on specifying the work area refer to 3 2 Setting the Work Area page 51 The top address of the work area is set to 2C00h by default Insingle chip mode set the work area address at 10000h Work Area Work Area Start Address 2c00 Next Hide ae Help 4 Memory space expansion tab Specifying the memory space expansion mode Because the M306NKT3 RPD E does not supports Memory Space Expansion mode only the radio butto
58. de Table 4 7 Timing requirements Actual MCU This product ns ns Max Min Max tsu DB RD Data input setup time 65 tsu RDY BCLK RDY input setup time 55 tsi HOLD BCLK HOLD input setup time 80 th RD DB Data input hold time See left th BCLK RDY RDY input hold time See left th BCLK HOLD HOLD input hold time See left td BCLK HLDA HLDA output delay time See left Common to with wait and no wait actual MCU BCLK tsu HOLD BOLK HOLD input A HLDA output PO P1 P2 P3 P4 E P50 P52 Common to with wait and no wait this product BCLK A HOLD BCLK ant P HOLD input HLDA output ud EE 3 PO P1 P2 P3 P4 Poe LIU P50 P52 0 3 3 Compared with an actual MCU this product enters high impedance state after a 0 5 cycle delay Figure 4 6 Timing requirements REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 82 of 104 M306NKT3 RPD E User s Manual 4 Hardware Specifications 4 3 Differences between the Actual MCU and Emulator Differences between the actual MCU and emulator are shown below When debugging the MCU using this product be careful about the following precautions IMPORTANT Note on Differences between the Actual MCU and Emulator Operations of the emulator system differ from those of actual MCUs as listed below 1 Reset condition Set t
59. ding trace measurement 3 Usage How to Use the Emulator Debugger cycle Tabel Address Data BU Range Area Break File Cycle Address Time Suspend Click this toolbar button to suspend the trace measurement in progress 2 Resuming trace measurement I EDU Re Start x V g ia a a via P x B w Click this toolbar button to resume the trace measurement in progress Range 32511 00000 Area Break File Cycle 00017 Addn Cycle Label Address Data BU 00017 OFO7D8 0404 16 00016 OFO7D8 0404 16 O0015 exit OFO7DS FEOF 16 00014 OF07D6 FBFF 16 00013 DFO7D8 0404 16 00012 OFO7D8 0404 16 SOUGHT exit OFO7DS5 FEOF 16 00010 OF07D6 FBFF 16 00009 OFO DS 0404 16 00008 OFO7D8 0404 16 REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 69 of 104 M306NKT3 RPD E User s Manual 3 Usage How to Use the Emulator Debugger 3 Trace points setup window 1 Trace points setup window Trace Points Setting Window in initial state i Trace Points E un X m Event Status Clicking this toolbar button opens the trace point setting PASS E ADDRE ACCE CONDITION window 1 B1 000000 FETCH addr 000000 O 1 B2 000000 FETCH addr 000000 You can set events in the same way as for the hardware O 1 B3 000000 FETCH addr 000000 breakpoints O 1 B4 000000 FETCH addr 000000
60. displayed Figure 5 1 Flowchart to remedy troubles REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 96 of 104 MS306NKT3 RPD E User s Manual 5 Troubleshooting 5 2 When the Emulator Debugger Does Not Start Up Properly 1 When the LED Display of the PC4701 is Abnormal Table 5 1 LED s abnormal display and its checkpoints Connection to Error the user Checkpoint system Check that the power cable is connected to the PC4701 See the PC4701 user s manual uw Check the connection between the PC4701 and this product ATELPDSqemaun Tit See 2 4 Connecting the PC4701 page 23 i The POWER LED of STATUS Connected Check that power Vcc and GND is properly supplied to the OF TARGET does not light up user system 1 Check that both the main sub clocks are not set to External in the emulator debugger See the CLK command of the emulator debugger Disconnected 2 Check the oscillator circuit board is mounted on this product and it is oscillating properly See 2 9 3 Selecting Clock Supply page 41 LEDs do not light up The CLOCK LED of STATUS A accor When the clock supply is set to External check that the oscillation circuit on the user system is oscillating correctly 2 Check the switches in the emulation pod are correctly set See 2 9 4 Switch settings page 45 Connected The RESET LED of STATUS Check that the reset pin of the user system is at H level
61. e Emulator Debugger This chapter describes how to start up the M16C PC4701 emulator debugger from the High performance Embedded Workshop and how to use the main windows 3 1 Making an MCU File It is necessary to make an MCU file to use this product with the emulator debugger According to the MCU you use change the contents of the MCU file Make the MCU file named M306NKT3 MCU etc following the description below using a text editor and store it in the mcufiles folder in the directory where the emulator debugger is installed The emulator debugger has been installed in the following directory by default When using the M16C PC4701 emulator debugger on the High performance Embedded Workshop C Program Files Renesas Hew Tools Renesas DebugComp Platform PDTarget PD30 McuFiles When using the M3T PD30 C mtool PD30 McuFiles The MCU file contains information such as SFR area internal RAM area internal ROM area firmware file name The contents of the MCU file when using the M306NKFJGP 31 KB RAM 512KB ROM are as follows 0 SFR area Start address 3FF End address 400 Internal RAM Start address 7FFF End address 80000 Internal ROM Start address FFFFF End address M30620P Name of firmware Do not change 0 Expansion No Do not change The contents of the MCU file when using the M306NAFGTFP 10KB RAM 256KB ROM are as follows 0 SFR area Start address 3FF End address 400 Internal RAM Start address 2BFF
62. e converter board CN2 side M3T F160 100NSD not included On board evaluation ce o HQPACK100SD not included C FLASH MCU etc These corners are not round 100 pin 0 5mm pitch PLQP0100KB A foot pattern These four items are available in one package User system Figure 2 14 Connecting to a 100 pin 0 5mm pitch foot pattern 1 2 A CAUTION Note on Connecting the User System Take care not to attach the converter board in a wrong direction It may cause a fatal damage to the emulation pod The connectors of the M3T F160 100NSD are guaranteed for only 50 insertion removal iterations REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 36 of 104 M306NKT3 RPD E User s Manual 2 Setup 2 8 6 Connecting to a 100 pin 0 5mm pitch Foot Pattern Part 2 Figure 2 15 shows how to connect a 100 pin 0 5mm pitch foot pattern on the user system to the M3T 100LCC QSD not included and here following is its procedure For details on the M3T 100LCC QSD not included refer to its user s manual 1 Attach the TOPACK 100SD to the user system 2 Attach the TQSOCKET100SDG to the TQPACK100SD 3 Attach the M3T 100LCC QSD to the TQSOCKET100SDG 4 Attach the CN2 side of the M30800T PTC to the CN2 side of the package converter board connected to the emulation pod probe 5 Attach the M30800T PT to the M3T 100LCC QSD Tip of emulation pod probe Package converter
63. e the character string displayed in the Init File section of the dialog box What you specify here is reflected at only startup If you specify back again in the Init dialog box after startup whatever you specified has no effect restart the emulator debugger OK Cancel Help Next Hide When the tab settings 1 to 6 above are completed click OK button REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 57 of 104 M306NKT3 RPD E User s Manual 3 3 2 Checking Connections of the Emulator System 3 Usage How to Use the Emulator Debugger Check to see that the emulator debugger has been connected correctly to the emulator EI oe se inae eina Jaaa Mex Peer dfe ms CFaRti t wuchHespc e eR ews ee Raw Ras LR Se aT x 2 Connected Version Control Checking connections of the emulator system When the emulator debugger is connected correctly to the emulator after you have finished setting up the Init dialog box and the MCU Setting dialog box you will see a message Connected displayed on the Debug tab of the Output window REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 58 of 104 M306NKT3 RPD E User s Manual 3 4 Downloading Program Download the user program to be debugged 1 Downloading from the work space window 3 Usage How to Use the Emulator Debugger xl El eu sample El eS sample E Asse
64. ear of the PC4701 and interface cable settings of the emulator debugger match See the PC4701 User s Manual and the emulator debugger user s manual online manual ERROR 16211 The version of the emulator and the firmware on the target are not same 1 Check the connection between the PC4701 and this product See 2 4 Connecting the PC4701 page 23 2 Download the proper firmware See 2 6 Downloading Firmware page 27 3 Choose the proper MCU file in the Init dialog box See the emulator debugger user s manual online manual 4 Check that the descriptions in the MCU file are correct See 3 1 Making an MCU File page 50 ERROR 16215 Cannot communicate with the debugging monitor Execute the RESET command 1 Check that switch settings in the emulation pod are correct See 2 9 4 Switch Settings page 45 2 Check that the oscillator circuit of the emulation pod is oscillating properly See 2 9 3 Selecting Clock Supply page 41 ERROR 16014 Communication ERROR Can t accept data Check that the PC4701 LEDs at startup show normal operation See 2 5 5 LED Display When the Emulator Starts Up Normally page 26 ERROR 16231 There was sent undefined data from the emulator REJ10J0326 0400 Rev 4 00 Sep 01 2006 Check that the emulator debugger has not been started up without shutting down the PC4701 See 4 6 IMPORTANT Note on Quitting the Emulator Debugger page 92 RENESA
65. ed in both sides of the connector cover REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 24 of 104 M306NKT3 RPD E User s Manual 2 Setup 2 5 Turning ON the Power 2 5 1 Checking the Connections of the Emulator System Before turning the power ON check the connection of the interface cable with host machine PC4701 emulation pod and user system 2 5 2 Turning ON OFF the Power Turn ON the power of the emulator and user system as simultaneously as possible Turn OFF the power of the emulator and user system as simultaneously as possible Do not leave either the emulator or user system powered on because of leakage current the internal circuits may be damaged When turning ON the power again after shutting OFF the power wait for about 10 seconds IMPORTANT Notes on Power Supply The emulator s pin Vcc is connected to the user system in order to monitor user system voltage For this reason the emulator cannot supply power to the user system Therefore provide the user system with a separate power supply from that of the emulator Keep user system power supply voltage within the following range 3 0 V Vee 5 5 V Do not change user system power supply voltage after power has been activated REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 25 of 104 M306NKT3 RPD E User s Manual 2 Setup 2 5 3 LED Display When the Emulator Starts Up Normally Figure 2 4 shows front panel LED lighting status when t
66. er board CN2 side M3T F160 128NRD not included On board evaluation HQPACK128RD d YQ GUIDE x4 not included t YOPACK128RD J Gat lt gt g lt gt es eee FLASH MCU etc These corners are not round Ex 128 pin 0 5mm pitch PLQP0128KB A foot pattern These four items are available in one package User system Figure 2 16 Connecting to a 128 pin 0 65mm pitch foot pattern A CAUTION Note on Connecting the User System Q Take care not to attach the converter board in a wrong direction It may cause a fatal damage to the emulation pod The connectors of the M3T F160 128NRD are guaranteed for only 50 insertion removal iterations REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 38 of 104 M306NKT3 RPD E User s Manual 2 Setup 2 9 Changing Settings This chapter describes how to set the inside of the emulator 2 9 1 Removing Attaching the Upper Cover 1 Removing the upper cover To open the upper cover remove the four screws of both sides of the M306NKT3 RPD E and lift off the upper cover see Figure 2 17 2 Attaching the upper cover To close the upper cover attach the upper cover and secure the four screws of both sides of this product Figure 2 17 Removing the upper cover A CAUTION Note on Removing and Attaching the Upper Cover Always shut OFF power when removing attaching the upper cover or changing the switch sett
67. etting 1 to Protect Bit 2 PRC2 in Division by 2 Mode Under the following conditions even if you enable the PRC2 bit writing to the register protected by the PRC2 bit PD7 PD9 S3C S4C S5C and S6C registers cannot be done properly 1 Between when stop mode is released and when a hardware reset is executed 2 Between when low power dissipation mode is enabled and when a hardware reset is executed Therefore if the condition 1 or 2 applies when you enable the PRC2 bit and write to the register protected by the PRC2 do not set the CPU clock to the main clock in division by 2 mode Note on the Input Thresholds for the Pins P1 5 INT3 P1 6 INT4 and P1 7 INT5 With this product regarding pins P1 5 INT3 P1 6 INT4 and P1 7 INTS a device which port or data bus inputs to and a device which INT interrupt inputs to are different as follows Device which port or data bus inputs to Port emulation FPGA input level TTL Device which INT interrupt inputs to Evaluation MCU for emulating peripheral functions input level CMOS Schmidt Therefore the port input level can be read as H immediately after an INT interrupt falling and the port input level can be read as H immediately before an INT interrupt rising Note on the Input Level for KIO to KI3 With this product the KI0 to KI3 are TTL input level using the port emulation FPGA although these are the CMOS Schmidt input level with the actual MCU Therefore t
68. formation contained in these materials including product data diagrams charts pro grams and algorithms represents information on products at the time of publication of these materials and are subject to change by Renesas Technology Corp without notice due to product improvements or other reasons It is therefore recommended that customers contact Renesas Technology Corp or an authorized Renesas Technology Corp 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 Corp 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 Corp by various means including the Renesas Technology Corp 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 Corp assumes no responsibility for any damage liability or other loss resulting from the information contained herein 5 Renesas Technology Corp semiconductors are not designed or manufactured for use in a device or system that is u
69. g Up the Emulator Debugger ssesseseeseeeseeeeeeee senem nennen nn 52 Ero IMit Dialog BOX cL p Gxteneve 52 3 3 2 Checking Connections of the Emulator System sssssssssssssseseeeene enne 58 3 4 Downloading Program 2 3 1t dneni eaaa et Weds RE Eea aa a Rd apap te e RE e Reo EL ER xu E iE REOR Re Red 59 3 5 Programm Ox Cutlon cies tes ieee G 60 3 6 Hardware Break edere errante andes aane naaar aaa hae eiai i Taaroa ia EN Det 63 SEI Ite Aulo E T E E sentir savat tdeeess 67 3 8 RAM MonitOr Window e 71 4 Hardware Specifications zcn aaie aaae RE aa i a a aaae aa aa Riana 72 4 1 Target MCU Specifications 72 4 2 ACCESS TIMING morera ei e e EA a A aA 73 4 2 1 Operation Timing of Memory Expansion Mode and Microprocessor Mode Vcc 5V 73 4 2 2 Operation Timing of Memory Expansion Mode and Microprocessor Mode Vcc 23V 78 4 3 Differences between the Actual MCU and Emulatol ccccccccsecccccceeceeeeessceeeceeeceeeeeeeeeeeeeeesseeeees 83 4 4 Connection DIagralmi isinna rinnan akaa a ra abs ind ke EE ey ERR i dba cA apa ida OR Ru Ld exa aad aka Ra 86 4 5 External DiIM nsiOnsS cccceecccccceccecesssccecceeeseseeesncececeeecuaaessnececceeesuuaueecceceseesuaaaaseeceseceeesesaaaenees 88 4 5 1 Ex
70. h the USB interface not all hardware such as host machine USB devices USB hub combination will work and guaranteed REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 18 of 104 M306NKT3 RPD E User s Manual 1 Outline Table 1 6 M306NKT3 RPD E specifications 2 2 Item Description Power supply to emulator AC 100 to 120V AC 200 to 240V 50 60Hz Power supply to emulation pod Supplied from the PC4701 Overseas standards U S EMI standards FCC part 15 Class A CE marking 1998 Class A EN55024 1998 Connecting the user system 100 pin 0 65mm pitch LCC 1 M30800T PTC included see 2 8 Connecting the User 1 M3T F160 100NRB not included System page 30 2 M30800T PTC included M3T 100LCC DMS not included M3T DIRECTI10O0S not included MI6C 6NS 3 M30800T PTC included l M3T 100LCC DMS not included M3T DUMMY 100S not included 1 M3T F160 100NSD not included 2 M30800T PTC included M3T 100LCC QSD not included 1 M3T F160 100NSD not included M30800T PTC included M3T 100LCC QSD not included 100 pin 0 65mm pitch QFP M16C 6N4 PRQP0100JB A 100 pin 0 5mm pitch LQFP PLQP0100KB A MI6C 6NK 100 pin 0 5mm pitch LQFP 2 MI6C 6NL PLQPO100KB A M16C 6NM M16C 6NN 128 pin 0 5mm pitch LQFP PLOPOI2SKB A D M3T F160 128NRD not included 1 5 Operating Environment Be sure to use this emulator with the operating environmental of the
71. he emulator started up properly Check it when starting up the emulator system m This does not light when the user TARGET system is not connected POWER ERROR d STATUS OF SYSTEM WEE PC4701 HIGH PERFORMANCE EMULATOR LED display when the emulator starts up normally Figure 2 4 LED display when the power turned on IMPORTANT Note on the Target Status POWER LED If the MCU has two or more Vcc terminals the LED does not light unless power is supplied to all the terminals Notes on the Target Status CLOCK LED CLOCK LED is turned off when both main and sub clocks are not oscillating If either clock is oscillating the LED is turned on If the LED is not turned on check the following 1 After powering on the PC4701 before starting up the emulator debugger Make sure that the oscillator circuit board is properly installed in the PC4701 and it is oscillating normally 2 After the emulator debugger is started up after the Init dialog box settings are complete Make sure that the oscillator selected in the Init dialog box is oscillating normally REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 26 of 104 M306NKT3 RPD E User s Manual 2 Setup 2 6 Downloading Firmware 2 6 1 When It is Necessary to Download Firmware It is necessary to download the firmware in the cases listed below Normally the following are automatically detected when the emulator debugger is started up and the firmwa
72. he time for rising 0 2 Vcc to 0 8 Vcc and falling 0 8 Vcc to 0 2 Vcc lus or less 2 Initial values of internal resource data of an MCU at power on 3 Internal memories ROM and RAM capacities etc With this emulator system regardless of ROM and RAM of the MCU you use all the areas other than the SFR area and a reserved area addresses 27000h 27FFFh can be read and written into 4 Oscillator circuit In the oscillator circuit where an oscillator is connected between pins XIN and XOUT oscillation does not occur because a converter board is used between the evaluation MCU and the user system It is same for pins XCIN and XCOUT For notes on when using the oscillator circuit on the user system refer to 2 9 3 5 Using the Oscillator Circuit on the User System page 44 A D converter function Because a converter board flexible cable and other devices are used between the evaluation MCU and the user system the A D converter operates differently from that of the actual MCU 6 Characteristics of ports PO to P5 and P10 This product emulates some I O ports PO to P5 and P10 Therefore the electrical characteristics of these ports differ from those of an actual MCU 7 Address and status of BHE When the internal RAM or ROM area of an MCU is accessed during user program execution actual MCUs retain a preceding address and status of BHE while this product does not 8 Status of a data bus In stop or wait mode actual MCUS retain a preced
73. he wrong interrupt may occur near the threshold of the TTL level 2 0V to 0 8V when the input signal is slow changing Note on Shifting from On chip Oscillator Mode to Stop Mode Do not shift from on chip oscillator mode or on chip oscillator low power dissipation mode to stop mode Otherwise this product cannot return by an interrupt Note on Final Evaluation Be sure to evaluate your system with an evaluation MCU Before starting mask production evaluate your system and make final confirmation with a CS Commercial Sample version MCU REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 85 of 104 M306NKT3 RPD E User s Manual 4 Hardware Specifications 4 4 Connection Diagram Figure 4 7 shows a connection diagram of the M306NKT3 RPD E This connection diagram mainly shows the interface section The circuits not connected to the user system such as the emulator s control system are omitted The signals not shown in Figure 4 7 connect the evaluation MCU and the user system directly Tables 4 9 to 4 11 show IC electric characteristics of this product for reference purposes P67 P60 P117 P110 P67 P60 P117 P110 P77 P70 P127 P120 P84 P80 P137 P130 P97 P90 P141 P140 P77 P70 P127 P120 P84 P80 P137 P130 P97 P90 P141 P140 P85 NMl P85 NMIl sw4 O P86 Xcout P86 Xcout P86 Xcout O M3062PT3 PRTM ox OPEN M306NM IC2 I O Emulate MCU P87 SW5 n P87 Xcin P87 Xcin O Xcin XOUT o S
74. hed setting the trace write condition click this button The Realtime trace Write Condition dialog box Combination r PID shown below will appear AND Detail Enable Detail E pese oes r Trace Area Break ha Write mode TESIEN Only the cycle in which the specified Start event occurred A range of cycles from when the specified Start event occurred to when the specified Start event became nonexistent S SSS SSS IS A range of cycles from when the specified Start event occurred to when the specified End event occurred REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 70 of 104 M306NKT3 RPD E User s Manual 3 8 RAM Monitor Window 3 Usage How to Use the Emulator Debugger This function makes it possible to make reference to the changes in memory contents without impairing the real time performance for target program execution The emulator PC4701 system is provided with the IK byte RAM monitoring area which can be arranged in the 1K byte space from any continuous address 1 RAM monitor window 1 RAM monitor window Barme RAM monitor Clicking this button opens the RAM monitor window 2 RAM monitor display area Zt mwux n m zx i 040 8 2 aede db dado t a 110ms Label Register 0 1 42 43 4 5 4B 7 8 9 4 B C D E F ASCII RAM monitor display area This
75. ing status of a data bus while with this product a data bus is floating 9 ALE signal When the internal RAM or SFR area of the MCU is accessed during user program execution with the actual MCU ALE output is fixed to Low while this product outputs ALE signal 10 Pins P57 CLKout When pins P57 CLKout are used for CLKout function and Fc is selected by Clock output selection in stop mode CLKout output does not stop 11 DBC single step and BRK instruction interrupt vector table addresses As the emulator uses the DBC single step and BRK instruction interrupt vector table addresses when reading these addresses the downloaded data cannot be read see Table 4 8 Table 4 8 Vector table addresses for the emulator Factor of interruption Vector table addresses Data read DBC 1 FFFF4h FFFF7h Indefinite Single step 1 FFFECh FFFEFh Indefinite BRK instruction FFFE4h FFFE7h Indefinite Interruption for the emulator only Note on Emulating External Area To emulate the external area using emulation memory in this product set 0 wait 8 MHz or less or 1 wait or more REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 83 of 104 M306NKT3 RPD E User s Manual 4 Hardware Specifications IMPORTANT Note on RESET Input A low input from the user system to pin RESET is accepted only while a user program is being executed only while the RUN status LED on the PC4701 s front panel is lit Note on NMI Input
76. ings Otherwise the internal circuit may be damaged REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 39 of 104 M306NKT3 RPD E User s Manual 2 Setup 2 9 2 Each Setting Figure 2 18 shows the positions of each part of the M306NKT3 RPD E 1 Position of oscillator circuit board 2 Position of switches 3 Position of socket for mounting network resister for pullup 4 Position of bypass capacitor for A D converter 4 Bypass capacitor for A D converter MCU dependent board 1 MCU dependent board 2 M30620T3 PRT Common board M3062PT3 PRTM M30620T3 RPDC 1 Oscillator circuit board 3 Socket for mounting network resister for pullup PUUPS TETSU 2 Switches Figure 2 18 Positions of each part REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 40 of 104 M306NKT3 RPD E User s Manual 2 Setup 2 9 3 Selecting Clock Supply 1 Clock Supply to the MCU You can choose a clock supplied to the evaluation MCU by the Emulator tab in the Init dialog box of the emulator debugger Table 2 2 lists the factory settings of each clock supply when you install the emulator debugger Table 2 2 Clock Supply to the MCU Clock Display of emulator debugger Description Default setting Internal oscillator circuit of emulation pod OSC 3 16 0MHz or OSC 2 Internal Main Xm Xour External User system
77. is about 60 seconds power LA Pon LA cxx A cick c reset gt rest A gt E RN A RN A HT cA HAT cR T c ERROR LED lights a TT All the LEDs light SAFE LED lights mr 7 Immediately after turning on the power When maintenance mode started When downloading firmware started PO A POR Poen cox e ao c aok cL reser A mer cA gt reset oA an Z ww ee wn o On 3s 9 Off SAFE LED blinks All the LEDs light RESET 7 Blinking WY wat BB ar A wat When download complete Figure 2 5 Downloading firmware in maintenance mode IMPORTANT Note on Downloading Firmware Do not shut OFF power while the firmware is being downloaded Doing so the emulator will not start up properly If power is shut OFF by mistake redownload the firmware in maintenance mode REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 27 of 104 M306NKT3 RPD E User s Manual 2 Setup 2 7 Self check 2 7 1 Self check Procedure To run the self check of the emulator do so as explained here below While the self check is in progress the LEDs will change as shown in Figure 2 6 1 Ifthe user system is connected disconnect it 2 Set the switches in the emulation pod to the factory settings as shown in Figure 2 7 3 Within 2 seconds of activating power to the emulator press the system reset switch on the emulator front panel to switch the emulator to maintenance mode 4
78. k Evaluation MCU Oscillator Oscillation output circuit Figure 2 22 External oscillator circuit Make note that in the oscillator circuit shown in Figure 2 23 where a resonator is connected between pins Xy and Xour oscillation does not occur because a flexible cable buffer IC and other devices are used between the evaluation MCU and the user system It is same for sub clock oscillator circuits Xcj and Xcour Evaluation MCU Figure 2 23 Circuit in which oscillation does not occur REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 44 of 104 M306NKT3 RPD E User s Manual 2 Setup 2 9 4 Switch Settings Here follows explanations of the switches of the emulation pod Set the switches according to the user system Tables 2 3 and 2 4 list how to set toggle switches SW1 to SW5 of the M30620T3 PRT board MCU dependent board 1 Table 2 5 lists how to set jumper switches JP1 and JP2 For the positions of the switches see Figure 2 18 Table 2 3 Switch settings of the M306NKT3 RPD E 1 Setting Description SW1 BYTE T Sets pin BYTE of the MCU to L when the user system is unconnected 2 Pulls down pin BYTE of the MCU with a resistance of 33kQ factory settings SWI BYTE Use this setting when the user system is connected Does not pull up down pin BYTE of the MCU Inputs the level of the user system to pin BYTE of the MCU Swi PTE Sets pin BYTE of the MCU to H when the user system is unconnected
79. k is continually supplied to the evaluation MCU regardless of user system clock status and user program execution status 2 When External is selected Clock supply to the evaluation MCU depends on oscillation status oscillate off of the user system REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 92 of 104 M306NKT3 RPD E User s Manual 4 Hardware Specifications IMPORTANT Notes on Setting the Work Area When Starting Up the Emulator Debugger With this product the emulator uses 54 bytes as a work area in emulation memory Therefore according to the memory mapping of the MCU you use specify the work area addresses In single chip mode set the work area address at 10000h In memory expansion or microprocessor mode specify a work area other than the areas listed below SER area 0000h 003FFh External area of multiplex bus setting Reserved area of 27000h 27FFFh Stack area used by the emulator for reset command execution OFFF9h OFFFFh For details see 3 2 Setting the Work Area on page 51 The top address of the work area should be an even numbered address Be sure to set the work area as MAP INT For example when the work area set at 10000h 54 bytes of the addresses 10000h to 10035h used by the emulator Notes on MAP References and Settings For details on referencing and setting MAP information see the emulator debugger user s manual Make settings as follows 1 MAP INT The emulatio
80. lator Debugger If the OS used in your host machine is Windows XP or 2000 this installation must be executed by a user with administrator rights Be aware that users without administrator rights cannot complete the installation Install the M16C PC4701 Emulator Debugger following the procedure described below 2 2 1 Installing the Emulator Debugger 1 Downloading the M16C PC4701 Emulator Debugger as occasion demands Download the latest MI6C PC4701 Emulator Debugger from the URL below free of charge http download renesas com eng mpumcu upgrades in circuit emulators m16c index html 2 Launching the installer Start the setup exe program 3 Entering the user information In the user information dialog box enter the user information contractor section contact address and host machine The supplied information will be turned into a format by which user regisration will be provided by e mail 4 Completing the installation A dialog box will be displayed indicating that setup has been completed It means that the installation you made is completed REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 21 of 104 M306NKT3 RPD E User s Manual 2 Setup 2 3 Connecting the Host Machine When connecting the emulator PC4701 to a host machine interface varies depending on the PC4701 used Figure 2 1 shows the outline to connect each interface cable For details on interface refer to each PC4701 user s manual used Table 2
81. main unit Be careful not to apply a mechanical shock Do not touch the connector pins of the emulator main unit and the target MCU connector pins Static electricity may damage the internal circuits 9 Do not pull the flexible cable FLX120 RPD for connecting to the emulator main unit and the flexible cable M3T FLX160C for connecting the user system excessively And excessive flexing or force may break conductors Do not use inch size screws for this equipment The screws used in this equipment are all ISO meter size type screws When replacing screws use same type screws as equipped before Caution to Be Taken for System Malfunctions If the emulator malfunctions because of interference like external noise do the following to remedy the trouble 1 Press the RESET switch on the PC4701r front panel 2 If normal operation is not restored after step 1 shut OFF power to the emulator once and then reactivate it Caution to Be Taken for External Trace Input Voltage Assure that the external trace input voltage of emulator main body does not exceed the TTL level 5 0 V Otherwise internal circuit may be damaged because of overload REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 8 of 104 M306NKT3 RPD E User s Manual Contents Contents Page mte P 3 Related manuals 2 tef deae dd se adaes da aea akt ad ERA Een FR dea aha ROLE RE YN d IRR TR ERR ERN AR EEKO d
82. mal For I O address setting of PCA4202G02 refer to the PCA4202G02 Instruction Manual MGU Clock J MHz Init M160 PO4701 Emulator C Parallel Serial C LAN SDN C USB Baud Rate 600 zi I Self Check Resource Cancel Help Next Hide Port COMI i Target Specifying the communication interface Serial communication For connection with serial communication click the radio button Serial of MCU tab Specify the communication port of serial interface used to the port area and the baud rate to the baud rate area MCU Clock MHz C Parallel Serial e C LPT C USB IP Address fi 92 168 0 48 Tareet Port 1700 Self Check Resource Specifying the communication interface LAN communication For selecting the LAN communication click the radio button LAN of the MCU tab Specify the IP address of the emulator to the IP address area Specify the IP address of the emulator at the IP address area Specify the IP address by one byte of decimal number separating each four bytes with a period Specify the port number at the Port area MCU Clock MHz Cancel Help r Next Hide REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 53 of 104 M306NKT3 RPD E User s Manual 3 Usage How to Use the Emulator Debugger Init M18 PO4701 Emulator x FAW and Work Are
83. mbly sourc i E nert a30 a C source file A samplec Download mod Le Depen Download module E se Download module debug data only Unload module Configure View 2 Showing the source program Downloading the program Download the object program you want to debug Select Download from xxx x30 of Download module Or you can select Download module from the Debug menu for the same effect mov b 02h 0ah mov b 00h 04h set proc mov b 00h 0ah Ide 0080h fle Ide fistack top sp sset stack po Ide iidata SE top sb sset sbr Idintb VECTOR_ADR NEAR area initialize Editor Source window The editor source window is a window that always shows the content of the source file corresponding to the current position of the program counter hereafter PC The position of the PC at which the user program has stopped is marked by a yellow arrow The operation up to the cursor position can be executed and the software break point can be set up and reset etc REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 59 of 104 M306NKT3 RPD E User s Manual 3 Usage How to Use the Emulator Debugger 3 5 Program execution 1 Program execution mr TEL BIEL P D 0 dt be mr l E ceu reset Resets the target MCU i Go Runs the program beginning with the current PC position
84. mode Single chip mode Memory expansion mode Microprocessor mode Maximum operating frequency 16MHz Applicable power supply 3 0 to 5 5V Emulation Memory Internal ROM RAM capacity 0 wait 16 MHz max IMB 0 wait S MHz max External area 1 wait 16MHz max REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 72 of 104 M306NKT3 RPD E User s Manual 4 Hardware Specifications 4 2 Access Timing Because this product emulates some ports access timings are different from those of the actual MCUs Chapters 4 2 1 Vec 5V and 4 2 2 Vcc 3V describe the access timing using this product 4 2 1 Operation Timing of Memory Expansion Mode and Microprocessor Mode Vcc 5V 1 Separate Bus Timing Table 4 2 and Figure 4 1 show the bus timing in memory expansion mode and microprocessor mode 3 wait accessing external area Table 4 2 Memory expansion mode and microprocessor mode 3 wait accessing external area Actual MCU ns This product ns Min Max Min Max Symbol Item td BCLK AD Address output delay time 25 See left th BCLK AD Address output hold time BCLK standard See left th RD AD Address output hold time RD standard 1 th WR AD Address output hold time WR standard See left td BCLK CS Chip select output delay time See left th BCLK CS Chip select output hold time BCLK standard See left td BCLK ALE ALE signal output delay time See left th BCLK AL
85. n Normal can be selected Init M160 PC4701 Emulator MCU Debugging Informati FAW and Work Area Memory Space Expansi Clock Script Memory Space Expansior Mode Cancel Help Next Hide 5 Clock tab Specifying the target clock Specify the clock sources supplied to the MCU main clock and sub clock Init M160 PO4701 Emulator Select the appropriate clock sources according to the clock used by your MOU FAW and Work Area Memory Space Expansi i target MCU Internal r Main i Psi Emulation pod s internal clock External ES User system clock C Internal External Game Help Next Hide REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 56 of 104 M306NKT3 RPD E User s Manual 3 Usage How to Use the Emulator Debugger 6 Script tab Automatically executing a script command To automatically execute a script command when starting up the Init M160 PO4701 Emulator x debugger click the Refer button and specify the script file to MCU Debugging Information FAW and Work Area Memory Space Expansion Glock Script be executed Init File Clicking the Refer button brings up a file selection dialog box The script file you have selected is displayed in the Init File section of the dialog box shown here If you do not want to automatically execute a script command delet
86. n memory inside this product becomes effective Set this at MCU internal ROM debugging 2 MAP EXT The emulation memory inside this product is not used Set this where the MCU internal resource SFR or resources on the user system are used Be sure to set the SFR of the MCU as MAP EXT and set the reserved area of the MCU as MAP INT Be sure to set mappings in word unit When setting OFFF8h to OFFFFh to EXT This product uses the 7 byte area OFFF9h through OFFFFh as the stack area If this 7 byte memory cannot be read or written to reset cannot be properly effected As a result you need to alter the map settings if the condition given below is met 1 With the system which shifts from the single chip mode to memory expansion or microprocessor mode using the 8 byte area of OFFF8h to OFFFFh set to EXT 2 With the system which starts up in microprocessor mode using the 8 byte area of OFFF8h to OFFFFh set to EXT and there is not enough memory to read or write The procedures to alter the MAP settings when the conditions 1 or 2 above are met 1 Set the 8 byte area of OFFF8h to OFFFFh to INT 2 Execute the RESET command by use of the emulator debugger M3T PD30 3 Set the stack pointer Example RESET FCLR I LDC 0480H SP lt Set the stack pointer Stop the program after executing this instruction 4 Set the 8 byte area OFFF8h through OFFFFh to EXT REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 93
87. n secure with screws the FLX120 RPD 2 4 1 Connecting the Cable to the PC4701 Figure 2 2 shows how to connect the PC4701 and FLX120 RPD Emulator main unit PC4701 side connector of FLX120 RPD UPSIDE should be face up Secure this screw Secure this screw Figure 2 2 Connecting the cable to the PC4701 A CAUTION Note on Connecting the PC4701 and FLX120 RPD Qo Always shut OFF power before connecting the cable Otherwise the internal circuits may be damaged IMPORTANT Notes on Connecting the Cable and Securing the Screws To connect the FLX120 RPD be sure to hold the both sides of the PC4701 side connector horizontally with the UPSIDE facing up After connecting the cable to the emulator main unit PC4701 be sure to secure the screws mounted in both sides of the connector REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 23 of 104 M306NKT3 RPD E User s Manual 2 Setup 2 4 2 Connecting the FLX120 RPD to the Emulation Pod Figure 2 3 shows how to connect the FLX120 RPD and the emulation pod Emulation pod Figure 2 3 Connecting the FLX120 RPD to the emulation pod A CAUTION Note on Connecting the Cable Always shut OFF power before connecting the emulation pod and the FLX120 RPD Otherwise the internal circuits may be damaged IMPORTANT Note on Securing the Screws After connecting the emulation pod and the FLX120 RPD be sure to secure the screws mount
88. ng Firmware Before using this product for the first time it is necessary to download the dedicated firmware control software built into the PC4701 Please note that to do this it is necessary to start up the emulator main unit in maintenance mode For firmware download procedures see 2 6 2 Downloading Firmware in Maintenance Mode page 27 Once the firmware has been downloaded the product can be used by simply turning on the power Do not shut off the power while downloading the firmware If this happens the product will not start up properly If power is shut off unexpectedly redownload the firmware in maintenance mode Be sure to disconnect the user system before downloading the firmware Notes on the Self check If the self check does not result normally excluding target status error the emulation pod may be damaged Then contact your local distributor Be sure to disconnect the user system before executing the self check Note on Quitting the Emulator Debugger To restart the emulator debugger after it ends always shut power to the emulator off once and wait about 10 seconds then turn the power on again Note on Clock Supply to the MCU A clock supplied to the evaluation MCU is selected by the Clock tab in the Init dialog box of the emulator debugger 1 When Internal is selected A clock generated by the oscillation circuit in the emulation pod is supplied to the evaluation MCU The cloc
89. ng the Host Mactiirig 3 5 iicet ect tt tdt een base tete rx ida e pedo adve a Eu id ades 22 24 Connecting the PCA 20TH 23 2 4 1 Connecting the Cable to the PC4701 ssssssssssssssesse seen entente nennen sentent enr s nnn en renis 23 2 4 2 Connecting the FLX120 RPD to the Emulation Pod sse 24 2 5 Turnirig ON the POWGT ioci te eei etate eiae ieee Gate dee ean 25 2 5 1 Checking the Connections of the Emulator System ssssssssssseeseeeeee nennen 25 2 5 2 Turning ON OFF the Power ssssssssssesesseeeeeee enn nnnn entes enn sn tnts entente rese sn nares teneis sensn nnns entes 25 2 5 3 LED Display When the Emulator Starts Up Normally sssssseeeeeennenn 26 2 6 Downloading dg n Uu e I 27 2 6 1 When It is Necessary to Download Firmware sessssssesssssseeeee eene nennen nnne 27 2 6 2 Downloading Firmware in Maintenance Mode c cccccceeeeceeeeeceeeeeeeeeeeeeceaeeesaaeeseaeeseeeesaeeeeaeeeneees 27 NES eal m ee 28 2 7 Selt check Procedure uie Lote aede de ade tpe LP E ep decades andl 28 2 7 2 If an Error is Detected in the Self check sess esee nens 29 2 8 Connecting the User System ere entre e uon En e dua chess eR Ex rinane anaa 30 2 8 1 Connecting to a 100 pin LCC socket ssssssssssssssesseene enne ener ne
90. nnt et resiste nnn enne 32 2 8 2 Connecting to a 100 pin 0 65mm pitch Foot Pattern Part 1 33 2 8 3 Connecting to a 100 pin 0 65mm pitch Foot Pattern Part 2 34 2 8 4 Connecting to a 100 pin 0 65mm pitch Foot Pattern Part 3 35 2 8 5 Connecting to a 100 pin 0 5mm pitch Foot Pattern Part 1 36 2 8 6 Connecting to a 100 pin 0 5mm pitch Foot Pattern Part 2 37 2 8 7 Connecting to a 128 pin 0 5mm pitch Foot Pattern ssessssssssssssseeee enne 38 2 9 Rej tare operaio DR 39 2 9 1 Removing Attaching the Upper Cover ssssssssssssesss eene enne enne nnns 39 2 9 2 eiEI c cevtinss 40 2 9 3 Selecting Clock Supply 2 2 2 aatia a ee dena Rode nba Meads Baa ce de d ERR aiaia 41 2 9 4 SWITCH Seth S e E 45 2 9 5 Jumper Switches JP1 and JP2 on he M30620T3 PRT MCU dependent board 1 47 2 9 6 Installing and Removing Network Resistors for Pullup seen 48 2 9 7 Bypass Capacitors for A D Converter ssssssssssssssssseeseeneee enne enne nnne 49 REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 9 of 104 M306NKT3 RPD E User s Manual Contents Page 3 Usage How to Use the Emulator Debugger eene nennen neret ener 50 ale Making an MGW File cmm 50 3 2 Setting the Work Area eI Pe iP E EFE XXE aa NE ER ced sae DERE RR Kx ERR e dpa e RIS 51 3 3 Startin
91. of 104 M306NKT3 RPD E User s Manual 4 Hardware Specifications IMPORTANT Note on Stack Area With this product a maximum 7 bytes of the user stack is consumed Therefore ensure the 7 bytes maximum capacity used by the user program as the user stack 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 a work area Using areas like this is a cause of user program crashes and destabilized emulator control Note on Operation When Not Executing the User Program With this product bit 7 of processor mode register wait bit PM17 is forcibly set to 1 with wait when the user program is not executed e g when the program is stopped or when run time debugging is being performed Therefore if the external area set to 0 wait 1s accessed by other than the user program such as debugging operation one wait is inserted However when wait bit PM17 is referenced by the dump window etc the value set during user program execution is displayed Note on Stop and Wait Modes Do not single step an instruction shifting to stop or wait mode It may cause communication errors Note on Watchdog Function The MCU s watchdog timer can be used only while programs are being executed To use it otherwise disable the watchdog timer Note on Reading Internal Resources of the MCU When the registers listed in Table 4 12 are read
92. p select output hold time BCLK standard See left td BCLK ALE ALE signal output delay time See left th BCLK ALE ALE signal output hold time See left td BCLK RD RD signal output delay time See left th BCLK RD RD signal output hold time See left td BCLK WR WR signal output delay time See left th BCLK WR WR signal output hold time See left td BCLK DB Data output delay time BCLK standard See left th BCLK DB Data output hold time BCLK standard See left td DB WR Data output delay time WR standard See left th WR DB Calculated by the following formula according to the frequency of BCLK n 0 5 x10 f BCLK 2 Calculated by the following formula according to the frequency of BCLK 0 5x10 f BCLK REJ10J0326 0400 Rev 4 00 Sep 01 2006 10 Data output hold time WR standard ns n 3 for 3 wait ns RENESAS See left Page 78 of 104 M306NKT3 RPD E User s Manual 4 Hardware Specifications Read timing h BCLK CS ard CSi S 4 DON 1 Jino C8 icyc s L lt td BCLK AD th BCLK AD td BCLK ALE Sx th BCLK ALE th RD AD td BCLK RD a9 lt th BCLK RD tac2 RD DB tsu DB RD RD DB Write timing BCLK Eco GP m E em cs oo cs E
93. poses please be sure to consult your local distributor About product changes We are constantly making efforts to improve the design and performance of this emulator Therefore the specification or design of this emulator or its user s manual may be changed without prior notice About the rights 1 We assume no responsibility for any damage or infringement on patent rights or any other rights arising from the use of any information products or circuits presented in this user s manual 2 The information or data in this user s manual does not implicitly or otherwise grant a license for patent rights or any other rights belonging to us or third parties 3 This user s manual and this emulator are copyrighted with all rights reserved by us This user s manual may not be copied duplicated or reproduced in whole or part without prior written consent of us About diagrams The diagrams in this user s manual may not all represent exactly the actual object REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 5 of 104 M306NKT3 RPD E User s Manual Precautions for Safety Precautions for Safety Definitions of Signal Words 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
94. pped with a loop program to a specific address Therefore if a DMA request is generated while the program is stopped a DMA transfer is executed but it may not be performed correctly Also note that the below registers have been changed to generate a DMA transfer as explained here even when the program is stopped DMAO transfer counter registers TCRO DMAI transfer counter registers TCR1 Note on Pullup Control With this product ports PO to P5 are not pulled up by the pullup control register To pull up the ports PO to P5 mount the included network resistor 51k 2 to the inside of the emulator as occasion demands How to mount it refer to 2 9 6 Installing and Removing Network Resistors for Pullup page 48 Note Ports P6 to P10 are pulled up by the pullup control registers Note Pullup control registers themselves can be read and written into properly Note on Setting 1 to Protect Bit 2 PCR2 with Sub Clock When the CPU clock is set to the sub clock low speed mode or low power dissipation mode even if you enable the PRC2 bit writing to the register protected by the PRC2 bit PD7 PD9 S3C S4C S5C and S6C registers cannot be done properly When you enable the PRC2 bit and write to the register protected by the PRC2 do not set the CPU clock to the sub clock REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 84 of 104 M306NKT3 RPD E User s Manual 4 Hardware Specifications IMPORTANT Notes on S
95. product has been developed by assuming its use for program development and evaluation in laboratories Therefore it does not fall under the application of Electrical Appliance and Material Safety Law and protection against electromagnetic interference when used in Japan 5 Renesas Solutions Corp cannot predict all possible situations or possible cases of misuse where a potential danger exists Therefore the warnings written in this user s manual and the warning labels attached to this emulator do not necessarily cover all of such possible situations or cases Please be sure to use this emulator correctly and safely on your own responsibility 6 This product is not qualified under UL or other safety standards and IEC or other industry standards This fact must be taken into account when taking this product from Japan to some other country REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 4 of 104 M306NKT3 RPD E User s Manual Important Usage restrictions This emulator has been developed as a means of supporting system development by users Therefore do not use it as a device used for equipment embedded applications Also do not use it for developing the systems or equipment used for the following purposes either 1 Transportation and vehicular 2 Medical equipment where human life is concerned 3 Aerospace 4 Nuclear power control 5 Undersea repeater If you are considering the use of this emulator for one of the above pur
96. r s user system and host machine Purpose of use of the emulator This emulator is a device to support the development of a system that uses the MI6C Family M16C 60 Series M16C 6N Group M16C 6N4 M16C 6N5 MI6C 6NK M16C 6NL M16C 6NM and M16C 6NN of Renesas 16bit MCUs It provides support for system development in both software and hardware Be sure to use this emulator correctly according to said purpose of use Please avoid using this emulator for other than its intended purpose of use For those who use this emulator This emulator can only be used by those who have carefully read the user s manual and know how to use it Use of this emulator requires the basic knowledge of electric circuits logical circuits and MCUs When using the emulator 1 This product is a development supporting unit for use in your program development and evaluation stages In mass producing your program you have finished developing be sure to make a judgment on your own risk that it can be put to practical use by performing integration test evaluation or some experiment else 2 In no event shall Renesas Solutions Corp be liable for any consequence arising from the use of this product 3 Renesas Solutions Corp strives to renovate or provide a workaround for product malfunction at some charge or without charge However this does not necessarily mean that Renesas Solutions Corp guarantees the renovation or the provision under any circumstances 4 This
97. rchased the emulator presented in this user s manual please be sure to register it As the H W Tool Customer Registration Sheet is included with this manual fill it in and FAX it to your local distributor or email the same contents to the following address If you register it by email you can use a text format for user registration created when installing the software in the following folder Your registered information is used for only after sale services and not for any other purposes Without user registration you will not be able to receive maintenance services such as a notification of field changes or trouble information So be sure to carry out the user registration For more information about user registration please email to the following address For user registration regist_tool renesas com REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 11 of 104 M306NKT3 RPD E User s Manual Terminology Terminology Some specific words used in this user s manual are defined as follows Emulator main unit Hereafter PC4701 This means a generic name for emulators for M16C 7700 740 Families Take note of the fact that the M306NKT3 RPD E this product does not support the PC4701L and PC4700L emulators For details on specific models of PC4701 visit the Renesas Tools Homepage at http www renesas com en tools Emulation pod This means the emulation pod this product for the M16C 6N Group M16C 6N4 M16C 6N5 M16C 6NK MI6C 6NL M16C 6N
98. rcuit Board Q Always shut OFF power when replacing oscillator circuit board Otherwise internal circuits may be damaged REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 42 of 104 M306NKT3 RPD E User s Manual 2 Setup 4 Using the Internal Oscillator Circuit of the Emulation Pod To use the emulation pod at a desired frequency build the desired oscillator circuit on the included OSC 2 oscillator circuit board bare board Figure 2 20 shows an external view of the OSC 2 oscillator circuit board bare board and where connector pins are located Figure 2 21 shows the circuitry of the OSC 2 oscillator circuit board bare board Use the number of oscillator circuits recommended by the oscillator manufacturer J1 4 GND J1 3 Oscillation output J1 2 GND J1 1 VCC X1 5 08 mm pitch 2 pin oscillator X2 2 54 mm pitch 2 pin oscillator IC1 Inverter Unbuffer X3 2 54 mm pitch 3 pin oscillator Figure 2 21 Circuits of the OSC 2 oscillator circuit bare board REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 43 of 104 M306NKT3 RPD E User s Manual 2 Setup 5 Using the Oscillator Circuit on the User System To operate this product with an external clock construct the oscillator circuit as shown in Figure 2 22 in the user system and input the oscillator output at 50 duty within the operating range of the evaluation MCU into pin Xw And pin Xoyr should be open Choose External in the emulator debugger to use this cloc
99. re is downloaded 1 When you use this product for the first time 2 When the firmware has been upgraded 3 When the emulator debugger has been upgraded 4 When you use this product with a PCA701 which was used with other emulation pod before If downloading firmware is not completed in the cases below redownload the firmware When the power is unexpectedly shut down during a download from the emulator debugger When a communications interface cable is unexpectedly pulled out 2 6 2 Downloading Firmware in Maintenance Mode Download the firmware in maintenance mode as explained here following The user system must not be connected when downloading the firmware 1 Set the interface select switch on the rear panel of the PC4701 to the dedicated parallel LPT or serial interface to connect the PC4701 and the host machine Set the interface selection switch on the rear panel of the PC4701 according to the using interface The firmware may not be downloaded in maintenance mode correctly with the USB interface 2 Within 2 seconds of activating power to the emulator press the RESET switch on the PC4701 upper panel to switch to maintenance mode Switched to maintenance mode the SAFE SYSTEM STATUS LED begins to flash 3 Start up the emulator debugger When the Init dialog box setup is complete the dialog which urges to download the firmware will appear Download the firmware following messages Required time for downloading the firmware
100. sconnect the power cable from the power supply 6 3 Guarantee If your product becomes faulty within one year after its purchase while being used under good conditions by observing IMPORTANT and Precautions for Safety described in this user s manual we will repair or replace your faulty product free of charge Note however that if your product s fault is raised by any one of the following causes we will repair it or replace it with new one with extra charge Misuse abuse or use under extraordinary conditions Unauthorized repair remodeling maintenance and so on Inadequate user s system or misuse of it Fires earthquakes and other unexpected disasters In the above cases contact your local distributor If your product is being leased consult the leasing company or the owner 6 4 Repair Provisions 1 Repair with extra charge The products elapsed more than one year after purchase can be repaired with extra charge 2 Replacement with extra charge If your product s fault falls in any of the following categories the fault will be corrected by replacing the entire product instead of repair or you will be advised to purchase new one depending on the severity of the fault Faulty or broken mechanical portions Flaw separation or rust in coated or plated portions Flaw or cracks in plastic portions Faults or breakage caused by improper use or unauthorized repair or modification Heavily damaged electric circuits due
101. sed under circumstances in which human life is potentially at stake Please contact Renesas Technology Corp or an authorized Renesas Technology Corp 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 Corp 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 Corp for further details on these materials or the products contained therein M306NKT3 RPD E User s Manual Preface Preface The M306NKT3 RPD E is an emulation pod for the M16C 6N Group M16C 6N4 M16C 6N5 M16C 6NK M16C 6NL M16C 6NM and M16C 6NN of 16 bit MCUs It is used with a PC4701 emulator excluding the PC4700L and PC4701L This user s manual mainly describes specifications of the M306NKT3 RPD E emulation pod and how to setup it For details on the emulator main unit and emulator debugger which are used with the M306NKT3 RPD E refer to each
102. ternal Dimensions of the Emulation Pod sssssssssssssss eene ennt nnns 88 4 5 2 External Dimensions of the M30800T PTO ssssssssssssssesee enne en nennen nnn nrne nenas 89 4 5 3 External Dimensions of the Converter Board M3T F160 100NRB sse 90 4 5 4 External Dimensions of the Converter Board M3T F160 100NSD sese 90 4 5 5 External Dimensions of the Converter Board M3T F160 128NRD sse 91 4 6 Notes on Using This PrOGUGL cocinero aree eter ere rte eee eerste 92 5 TROUDIGSNOOTING EM 96 5 1 Flowchart to Remedy the Troubles ccceeesesneeeeesseeeeceseeeeceesaneceeeaeeeesessansenessaneeeeseseaeeetesaneeeeneas 96 5 2 When the Emulator Debugger Does Not Start Up Properly sssseeee 97 5 3 How to Request for Support i i cede tec ederet elec ens aip ro esaia aeb EA ENEA Paika EErEE SENi 100 6 Maintenance and Guarantee sssssssssssssssssesseeeeen iaaiaee didien sa sn ns ss trs estet nenne AASENS 101 6 1 User REGIST ALON E 101 6 2 MAINT NANCE Em 101 6 3 GUAT CE NE 101 6 4 Repair ProviSiOnS cisuicid iets Nike heii Nidan ieee ion Lien aaaea ei 101 6 5 How to Make Request for Repair emen nennen nenne nnne nennen 102 REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 10 of 104 M306NKT3 RPD E User s Manual User Registration User Registration When you have pu
103. the packing box and cushion material supplied with this product REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 102 of 104 Emulation Pod for M16C 6N Group M16C 6N4 6N5 6NK 6NL 6NM and 6NN M306NKT3 RPD E User s Manual Publication Date Sep 01 2006 Rev 4 00 Published by Sales Strategic Planning Div Renesas Technology Corp Microcomputer Tool Development Department Edited by Renesas Solutions Corp 2006 Renesas Technology Corp and Renesas Solutions Corp All rights reserved Printed in Japan M306NKT3 RPD E S User s Manual 424 N SAS RenesasTechnology Corp 2 6 2 Ote machi Chiyoda ku Tokyo 100 0004 Japan
104. to overvoltage overcurrent or shorting of power supply Cracks in the printed circuit board or burnt down patterns Wide range of faults that makes replacement less expensive than repair Unlocatable or unidentified faults 3 Expiration of the repair period When a period of one year elapses after the model was dropped from production repairing products of the model may become impossible 4 Transportation fees at sending your product for repair Please send your product to us for repair at your expense REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 101 of 104 M306NKT3 RPD E User s Manual 6 Maintenance and Guarantee 6 5 How to Make Request for Repair If your product is found faulty 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 A CAUTION Note on Transporting the Product when delivered to you and specify handling caution for it to be handled as precision equipment If packing of your product is not complete it may be damaged during transportation When you pack your product in a bag make sure to use conductive polyvinyl supplied with this product usually a blue bag When you use other bags they may cause a trouble on your product because of static electricity Qo When sending your product for repair use
105. tting Break Event Click the event line at which you want set a break event A1 000000 A2 000000 FETCH add 000000 A3 000000 FETCH addr 000000 44 000000 FETCH add 000000 45 000000 FETCH add 000000 A6 000000 FETCH add 000000 000000 a Bee gt r Combination PID AND Detail Ir Enable Detail Reset Save Load s Olose 3 Break event setting dialog box Specifying the event type Click to select the event type you want to set 41 Set Event Status Event Type z ib die Detects an instruction prefetch Fetch DATA ACCESS MSN Detects a memory access Range addr Address z BIT ACCESS Addresst OF0051 gl Address2 fo00000 v Detects a bit access Function INTERRUPT Source File z Detects an occurrence of interruption or interrupt completion Function 7 TRIGGER Detects a signal from the external trace signal input cable ACCESS FETCH ADDRESS OFO061 CONDITION addr OF 0061 om REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 63 of 104 M306NKT3 RPD E User s Manual 3 Usage How to Use the Emulator Debugger 2 When FETCH is selected 1 Window for setting addresses Setting the address You can set eight conditions e g a specified address a specified address A1 Set Event Status Event Type HAS X range etc When yo
106. u have finished setting the address click OK Fetch Setting Range adan Address z ddress1 JOF0061 v al Address2 000000 z El Function Source File Function ACCESS FETCH ADDRESS OFO061 CONDITION addr OF 0061 cw REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 64 of 104 M306NKT3 RPD E User s Manual 3 Usage How to Use the Emulator Debugger 3 When DATA ACCESS is selected 1 Window for setting the address Setting the address Sets the address by Address tab You can set eight conditions e g a specified address a specified address range etc Setting Range addr Address x Address OFO0S x g Address2 Fal Function Source File X Function ACCESS READ ADDRESS 0F0061 CONDITION addr OFO061 2 Window for setting data Setting data Sets the address by Data tab You can set eight conditions e g specified data specified data range etc 41 Set Event Status Event Type W eteySsi Address Data Setting the access condition etin j You can set three conditions e g read write and read write When you fere esto eI x have finished setting the data and access condition click OK Data 1 Joooo Data 2 Access READ z Mask nnno ACCESS READ ADDRESS 000000 CONDITION addr 000000 data 0000 owe
107. uch as setting a software or hardware break runtime debugging after releasing a reset from the user system until an interrupt stack pointer ISP is set in the user program REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 95 of 104 MS306NKT3 RPD E User s Manual 5 Troubleshooting 5 Troubleshooting This chapter describes how to troubleshoot when this product does not work properly 5 1 Flowchart to Remedy the Troubles Figure 5 1 shows the flowchart to remedy troubles from when power to the emulator is activated until the emulator debugger starts up Check this while the user system is not connected For the latest FAQs visit the Renesas Tools Homepage http www renesas com en tools Turning on the power of PC4701 PC4701 Front panel LEDs DISEROINAI Check emulator system connections See 2 4 Connecting the PC4701 page 23 Redownload the firmware See 2 6 Downloading Firmware page 27 Restart the PC4701 system Init dialog box of emulator debugge Morrana or enor displayes displayed 1 Check the operating environment etc of the emulator debugger See the emulator debugger users manual online manual 2 Reinstall the emulator debugger Error displayed See 5 2 2 Program Window is Not Displayed at Debugger Startup User System Connected page 98 See 5 2 3 Program Window is Not Displayed at Debugger Startup User System Not Connected page 99 Editor source window of emulator debugger
108. upply firmware operating status etc Table 1 3 lists the definition of each system status LED Table 1 3 Definitions of the system status LEDs Meaning ON Emulator system power supply is turned ON Emulator system power supply is turned OFF ON Emulator system is operating normally Special mode maintenance mode for downloading firmware The Flashing emulator system does not operate except for downloading firmware and the self check OFF Emulator system is not operating normally ON Emulator system is not operating normally system status error Flashing Downloading firmware OFF Emulator system is operating normally REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 16 of 104 M306NKT3 RPD E User s Manual 1 Outline 2 Target Status LEDs The target status LEDs indicate the target MCU s operating status and target board s power supply Table 1 4 lists the definition of each target status LED Table 1 4 Definitions of the target status LEDs Meaning Power is supplied to the user system Power is not supplied to the user system Target MCU clock is supplied Target MCU clock is not supplied Target MCU is being reset or reset signal of the user system is held low Target MCU is not being reset User program is being executed User program has been halted CPU clock of target MCU is not oscillating CPU clock of target MCU is oscillating IMPORTANT Note
109. ure 2 24 Position for mounting network resistors for pullup A CAUTION Note on Installing and Removing Network Resistors for Pullup Always shut OFF power before installing or removing network resistors for pullup Otherwise internal circuit board may be damaged Also install network resistors for pullup properly REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 48 of 104 M306NKT3 RPD E User s Manual 2 Setup 2 9 7 Bypass Capacitors for A D Converter The M306NKT3 RPD E has the M3062PT3 PRTM MCU dependent board 2 board which has a foot pattern for installing bypass capacitors for A D converter near the MCU and premounted 0 1uF capacitors Mount suitable bypass capacitors as occasion demands Figure 2 18 shows where they are installed and Figure 2 25 shows their connection AVcc AVSS bypass capacitor AVss avcc c3 O O VREF AVss bypass capacitor AVss VREF c2 D O Figure 2 25 Foot patterns of bypass capacitors for A D converter IMPORTANT Note on the A D Converter Function 9 Because a flexible cable and other devices are used between the evaluation MCU and the user system the A D converter operates differently from that of the actual MCU Make the final evaluation of the A D converter with the actual MCU REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 49 of 104 M306NKT3 RPD E User s Manual 3 Usage How to Use the Emulator Debugger 3 Usage How to Use th
110. ursor stops in the position where the software break was set up The statement in which the software break was set up is not 167 E A EEEE 168 after reset this program wi executed 169 So A F ante a AA 170 06c1 Ide istack_top 171 f 6c5 mov b 172 f06c9 mov b h sset pi 173 f 06cc mov b 174 fO6cf Ide tt 175 f06d3 IdeHstack_top sp set stack 176 06a7 dc lidata SE top sb set st 177 06db ldintb VECTOR ADR 178 179 a a 180 NEAR area initialize 181 s e E REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 61 of 104 M306NKT3 RPD E User s Manual 3 Executing up to the cursor position Come command 1 Specifying the Come command 3 Usage How to Use the Emulator Debugger 60 gzzzzZ2z2z22z222z2z22z2z2z2z2z2z2z2z2z2z2z2z2z2zz 61 Initialize Macro declaration 62 p 63 N_BZERO macro TOP_ SECT_ 64 0039 mov b 00H ROL 65 f003a mov w TOP_ amp OEPFFH Al 66 f003d mov w ttsizeof R3 67 0041 sstr b 68 endm 69 70 N BCOPY macro FROM TO SECT 71 0061 ov w FROM amp OFFFFH A0 72 0064 mov b fH FROM gt gt 16 R1H 73 0067 mov TO_ Al 74 006a mov w sizeof SECT R3 75 f006e smovf b 76 endm m Setup procedure for executing COME command 1 Click the line in the editor source window at which you want the program to execute 2 Click the Come button 2 After the Come command has
111. us Data Shows the status of the data bus BUS Shows the width of the external data bus In the present emulator 16b for 16 bit wide bus and 8b for 8 bit wide bus are displayed BIU Shows the status between the BIU Bus Interface Unit and memory or I O Symbol Status No change non active DMA Data access except for CPU INT Interrupt acknowledge cycle IB Instruction code read bytes by CPU DB Data access bytes by CPU IW Instruction code read words by CPU DW Data access words by CPU R W Shows the status of the data bus Displayed as R for Read W for Write and for no access RWT This is the signal to indicate a valid bus cycle When valid RWT 0 The Address Data and the BIU signals are effective when this signal is 0 CPU Shows the status between the CPU and BIU Bus Interface Unit Symbol Status CB Op code read bytes RB Operand read bytes QC _ Clears instruction queue buffer CW Op code read words RW Operand read words QN Shows the byte count stored in the instruction queue buffer The display range is 0 to 4 76543210 Shows the level of external trace signal input cable EXTINO to EXTIN7 h m s ms us Shows the elapsed time after starting the user program REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 68 of 104 M306NKT3 RPD E User s Manual 2 Suspending and resuming trace measurement 1 Suspen
112. vent injury or product damage Warnings to Be Taken for This Product 9 Do not disassemble or modify this product Personal injury due to electric shock may occur if this product is disassembled and modified Disassembling and modifying the product will void your warranty Make sure nothing falls into the cooling fan on the top panel especially liquids metal objects or anything combustible Warning for Installation NC 9 Do not set this product in water or areas of high humidity Make sure that the product does not get wet Spilling CN water or some other liquid into the product may cause unrepairable damage Warning for Use Environment This equipment is to be used in an environment with a maximum ambient temperature of 35 C Care should be taken that this temperature is not exceeded REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 7 of 104 M306NKT3 RPD E User s Manual Precautions for Safety A CAUTION Cautions to Be Taken for Turning On the Power Turn ON the power of the emulator and user system as simultaneously as possible Turn OFF the power of the emulator and user system as simultaneously as possible 9 Do not leave either the emulator or user system powered on because of leakage current the internal circuits may be damaged When turning ON the power again after shutting OFF the power wait about 10 seconds Cautions to Be Taken for Handling This Product Use caution when handling the
113. ware has been downloaded 3 Whether the switch settings of this product are the factory settings IMPORTANT Notes on Self check Perform the self check while not connecting the user system 2 Setup olo VCC1 gt VCC2 VCC1 VCC2 ory settings If the self check does not result normally excluding target status error the emulation pod may be damaged Then contact your local distributor REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 29 of 104 M306NKT3 RPD E User s Manual 2 8 Connecting the User System 2 Setup Connect the emulation pod to the user system for M16C 6N4 or M16C 6NS and for MI6C 6NK MI6C 6NL M16C 6NM and M16C 6NN as shown in Figures 2 8 and 2 9 respectively Tip of emulation pod probe 3 m pitch 0 5mm pitch v v Y M30800T PTC Y js included Y S oies not included v E CMM M3T FLX100 T incl not included otneudgd SF oe M3T F160 100NRB LCCV7 Yh M3T DIRECT100S M3T F160 100NSD 100 pin QFP 100 pin LCC 100 pin QFP 100 pin QFP 100 pin LQFP not included included not included not included not included e 1 pin 1 These three items are included in one package Figure 2 8 Connecting the user system for M16C 6N4 or M16C 6N5 A CAUTION Note on Connecting the User System Y di M30800T PTC S included M3T 100LC
114. window shows changes of memory contents while the user program is executed This is accomplished by using the real time RAM monitor function and the memory contents corresponding to the RAM monitor area are displayed in dump form The memory contents displayed here are updated at given intervals by default every 100ms during user program execution The background colors of the data display and the code display sections change with the access attribute as described below Green Addresses accessed for read Red Addresses accessed for write White Addresses not accessed The background colors can be changed as necessary Start Size o cr blocks Area 000400 0007FF Cancel RAM monitor area setting window You can set the start address of the RAM area to be monitored The 1KB of the arbitrary continuous space form the specified start address can be displayed REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 71 of 104 M306NKT3 RPD E User s Manual 4 Hardware Specifications 4 Hardware Specifications This chapter describes specifications of this product 4 1 Target MCU Specifications Table 4 1 lists the specifications of target MCUs which can be debugged with this product Table 4 1 Specifications of target MCUs for the M306NKT3 RPD E Item Description Applicable MCU M16C 6N Group M16C 6N4 M16C 6N5 M16C 6NK M16C 6NL M16C 6NM and M16C 6NN Applicable MCU
115. with an emulator those results will be the following the data in the MCU are not effected 1 Results of real time trace The data values of the cycles read are not displayed correctly 2 Real time RAM monitor The data values read are not displayed correctly Table 4 12 Resisters and symbols not displayed normally Resister Symbol DMA source pointers 0 1 SARO SARI DMA destination pointers 0 1 DARO DARI DMA transfer counters 0 1 TCRO TCR1 DMA control resisters 0 1 DMOCON DMICON Note on Protect Register The protect is not canceled when bit 2 of protect register PRCR PRC2 which enables writing into the ports P7 P9 direction registers and the SI Oi control register is changed with the below procedure 1 Step execution of the instruction for setting 1 PRC2 2 Execution from the instruction setting 1 to PRC2 where a software breakpoint is set 3 Setting the break point from the instruction for setting 1 PRC2 to when the setting the ports P7 P9 direction registers and the SI Oi control register 4 Setting 1 PRC2 from the Memory Window or Script Window Note on Debugging in Flash Memory Area in CPU Rewrite Mode With this product an internal flash memory area of an MCU is emulated by high speed SRAM Therefore you cannot perform debugging operations in CPU rewrite mode REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 94 of 104 M306NKT3 RPD E User s Manual 4 Hardware
116. ystem executes an instruction at the specified address The instruction at the preset address will not be executed Hardware break A hardware break is a function to break the program when the system detects a write read of data to from memory or a leading trailing edge of the signal entered from the external trace cable The former break function is called address break and the latter break function is called trigger break While the instruction at the address where the software break is set is not executed a hardware break is performed after the specified instruction 1s executed Target MCU This means the MCU you are going to debug User system This means a user s application system using the microcomputer to be debugged User program This means the program you are going to debug Evaluation MCU This means the MCU mounted on the emulation pod which is operated in the specific mode for tools In this user s manual this symbol is used to show active Low e g RESET Reset signal REJ10J0326 0400 Rev 4 00 Sep 01 2006 RENESAS Page 12 of 104 M306NKT3 RPD E User s Manual 1 Outline 1 Outline This chapter describes the package components the system configuration and the preparation for using this product for the first time 1 1 Package Components The M306NKT3 RPD E package consists of the following items When unpacking it check to see 1f your M306NKT3 RPD E contains all of these items Table 1 1 Package components
Download Pdf Manuals
Related Search
Related Contents
Gardena 01265-20 water pump 取扱説明書ダウンロード Turntable - Advance Lifts, Inc. virdi 3000 - Synetlink Network Video Recorder User's Manual Dynamix E210 IP Phone. User Manual. Logiciel GARDÉNIA version 6.0 - Infoterre Copyright © All rights reserved.
Failed to retrieve file