Home
Renesas M16C/6N User's Manual
Contents
1. Kip QODOOQOOUQDCIQODDCOOLUKCI fd QOOOOOO0QQO QOOOOQOCQ QOIO Td QOOOOO0QO0Q0c Q0l OQOOOQOQO0O0 O O 0 me un 38 zE U Ww Ns R8 TO L1 T bs S eTA T Positions to install pullup resistor arrays Figure 2 17 Positions of the pullup resistors Table 2 1 Emulation ports and pullup resistor part numbers P00 P07 RMI 51 kQ pullup P10 P17 RM2 51 kQ pullup REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 41 of 104 M306NKT EPB User s Manual 2 Setu 2 11 Selecting Clock Supply 2 11 1 Clocks 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 shows the clocks and their initial settings Table 2 2 Clock supply to the MCU Display of l buen Internal oscillator circuit board Yes OSC 3 or OSC 2 Main Xiv Xour Oscillator circuit on the user system Internal generator circuit peer SS Puro Internal oscillator circuit Sub XcIN XCOUT 32 768kHz Oscillator circuit on the user system IMPORTANT Note on Changing the Clock Supply T
2. c Sv 9 d A Hj Hd d LI L3 J Mii LETT A c N IOV We cd za T0 THERE HILL LR NVdVP N 8d3 1dc9UE WSNVSSJINI ILLA ET MC 90 SAEN a Es co
3. EO 8d3J 1dC9UE SN S N M M c E c N IULIAE DLE ILLUD AAA g0 SAEN C NVdVP N
4. A gt 08 Q w T Lio s Te 3 D gt to Add C vw J N lt C C U Fe O00000000 000000000 X oom U WwW VREF AVSS bypass capacitor VREF AVSS c2 U AVcc AVss bypass capacitor AVcc AVss c1 0 O Figure 2 16 Foot pattern for A D conversion bypass capacitors and the configuration of this product IMPORTANT Note on the A D Converter Because a package converter board and other devices are used between the evaluation MCU and the user system the A D converter operates differently from that of an actual MCU Make the final evaluation of the A D converter with an actual MCU REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 40 of 104 M306NKT EPB User s Manual 2 Setup 2 10 2 Pullup of Emulation Ports Because this product emulates some I O ports PO to P5 P10 you can not pullup ports PO to P5 by the pullup control registers Install the included resistor arrays 51 kQ as necessary Figure 2 17 shows the positions of the pullup resistors Component side of the M306NKT EPBM 6NK MWNE
5. cccceeccccseececaeeeeceececeeeeeseeceeseeceseeecesseeeeseueessseeetseeeeas 14 URS rne 15 1 3 1 System Configuration cccccseeccccseseeeceeseecceeseeecseueeecseaeeeesaueeeceaeeeessaseeessaaeeeesaaseeessaseeessageeessneenseas 15 1 3 2 Names and Functions of the PC7501 Upper Panel LEDS eeeeeeeeeeeeeen 16 E Eee elleier NEN C 18 1 5 Operating Environment sesssssssssssssssssssseeeeene nennen nnne nnns nna nnn sna nnn ses nnns sna annis snae rsen nnns nnn nn 20 PARES m c E 21 2 1 Flowchart of Starting Up the Emulator ssesssseesssssessssseeeeenennnen nennen nnne nnne nnne 21 2 2 Installing the Emulator Debugger M16C R8C PC7501 Emulator Debugger eeseeeessssse 22 2 2 1 Installing the Emulator Debugger essessssssssessseseeeeeee nennen nnne nnne nnne nnns 22 2 3 Connecting the Host Machine ccccccssseecceesseecceseeecseseeeceaueesseaseeecsaeeecsaseesseuseeessageeessageeessageeesseageeesas 23 Zi AOMmMN eS CUNNG TINS Fe 9 Ee 24 2 5 Connecting the Power Supply for the Emulator seesssseessssseseeeeeen nennen 25 220 FUMING ON the POW T 26 2 6 1 Checking the Connections of the
6. E S th WR CS th BCLK CS S2 td BCLK AD lt 2 th BCLK AD lt a BHE T 7 oy td BCLK ALE D 0 ZEE x gt th BCLK ALE i th WR AD lt a Doi td BCL wi ET BCLKWR td BCLK DB WR WRL WRH th BCLK DB x gt O HZ O gt d m DBE RE z N n us 3 3 A td DB WR i 7 th WR DB Figure 4 4 Memory expansion mode and microprocessor mode 3 wait accessing external area REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 78 of 104 M306NKT EPB 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 Actual MCU This Symbol Item ns ns Min Max Min Max 9 ee MBCUCAD Adress ouput hola tine OLK sander 4 Sea th RD AD Address output hold time RD standard D Selt Leh WR AD Address output hold time WR standard See left tABCLK CS Chip select output delay time 50 See left Chip select output hold time BCLK standard 4 f Selt th RD CS Chip select output hold ti
7. 4 Setting the combinatorial event condition 1 Window for setting the combinatorial event condition AW Break Points Setting v Enable HAW Break PASS E ADDRESS AC CONDITION l 00040 READ faddr 00040 L 1 A QOO FETCH addr 000000 L 1 Ag QUO FETCH addr QUUD L 1 Ad OO0000 FETCH taddr 0000 L 1 Aa OO0000 FETCH addr zz 000000 L 1 AB Ung FETCH addp 000000 LI 1 Ar Dung FETCH tx dri 000000 L 1 Ag Ungu FETCHY taddr 000000 Combination PID fr Detail Enable Detail PE Resel Save Load i Close REJ10J0519 0200 Rev 2 00 Oct 16 2006 24 N SAS Setting a break event Al Address 1 0020E8 Data 1 5423 MASK FFFF Access WRITE Setting a break event using 2 events Al A2 Address 1 0020E5 Address 1 0020E6 Data 1 7900 Data 1 00AB MASK FF00 MASK OOFF Access WRITE Access WRITE Set the combinatorial events to AND Setting a break event Al Address 1 0020E2 Data 1 00E5 MASK OOFF Access WRITE Setting a break event Al Address 1 0020E3 Data 1 E600 MASK FF00 Access WRITE 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 on
8. Note on Returning from Stop Mode with the On chip Oscillator Clock When this product shifts from on chip oscillator mode or on chip oscillator low power dissipation mode to stop mode it cannot be returned with an interrupt other than the NMI Interrupts with which this product cannot return Key input interrupt INT interrupt Interrupts of timers A and B Serial I O interrupt REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 92 of 104 M306NKT EPB User s Manual 4 Hardware Specifications IMPORTANT Note on the Watchdog Function If the reset circuit of the user system has a watchdog timer disable it when using the emulator Note on Protect Register The protect is not canceled when bit 2 of protect register PRCR PRC2 which enables writing into the ports P7 and P9 direction registers and the SI Oi control register is changed with the below procedure 1 Step execution of an instruction setting PRC2 to 1 2 Execution from the instruction setting 1 to PRC2 where a software breakpoint is set 3 Setting a break point between an instruction setting PRC2 to I and a point where the ports P7 or P9 direction registers or the SI Oi control register is set 4 Setting PRC2 to I by the memory window or script window Note on Access Prohibited Area You cannot use internally reserved areas Write signals to the areas will be ignored and values read will be undefined Note on Breaks The area dis
9. M3T F160 100NRB not included On board evaluation eo o e E HQPACK100RB168 YQ GUIDE x418 not included YQPACK100RB amp FLASH MCU etc NQPACK100RB These corners are not round 100 pin 0 65mm pitch PRQP0100JB A foot pattern These four items are available in one package User svstem Figure 2 10 Connecting to a 100 pin 0 65mm pitch foot pattern Part 1 A CAUTION Note on Connecting the User System Take care not to attach a converter board in a wrong direction It may cause a fatal damage to the emulator and user system IMPORTANT Note on Connectors of the Converter board The connectors of the M3T F160 100NRB are guaranteed for only 50 insertion removal iterations REJ10J0519 0200 Rev 2 00 Oct 16 2006 24 NE S AS Page 34 of 104 M306NKT EPB User s Manual 2 Setup 2 9 3 Connecting to a 100 pin 0 65mm Pitch Foot Pattern Part 2 Here following is a procedure of connecting to a 100 pin 0 65mm pitch foot pattern on the user system using the M3T DIRECTIOOS not included For details on the M3T 100LCC DMS not included and M3T DIRECT100S 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 DIRECTIOOS 3 Attach the CN2 side of the M30800T PTC to the J4 side of the M306NKT EPB 4 Attach the M30800T PTC to the M3T 100LCC DMS M3T FLX160 EPB M306NKT EPB CN2 side M308
10. 241 N SAS Page 80 of 104 M306NKT EPB User s Manual 4 Hardware Specifications 3 Timing Requirements Table 4 7 and Figure 4 6 show timing requirements in memory expansion mode and microprocessor mode Table 4 7 Timing requirements Actual MCU This A symbol Item ns ns Min Max Min Max sDB RD Datainpusetuptime 50 sp suKRDY BCLK RDY inputsetuptime 40 55 s HOLD BCLK HOLD inputsetuptime 50 65 h RD DB Datainputholdtime 0 Seo tet h BCLK RDY RDY amp inpthold me 0 See left hBCLK HOLD HOLD inputholdtime 0 See left BCLK HLDA HLDA output delay time 4 Selef Common to with wait and no wait actual MCU tsu HOLD BCLK th BCLK HOLD l TEE amp 3 HOLDinput HLDA output lt gt PO P1 P2 P3 P4 cR HLDA Hi Z tg BCLICHLDA P50 P52 Common to with wait and no wait this product tsu HOLD BCLK th BCLK HOLD exse mieuno HOLD input HLDA output EM tI BCLK HLDA ET fa BCLK HLDA PO0 P1 P2 P3 P4 P50 P52 Figure 4 6 Timing requirements Compared with an actual MCU this product enters high impedance state after a 0 5 cycle delay REJ10J0519 0200 Rev 2 00 Oct 16 2006 24 NE S AS Page 81 of 104 M306NKT EPB User s Manual 4 H
11. EERZE DHCRDRCI PUSH H 0008 G00 00s 221 014 5 nr7913 Tori FUSIL omoi maoa oapt aosoxgo 318 B0140 Ur i TDAOT DDO PUSHA DGG DUUDOqsmr 215 000135 onan 7Tbar DFO PUSIA nno na nn an oon z 000 OPO or THIF 1000 FUSHA DDBIUH gu np go spo 2 D0O0126 OOTA rbisnpar TSE A beapy F Di2N no nn nn pan 000115 Ordd12 cEe200 ENTER kODH eo 0D 00 000 w101 11 0001s BLaRoo EHF Won DAL PH Ro 0G oo hoo 108 rdO18 BBG UE FOO LFA po Do 00 0 DUO10E DFOO1A piO0nOF CHE b 0 FRIED c0 pD a0 Da00 D00103 QOPDI BAL FEQ FODH eom a e Bn a E roa Ca A D5eg rodis TDEZ EXITD GUE Oo Do n s r7A7 ER5O ICT Lpc KOTICH 2P 00 OO shoo tud DPD AB TScr 1004 LCOA MY WDAICH U31DIE Du duum 0007S ry751 TSF 120400n0 Moy i SOD00H O4128 pao op co eU Dagdenm UFD THY TSCF 1404 100A Boy FOALCH 04148 Ug o i M0062 OPO T5cCF15040DDU HON Ll KpoOOB 4168 ma nopo adbo et g UPD c TCEF10040D0D3 Moy KDJOCDEL CA 1H 1E DOO OU OCC Duud47 ro7ca DOCE 1404 HON W BOHR OA LAN MO on ao sou W ura Tcp EB7DODOQ LIC WD COLUH FB DO DD UD oe D nng39 OFr7p 1 FDIiODDEEF BXE A main FUCOIDH mao on 00 em nos Dr O1D E3 RIS GO U0 OO 2 nt 0022 OFOTDS Ir ARE mx np o osmun memory or I O Symbol Status No change non active DMA Data access except for CPU INT Start of INTACK sequence IB Instruction code read bytes by CPU DB Data access bytes by CPU IW Instru
12. WR signal output hold time See left tA BCLK DB Data output delay time BCLK standard 40 f Selt thBCLK DB _ Data output hold time BCLK standard 4 Seele tA DB WR Data output delay time WR standard Seelet th WR DB Data output hold time WR standard D Selt Calculated by the following formula according to the frequency of BCLK n 0 5 x 10 B f BCLK ns n 3 for 3 wait 2 Calculated by the following formula according to the frequency of BCLK 0 5 x10 0 ns f BCLK REJ10J0519 0200 Rev 2 00 Oct 16 2006 241 N SAS Page 77 of 104 M306NKT EPB User s Manual 4 Hardware Specifications Read timing BCLK j td BCLK CS x gt CSi NER 3 qe M n td BCLK ADJ l th BCLK AD 2 i Ls ADi i Y EE BHES OA DAE ae ft M 3 NS m Da th BCLK ALE gt th RD AD lt Doc td BCLK RD St th BCLK CS gt X gt th BCLK RD RD F1 d x o mz NEM LL a pei 3 m D ee ae tsu DB RD o i th RD DB tac2 RD DB Write timing BCLK j td BCLK CS 3 CSi a E tcyc a
13. 1 ME ES o w AE 9931 V949 DOQQ QODDOD0000DIDOQDO0O0D00NONDDIIO00000 Q v N ive VLd C MADE IN JAPAN PBA m lt Unit mm Figure 4 8 External dimensions of the emulation probe REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 87 of 104 M306NKT EPB User s Manual 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 M306NKT EPB 40 0 18 88 3M i 19 90 Pattern wiring 2 55 0 M308Q0T PTC 6000010 00900 r i I i i d i MADE IN JAPAN Figure 4 9 External dimensions of the M30800T PTC REJ10J0519 0200 Rev 2 00 Oct 16 2006 oo0oo0 o eo00 000 0600000000 p amn ala mp amp 99 o000000 oooooooQo 0000000Jj0O0000000 e TT am um um mm mum Gm oum j Foot pattern for 26 10 i holding metal fixture 1 24 NE SAS 4 Hardware Specifications 13 5 Unit mm 1 When using the AXS4003M295C made by Matsushita Electric Works Ltd and IC61 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
14. CN2 side M3T F160 100NSD not included On board evaluation O e HQPACK100SD YQ GUIDE x4 not included YQPACK100SD d ROPACNIOUSD ND ELASH MOU ee These corners are not round 100 pin 0 5mm pitch PLQP100KB A foot pattern These four items are available in one package User svstem Figure 2 13 Connecting to a 100 pin 0 5mm pitch foot pattern Part 1 A CAUTION Note on Connecting the User System 0e Take care not to attach a converter board in a wrong direction It may cause a fatal damage to the emulator and user system IMPORTANT Note on Connectors of the Converter board The connectors of the M3T F160 100NSD are guaranteed for only 50 insertion removal iterations REJ10J0519 0200 Rev 2 00 Oct 16 2006 24 NE SAS Page 37 of 104 M306NKT EPB User s Manual 2 Setup 2 9 6 Connecting to a 100 pin 0 5mm pitch Foot Pattern Part 2 Here following is a procedure of connecting to a 100 pin 0 5mm pitch foot pattern on the user system using the M3T 100LCC QSD not included For details on the M3T 100LCC QSD not included refer to its user s manual 1 Attach the TQPACK100SD to the user system 2 Attach the TOSOCKETIOOSDG included with the M3T 100LCC QSD to the TQPACK100SD 3 Attach the M3T 100LCC QSD to the TOSOCKETIOOSDG 4 Attach the CN2 side of the M30800T PTC to the J4 side of the M306NKT EPB 5 Attach the M30800T PTC to the M3T 100LCC QSD M3T FLX160 E
15. Checking connections of the emulator system CI Lae T es sth eno Fos e 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 Debug 4 Find in Files Versian Control REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 56 of 104 M306NKT EPB User s Manual 3 Usage How to Use the Emulator Debugger 3 2 Editor Source Window Downloading the program to be debugged 1 Downloading from the work space window Downloading the program Download the object program you want to debug EGY sample ll sample E43 Assembly souri o c nert a30 H E C source file f samplec Download mad E OLD Eg Depen Download module E se Download module debug data only Select Download from xxx x30 of Download module Or you can select Download from the Debug menu for the same effect Unload module Configure View 2 Showing the program 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 The program counter position is marked by a yellow arrow Here you can execute the program up to the cursor position set or clear Idc Histack_top mow
16. FETGH ddr o00000 Exclude l l l 7 O 1 B5 b0OD FETCH add 000000 Only the cycles in which the specified condition was not met are O 1 B amp eDUUD FETCH adde ODDOUD written 1nto memory O 1 BF 00000 FETCH adde 000000 gt When you have finished setting the trace write condition click this j PID button The Realtime trace Write Condition dialog box shown below will appear Write mode _ Only the cycle in which the specified Start event occurred eM A range of cycles from when the specified Start event occurred to when the specified Start event became nonexistent OA e A range of cycles from when the specified Start event occurred to when the specified End event occurred REJ10J0519 0200 Rev 2 00 Oct 16 2006 24 NE S AS Page 69 of 104 M306NKT EPB User s Manual 3 Usage How to Use the Emulator Debugger 3 6 RAM Monitor Window 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 PC7501 system is provided with the 4AKB RAM monitor area This RAM monitor area can be divided into the 16 block area in units of arbitrary continuous address or 256 bytes for mapping or layout 1 RAM monitor window 1 Opening the trace point setup window RAM monitor Clicking this button opens the RAM monitor window Changing the RAM monitor display ar
17. AXS4003M295C 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 accepted Unit mm Page 88 of 104 M306NKT EPB 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 O i 2 N o99 997g o 000 9 0 9 Co o e e o O 31 o 9 O6 eC Dr C E M3T F160 100NRB REV A e MADE IN JAPAN gt Unit mm 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
18. Actual MCU and Emwulator eeeseeeen meme nnns 82 er SOMME C HO la AON AM RERO TT Tm 85 t Nod RB BI Ie cT Nen 87 4 5 1 External Dimensions of the Emulation Probe cccccccccceeccceeeeeceeeeceeeeesee cesses eesseeeesseeeesseesaaeeeenas 87 4 5 2 External Dimensions of the M30800T PT Co ccc cccccceececeeeeeeeeeeeseeeeseeeeeseeeeeseeeesseeeesaaeeeseeeesanes 88 4 5 3 External Dimensions of the Converter Board M3T F160 100NRRB cece cecceceeeeeeeeeeeeeeeeseeeeeenes 89 4 5 4 External Dimensions of the Converter Board M3T F160 100NSD eseeeeeeeeeeeereeee 89 4 5 5 External Dimensions of the Converter Board M3T F160 128NRD cccccceccccseeeeeeeeeseeeeeseeeeeeees 90 4 6 Notes on Using This isis ic RH 91 a TOUDI SO ONIN eiii E EE E E E inten nane 96 5 1 Flowchart to Remedy the Troubles ccccccccsscccssseeceeseeceececeecesseeceseeeeeseeceaeeeseeeeesueeesageessaeeensaeeenegesens 96 5 2 When the Emulator Debugger Does Not Start Up Properly seeeesseeeeesseeeeeneeeeennnnnnne 97 D o ROW TOURGQUCST Or UPON e iE E E E MM EdtU PIE ec MD EUM 100 om Maintenance and ell rz ariera TO OO e S O0 E m m 101 6 1 User REGIS AUN MR M 101 SA EARE E E PET T m 101 SEC E Ee MI ci NER EE E A A E A E E 101 0 A Repair PrOViISIONS e 101 6 5 How to Make Reques
19. Emulator SyStem cccccccceceeeeeeeeeeeeeseeeeeeeeeeeeesaeeeeeseeseeesaeeeeeas 26 2 5 2 T rnirig ON OFF the POWOE a s1i6c3ic jean onies dendeadsaoddvidicswuesdetoeewaiet daduadildeulesdyhnsendiesateasancap bends RRE RENEE 26 2 6 3 LED Display When the Emulator Starts Up Normally ccccccccccesseeeeeeeeeeeeeeaeeeeeeeeeeeeseeseeseaeeeeeens 27 2 VI OWG AN AG IN A TN AN EP 28 2 7 1 When It is Necessary to Download Firmware cccccseeeeeneeeeaeeeeeeeeeeseeeeeseeeeeseueeeseueesaeeeeseeeeeaneeeens 28 2 7 2 Downloading Firmware in Maintenance Mode ssssssssssssessseeee eene nnn nene 28 PA RETE aN CU repr gran HNMMTT 29 LO CM CMOCK NOC iei i MT E 29 2 8 2 If an Error is Detected in the Self Check cccccccccccssseecceeeeceesseecseeseeecsaeeecseaseeeseueeessagseeesssuseeeens 30 Packers leise pei ABT Miel NES T o o o tm 31 2 9 1 Connecting to a 100 pin LCC Socket seeeessssesesssseeeseeeene nennen nenne nnn nna nnns na ann snis 33 2 9 2 Connecting to a 100 pin 0 65mm Pitch Foot Pattern Part 1 seeesseeeseereeeeeneeeeee 34 2 9 3 Connecting to a 100 pin 0 65mm Pitch Foot Pattern Part 2 sseeeesesseseeeeeenreeene 35 2 9 4 Connecting to a 100 pin 0 65mm Pitch Foot Pattern Part 3 seeeeeeseeseeeeeeenreeeeene 36 2 9 5 Connecting
20. Er Z T td DB WR MEZ th WR DB th BCLK AD gt X BHE td BCLK ALE gt je ME ALE i gt th BCLK ALE th WR AD x IBEUIe WR _WR WRL WRH lt 3 th BCLK WR Figure 4 2 Memory expansion mode and microprocessor mode 2 wait accessing external area using multiplex bus REJ10J0519 0200 Rev 2 00 Oct 16 2006 241 N SAS Page 75 of 104 M306NKT EPB User s Manual 4 Hardware Specifications 3 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 nas Symbol Item ns ns Min Max Min Max LMDERD Dmepueupin 4 sp suKRDY BCLK RDY inputsetuptime 30 45 s HOLD BCLK HOLD inputsetuptime 40 55 h RD DB Datinpuholdime 0 s lt h BCLK RDY RDY inputholdtime 0 selt th BCLK HOLD HOLD inputholdtime See eft td BCLK HLDA HLDA output delay time 4 See eft Common to with wait and no wait actual MCU tsu HOLD BCLK m HOLD input j EB HLDA output 3 7 td BCLK HLDA T td BCLK HLDA I P0 P1 P2 P3 P4 P5o P52 Common to with wait and no wait this product t
21. O07 Ge D OOD z48 OU OD OU 31 napa apn a nn 255 OOD O0 OOO 2589 QO WY ORG OO 00 O0 000 25 ki W ki W hl W id i Ww u I B n P Iu R ki W M el W REJ10J0519 0200 Rev 2 00 Oct 16 2006 24 NE S AS Page 67 of 104 M306NKT EPB User s Manual 3 Usage How to Use the Emulator Debugger 2 Suspending and resuming trace measurement 1 Suspending trace measurement Stop Click this toolbar button to suspend the trace measurement in progress yvela v aF 2 Resuming trace measurement Re Start lt Click this toolbar button to resume the trace measurement in VB umgaavssrztmmw Range 262143 DLDDODC Brea Break File Cycle 000015 Cycle Label Address Data Bl 000015 OFO SDS COF4 1i 000014 exit OF D5 FEOF 1 000013 OFOYD6 FBFE 1 progress 000012 OFODE COF4 1i 000011 OFOYDS COF4 1i 000010 exit DF 7D5 FEOF 1 000004 OFOYD6 FBFF 1 REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 68 of 104 M306NKT EPB User s Manual 3 Usage How to Use the Emulator Debugger 3 Trace point setup window 1 Trace point setup window Trace Point Setting Window in initial state fe Trace Paint Setting Window Clicking this toolbar button opens the trace point setting Event Status i itat window PASS E ADDRE ACCE CONDITION Bl O00000 FETGH ddr 000000 You can set events in the same way as
22. OLK sander 4 Sea th RD AD Address output hold time RD standard D Seelft Leh WR AD Address output hold time WR standard See left td BCLK CS Chip select output delay time 235 See let Chip select output hold time BCLK standard 4 f Selt t RD CS Chipselectoututholdtime RD standard Seelft Leh WR CS Chip select output hold time WR standard See left t BCLK RD RD signal output delay time 5 See det th BCLK RD RD signal output hold time 0 See tet BCLK WR WR signal output delay time 25 See left thBCLK WR WR signal output hold time 0 SeleR tABCLK DB Data output delay time BCLK standard 4 See left th BCLK DB Data output hold time BCLK standard 4 See left tA DB WR Data output delay time WR standar 92 Selt h WR DB Daetaoutputholdtime WR standard Selt td BCLK ALE ALE output delay time BCLK standard 25 Seele eh BCLK ALE ALE output hold time BCLK standard 4 See left td AD ALE ALE output delay time Address standard 53 Seeleft th ALE AD ALE output hold time Address standard CA See left td AD RD After address RD signal output delay time 0 _ Seeleft L AD WR After address WR signal ou
23. ROM area as work area Using areas like this is a cause of user program crashes and destabilized emulator control e With this product the interrupt stack pointer ISP is set to 00500h and used as stack area after the reset is released 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 probe Therefore timers and other components do not stop running If a maskable interrupt is 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 user program is stopped with a loop program to a specific address Therefore if a DMA request is generated by a timer or other source while the user program is stopped DMA transfer is executed However make note of the fact that DMA transfer while the program is stopped may not be performed correctly Also note that the below registers have been changed to generate DMA transfer as explained here even when the user program is
24. a sample foot pattern of the converter board for a 100 pin 0 5mm pitch QFP M3T F160 100NSD not included LNO 0r ZNO qq 0S V A3 QSNO00L 091 3 L IN NVdVf NI 3QVIN gt Unit mm Figure 4 11 External dimensions and a sample foot pattern of the M3T F160 100NSD REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 89 of 104 M306NKT EPB 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 Unit mm Figure 4 12 External dimensions and a sample foot pattern of the M3T F160 128NRD REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 90 of 104 M306NKT EPB User s Manual 4 Hardware Specifications 4 6 Notes on U
25. address area For BIOS setup the following addresses are available 378h 278h Specifying the communication interface LAN For selecting the LAN communication click the radio button LAN of the MCU tab 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 Notes When you are using the LAN communication for the first time connect the emulator through other than LAN communication interface and set the IP address or use the SETIP utility included with your product to set the IP address For details about the SETIP utility refer to the on line manual of your emulator debugger Specifying the communication interface USB For selecting the USB communication click the radio button USB of the MCU tab The emulators connected by a USB cable are shown at Serial No area Select the serial No of the emulator you are going to connect Notes When you are using USB communication for the first time you must install the USB driver first The USB devices are detected when you turn on the power for the emulator and a wizard for installing the corresponding device driver will automatically be started Follow the instructions of the wizard to complete installation Page 49 of 104 M306NKT EPB User s Manual 3 Usage How to Use the Emulator Debugger 3 Executing
26. b t02R 0ah software breakpoints and line assemble the source file mav b 00h 04h mow b ith ah Because this product uses the MCU s internal flash ROM the Ide d 8 h fle initial value for the ROM area data at the time of purchase is FFh Idc Hstack top sp Idc Hdata SE top Idintb ECTOR_ADR NEAR area initialize REJ10J0519 0200 Rev 2 00 Oct 16 2006 241 N SAS Page 57 of 104 M306NKT EPB User s Manual 3 Usage How to Use the Emulator Debugger 3 3 Program Execution 1 Program execution FRAP POO B REJ10J0519 0200 Rev 2 00 Oct 16 2006 241 N SAS Ef CPU reset Resets the target MCU E Go Runs the program beginning with the current PC position Reset Go Runs the program after reset the target MCU e Step In Single steps the program executing each statement including those in functions i Step Over Single steps the program executing each function call as one step yr Step Out Exists a function and stops at a statement in the program next to the one that called the function 3 STOP Stops the program 5h Go Free Runs the program beginning with the current PC position The software and hardware breaks set in it are 1gnored Page 58 of 104 M306NKT EPB User s Manual 3 Usage How to Use the Emulator Debugger 2 Setting address match breakpoints 1 Setting and executing address match breakpoint stack top sp sel lidata SE top sh Idint
27. internal reserved area lv PM13 b3 af DDDDDSH is 1 expansion PMi b0 of OOO005H is T Specifies whether or not to expand the internal reserved area Check the box if the internal reserved area expansion bit PM13 is 1 Debug Option PMI3 0 Disable Internal Flash ROM for 10MHz or below operating frequency Internal RAM area 00400h 03FFFh Internal ROM area D0000h FFFFFh PM13 1 Do not show this dialog box again Internal RAM area 00400h 07FFFh Internal ROM area 80000h FFFFFh IMPORTANT Notes on Selecting a Processor Mode When setting single chip mode or memory expansion mode the level of pin CNVSS of the MCU status should be L The MCU status shows the pin level of the user system When setting microprocessor mode the level of pin CNVSS of the MCU status should be H When setting memory expansion mode or microprocessor mode pins RDY and HOLD of the user system should be H When the user system is not connected all modes are available REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 53 of 104 M306NKT EPB User s Manual 3 Usage How to Use the Emulator Debugger 2 Debug Option Setting the debug option MCU Setting Check the box when not downloading the program to the internal flash MEU MAP Flash Clear ROM of the MCU If this box is checked the working efficiency downloading soft
28. normally Tm 1 The self check is being executed 2 Downloaded firmware 1s being written into memory 3 If the ERROR LED is flashing on at the same time or alternately it indicates that the self check error occurred OFF PC75 01 system is not operating normally ERROR ON PC75 01 system is not operating normally system status error LN Firmware is being downloaded 2 If the SAFE LED is flashing at the same time or alternately it indicates that the self check error occurred OFF OFF PC7501 system is operating normally REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 16 of 104 M306NKT EPB User s Manual 1 Outline 2 Target Status LEDs The target status LEDs indicate operating status of the target MCU and power supply of the user system Table 1 4 lists the definition of each target status LED Table 1 4 Definition of the target status LEDs POWER Power is supplied to the user system Power is not supplied to the user system CLOCK Clock is supplied to the target MCU Clock is not supplied to the target MCU RESET Target MCU is being reset or reset signal of the user system is held low Target MCU is not being reset RUN User program is being executed OFF User program has been halted WARNING Addresses 00000h and 00001h have been read out wrongly OFF Addresses 00000h and 00001h have not been read out wrongly IMPORTANT Note on Usage in Memory Expansion or Microprocessor Mode When you use this
29. product in memory expansion or microprocessor mode be sure to design your system so that pins RDY and HOLD are not held low at startup Otherwise it cannot startup normally Note on the Target Status POWER LED f your MCU has two or more Vcc terminals the LED does not light unless power is supplied to all the terminals Note 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 e If the LED is not turned on check the following 1 After powering on the PC7501 before starting up the emulator debugger Make sure that the oscillator circuit board 1s properly installed in the PC7501 and it 1s 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 Note on Accessing Addresses 00000h and 00001h e With the M16C 60 Series MCUs when a maskable interrupt is generated the interrupt data interrupt number and interrupt request level stored in addresses 00000h and 00001h are read out Also the interrupt request bit 1s cleared when address 00000h or 00001h is read out Consequently when the address 00000h or 00001h readout instruction is executed or when address 00000h or 00001h is read out in the cause of a program runaway a malfunction occurs in that the interrupt is not executed de
30. repair at your expense 6 5 How to Make Request for Repair 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 CAUTION Note on Transporting the Product When sending your product for repair use the packing box and cushion material supplied with this 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 REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 102 of 104 Emulation Probe for M16C 6N Group M16C 6N4 M16C 6N5 M16C 6NK M16C 6NL M16C 6NM M16C 6NN User s Manual M306NKT EPB Publication Date Oct 16 2006 Rev 2 00 Sales Strategic Planning Div Published by 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 M306NKT EPB User s Manual 424 NC S AS Renesas Technology Corp 2 6 2 Ote machi Chiyoda k
31. stopped 1 DMAO transfer count register TCRO 2 DMA transfer count register TCRI REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 83 of 104 M306NKT EPB User s Manual 4 Hardware Specifications IMPORTANT Notes on Pullup Control Because this product emulates some I O ports PO to P5 P10 you can not pullup ports PO to P5 by the pullup control registers Install the included resistor arrays 51kQ as necessary The initial value of pullup control register 1 PURI of this product is different from that of an actual MCU When a Vcc level is input to pin CNVss the value of an actual MCU is 02h bit 1 PU11 is 1 while that of this product is 00h 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 SAC SSC and S6C 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 Note on Setting 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 SAC S5C and S6C cannot be done properly 1 Between when stop mode is released and when a hardware reset is executed 2 Between when low power dissipa
32. 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 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 possib
33. the firmware in the target ERROR 16614 Target MCU is in the reset state Reset the user system ERROR 16615 Target MCU cannot be reset Reset the user system ERROR 16616 Target is in HOLD state ERROR 16617 Target clock is stopped ERROR 16618 Target MCU is not receiving power REJ10J0519 0200 Rev 2 00 Oct 16 2006 Check all emulator debugger settings interface cable settings and switches on the rear of the PC7501 match See the user s manuals of PC7501 and emulator debugger 1 Download the proper firmware See 2 7 Downloading Firmware page 26 2 Recheck the connection between the PC7501 and this product See 2 4 Connecting the PC7501 page 24 Download the proper firmware See 2 7 Downloading Firmware page 26 1 Check that the reset pin of the user system is at H level 2 Check the reset pin of the user system has changed from L to H level 1 Check that the NMI pin is at H level 2 In memory expansion mode or microprocessor mode check pins RDY and HOLD are at H level 3 If the reset circuit of the user system has a watchdog timer disable the watchdog timer 4 Check that power 1s properly supplied to the user system and that the user system is properly grounded 1 In memory expansion mode or microprocessor mode check pins RDY and HOLD at H level 2 The MCU is either in stop mode or wait mode Either reset the MCU or cancel the mode with an inter
34. the self check Init MIGC REC PC7501 Emulaor EE x MCU MT8CONK meu Reter LPT C Ze Type Tar VO Address M Self Check Debug Option M Enable the Address Match Interrupt Break Function Debug the program using the GPU Rewrite Mode Cancel 4 Using or not using the address match break function Init M16C REC PC7501 Emulator EN xi MELU Debugging Information Reset Emulator Resume ML Reter C LPT LAN c USE Serial Ma 1HMO08A Tous Self heck Debug Option Debug the program using the GPU Rewrite Mode Cancel Help Next Hide 5 Using or not using CPU rewrite mode Init Mi6C REC PCT501 Emulator MEU Debugging Information Reset Emulator Resume Rafer MCU MI6CENKmcu g lir LAN e USE Serial No iHMOOgA e TS EB Sey Check Debug Option M Enable the Address Match Interrupt Break Ful ctian Next Hide REJ10J0519 0200 Rev 2 00 Oct 16 2006 24 N SAS 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 This function may be enabled in the following cases When you are using the emulator you have just installed When you successfully download the firmware but fail to start up the emulator When you want to confirm whether the emulator is operating norm
35. to a 100 pin 0 5mm Pitch Foot Pattern Part 1 eeeeeseeeeseeeeneeeeenree 37 2 9 6 Connecting to a 100 pin 0 5mm pitch Foot Pattern Part 2 eseeeseeeeseeeeeeeeeene 38 2 9 7 Connecting to a 128 pin 0 5mm pitch Foot Pattern eeeesesseeeessseseseeeeeeene nenne 39 NOS VIG HT 9 CUEING MNT ETT E E E E N E A E E 40 2 10 1 A D Conversion Bypass Capacitors cccccccccceecccceececseeceeeeececeeeceeeeeeseeeeesecesseeeesseeeesseeeseneeesaeeenas 40 2 10 2 Pullup of Emulation POrIS ssena ono o Su EE imos Sea rau nnb d EAE a DES risu x ae 41 2 11 Selecting Clock SUD ONY m ess 42 EN Wie CO CS verte T 42 2 11 2 Using an Internal Oscillator Circuit Board cc ccccccceeeceeceeeeeeeeeeeeeeaeeeesaeeeeessaeseeesaaeeesseneeeesaeeeeeeas 42 2 11 3 Using the Oscillator Circuit on the User System ccccccceeccceceeeeeeaeeeeeeeeeeeeeseeeeeesaeeeeesaeeeeseeeeeeeneas 46 2 11 4 Using the Internal Generator Circuit lssesssssssssssssseeeesenenenne nennen nnne nnne 46 REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 9 of 104 M306NKT EPB User s Manual Contents Page 3 Usage How to Use the Emulator D DUGQGE ccc eccccceccecseececeeeeceeeeceeceeeecesseecesaeeceseeeeeseeeseeeeesaeeesaneeesaeeeeas 47 3 1 Staring Up the Emulator DebUgdgGl uu ucucua potea
36. you do not want to automatically execute a script command delete the character string displayed in the Init File section of the dialog box What you specify here is reflected only at startup If you specify back again in the Init dialog box after startup whatever you specified has no effect Be sure to restart the emulator debugger Cancel Web T Next Hide When the tab settings of 1 to 4 have been finished click OR REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 52 of 104 M306NKT EPB User s Manual 3 Usage How to Use the Emulator Debugger 3 1 2 MCU Setting Dialog Box MCU setting dialog box sets the information of the user system It will be displayed after closing the Init dialog box 1 MCU tab 1 MCU Setting Specifying the processor mode WCU Setting x Select the appropriate processor mode that suits your system MCU MAP Flash Clear Specifying the bus width When specifying memory expansion mode or microprocessor mode r MOLI Settine 1 is 4 select 16 bit or 8 bit for External Data Bus Width MCU MT8C BNK Using or not using the memory space expansion Processor Mode Sinele Chip Mode H function l Because the M306NKT EPB does not support the memory space External Data Bus Width peed expansion function select Normal Mode Memory Space Expansion Horma Mode f ET Using or not using the
37. 00T PTC M3T 100LCC DMS not included M3T DIRECT100S not included 100 pin 0 65mm pitch PRQP0100JB A foot pattern User system Figure 2 11 Connecting to a 100 pin 0 65mm pitch foot pattern Part 2 A CAUTION Note on Connecting the User System h Take care not to attach a converter board in a wrong direction It may cause a fatal damage to the emulator and user system IMPORTANT Notes on Connectors of the Converter board The connectors of the M30800T PTC are guaranteed for only 50 insertion removal iterations The connectors of the M3T 100LCC DMS and MG3T DIRECTIOOS are guaranteed for only 20 insertion removal iterations REJ10J0519 0200 Rev 2 00 Oct 16 2006 24 NE S AS Page 35 of 104 M306NKT EPB User s Manual 2 Setup 2 9 4 Connecting to a 100 pin 0 65mm Pitch Foot Pattern Part 3 Here following is a procedure of connecting to a 100 pin 0 65mm pitch foot pattern on the user system using the M3T DUMMY 100S not included For details on the M3T 100LCC DMS not included and M3T DUMMY 1008 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 1008 3 Attach the CN2 side of the M30800T PTC to the J4 side of the M306NKT EPB 4 Attach the M30800T PTC to the M3T 100LCC DMS M3T FLX160 EPB M306NKT EPB CN2 side e lle M30800T PTC 4 M3T 100LCC DMS not included On b
38. 1 Package components IC61 1004 051 100 pin 0 65mm pitch LCC socket made by Yamaichi Electronics Co Ltd Network registers for ports PO PS pullp 8IKOx8 o ooo do 6 H W Tool Customer Registration Sheet English 0 o 1 H W Tool Customer Registration Sheet Japanese 1 Repair Request Sheet English 00000000000000 o Eo Repair Request Sheet Japanese o Z ooo d O M306NKT EPB User s Manual this manual o o do M306NKT EPB Users Manual Japanese lt ooo 1 O M306NKT EPB Supplementary Document English 1 M306NKT EPB Supplementary Document Japanese o o J 1 Please keep the M306NKT EPB s packing box and cushion material in your place for reuse at a later time when sending p O p O p N pi N p pa m your product for repair or other purposes Always use these packing box and cushion material when transporting this product If there 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 REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 13 of 104 M306NKT EPB User s Manual 1 Outline 1 2 Other Tool Products Required for Development To bring forward programs development on an M16C 6N Group MI16C 6N4 MI6C 6N5 MI6C 6NK MI6C 6NL M16C 6NM M16C 6NN MCUs the pr
39. 10J0519 0200 Rev 2 00 Oct 16 2006 24 NE SAS Page 28 of 104 M306NKT EPB User s Manual 2 Setup 2 8 Self check 2 8 1 Self check Procedure The self check is a function to check the memory etc mounted in the emulator 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 In case of ERRORs 1 to 4 because the target status LEDs will change depending on errors check the system status LEDs 1 If the user system is connected disconnect it 2 Set the switches as the factory settings to execute the self check see Table 2 1 3 Within 2 seconds of activating power to the emulator press the system reset switch on the PC7501 s front panel 4 Check the SAFE LED starts flashing and then press the system reset switch again 5 The self check will start If the normal result 1s displayed in about 30 seconds the self check terminated normally WARNING TARGET STATUS SYSTEM STATUS Maintenance mode started ERROR 1 SAFE and ERROR flash ERROR 2 SAFE flashes and ERROR lights ERROR 3 SAFE and ERROR light alternately ERROR 4 SAFE goes out and ERROR lights Figure 2 6 LED displays in the self check REJ10J0519 0200 Rev 2 00 Oct 16 2006 SYSTEM STATUS SYSTEM STATUS SYSTEM STATUS SYSTEM STATUS SYSTEM STATUS PowerR QcLock RESET rRun WARNING TARGET QO WARNING TARGET WAR
40. 16C 6N4 MI6C 6N5 M16C 6NK MI6C 6NL M16C 6NM M16C 6NN and contains an evaluation MCU 2 Pitch converter board M30800T PTC included This is a pitch converter board for connecting to 100 pin 0 65mm pitch LCC socket IC61 1004 051 on the user system For details refer to 2 9 Connecting the User System page 31 3 Emulator main unit PC7501 The emulator main unit for the M16C Family to be used with this product 4 Host machine A personal computer to control the emulator 5 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 REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 15 of 104 M306NKT EPB User s Manual 1 Outline 1 3 2 Names and Functions of the PC7501 Upper Panel LEDs Figure 1 2 shows the names of the LEDs on the upper panel of the emulator System status Target status LEDs LEDs Q cock ORESET RUN CO WARNING SYSTEM TARGET STATUS STATUS Figure 1 2 Names of the LEDs on the upper panel of the PC7501 1 System Status LEDs The system status LEDs indicate the emulator PC7501 s power supply firmware operating status etc Table 1 3 lists the definition of each system status LED Table 1 3 Definitions of the system status LEDs POWER ON Emulator system power supply is turned ON aN c system power supply is turned OFF SAFE ON Emulator system is operating
41. 49 i macro define for special page Dis 7 DOr51 Format 6 Trace window Data access display display range is 0 to 4 76543210 Shows the level of external trace signal input cable EXTINO to EXTIN7 h m s ms us PSS Se gaa Seavnl aaa vae a Flange DSTA 000000 Area Great Fil Cycle 000S Adbert D OBFE Time QU DOCE OT cycle Dabel DacaAccems 1 Rh m si mz us DUill5H oanp amp arr r R aao 00 000 707 14 LODDRFE C000 l DOR 00r 000 711 0001 noDGrc 0000 i anoo op aoop o 214 000135 DDDEFA 0001 i QO G s 217 000114 DDOGf OOOO M O0700 D0 000 219 f 0125 OD0nFh DF ll OO te CUBO si pn0125 ODD6F4 0010 l OO GD O01 000 z 4 f iu1 very OOD nF 1 AT j 00 f n 000 227 zNW 118 ODO ur l OO 00 000 2a ALTE iT anpra r nomo O0 000 220 f 112 ODDB5EF ou l OO OO 000 250 P001 il IBODORTU gu DO Ge UD dgOOg 231 TDU 108 iopnosrc 0000 i p000 00 000 zzz l I i l l I l Shows the elapsed time after starting the user program n ina ODOTE 0000 DO OO 000 234 DUOUB DDO amp EF og nun0985 pODGerO Q0 pudass ODDGF1 AT fanonar oo0nF2 000050 rL ng amp r3 Dudoz minam o00410 4M C0 anpaia pandnca mnext ta nma14 000056 000416 DOQU4P maize 000410 D n 4z ODO4 14 DEO O w pomon 00 000 z38 Uu 00000 239 goa 00 000 240 OO OO o 000 241 BO OT OUC 241
42. CQUU0DC 00 00 00 000 270 00000000 00 00 00 000 270 00000000 00 00 00 000 271 00000000 00 00 00 000 00000000 00 00 00 000 272 00000000 00 00 00 00000000 00 00 00 DO D0 Q00 000 27 Oo Dn0 00 000 27 00000000 DO DO O0 00000000 00 00 00 00000000 00 00 00 00000000 00 00 00 00000000 00 00 00 r 000042 000414 0000 000041 rO07 p0 PDOD 000040 Oro 0 r 00 000033 Oro7p2 6010 000038 Oro p4 ooor 000037 O0Fr07 rarer 00003 rOo Dp6 FBFF 000035 roo10 0473 000034 0ro012 r27c 0000331 000719 D507 0000372 000714 5507 000031 000715 oroo 000030 000719 oroo 000029 000715 oroo 000020 000710 oroo 000027 000719 p500 00026 OOO71A D50 000025 00071 0f07 000024 000718 Or07 000023 oro7bs ooor 000022 Oro p6 rsrr 000042 1 oro7De cor4 000020 oro vne cor4 E ooc V ee ud ooocooc EEgZ 9 1 own s oc 2o0c o oU Je d de de aw D r wide bus and 8b for 8 bits bus wide bus are displayed BHE Shows the status 0 or 1 of the BHE Byte High Enable signal If this signal 0 the odd address data is valid BIU Shows the status between the BIU Bus Interface Unit and iowwvinnuwe Qu Aanes DOD3 OODOOO Area Break File preie UMES Akhera DIFDORS Tames OT Oriwia Cycle Addrems Ohj reda Babel Marmanta h m a ma ua 2000 16 amp uradg s TDFZ EXIIT II DD OC C 2062 3 P0015 Orlin TpH2 DOOC FARILA Waomani 00 aao soc 2089 pn150 Ur EF
43. Commercial Sample version MCU REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 84 of 104 M306NKT EPB User s Manual 4 Hardware Specifications 4 4 Connection Diagrams Figure 4 7 shows a connection diagram of the M306NKT EPB This connection diagram mainly show the circuit to be connected to the user system The circuits not connected to the user system such as the emulator s control system are omitted Tables 4 8 and 4 9 show IC electric characteristics of this product for reference purpose IC20 P67 P60 P67 P60 P77 P70 P77 P70 P84 P80 P84 P80 P97 P90 4 P97 P90 P117 P110 P117 P110 P127 P120 P127 P120 P137 P130 Ioko vec P137 P130 P141 P140 1000 910kO Veet p444 P140 P85 NMI P85 NMI P86 Xcout gt lt P86 Xcout 74HC4066 M16C 6NM I O Emulate 74AV CA066 510kO Vcc1 P87 Xcin gt lt P87 Xcin 74HC4066 Xout gt Xout 74HC4066 51kQ Vcc1 7125 ES VVV gt lt P107 P100 AN7 ANO E 74HC4066 G 2 gt A v INTS INT3 c Pullup resistors in dashed line e 74HC4066 indicate that the socket is mounted S R3 00 G Vcc2 D gt CC D IC8 E T 51kQ gt Vcc2 74HC4066 AAA P07 PO0 P 200 2 voce GBA P27 P20 Port Emulation ue 51kQ 2 Vcc2 OE p17 P15 Vcc2 v IIO WESS Pig Pii ERA P37 P30 j p47 P40 P57 P50 i CNVss T BYTE 510kO0 Vcc1 lt RESET 510kO0 T Vcc1 s Xin Connected to the inside of the emulator
44. Figure 4 7 Connection diagram REJ10J0519 0200 Rev 2 00 Oct 16 2006 241 N SAS Page 85 of 104 M306NKT EPB User s Manual 4 Hardware Specifications Table 4 8 Electrical characteristics of the 74HC4066 Lms ue rs i ARow ON resistor difference Vec 45V 10 lom Leakcuren Of Vecc120V 100 Tz beak current On output ope Veeci2ov aio Table 4 9 Electrical characteristics of port emulation FPGA r E E Vr L levelinputvoltage Ion 8mA n Vcc 4 75V Ion 8mA DC Vcc 3 00V Ior 8mA DC Vcc 4 75V IoL 8mA DC Vcc 3 00V VI Vcc or GND Leak current Tristate Vo Vcc or GND ViN 0V I O pin input capacitance f 1 0MBz H level output voltage L level output voltage REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 86 of 104 M306NKT EPB User s Manual 4 Hardware Specifications 4 5 External Dimensions 4 5 1 External Dimensions of the Emulation Probe Figure 4 8 shows external dimensions of the M306NKT EPB o o o L i49 J L 4 299N Ba ITNT 6 MIEL HELL gt o C ens ap ils oy Iy MONS HIII oO C 8Sd2 09 99IN 08 IEW or DEDICO DOO LOL OCTO OD TOT TOTO ROO OO OO DO ra9 Cza vs42 eT 991 o E zo Mi PIII TELIU ILLI A wn n
45. Installing the Emulator Debugger M16C R8C PC7501 Emulator 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 R8C PC7501 emulator debugger following the procedure described below 2 2 1 Installing the Emulator Debugger 1 Downloading the MI6C R8C PC7501 emulator debugger Download the M16C R8C PC7501 emulator debugger from the URL below http download renesas com eng mpumcu upgrades in circuit emulators pc7501 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 technical support 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 REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 22 of 104 M306NKT EPB User s Manual 2 Setu 2 3 Connecting the Host Machine When connecting the emulator PC7501 to a host machine you can choose your desired interface from LPT parallel interface USB interface and LAN interface Use the interface selection switch on the emulator PC7501 s re
46. NING TARGET WARNING TARGET QO WARNING TARGET STATUS O ON OFF Flashing When the firmware does not support the emulation probe When the emulation probe is not connected properly Emulation probe status error 241 N SAS Page 29 of 104 M306NKT EPB User s Manual 2 Setup 2 8 2 If an Error is Detected in the Self check If the self check does not result normally ERROR 1 to ERROR 4 in Figure 2 6 check the following 1 Recheck the connection of the emulation probe and PC7501 2 Redownload the proper firmware IMPORTANT Note on the Self check 0 Perform the self check while not connecting the user system If the self check does not result normally excluding user system errors the emulation probe may be damaged Then contact your local distributor REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 30 of 104 M306NKT EPB User s Manual 2 Setu 2 9 Connecting the User System Connect the emulation pod to the user system for MI6C 6NA or M16C 6N5 and for MI6C 6NK M16C 6NL M16C 6NM and M16C 6NN as shown in Figures 2 7 and 2 8 respectively Emulation probe 100 pin 0 65mm pitch 0 5 mm pitch o 4 M30800T PTC M30800T PTC included included GSAHrior t00 LCC DMS not included M3T FLX100 R M3T FLX100 T not included not included 2 N x M3T F 160 100NRB LCC socket M3T DIRECT100S M3T DUMMY100
47. PB M306NKT EPB Oo Q SW e CN2 side 4 M30800T PTC e M3T 100LCC QSD 5 not included TQPACK100SD 100 pin 0 5mm pitch PLQP100KB A foot pattern Se a eq No 1pin User system Figure 2 14 Connecting to a 100 pin 0 5mm pitch foot pattern Part 2 A CAUTION Note on Connecting the User System bh Take care not to attach a converter board in a wrong direction It may cause a fatal damage to the emulator and user system IMPORTANT Note on Connectors of the Converter board The connectors of the M30800T PTC and M3T 100LCC QSD are guaranteed for only 50 insertion removal iterations REJ10J0519 0200 Rev 2 00 Oct 16 2006 24 NE SAS Page 38 of 104 M306NKT EPB User s Manual 2 Setup 2 9 7 Connecting to a 128 pin 0 5mm pitch Foot Pattern Here following 1s a procedure of connecting to a 128 pin 0 5mm pitch foot pattern on the user system using the M3T F160 128NRD not included 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 YOPACKI2SRD included with the 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 J4 side of the M306NKT EPB 4 Attach the M3T F160 128NRD to the YQPACK128RD M3T FLX160 EPB M306NKT EPB CN2 side M3T F160 128NRD not incl
48. REJ10J0519 0200 T Everywhere you imagine g l ENESAS M306NKI EPB User s Manual Emulation Probe for M16C 6N Group M16C 6N4 6N5 6NK 6NL 6NM 6NN Rev 2 00 Oct 16 2006 Renesas lechnology 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 ili 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 information contained in these materials includin
49. S M3T F160 100NSD M3T 100LCC QSD 100 pin QFP 100 pin LCC 100 pin QFP 100 pin QFP 100 pin LOFP 100 pin LQFP not included included not included not included not included not included 9 No 1 pin These three items are available in one package Figure 2 7 Connecting the user system according to user system for M16C 6N4 and M16C 6N5 A CAUTION Note on Connecting the User System Take care not to attach a converter board in a wrong direction It may cause a fatal damage to the emulator and user system REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 31 of 104 M306NKT EPB User s Manual 2 Setu Emulation probe M30800T PTC included M3T F160 100NSD M3T 100LCC QSD M3T F 160 128 NRD 100 pin LQFP 100 pin LQFP 128 pin LQFP not included not included not included Q No 1 pin Figure 2 8 Connecting the user system according to user system for MI6C 6NK MI6C 6NL M16C 6NM and M16C 6NN A CAUTION Note on Connecting the User System h Take care not to attach a converter board in a wrong direction It may cause a fatal damage to the emulator and user system REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 32 of 104 M306NKT EPB User s Manual 2 Setup 2 9 1 Connecting to a 100 pin LCC Socket Here following is a procedure of connecting to a 100 pin LCC socket IC61 1004 051 of Yamaichi Electronics Co Ltd on the user system using the included M30800T PTC 1 Attach th
50. TERNAL emulation memory Notes on Address Match Breaks As the processing speed of setting and canceling address match breaks is relatively fast you can save the times of writing into the internal flash ROM of an MCU Address match breaks can be set only in RAM and ROM areas of an MCU Address match breaks can be set at up to eight points Address match breaks can be set or canceled even when the user program is being executed REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 93 of 104 M306NKT EPB User s Manual 4 Hardware Specifications IMPORTANT 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 user system 1s 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 Internal Flash ROM of the MCU 9 In single chip mode and memory expansion modes this product downloads a user program to the flash ROM of an MCU By checking Debug Option in the MCU tab of the MCU setting dialog box of the emulator debugger you can disable the operation of the internal flash ROM of the MCU to use the emulation memory of the PC7501 The maximum operating frequencies are as follows 1 Debug Option unchecked Acces
51. ad the firmware Download the firmware with the user system not connected Notes on Self check If the self check does not result normally excluding user system errors the emulation probe may be damaged Then contact your local distributor e Run the self check with the user system not connected Note on Quitting the Emulator Debugger To restart the emulator debugger always shut power to the PC7501 off once and then on again REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 91 of 104 M306NKT EPB User s Manual 4 Hardware Specifications IMPORTANT Note on Display of MCU Status MCU status you can refer to in the MCU tab of the MCU Setting dialog box of the emulator debugger shows pin levels of the user system Make sure that proper pin levels are specified according to the mode you use 1 When single chip mode is used CNVss Low 2 When memory expansion mode 16 bit data bus width 1s used CNVss Low BYTE Low HOLD High RDY High 3 When memory expansion mode 8 bit data bus width is used CNVss Low BYTE High HOLD High RDY High 4 When microprocessor mode 16 bit data bus width is used CNVss High BYTE Low HOLD High RDY High 5 When microprocessor mode 8 bit data bus width is used CNVss High BYTE High HOLD High RDY High Note on Clock Supply to the MCU A clock supplied to the evaluation MCU is selected by the Emulator tab in the Init dialog box of the emulator deb
52. age 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 REJ10J0519 0200 Rev 2 00 Oct 16 2006 241 N SAS Page 5 of 104 M306NKT EPB 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 to read this chapter before using this product AN AN DANGER AN WARNING N CAUTION CAUTION IMPORTANT This symbol represents a warning about safety It is used to arouse caution about a potential danger that will possibly inflict an injury on persons To avoid a possible injury or death please be sure to observ
53. al 3 Usage How to Use the Emulator Debugger 2 Specifying the communication interface Init MI6C RSC PCT501 Emulator MCU Debugging Information Reset Emulator Resume PCL Reter f LET C LAN C USB Type AUTO I Taregl VO Address 378h Self Check r Debug Option l M Enable the Address Match Interrupt Break Function Debug the program using the GPU Rewrite Mode Init MI6C REC PC 7501 Emulator E EE xj MEU Debugging information Reset Emulator Resume Aas LI bo er C LPT f LAN Port z500 T Debug Option w Enable the Address Match Interrupt Break Function Debug the program using the GPL Rewrite Mode E Cancel Suen L3 1m Mext Hide Init M16C RBC PC7501 Emulator f i xj Self Check MCU Debugging Information Reset Emulatar Resume C LPT LAN 55 Serial Mo iHMOOgA Tegel Self Gheck Debug Option M Enable the Address Match Interrupt Break Function Debug the program using the GPU Rewrite Mode Next Hide REJ10J0519 0200 Rev 2 00 Oct 16 2006 24 N SAS Specifying the communication interface LPT For selecting the LPT communication click the radio button LPT of the MCU tab For the Type area specify LPT interface communication mode to be used When you use the emulator debugger for the first time select AUTO Specify the I O address of the parallel port at the I O
54. ally 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 Using or not using the address match break function Specify whether or not to use the address match break function To use the address match break function default Check this box In this case the address match interrupt is used by the emulator and cannot be used in the user program When not using the address match break function Deselect the check box In this case the address match interrupt can be used in the user program This option can be selected or deselected only when you are starting up the emulator debugger Using or not using CPU rewrite mode Specify whether or not to debug in CPU rewrite mode To debug the user system that uses CPU rewrite mode check this box This option can be selected or deselected only when you are starting up the emulator debugger Notes When debugging in CPU rewrite mode is enabled the following functions cannot be used while executing the user program Setting the address match breakpoint Software breakpoint setting in the internal ROM area Execution of COME in the internal ROM area Setting the hardware breakpoint and trace point Page 50 of 104 M306NKT EPB User s Manual 3 Usage How to Use the Emulator Debugger 2 Debugging Information tab Inn B Tesi RBG PG 501 Emulator MGU Deb
55. am stops after executing the first instruction after returning from address match interrupt processing Note on Accessing Addresses 00000h and 00001h With the M16C 60 Series MCUs when a maskable interrupt is generated the interrupt data interrupt number and interrupt request level stored in addresses 00000h and 00001h are read out Also the interrupt request bit 1s cleared when address 00000h or 00001h is read out Consequently when the address 00000h or 00001h readout instruction is executed or when address 00000h or 00001h is read out in the cause of a program runaway a malfunction occurs in that the interrupt is not executed despite the interrupt request because the request bit of the highest priority interrupt factor enabled 1s cleared For this malfunction when the reading out to address 00000h or 00001h is generated excluding the interrupt the WARNING LED yellow on the upper panel of the PC7501 lights up to alarm When this LED lights there is a possibility of wrong access therefore check the user program REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 95 of 104 M306NKT EPB User s Manual 9 Troubleshooting 9 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 the troubles from when power to the emulator is activated until the emulator debugger starts up Check this while the user system
56. anual 1 Outline Table 1 6 Specifications of the M306NKT EPB 2 2 Host machine interface LPT parallel ECP EPP Byte compatibility and Nibble compatibility modes USB USB 1 1 full speed 1 LAN IOBASE T Power supply to emulator Operating temperature Storage temperature Power supply to emulation probe Connection to user system For 100 pin 0 65mm pitch LCC see 2 9 Connecting the User M30800T PTC included System on page 31 For 100 pin 0 65mm pitch QFP PRQPO0100JB A 1 M3T F160 100NRB not included 2 M30800T PTC included M3T 100LCC DMS not included M16C 6N4 M3T DIRECT100S not included M16C 6N5 3 M30800T PTC included M3T 100LCC DMS not included M3T DUMMY 1008 not included For 100 pin 0 5mm pitch LQFP PLQP0100KB A 1 M3T F160 100NSD not included 2 M30800T PTC included M3T 100LCC QSD not included For 100 pin 0 5mm pitch LQFP PLQP0100KB A M16C 6NK 1 M3T F160 100NSD not included M16C 6NL 2 M30800T PTC included M16C 6NM M3T 100LCC QSD not included M16C 6NN For 128 pin 0 5mm pitch LQFP PLQP0128KB A 1 M3T FLX 128NRD not included Available to connect the host machine that supports USB 2 0 With the USB interface not all hardware such as host machine USB devices USB hub combination will work and guaranteed REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 19 of 104 M306NKT EPB User s Manual 1 Outline 1 5 Operating Environment Be sure to use t
57. ar panel to specify your desired interface Figure 2 2 shows the outline to connect each interface cable LPT parallel interface 34 LPT parallel interface cable Host machine USB interface USB interface cable Emulator PC7501 Host machine LAN interface oJ la 4 10BASE T cable Separately available The LAN interface cable is not included E Emulator PC7501 Get 10BASE T cable separately To connect the emulator PC7501 directly to the host machine use a cross cable Host machine Figure 2 2 Outline for interface cable connections REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 23 of 104 M306NKT EPB User s Manual 2 Setup 2 4 Connecting the PC7501 Figure 2 3 shows how to connect the PC7501 and the emulation probe M3T FLX160 EPB M306NKT EPB Figure 2 3 Connecting the PC7501 and emulation probe CAUTION Note on Connecting the PC7501 Q Always shut OFF power before connecting the emulation probe Otherwise internal circuits may be damaged IMPORTANT Notes on Connecting the PC7501 When connecting the emulation probe be sure to hold the both sides of the emulation probe horizontally and insert it directly The connectors of the M306NKT EPB are guaranteed for only 50 insertion removal iterations REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 24 of 104 M306NKT EPB User s Manual 2 Setup 2 5 Connecting the Power Supply for the Emulator The power is s
58. ardware 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 the time for starting up 0 2Vcc to 0 8Vcc 1 us or less 2 Initial values of internal resource data of an MCU at power on 3 Interrupt stack pointer ISP after a reset is released 4 Capacities of the internal memories ROM and RAM The evaluation MCU of this product has RAM of 31KB 00400h 07FFFh and flash ROM of 4KB OFOOOh OFFFFh and 512KB 80000h FFFFFh 5 Oscillator circuit In the oscillator circuit where an oscillator is connected between pins Xy and Xoyr oscillation does not occur because a converter board 1s used between the evaluation MCU and the user system It is same for pins Xcn and Xcour For notes on when using the oscillator circuit on the user system refer to 2 11 3 Using the Oscillator Circuit on the User System page 46 6 A D conversion The characteristics of the A D converter differ from those of actual MCU because there are a package converter board and other devices between the evaluation MCU and the user system 7 Ports PO to P5 P10 This product emulates some I O ports PO to P5 P10 The
59. are 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 M306NKT EPB Applicable MCU M16C 6N Group w M16C 6N4 M16C 6N5 MI6C 6NK MI6C 6NL M16C 6NM M16C 6NN M306NMFJGP two pieces ROM 512KB 4KB RAM 31KB Applicable MCU mode Single chip mode Memory expansion mode Microprocessor mode Max ROM RAM capacity 1 Internal flash ROM 512KB 4KB OF000h OFFFFh 80000h FFFFFh 2 Internal RAM 31KB 00400h 07FFFh Operating frequency 24MHz when using PLL Power supply voltage 3 0 5 5V REJ10J0519 0200 Rev 2 00 Oct 16 2006 241 N SAS Page 71 of 104 M306NKT EPB 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 This nm symbol Item ns ns NI I MC ras Be
60. are displayed in order of execution paths Source mode LE Bow So Opus The execution paths of the source program can be inspected O00 0 P CGvO O O Q Q Q O oO OOo H b LbHLH L oOOOOOrLTCcOcOormT cocmnm Data access mode Data read write cycles can be inspected So oo Fe Hd The trace window shows the measurement result when a real time trace measurement has finished The trace window will be cleared when the real time trace measurement 1s restarted REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 66 of 104 M306NKT EPB User s Manual 3 Usage How to Use the Emulator Debugger 3 Trace window Bus information display Explanation of the trace window bus information display The following explains the displayed contents from left to right Address Shows the status of the address bus Data Shows the status of the data bus BUS Shows the width of the internal data bus 16b for 16 bits bus f Hava aaa vez av Range 000573 000000 Aras Break File Ocie 000044 Adbatt DFOTCK Tine O0 0000000264 Cycle Address Data 76543210 h n s mo 000044 OFO7CR 0070 000043 FO CE 0070 j 00000000 pO 00 00 000 00000000 DO DD0 00 0090 00000000 DO 00 00 000 2 amp 009000000 00 00 00 000 266 00000000 00 00 00 000 00000000 00 00 00 000 26 00000000 D0 00 00 000 26 00000000 DO D0 00 000 2 00000000 DO 00 00 000 2 00000000 00 00 00 000 26 00000000 00 00 00 000 26 0U
61. b VECTOR_ADR NEAR area initialize Program execution with address match breakpoint An address match breakpoint can be set by selecting Enable the Address Match Interrupt Break Function in Init dialog box of the MCU tab A software breakpoint can be set or cleared by double clicking the address match breakpoint display area in the editor source window A blue circle is displayed at the setting line Up to eight points can be set Ill the execution button 2 Execution completed with address match break llistack top wb f02h Jah stack top sp sel dc ldata SE top sb Idintb ECTOR_ADR The cursor stops in the position where the address match break was set up The statement in which the address match break was set up is not executed REJ10J0519 0200 Rev 2 00 Oct 16 2006 241 N SAS Page 59 of 104 M306NKT EPB User s Manual 3 Usage How to Use the Emulator Debugger 3 Setting software breakpoints 1 Setting and executing software breakpoint Program execution with software breakpoint A software breakpoint can be set or cleared by double clicking the software breakpoint display area in the editor source window A red circle is displayed at the setting line ET the execution button lstack top sp lidata SE tap Idintb VECTOR_ADR The cursor stops in the position where the software break was set up The statement in which the software break was set up is not ex
62. ction 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 5 Trace window Source display Javea vavrmuv Rares 0067S DOCU Ares Drek File ner AO vele DOMBA Address OPOR Tone OU OTEO OG Line Address Now Source Dniz7 OFOTHF piah Wasiseof SECT gt lh 001261 rDTT73 push u aireof SECT amp ffffh apra QFDTT pisha TO_ S216 p030 r TTE pusha TO amp OFfttik 00131 re pusha FROM 2210 Dra pusha FROM amp Offffh B0133 Ek 1z gorad ulh _heapy n0135 rali beopy garan Jsi 37 A beapy 00137 ende THEN Dora rif hic I 1 D isn IE D0141 i fee MIECC G0 30 20 10 series Dora EN 3 00143 i gab BankSelect Hiii i BankSelece Fuigu OAH 00145 mnia MR this signal is 0 CPU Shows the status between the CPU and BIU Bus Interface Unit Symbol Status Non active 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 00147 special page definition DO138 INNEN i Bor
63. cuit is equipped for temporary debugging purposes Temperature characteristics of frequencies are not guaranteed Be sure to evaluate your system with an oscillator or oscillator module whose frequency is same as that of the internal oscillator circuit internal clock for final evaluation purposes REJ10J0519 0200 Rev 2 00 Oct 16 2006 24 NE SAS Page 46 of 104 M306NKT EPB User s Manual 3 Usage How to Use the Emulator Debugger 3 Usage How to Use the Emulator Debugger This chapter describes how to start up the emulator debugger from the High performance Embedded Workshop 3 1 Starting Up 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 EX DefaultS ession ivi 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 R8C PC7501 Emulator in the list 3 1 1 INIT Dialog Box After specifying the session an Init dialog box to connect the target is 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 REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 47 of 104 M306NKT EPB User s Manual CR Usage How
64. culated by the following formula according to the frequency of BCLK 0 5 x10 FfBCLK REJ10J0519 0200 Rev 2 00 Oct 16 2006 24 NE S AS Page 79 of 104 M306NKT EPB User s Manual 4 Hardware Specifications Read timing tcyc lt BCLK j td BCLK CS lt 2 th BCLK CS j td AD ALE th ALE AD x lt E lt th RD CS ADi X DBi E gh ta BCLK AB T s gt tdz RD AD a E td AD RD tac3 RD DB tsu DB RD E th RD DB th BCLK AD E y BHE A td BCLK AL X 3 NE ALE th BCLK ALE lt E th RD ADj td BCLK RD lt Write timing X 23 th BCLK RD tcyc x E BCLK i td BCLK CS lt gt th BCLK CS lt gt td AD ALE th ALE D lt t LX lt gt th WR CS th BCLK DB lt gt lt td BCLK DB Lj X ADi X DBi E td BCLK AD lt gt TE iK EE td DB WR 2S EZ th WR DB th BCLK AD i ADi Y BHE td BCLK AL 3 TE ALE TEE th BCLK ALE EO 3 th WR AD lt 3 td BCLK WR WR WRL WRH 3 th BCLK WR Figure 4 5 Memory expansion mode and microprocessor mode 2 wait accessing external area and using multiplex bus REJ10J0519 0200 Rev 2 00 Oct 16 2006
65. d to the MCU main clock and sub MOU Deb Int th mulato Script i desinud clock Select the appropriate clock sources according to the clock I Glock Maun used by your target MCU Internal default Emulator PC7501 s internal clock External Generated MHz Internal Sub C Internal fe External External Cable Select User system clock C Output Events f Input from External Trigger Generated Clock created 1n PC7501 The option you have specified here remains effective the next time you start up Selecting the event output trigger input cable Select input output of the event output trigger input cable of the PC7501 Input from External Trigger default OK Cancel Help IT Next Hide Inputs the external trigger from the cable Output Events Outputs events from the cable Input from External Trigger is set at startup the previous setting becomes null 4 Script tab Init M16CG REG PC7501 Emulator val Automatically executing a script command To automatically execute a script command when starting up the MCU Debugging Information Emulator Script debugger click the Refer button and specify the script file to be executed hit 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
66. e CN2 side of the M30800T PTC to the J4 side of the M306NKT EPB 2 Attach the M30800T PTC to the 100 pin LCC socket M3T FLX160 EPB M306NKT EPB CN2 side M30800T PTC 100 pin LCC socket User system Figure 2 9 Connecting to a 100 pin LCC socket A CAUTION Note on Connecting the User System Take care not to attach a converter board in a wrong direction It may cause a fatal damage to the emulator and user system IMPORTANT Notes on Connectors of the Converter board The connectors of the M30800T PTC are guaranteed for only 50 insertion removal iterations For purchasing the IC61 1004 051 or for technical information contact Yamaichi Electronics Co Ltd REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 33 of 104 M306NKT EPB User s Manual 2 Setup 2 9 2 Connecting to a 100 pin 0 65mm Pitch Foot Pattern Part 1 Here following is a procedure of connecting to a 100 pin 0 65mm pitch foot pattern on the user system using the M3T F160 1OONRB not included 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 YOPACKIOORB 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 J4 side of the M306NKT EPB 4 Attach the M3T F160 100NRB to the YQPACK100RB M3T FLX160 EPB M306NKT EPB CN2 side
67. e 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 Page 65 of 104 M306NKT EPB User s Manual 3 Usage How to Use the Emulator Debugger 3 5 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 Clicking this button opens the trace window Trace window The trace window is used to show the results of real time trace measurements It has the following four display modes And mixed OFO CE 0070 16b O R OFO CE 0070 16b 000414 0000 16b OFO DO FDOO 16h OFO DO FDOO 16b OFO D2 0010 16b OFO D4 DODF 16b OFO D65 FBFF 16b OF 7D6 FBFF 16h OFO010 O4F3 16b OFOO12 F27C 16b 000719 D507 16b 000714 D507 16b 000715 OFOO 16b OOO71B OFOO 16b 000718 OFOO 16b 000718 OFOO 16b 000719 D500 16b 000714 D507 16b 0007 1B OFO 16b 000024 0007158 OFO 16b mode can be displayed Bus mode Bus information per cycle can be inspected The contents are displayed in order of execution paths Disassemble mode The execution paths of the executed instructions can be inspected The contents
68. e the safety message that follows this symbol DANGER indicates an imminently dangerous situation that will cause death or heavy wound unless it is avoided However there are no instances of such danger for the product presented in this user s manual WARNING indicates a potentially dangerous situation that will cause death or heavy wound unless it is avoided CAUTION indicates a potentially dangerous situation that will cause a slight injury or a medium degree injury unless it is avoided CAUTION with no safety warning symbols attached indicates a potentially dangerous situation that will cause property damage unless it 1s avoided 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 Nmeans WARNING or CAUTION Example means PROHIBITION Example A N CAUTION AGAINST AN ELECTRIC SHOCK pisassemBLy PROHIBITED means A FORCIBLE ACTION Example QE uNPLuc THE POWER CABLE FROM THE RECEPTACLE REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 6 of 104 M306NKT EPB User s Manual Precautions for safet WARNING Warnings for AC Power Supply e 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
69. ea You can change the manner in which the RAM monitor area you have set in the above dialog box is displayed t Shows the blocks at the preceding addresses Shows the blocks at the following addresses 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 RAM Monitor Area Setting Window in initial state By default the monitor area is set to 000400h through 0007FFh To change it click the line you want to set Current Assmmned Area Start Si Area Dona 4 000400 OO7FF Specifying the start address You can set the start address of the RAM area to be monitored To add a RAM monitor area click the Add button The RAM Monitor Area Setting dialog box will be displayed 12 blocks GO72 bytes are available lt 1 block 256 bytes Sae Load 4 RAM monitor area setting dialog box Set RRAM Ar a 3 Specifying the start address You can set the start address of the RAM area to be monitored Specifying the size You can set the size to be monitored by specifying the number of blocks from the start address One block is 256 bytes in size REJ10J0519 0200 Rev 2 00 Oct 16 2006 24 NE S AS Page 70 of 104 M306NKT EPB User s Manual 4 Hardw
70. ecuted Ide istack top mav b 0 h a mow B stack_top sp isel Idc data_ E_ top sb Idintb ECTOR ADR REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 60 of 104 M306NKT EPB User s Manual 3 Usage How to Use the Emulator Debugger 4 Executing up to the cursor position Come command 1 Specifying the Come command 157 166 169 lu Ll ivrz 13 174 175 16 IFT 175 179 160 161 REJ10J0519 0200 Rev 2 00 Oct 16 2006 UT EL EEG t s5cg tiic Libere r d3 f B56d TO Gdh LLLI EL t scog r r scc tU r 6d3 O085dG EO Gdh dc llistack top EP b 02h 0a b id n mih b Leith ah DMrs h fle stack top sp jel data SE top sb Idintb YECTOR_ADR NEAR Ares Tait iad ise dc llistack top sp b It 2h ah b TOOh O4b b EO DR D ah teth fle stack top sp sel data SE top sb ct Idintb ECTOR_ADR NEAR area initial ize 241 N SAS Setup procedure for executing COME command 1 Click the line in the program display area at which you want the program to execute 2 i Click the Come button The cursor stops in the position where the come command was executed The statement specified with the come command is not executed Page 61 of 104 M306NKT EPB User s Manual 3 Usage How to Use the Emulator Debu 3 3 Hardware Breakpoint Setting Window 1 Breakpoint setup dialog box 1 Opening the hardware breakpo
71. environment High performance Embedded Workshop Emulator main unit Hereafter PC7501 This means an emulator main unit for M16C Family Emulation probe This means the emulation probe this product for the M16C 6N Group M16C 6N4 MI6C 6N5 M16C 6NK M16C 6NL M16C 6NM M16C 6NN MCUs Emulator debugger M16C R8C PC7501 Emulator Debugger This means a software tool starting up from the High performance Embedded Workshop to control the PC7501 and this product and enable debugging 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 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 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 PC7501 and emulation probe Software break A software break is a function to break the program before the system
72. et dod 1 eee 1 Cle h RD AD Address output hold time RD standard 0 2 th WR AD Address output hold time WR standard 92 See left td BCLK CS Chip select output delay ime 25 See left th BCLK CS Chip select output hold time BCLK standard 4 Seelet td BCLK ALE ALE signal outputdelaytime 25 Seelef th BCLK ALE ALE signal output hold time 4 Seelft td BCLK RD RD signal output delay time 25 See eft th BCLK RD RD signal output hold time 0 See tet BCLK WR WR signal output delay time 25 27 th BCLK WR WR signal output hold time See tet td BCLK DB _ Data output delay time BCLK standard 40 See left HMBCLK DB Dera output hold ime 3CLK standard 4 sen tK DB WR Data output delay time WR standard Selt th WR DB Data output hold time WR standard 2 Seelft Calculated by the following formula according to the frequency of BCLK n 0 5 x 10 B f BCLK ns n 3 for3 wait 2 Calculated by the following formula according to the frequency of BCLK 0 5x10 fBCLK REJ10J0519 0200 Rev 2 00 Oct 16 2006 241 N SAS Page 72 of 104 M306NKT EPB User s Manual 4 Hardware Specifications Read timing BCLK f N i td BCLK CS th BCLK CS lt lt CSi N th RD CS lt tc
73. 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 probe which is operated in the specific mode for tools if In this user s manual this symbol is used to show active Low e g RESET Reset signal REJ10J0519 0200 Rev 2 00 Oct 16 2006 24 NE S AS Page 12 of 104 M306NKT EPB User s Manual 1 Outline 1 Outline This chapter describes the package components the system configuration the specifications of the emulator functions and the operating environment 1 1 Package Components The M306NKT EPB package consists of the following items When unpacking it check to see if your M306NKT EPB contains all of these 1tems Table 1
74. for the hardware breakpoints H2 gago FETCH addr 000000 Hd DDOUD FETCH ddr 000000 B5 OO0000 FETGH addr 000000 B amp OO0000 FETGH addr 000000 You can specify a trace range for the trace event ILIEILIEILIET E Break T FETGH A O00 x E rid PETON te meis 256K cycles of instruction execution before the user program TE stopped is recorded Combination j r PID Bee AHD Leta Enae a 256K cycles of instruction execution before a trace point condition Trace Area Write Condition j was met is recorded About Break Total bei f 128K cycles of instruction execution before and after a trace point z l z condition was met is recorded Reset Save laad Sat Ghose Ac 256K cycles of instruction execution after a trace point condition was met is recorded Full 256K cycles of instruction execution after a trace began is recorded 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 PS Trace Point Setting Window memory Event Status E Total PASS E ADDRE AGGE CONDITION ES All cycles are written into memory z 1 Bi 000000 FETCH add 00000 Pick up uu B 1 82 O00000 FETCH ddt no000 Only the cycles in which the specified condition was met are 1 B3 o00000 FETCH addi 000000 written into memory D 1 B4 odoo
75. g 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 used under circumstances in which human life is p
76. g the user program or data When cleared the Flash ROM Block content of the flash ROM is initialized to FFh The MCU s internal Denn DBFFFF Select Al flash ROM is listed in block units osadit OOF FFF Any block which has had its check box selected is not cleared when OAQ000 OAFFFF Clear All OB0000 OBFFFF oCO000 OCGFFFF opo0000 ODFFFF E0000 DEFFFF DF DDn OFTFFF DFS n OFSFFF downloading The memory content of this block remains intact unless overwritten by downloading Any block which has had its check box deselected is cleared when downloading Click the Select All button and all blocks will be selected marked by a check mark so that none of the blocks is cleared when S ES ES S ES ES EST ES S The checked blocks are over written not erased on download downloading Cancel Help Click the Clear All button and all blocks will be deselected check I Do not show this dialog box again marks removed so that all of them are cleared when downloading The option you have specified here remains effective the next time you start up When the tab settings of 1 to 3 have been finished click OR REJ10J0519 0200 Rev 2 00 Oct 16 2006 241 N SAS Page 55 of 104 M306NKT EPB User s Manual 3 Usage How to Use the Emulator Debugger 3 1 3 Checking Connections of the Emulator System Fl i lah parae ressa ponsa mri chip Mauu diren ala daan
77. h BCLK HOLD HOLD input iJ s HLDA output td BCLK HLDA DO x P0 P1 P2 P3 P4 P5o P52 Figure 4 3 Timing requirements Compared with an actual MCU this product enters high impedance state after a 0 5 cycle delay REJ10J0519 0200 Rev 2 00 Oct 16 2006 24 NE SAS Page 76 of 104 M306NKT EPB 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 es Symbol Item ns ns Ma Ma 7 Min Ma ee a se aa a a n h RD AD Address output hold time RD standard 0 3 th WR AD Address output hold time WR standard 2 Seele tK BCLK CS Chip select output delay time 30 Selt th BCLK CS Chipselectougutholdtime BCLK standard 4 Seeleft M BCLK ALE ALEsignalouputdelaytime 30 Selt h BCLK ALE _ ALE signal outputholdtime 4 Selet td BCLK RD RD signal output delay time 30 S lt h BCLK RD RD signal output hold time See deft tA BCLK WR WR signal output delay time 30 See left th BCLK WR
78. he clock supply can be set by the Init dialog box when starting up the emulator debugger or inputting CLK command on the script window 2 11 2 Using an Internal Oscillator Circuit Board 1 Kinds of Oscillator Circuit Boards The PC7501 comes with an oscillator circuit board OSC 3 30MHz And an oscillator circuit board OSC 3 16MHz and an oscillator circuit board OSC 2 bare board are included with this product If you use the internal oscillator circuit board OSC 3 16MHz or OSC 2 of the PC7501 as a main clock choose Internal in the emulator debugger after replacing oscillator circuit boards to change a clock supplied to an MCU REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 42 of 104 M306NKT EPB User s Manual 2 Setu 2 Replacing an Oscillator Circuit Board 1 Remove the four screws of both sides of this product and lift off the upper cover see Figure 2 18 Figure 2 18 Removing the upper cover REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 43 of 104 M306NKT EPB User s Manual 2 Setup 2 Replace the oscillator circuit board see Figure 2 19 The Figure on the left shows the position of the oscillator circuit board Unscrew the screw securing the oscillator circuit board Lift off the oscillator circuit board Attach another oscillator circuit board to the connector Secure it with the screw Figure 2 19 Replacing the oscillator circuit board 3 Reinstall the u
79. his emulator with the operating environmental of the emulator and host machine listed in Tables 1 7 and 1 8 Table 1 7 Operating environmental conditions 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 IBM PC AT compatibles OS Windows 98SE Windows Me Windows XP Windows 2000 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 Needed to install the emulator debugger and refer to the user s manual Windows and Windows NT are either registered trademarks or trademarks of Microsoft Corporation in the United States and other countries REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 20 of 104 M306NKT EPB 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 R8C PC7501 emulator debugger v Connect the host machi
80. 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 M3T PD3OFUsers Manual S M3T PD30F User s Manual C compiler package for R8C Tiny M16C 60 30 Tiny 20 and 10 Series C Compiler User s Manual C compiler package for R8C Tiny M16C 60 30 Tiny 20 and 10 Series Assembler User s Manual REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 3 of 104 M306NKT EPB 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 PC7501 main unit 2 Emulation probe 3 Package converter board for connecting the user system The emulator herein does not include the customer 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 M16C Family M16C 60 Series M16C 6N Group M16C 6N4 M16C 6N5 MI6C 6NK MI6C 6NL MI6C 6NM M16C 6NN of Renesas 16 bit single chip MCUs It provides support for system development in both software and hardware Be
81. in NMI from the user system is accepted during the user program execution only while the RUN status LED on the emulator s upper panel is lit REJ10J0519 0200 Rev 2 00 Oct 16 2006 24 NE SAS Page 82 of 104 M306NKT EPB User s Manual 4 Hardware Specifications IMPORTANT Note on Voltage Detect Circuit With this product as the power voltage cannot be change after powering on the user system the voltage detect circuit voltage down detect interrupt voltage down detect reset etc cannot be used Notes on Reset Vector Area Memory in the PC7501 is always selected as a reset vector area FFFFCh FFFFFh in order to operate the evaluation MCU in emulator dedicated mode Set the contents of the reset vector area in one of the following ways 1 Download a user program to an area including the reset vector area 2 Set the reset vector using a memory window of the emulator debugger etc A reset vector area can be changed only when a program is stopped Do not access the rest vector area as data It may not be accessed properly and the program may not run properly in the next bus cycle Notes on Stack Area e With this product a maximum 8 bytes of the user stack is consumed as a work area Therefore ensure the 8 byte 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
82. int setup dialog box Hardware breakpoint fi Clicking this button opens the hardware breakpoint setup dialog box P al b 2 Hardware breakpoint setting window H W Break Point Setting window in initial state Select the Enable H W Break check box and this break function will HW Break Points Settings be enabled allowing you to set hardware breakpoints T ADDRESS AG CONDITION Setting break event i g CA bach gt 7 E oi ononon FETCH addr 00000 Click the event line at which you want set a break event 1 48 00000 FETCH addr 000000 CL i 44 000000 FETCH addr 000000 D 1 b 000000 FETCH addr 000000 D 1 as 000000 FETCH addr 000000 i A 000000 FETCH addr 000000 CL 7 A 00000 FETCH addr 000000 Combination PID AND ean Enable ET Reset Save Load set Close 3 Opening the break event setting dialog box opecifying the event type US Se Geen SIME Click to select the event type you want to set Event Type erme e z FETCH Detects an instruction prefetch Fetch DATA ACCESS EE ce Detects a memory access Rangg edd Address BIT SYMBOL fddresri oFOsDB 5l x Detects a bit access Function INTERRUPT Source File Function m Detects an interrupt occurrence or interrupt termination TRIGGER Detects a signal from the external trace signal input cable M
83. into the cooling fan on the top panel especially liquids metal objects or anything combustible Warning for Installation QI 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 REJ10J0519 0200 Rev 2 00 Oct 16 2006 241 N SAS Page 7 of 104 M306NKT EPB User s Manual Precautions for safety A CAUTION Cautions to Be Taken for Turning On the Power Turn ON 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 about 10 seconds Cautions to Be Taken for Handling This Product h Use caution when handling the 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 directly Static electricity may damage the internal circuits Do not pull this emulator by the communications interface cable or the flexible cable And excessive flexing or force may break conductors Do not flex
84. is disconnected For the latest FAQs visit the Renesas Tools Homepage http www renesas com en tools Turning on PC7501 Upper panel LED Not normal of PC7501 1 Check the connection of power supply cable See 2 5 Connecting the Power Supply for the Emulator page 25 Normal 2 Check that the power is properly supplied to the use system See 2 7 Downloading Firmware page 28 3 Restart the emulator system Init dialog box of emulator Not normal Error displayed debugger displayed 1 Check the operating environment etc of the emulator debugger See the user s manual of the emulator debugger Normal 2 Reinstall the emulator debugger MCU Setting dialog box of Not normal Error displayed emulator debugger See 5 2 2 MCU Setting Dialog Box Does Not Appear at Normal Emulator Debugger Startup page 98 Error displayed Program window of emulator debugger displayed Normal See 5 2 3 Errors Occur at Emulator Debugger Startup page 99 Emulator debugger startup completed Figure 5 1 Flowchart to remedy the troubles REJ10J0519 0200 Rev 2 00 Oct 16 2006 24 NE SAS Page 96 of 104 M306NKT EPB User s Manual 5 Troubleshootin 5 2 When the Emulator Debugger Does Not Start Up Properly 1 When the LEDs of the PC7501 Do Not Display Normally Table 5 1 Errors LEDs show and their checkpoints Connection to Error Checkpoint the user syste
85. le 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 REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 4 of 104 M306NKT EPB 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 purposes 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 dam
86. m LEDs do not light up Check that the power cable is connected See 2 5 Connecting the Power Supply for the Emulator page 25 and the user s manual of the PC7501 All LEDs remain lit Recheck the connection between the PC7501 and this product See 2 4 Connecting the PC7501 page 24 Target Status POWER LED Connected Check that power Vcc is properly supplied to the user system and does not light up that the user system 1s properly grounded Target Status CLOCK LED Notconnected 1 Check that both the main and sub clocks of the emulator does not light up debugger are not set to EXT See the CLK command of the emulator debugger 2 Check the oscillation circuit in the emulator is oscillating See 2 11 Selecting Clock Supply page 42 Connected When the clock is supplied from an external oscillator check that the oscillator circuit in the user system is oscillating properly Target Status RESET LED does Check that the reset pin of the user system is at H level not go out REJ10J0519 0200 Rev 2 00 Oct 16 2006 24 NE S AS Page 97 of 104 M306NKT EPB User s Manual 9 Troubleshooting 2 MCU Setting Dialog Box Does Not Appear at Emulator Debugger Startup Table 5 2 Checkpoints of errors at debugger startup Checkpoint ERROR 16005 Communication error occurred Data was not sent to the target ERROR 16207 User system cannot be properly built ERROR 16211 PD30F s version is not the same version as
87. me RD standard Seelft Leh WR CS Chip select output hold time WR standard See left BCLK RD RD signal output delay time 40 See Det th BCLK RD RDsignaloutputholdtime See tet td BCLK WR WRsignaloutputdelaytime 40 See Det eh BCLK WR WR signal output hold time 0 Selt tABCLK DB Data output delay time BCLK standard f 50 See left th BCLK DB Data output hold time BCLK standard 4 Selt tA DB WR Data output delay time WR standard 92 Selt Lh WR DB Daetaoutputholdtime WR standard D Selt tABCLK ALE _ ALE output delay time BCLK standard 40 See let th BCLK ALE ALE output hold time BCLK standard 4 Selt td AD ALE ALE output delay time Address standard 3 Seeleft h ALE AD ALE output hold time Address standard CA Selt L AD RD After address RD signal output delay time 0 Sel t L AD WR After address WR signal output delay time 0 Selt tdz RD AD Address output floating start time ee 15 Calculated by the following formula according to the frequency of BCLK 0 5 x10 MI pe ns f BCLK 2 Calculated by the following formula according to the frequency of BCLK n 0 5 x 10 B 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 Cal
88. mulator system will not start up correctly Note on the Target Status POWER LED f your MCU has two or more Vcc terminals the LED does not light unless power is supplied to all the terminals Note on the Target Status CLOCK LED e If the LED is not turned on check the following 1 After powering on the PC7501 before starting up the emulator debugger Make sure that the oscillator circuit board is properly installed in the PC7501 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 REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 27 of 104 M306NKT EPB User s Manual 2 Setup 2 Downloading Firmware 2 7 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 firmware is downloaded 1 2 3 4 When you use this product for the first time When the firmware has been upgraded When the emulator debugger has been upgraded When you use this product with a PC7501 which was used with another emulation probe 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 communica
89. ne v v v Connect the user system v Turning on the power supply v Check the LED display of the emulator v High performance Embedded Workshop v v Debug a program with various functions of the emulator debugger Figure 2 1 Flowchart of starting up the emulator REJ10J0519 0200 Rev 2 00 Oct 16 2006 Refer to 1 1 Package Components page 13 Refer to User Registration page 11 Install the MI6C R8C PC7501 emulator debugger Connect the PC7501 to the host machine with the LPT parallel interface cable USB interface cable or LAN interface cable Set the interface selection switch on the rear panel of the PC7501 to the using interface Connect the M306NKT EPB and the M3T FLX160 EPB of the PC7501 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 LEDs and POWER CLOCK RESET and WARNING of target status LEDs are lighting When the user system is not connected the POWER LED does not light up Start up the High performance Embedded Workshop and start up the emulator debugger Set the INIT dialog box and MCU Setting dialog box of the emulator debugger For how to use the High performance Embedded Workshop and the emulator debugger refer to each online manual 24 N SAS Page 21 of 104 M306NKT EPB User s Manual 2 Setup 2 2
90. oCESS FETCH ADDRESS 0F0GDB CONDITION taddr OFO6DB Cancel REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 62 of 104 M306NKT EPB User s Manual 3 Usage How to Use the Emulator Debugger 2 When FETCH is selected 1 Window for setting addresses Setting the address Al Set Event Status You can set eight conditions e g a specified address a specified address range etc When you have finished setting the address click OK REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 63 of 104 M306NKT EPB 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 Set in the Address tab You can set eight conditions e g a specified address a specified 41 Set Event Status Event Type address range etc After finishing the setting the address set the data Address Data Setting Range addr Address Address1 100401 Bll Address2 000000 Function Source File x Functian ACCESS READ ADDRESS 00040 CONDITION addr 000401 Carca 2 Window for setting data setting data Al Set Event Status E ie Set in the Data tab Event Type DATA ACCESS You can set eight conditions e g a specified data a specified data range etc Address Data setting X Range dato Datal Data 1 0000 Da
91. oard evaluation ys Za M3T DUMMY 100S not included FLASH MCU etc 100 pin 0 65mm pitch PRQP0100JB A foot pattern User system Figure 2 12 Connecting to a 100 pin 0 65mm pitch foot pattern Part 3 A CAUTION Note on Connecting the User System Take care not to attach a converter board in a wrong direction It may cause a fatal damage to the emulator and user system IMPORTANT Notes on Connectors of the Converter board 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 REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 36 of 104 M306NKT EPB User s Manual 2 Setup 2 9 5 Connecting to a 100 pin 0 5mm Pitch Foot Pattern Part 1 Here following 1s a procedure of connecting to a 100 pin 0 5mm pitch foot pattern on the user system using the M3T F160 100NSD not included For details on the M3T F160 100NSD not included refer to its user s manual 1 Attach the NOPACK100SD ND included with the M3T F160 100NSD to the user system 2 Attach the YQPACK100SD included with the M3T F160 100NSD to the NQPACKI100SD ND and secure it with the YQ GUIDE s 3 Attach the CN2 side of the M3T F160 100NSD to the J4 side of the M306NKT EPB 4 Attach the M3T F160 100NSD to the YQPACK100SD M3T FLX160 EPB M306NKT EPB
92. oducts listed below are necessary in addition to those contained package Get them separately Table 1 2 Other tool products required for development PC7501 NENNEN NNNM Emulator debugger M16C R8C PC7501 Emulator debugger 100 pin 0 65mm pitch QFP M3T F160 100NRB PRQP0100JB A M3T 100LCC DMS Previous code 100P6S A M3T DIRECT100S M16C 6N4 M3T 100LCC DMS MI6C 6NS T M3T DUMMY 100S Required according to a 100 pin 0 5mm pitch LQFP M3T F160 100NSD foot pattern of a user PLQPO 100KB A system Previous code 100P6Q A M3T 100LCC QSD Refer to 2 9 Connecting the User System page 31 N T e O XL al oO al oO gt c eo Q 100 pin 0 5mm pitch LOFP MI6C 6NK PLQP0100KB A MI6C 6NL_ Previous code 100P6Q A 43T 100LCC QSD M16C 6NM 128 pin 0 5mm pitch LOFP MI6C ONN PL QPO128KB A M3T F160 128NRD Previous code 128P6Q A For purchasing these products contact your local distributor M3T F160 100NSD REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 14 of 104 M306NKT EPB User s Manual 1 Outline 1 3 System Configuration 1 3 1 System Configuration Figure 1 1 shows a configuration of the M306NKT EPB system Host machine interface 1 Emulation probe LPT USB or LAN M306NKT EPB LV yl 9797959799 pow Shh Py y 4 b Bs C A UY fie Figure 1 1 System configuration 1 Emulation probe M306NKT EPB this product This is an emulation probe for the MI6C 6N Group M
93. 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 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 REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 101 of 104 M306NKT EPB User s Manual 6 Maintenance and Guarantee 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
94. otentially 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 T 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 M306NKT EPB User s Manual Preface Preface The M306NKT EPB is an emulation probe for The MI6C 6N Group M16C 6N4 MI6C 6N5 MI6C 6NK M16C 6NL M16C 6NM M16C 6NN The M306NKT EPB is used by connecting to the PC7501 emulator main unit This user s manual mainly describes specifications of the M306NKT EPB emulation probe and how to setup it For details on the emulator main unit and emulator debugger which are used with the M306NKT EPB refer to each product s user s manual All the components of this product are shown
95. playing break points in the program window of the emulator debugger shows the following breaks 1 Address match break This is a debugging function which breaks a program using the address match interrupt function of the MCU immediately before the system executes an instruction at a specified address The instruction at the preset address will not be executed 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 1s executed Notes on Software Breaks e 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 You can neither set nor cancel a software breakpoint in the internal ROM area of an MCU during user program execution while you can set or cancel it in the internal RAM area of an MCU or an area where chip select CS3 to CSO are set to IN
96. pper cover and secure the four screws of the PC7501 A CAUTION Note on Replacing the Oscillator Circuit Board Always shut OFF power when removing the upper cover or replacing oscillator circuit board Otherwise internal circuits may be damaged REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 44 of 104 M306NKT EPB User s Manual 2 Setup 3 Using the Internal Oscillator Circuit Bare Board To use the emulation probe at a frequency you like build a desired oscillator circuit on the included OSC 2 oscillator circuit bare board Figure 2 20 shows an external view of the OSC 2 oscillator circuit bare board and where the connector pins are located Figure 2 21 shows the circuitry of the oscillator circuit bare board OSC 2 Use the number of oscillator circuits recommended by the oscillator manufacturer GND Oscillator output GND VCC Xl 5 08mm pitch 2 pin oscillator X2 2 54mm pitch 2 pin oscillator IC1 Inverter Unbuffer X3 2 54mm pitch 3 pin oscillator Figure 2 21 Circuits of the oscillator circuit bare board OSC 2 REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 45 of 104 M306NKT EPB User s Manual 2 Setup 2 11 3 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 Xou
97. r should be open Choose External in the emulator debugger to use this clock 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 converter board and other devices are used between the evaluation MCU and the user system It is same for sub clock oscillator circuits Xcm and Xcour Evaluation MCU Figure 2 23 Circuit in which oscillation does not occur 2 11 4 Using the Internal Generator Circuit The dedicated circuit in the PC7501 can generate any arbitrary frequency specified by the emulator debugger and it can be supplied as a main clock It does not depend on either the oscillator circuit board in the PC7501 or the oscillator circuit on the user system If you want to debug programs without the user system or change a frequency temporarily you can check its operation before purchasing an oscillator If you want to use the internal generator circuit in the PC7501 as a main clock choose Generate in the emulator debugger and specify a frequency you like to use this clock Although you can change a frequency between 1 0 and 99 9 MHz by 0 1 MHz for the PC7501 do not specify a value exceeding the maximum input frequency of the Xw of an MCU IMPORTANT Notes on Using the Internal Generator Circuit The internal generator cir
98. refore the electrical characteristics of these ports differ from those of an actual MCU 8 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 BHEZ while this product does not 9 Status of a data bus In stop or wait mode actual MCUS retain a preceding status of a data bus while with this product a data bus is floating 10 Operation after releasing the reset After releasing the reset for about max 380 cycles a program to control the emulator will be executed Note that this will be included in the user program execution time and tracing result Note on RESET Input A low input to pin RESET from the user system is accepted during the user program execution only while the RUN status LED on the PC7501 s upper panel is lit Note on RDY Input Be sure to input L to pin RDY of the user system during the user program execution when the RUN status LED on the PC7501 s upper panel is lit Inputting L to pin RDY during the user program is being stopped may cause a malfunction of the emulator Note on HOLD Input Be sure to input L to pin HOLD of the user system during the user program execution when the RUN status LED on the PC7501 s upper panel is lit Inputting L to pin HOLD during the user program is being stopped may cause a malfunction of the emulator Note on NMIZ Input A low input to p
99. rollable If you check Debug the program using CPU Rewrite Mode in the MCU tab of the Init dialog box of the emulator debugger you cannot use the following functions 1 Setting software breakpoints in an internal ROM area 2 Executing COME in an internal ROM area In CPU rewrite mode do not stop the program And do not single step an instruction shifting to CPU rewrite mode The emulator will be uncontrollable in CPU rewrite mode To reference data after executing CPU rewrite stop the program at other then a rewrite control program area and use the memory window etc As the following interrupt vectors are used by the emulator system the read data is different from expected value 1 BRK instruction FFFEAh FFFE7h 2 Address match FFFE8h FFFEBh 3 Single step FFFECh FFFEFh 4 DBC FFFF4h FFFF7h Notes on Address Match Interrupts When you use the address match interrupt function in a user program uncheck Enable the Address Match Interrupt Break Function in the MCU tab of the Init dialog box of the emulator debugger Thus normal software breaks are used for the internal RAM and ROM areas of an MCU Do not set a software break at an address where an address match interrupt occurs Otherwise a user program may be run out of control Set a software or hardware break in the top address in address match interrupt processing When you single step an address where an address match interrupt occurs the progr
100. rror is detected not detected in the self check Frequency of errors always frequency 3 Problem REJ10J0519 0200 Rev 2 00 Oct 16 2006 24 NE S AS Page 100 of 104 M306NKT EPB 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 disconnect 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 nadequate user s system or misuse
101. rupt See MCU specifications When the clock is supplied from an external oscillator check that the oscillator circuit in the user system 1s oscillating properly Check that power 1s properly supplied to the user system and that the user system is properly grounded 241 N SAS Page 98 of 104 M306NKT EPB User s Manual 9 Troubleshooting 3 Errors Occur at Emulator Debugger Startup Table 5 3 Checkpoints of errors at debugger startup Checkpoint ERROR 16224 Check that the NQPACK etc mounted on the user system is soldered Target MCU is uncontrollable properly Execute the RESET command Check that the connector is installed properly to the user system In memory expansion mode or microprocessor mode check pins RDY and HOLD are at H level REJ10J0519 0200 Rev 2 00 Oct 16 2006 24 NE S AS Page 99 of 104 M306NKT EPB User s Manual 9 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 V Operating frequency MHz Operating voltage EE Clock supply to the MCU Internal oscillator External oscillator 2 Condition The emulator debugger starts up does not start up The e
102. s area Flash ROM of MCU Max operating frequency 24MHz 0 wait 1 wait 2 Debug Option checked Access area Emulation memory of the PC7501 Max operating frequency 10MHz 0 wait 1 wait Because the number of write erase cycles of the internal flash ROM of the MCU is limited it must be replaced at the end of its service life e If the following errors occur frequently when downloading a program replace the MCU board 1 Flash ROM erase error occurred ERROR 16258 2 Flash ROM verify error occurred ERROR 16259 Note on Debugging in Memory Expansion Mode and Microprocessor Mode During debugging in memory expansion mode or microprocessor mode with this product the emulation memory can be allocated The emulation memory can be specified up to 4 areas by 4MB in the MAP tab of the MCU setting dialog box of the emulator debugger Each maximum operating frequency is as follows Maximum operating frequency at 5 0V 0 wait wait 2 wait 3 wait Maximum operating frequency at 3 0V 0 wait wait 2 wait 3 wait REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 94 of 104 M306NKT EPB User s Manual 4 Hardware Specifications IMPORTANT Notes on Debugging in CPU Rewrite Mode When you debug an MI6C 6N Group M16C 6N4 MI6C 6N5 MI6C 6NK MI6C 6NL M16C 6NM M16C 6NN MCUs in CPU rewrite mode do not change the block 0 area FF000h FFFFFh of the flash memory Otherwise the emulator will be uncont
103. 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 e 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 Before setting up this emulator and connecting it to other devices turn off power or remove a power cable to prevent injury or product damage Warnings to Be Taken for This Product 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
104. sing 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 R8C PC7501 Emulator debugger V 1 01 Release 00 or later 2 M3T PD30F V 2 20 Release 1 or later Note on Selecting the MCU File e Select the MCU file M16C6NK mcu at the startup of the emulator debugger Note on Malfunctions in the PC7501 System e 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 Downloading Firmware Before using this product for the first time it is necessary to download the dedicated firmware emulator s control software installed in the flash memory in the PC7501 Please note that to do this it is necessary to start up the emulator main unit in maintenance mode For downloading firmware see 2 7 Downloading Firmware page 28 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 the power is shut off unexpectedly redownlo
105. spite the interrupt request because the request bit of the highest priority interrupt factor enabled is cleared For this malfunction when the reading out to address 00000h or 00001h is generated excluding the interrupt the WARNING LED yellow of the PC7501 s upper panel lights up to alarm When this LED lights there is a possibility of wrong read access therefore check the user program REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 17 of 104 M306NKT EPB User s Manual 1 Outline 1 4 Specifications Tables 1 5 and 1 6 list the specifications of the M306NKT EPB Table 1 5 Specifications of the M306NKT EPB 1 2 Applicable MCU M16C 6N Group M16C 6N4 M16C 6N5 MI6C 6NK MI6C 6NL M16C 6NM M16C 6NN Applicable MCU mode single chip mode Memory expansion mode Microprocessor mode Maximum operating frequency 24MHz when using PLL Applicable power supply 3 0 5 5V Emulation memory 1 512KB 4KB for internal ROM of MCU OF000h O0FFFFh 80000h FFFFFh maximum operating frequency 24MHz 0 wait When Disable the Internal Flash ROM is checked in the MCU tab of the emulator debugger s MCU Setting dialog box it is 10MHz 2 31KB for internal RAM 00400h 07FFFh maximum operating frequency 24MHz 0 wait 3 CS3 CSO0 area Possible to allocate by 4KB Maximum operating frequency at 5 0V 0 wait 7 0MHz wait 20 0MHz 2 wait 3 wait 24 0MHz Maximum operating frequency at 3 0V 0 wait 6 0MHz wait 17 0MHz 2 wai
106. ssor mode to be set When setting memory expansion mode or microprocessor mode pins RDY and HOLD of the user system should be H REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 54 of 104 M306NKT EPB User s Manual 3 Usage How to Use the Emulator Debugger 2 MAP tab Specifying the emulation memory allocation MCL Setting N Sets the memory area assigned to the emulation memory by 4KB Up to MCU MAP Flash Clear four areas can be set An area set to INTERNAL will be allocated to the emulation memory Emulation Memory Allocation by selecting the check box An unchecked area or an unset area will be SH coo FFF INTERNAL E allocated to external area Not allocated area is regarded as external Luc fon FFF INTERNAL x area frat Toon ere INTERNAL The setting is effective only in the CS3 CS2 CS1 and CS0 The aca m ee amr maps of SFR internal ROM and RAM are set automatically rea 4 D VUE E This setting is effective only in the area C53 C527 CS1 and CSO Not allocated area is regarded as EXTERNAL The maps of SFR internal RAM and internal ROM are set automatically Cancel Hep Do not show this dialog box again 3 Flash Clear tab setting to clear the MCU s internal flash ROM E x Specify whether or not you want the MCU s internal flash ROM to be MCL Setting MCU MAP Flash Clear cleared when downloadin
107. t 3 wait 24 0MHz Clock oscillator Xm Xour 1 to 16MHz Internal oscillator circuit board Switchable to external oscillator input or internal generator circuit XCIN XCOUT 32 768kHz Internal oscillator circuit board Switchable to external oscillator input Basic debugging functions Download Address match break max 8 points 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 256K 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 4 096 bytes 256 bytes x16 Data last access result Hardware break function 8 points Execution address bus detection interrupt external trigger 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 8 192KB 256KB x 32 blocks External trigger input event output External trigger input MCU dependent voltage CMOS level x8 or event output break x1 event x7 REJ10J0519 0200 Rev 2 00 Oct 16 2006 24 NE S AS Page 18 of 104 M306NKT EPB User s M
108. t for Repair ccccccceccccesccceeseeceeeeceeeeeceececeecesseeeessaeeeseaeeseasesseaeesseueeesseeeesaneessaases 102 REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 10 of 104 M306NKT EPB User s Manual User Registration User Registration When you have purchased 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 regist_tool renesas com REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 11 of 104 M306NKT EPB User s Manual Terminology Terminology Some specific words used in this user s manual are defined as follows Emulator system This means an emulator system built around the PC7501 emulator The PC7501 emulator system is configured with an emulator main unit emulation probe host machine and the integrated development
109. t nac vot Denon du cua on ent toa sees ceti qua quta eai 47 OMNIUM doo mmm 47 Ike IMC Sei DIOG BOK RC 53 3 1 3 Checking Connections of the Emulator SyStem cccccccccseeeeceeeeeeeeeeeeeesaeeeeesseeeeeaeeseeseeeeesaeeeeeeeas 56 3 2 Editor Source VV INOW secsi ann NP OS Sade U at sure EVER ERA EXE EE sha vies EE EE nite dabo S dE vUa aM op SE GU da uaa 57 So Fod am EXECU O NNI 58 3 3 Hardware Breakpoint Setting WiINGOW ccccccseecceceeeeeeeseeeeeeeeeeeeeeeeeeeseeeeeeeeeueeesaeaeeessaeeeesseeeesaeeeesaeneees 62 SESAME VN OU tc OE ET 66 3 6 RAM Monitor Window cccccccsecccececeeees cece eeeee cece eeeeeeeeeeeseeeeseeeseeeeseueeseeeeseeesseeseeesaueeseaeesaeesueessueeaeeeeaes 70 4 Hardware Specifications cccccccccccesccceeeeeceneeeceeceeeeneessaeceseaeeeseaeeeseaeeseceeseeessaeeessaeeeseaeeseeesseeessueeessaeeeseasessags 71 4 1 Target MCU Specifications seeeeessseeessseeeseeeeee nennen nennen nennen nnne nn nseu inns snas a sa sssa sanas nasa sra a a sara n 71 Bi ACES uarie NT PTET X 9 72 4 2 1 Operation Timing of Memory Expansion Mode and Microprocessor Mode Vcc125V 72 4 2 2 Operation Timing of Memory Expansion Mode and Microprocessor Mode Vcc123V T 4 3 Differences between the
110. ta 2 anon Access READ vask Setting the access condition You can set three conditions e g read write and read write When you have finished setting the data and access condition click OK ACCESS READ ADDRESS 000000 CONDITION taddr 000000 data 0000 Cancel REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 64 of 104 M306NKT EPB User s Manual 3 Usage How to Use the Emulator Debugger 3 Example Data Settings Setting events for wordwise accesses to the even addresses STE W A0 20E8h A0 5423h Cycle Label Address Data BUS BRE BIU ROW RPT CPU Address Data BUS BHE BIU R M RYT CPU UU23 OO20E8 5423 16b 0 D ON High order and low order data effective Setting events for wordwise accesses to the odd addresses STE W A0 20E5h A0 AB79h els Label Address Data BUS BHE Ti R W RAT CPU CB 00021 2 ES F946 16b 1 0000 20EB 83 B 16b f M CB Odd address high order data effective Even address low order data effective Setting events for wordwise accesses to the even addresses STE B ROL A1A0 ROL E5h A 1 0000h A0 20E2h Dvcle Label Address Data BUS BHE BIU EN RWT CPU Dg22 UOFOEY QUES 16b 1 DB CB Low order data effective setting events for wordwise accesses to the odd addresses STE B ROL A1A0 ROL E6h A 1 0000h A0 20E3h UUYUES EBUU 16b JU High order data effective vcle Label Address Data BUS BHE T e AT CPI 0002 0 CB
111. the flexible cable for connecting to the emulator main unit and emulation probe excessively The cable may cause a break 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 b If the emulator malfunctions because of interference like external noise do the following to remedy the trouble 1 Press the RESET button on the PC7501 s front panel 2 If normal operation is not restored after step 1 shut OFF the emulator once and then reactivate it Caution to Be Taken for External Trigger Input Voltage Keep an external trigger input voltage of the emulator main unit less than a Vcc2 voltage Overvoltage may cause damage to the internal circuits REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 8 of 104 M306NKT EPB User s Manual Contents Contents Page xi E 3 8g 619 9 WR NOR 4 miserie me diei MN m Es 6 Sie TIR eea e E UY 9 Si ais e Ez Mile OTT Orr 11 PCNA CIO GY mr M 12 ES r N 13 1 1 Le cie A38 o nieedur 13 1 2 Other Tool Products Required for Development
112. tion 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 PD7 PD9 S3C SAC S5C and S6C 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 D13 INT3 P1 6 D14 INT4 and P1 7 D15 INT5 With this product regarding pins PI 5 DI3 INT3 P1 6 DIA INT4 and P1 7 DIS 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 Input Level for KIO to KI3 e 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 the 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 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
113. tions interface cable is unexpectedly pulled out 2 7 2 Downloading Firmware in Maintenance Mode Download firmware in the special mode called maintenance mode as explained here following The user system must not be connected when you download the firmware 1 Set the interface select switch on the rear panel of the PC7501 to the LPT side and connect the LPT parallel interface cable to the PC7501 and the host machine 2 Within 2 seconds of activating power to the emulator press the system reset switch on the PC7501 front panel to switch to maintenance mode When the emulator is switched to maintenance mode the System Status SAFE LED begins to flash 3 Start up the emulator debugger When settings in the Init dialog box are complete the dialog which urges to download the firmware will appear Download firmware following messages Required time for downloading the firmware is about 60 seconds POWERO SAFEO ERRORO SYSTEM STATUS STATUS C POWER C CLOCK O RESET RUN C WARNING TARGET STATUS QO POWER CLOCK Q RESET Q RUN Q WARNING TARGET STATUS WARNING TARGET STATUS Download completed Figure 2 5 LEDs during firmware download in maintenance mode IMPORTANT Note on Downloading Firmware Do not shut OFF power while 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 REJ
114. to Use the Emulator Debugger 1 MCU tab Specifying the MCU file opecifying the MCU file u Eal Specify the MCU file for the target MCU Init M16C RBC PC7501 Emulaor EET MC Debugging Information Reset Emulator Resume 1 Click the Refer Button MOGLI Refer 2 Select MCU File dialog box will be displayed Select M16C6NK MCU fe LPT C LAN C USB Type lauro o H Targed 1 0 Address m sh Self Chec Debug Option M Enable the Address Match Interrupt Break Function Debug the program using the GPU Rewrite Mode The MCU file contains the information specific to the target MCU Next Hide Select MGU File 31 xl Look in icy McuFiles kn MT6C26A mou ETIMTSCSNK mcu jan M16C28 meu ai M1GOBVE mcu jan M16C29 meu s MTGCE2P meu aa M18CS2P 512 mcu sa MT6CBNA mou Filename MI6CENK mcu File of type MCU Files amp mcu Cancel 4 Init MISC Ot PEE ET y gei The specified MCU file is displayed at the MCU area field of the MOU Debugging Informatian Reset Emulator Resums MCU tab MOL MI6CENK meu Refer v LPT C LAN C USB Type AUTO d Tage VFO Address 378h Self Check Debue Option V Enable the Address Match Interrupt Break Function Debug the program using the GPU Rewrite Made Cancel Help m Next Hide REJ10J0519 0200 Rev 2 00 Oct 16 2006 241 N SAS Page 48 of 104 M306NKT EPB User s Manu
115. tput delay time 0 See left tdz RD AD Address output floating start time ee 15 Calculated by the following formula according to the frequency of BCLK 0 5x10 porem rn ns f BCLK 2 Calculated by the following formula according to the frequency of BCLK n 0 5 x 10 B f BCLK ns n 2 for 2 wait 3 Calculated by the following formula according to the frequency of BCLK 0 5 x10 25 jns f BCLK 4 Calculated by the following formula according to the frequency of BCLK 0 5 x10 FfBCLK REJ10J0519 0200 Rev 2 00 Oct 16 2006 24 N SAS Page 74 of 104 M306NKT EPB User s Manual 4 Hardware Specifications Read timing lt tcyc BCLK Y j i b td BCLK CS th BCLK CS X 2 x th RD CS tac3 RD DB td AD ALE ALEX ADi z X DBi A a tdz RD AD a tsups LE UN RD DB t td BCLK AD td AD RD th BCLK AD BHE td BCLK ALE lt gt a ALE th BCLK ALE x th RD AD td BCLK RD X A Write timing tcyc BCLK td BCLK CS oO lt lt th BCLK RD th BCLK CSj lt gt td AD ALE th ALE AD lt 7 tacui DB th WR CS th BCLK DB lt gt T ADi PY DBi S td BCLK AD xe X
116. u Tokyo 100 0004 Japan
117. uded On board evaluation HQPACK128RD YQ GUIDE x4 not included YQPACK128RD NQPACK128RD FLASH MCU etc These corners are not round 128 pin 0 5mm pitch PLQP0128KB A foot pattern No 1 pin These four items are available in one package User system Figure 2 15 Connecting to a 128 pin 0 5mm pitch foot pattern A CAUTION Note on Connecting the User System Take care not to attach a converter board in a wrong direction It may cause a fatal damage to the emulator and user system IMPORTANT Note on Connectors of the Converter board The connectors of the M3T F160 128NRD are guaranteed for only 50 insertion removal iterations REJ10J0519 0200 Rev 2 00 Oct 16 2006 24 NE S AS Page 39 of 104 M306NKT EPB User s Manual 2 Setup 2 10 Switch Settings 2 10 1 A D Conversion Bypass Capacitors There is a foot pattern on the M306NKT EPBM board for mounting bypass capacitors for the A D conversion circuit near the MCU Mount suitable bypass capacitors as occasion demands Figure 2 16 shows where they are installed and the configuration of this product Component side of the M306NKT EPBM
118. ugger 1 When Internal is selected A clock generated by the oscillator circuit board in the PC7501 is supplied It is continually supplied regardless of the status of the user system clock and that of the user program execution 2 When External is selected A clock generated by the oscillator in the user system is supplied It depends on the status of the oscillation on off of the user system 3 When Generated is selected A clock generated by the dedicated circuit in the PC7501 is supplied to the evaluation MCU It is continually supplied regardless of the status of the user system clock and that of the user program execution Note on Operating Frequency You can not use this product with a main clock X y Xourt less than IMHz To use it with a main clock less than 1MHz contact your local distributor Note on Timeout Setting e If you download execute or single step a program at a low operating frequency a communication timeout error may occur Execute the command shown below in the Script Window after starting the emulator debugger Command Settimeout 300 300 Once this command is executed it remains effective the next time you start the emulator debugger Therefore you do not need to execute this command again If the error still occurs in this setting contact your local distributor Note on Stop and Wait Modes Do not single step an instruction shifting to stop or wait mode It may cause communication errors
119. ugging Information Emulator Seript Compiler Jwsowa ANceC Object Format EEE 65 cJ Help Next Hide REJ10J0519 0200 Rev 2 00 Oct 16 2006 Specifying the compiler and the object format Specify the compiler you are using and the format of the object file output by the compiler To alter 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 method for storing debug information By default the on memory is selected When selecting the on demand method check the On Demand check box 241 N SAS On Memory Debugging information is stored in the internal memory of your computer This method is suitable when the load module user program size is small On Demand Debugging information is stored in a reusable temporary file on the hard disk of your computer Because the stored debugging information is reused the next time you download the same load module it can be downloaded at a high speed This method is suitable when the load module user program size is large Page 51 of 104 M306NKT EPB User s Manual 3 Usage How to Use the Emulator Debugger 3 Emulator tab Specifying the target clock E l T Specify the clock sources supplie
120. upplied from AC adapter to the emulator PC7501 Here following explains how to connect the AC adapter 1 Turn OFF the power to the PC7501 2 Connect the DC cable of the AC adapter to the PC7501 3 Connect the AC power cable to the AC adapter 4 Connect the AC power cable to the outlet CAUTION Cautions for AC Adapter Use only the AC adapter included in PC7501 package The included AC adapter is for PC7501 Do not use it for other products Before installing this equipment or connecting it to other equipment disconnect the AC power cable from its outlet to prevent injury or accident The DC plug on the included AC adapter has the below polarity The included AC adapter has no power supply switch The AC adapter is always active while connecting the AC power cable Check if the power is supplied by the LED of the AC adapter REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 25 of 104 M306NKT EPB User s Manual 2 Setup 2 6 Turning ON the Power 2 6 1 Checking the Connections of the Emulator System Before turning the power ON check the connection of the interface cable with host machine PC7501 emulation probe and user system 2 6 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 c
121. urrent 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 e The voltage of the user system should be as follows 3 0 V Vece E 5 5 V Do not change user system power supply voltage after power has been activated REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 26 of 104 M306NKT EPB User s Manual 2 Setup 2 6 3 LED Display When the Emulator Starts Up Normally Figure 2 4 shows upper panel LED lighting status when the emulator started up properly Check it when starting up the emulator system If this LED does not light check the voltage of the user system Check that the power is supplied to all the power terminals When the user system is not connected this LED does not light ERROR WARNING SYSTEM TARGET STATUS STATUS LED display when the emulator starts up normally Figure 2 4 LED display when the power turned on PC7501 IMPORTANT Note on Memory Expansion or Microprocessor Mode To use memory expansion or microprocessor mode be sure to set pins RDY HOLD and NMI so that they are not held low at startup Otherwise the e
122. ware break etc will be improved because the r MCU Setting MCU Status 34 I a program is downloaded in the emulation memory in the PC7501 MOL MTBC BNK AMEE However maximum operating frequency is 10MHz The box is unchecked by default Processor Mode Sinele Chip Mode HOL Ler RADY H Ext Data Bus Width xternal Data Bus Wi HC ONE Memory Space Expansion HTE p PMID bO of DODDDSH is T JY PMI b3 of DODDDSH is T Debug Option Disable Internal Flash ROM for 10MHz or below operating frequency Donat show this dialog box again 3 MCU Status Referring to the MCU Status eerie xJ It shows the status of each MCU pin Check it to see if the MCU status MCU MAP Flash Clear matches the selected processor mode NC means that the pin status MGU Setting epe is indeterminate MCL M18C BNK M MIS H Processor Mode Single Chip Mode HOLD RD H E GNVes NG Memory Space Expansion Normal Mode BYTE B M PMI 63 of ODDDDBHS is T PMID b0 of DODDCBH is T External Data Bus Width fale Debue Option Disable Internal Flash ROM for 10MHz or below operating frequency IMPORTANT Notes on Selecting a Processor Mode The MCU status is shown in MCU Status of the MCU setting dialog box Check that it matches to the proce
123. yc gt amp td BCLK AD E th BCLK AD a S ADi m BHE A 3 A td BCLK ALE as th BCLK ALE th RD AD KS td BCLK RD ALE RD Y tac2 RD DB lt gt th BCLK RD Hi Z DBi n tsu DB RD th RD DB Write timing BCLK TEE I 4 th BCLK CS S ms CSi Y tcyc lt gt 2 th WR CS td BCLK AD th BCLK AD ADi 4 E I i BHE f K td BCLK ALE 3 th BCLK ALE th WR AD ALE iN td BCLK WR C th BCLK WR WR WRL WRH A j td BCLK DB th BCLK DB DBi Hi Z aM Z i I X J td DB WR th WR DB Figure 4 1 Memory expansion mode and microprocessor mode 3 wait accessing external area REJ10J0519 0200 Rev 2 00 Oct 16 2006 RENESAS Page 73 of 104 M306NKT EPB 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 Actual MCU This mm symbol Item ns ns Min Max Min Max x eee MBCUCAD Adress ouput hola tine
Download Pdf Manuals
Related Search
Related Contents
KR 16 arc HW, KR 16 L8 arc HW Manuale di installazione e manutenzione Dispositivo Kalorik - Team International Group Egg Cooker USK EK 28441 User's Manual Pensez à la VAE, Lenovo IdeaPad S510p Copyright © All rights reserved.
Failed to retrieve file