Home
R0E436640CPE00 User`s Manual
Contents
1. je oc Ww z O A Hf zi fi Hof xi 3 8 Oe g o E LE dd oii mM HG pf gt 1 7 E 3 DU 1 wii T ie zis e 3 2 tos E i a 0 0 Be DL o a D A UU L o G t o o 7 o il z DO DC RENESAS Figure 2 14 Jumper switches on the ROE436640EPBMO Table 2 5 Setting jumper switches on the ROE436640EPBMO Switch No Switch name How to set Description INT POWER Connects the Vcc pin of the evaluation MCU to the internal power supply same voltage as Vcc on the MCU of the emulator Use this setting for ordinary debug POWER 74 POWER select Factory setting JP1 jumper INT Ext Connects the Vcc pin of the evaluation chip to the user
2. LED4 Clock oscillation CLOCK RESET P RESET STATUS io LED5 MCU RESET pin RESET 3 C LED6 Program execution RUN MADE IN JAPAN S PA Figure 1 2 Names of the LEDs on the upper panel of the ROE436640CPE00 1 System Status LEDs The system status LEDs indicate the emulator s power supply and operating status etc Table 1 2 lists the definition of each system status LED Table 1 2 Definitions of the system status LEDs Name Number Color Status Meaning POWER LED1 Orange ON Power is supplied to the emulator OFF Power is not supplied to the emulator SAFE LED2 Green ON Emulator system has started normally OFF Emulator system has not started normally REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 16 of 102 R0E436640CPE00 User s Manual 1 Outline 2 Target Status LEDs The target status LEDs indicate the target MCU s operating status and power supply Table 1 3 lists the definition of each target status LED Table 1 3 Definitions of the target status LEDs Name Number Color Status Meaning POWER LED3 Orange ON Power is supplied to the target MCU OFF Power is not supplied to the target MCU CLOCK LED4 Green ON The target MCU internal clock is oscillating OFF The target MCU internal clock is not oscillating RESET LEDS Red ON Target MCU is being reset or reset signal of the user system is held low OFF Target MCU is not bein
3. TXD2 PWM TxD TMOW HFFe2 PMR3 POF27 POF26 poras POF24 poros Evaluation chip HFFFO syscri ssBY stsa srsi srso NESEL HEFFS IENRI IENDT IENTA enwp ens f ten2 IEN1 ENO HrFFS IENR2 lentes lente enei T HEFFS In IRRDT Reta mais IRR2 IRB IRRO Herz IRR2 iRATBS iRATB2 matei HEFFA MSTCR2 MSTS3_2 MSTTBS MSTTB2 msTTB1 msTIx MSTIZ mstewm Herr mstcrs f msrse2 Address Register Bitz Bro Bits Bis Bis Br bir Bito erro ivoon T SSR RIE pe ee pavos YAA oo wor AEON MALLON O owe tou roy vy vy 2 meo FINO FER G HF7e2_ FLPWOR RITISH Y AAA AAA AAC mezas EBRO I ees er 221 m FENR J Pose E E H H ES Peres pura rors rors 7 eres pom pont roms Pons Poma roma Por Pomo Peres pore _ J Pores pores pore Ponar Poro He s6o64 iersa Poar rom Pons roma ron rom romo Hes pora poner pores pores _ 1 7 FFI swset J oros me ma o OS OS eee Tans sme RE RR E aere moro sm wstss vero usw Es CSO B gt Jus msm usem mees fusca oo To ft REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 88 of 102 ROE436640CPE00 User s Manual 4 Hardware Specifications 4 6 8 Precautions for the H8 3694 Seri
4. 00F018 0000 Pe E 23229400 REJ10J0918 0300 Rev 3 00 February 15 2007 tENESAS Page 57 of 102 ROE436640CPE00 User s Manual 3 Usage Emulator Debugger 2 Suspending and resuming trace measurement 1 Suspending trace measurement Stop Click this toolbar button to suspend the trace measurement Label Address Data R W RWT AREA STATUS MODE In progress 2 Resuming trace measurement Re Start Click this toolbar button to resume the trace measurement in Heva aaa vazu Range 065535 000000 Area Before Break File Cycle 000020 Address 001184 Time Cycle Label Address Data R W RWT AREA STATUS MODE E progress 000020 001184 OOBE RD b ROM PROG ACT 001184 OOEE RD ROM PROG ACT 001184 OOEE ROM PROG ACT 001184 OOEE ROM PROG ACT 001186 6AOB RD ROM PROG ACT 001186 6AOB RD ROM PROG ACT 001188 8000 RD ROM PROG ACT 001188 8000 RD ROM PROG ACT 00118A RD ROM PROG ACT 00118A RD ROM PROG ACT 008000 RD ROM DATA ACT 008000 RD ROM DATA ACT 001157 RD ROM PROG ACT 001180 RD ROM PROG ACT 00118E ROM PROG ACT 00118E ROM PROG ACT 00118E ROM PROG ACT 00118E ROM PROG ACT 001190 ROM PROG ACT 001190 ROM PROG ACT REJ10J0918 0300 Rev 3 00 February 15 2007 ENESAS Page 58 of 102 ROE436640CPEO00 User s Manual 3 Trace point setup window 1 Opening the trace
5. 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 95 Check the package components User registration Install or upgrade the C compiler and emulator debugger Set the MCU power voltage selection jumper JP2 Connect the USB interface cable Connect the power supply for the emulator Connect the user system Turning on the power supply WII v Check the LED display of the emulator Y Start up the emulator debugger from the High performance Embedded Workshop y Set the operating environment of the emulator debugger Y Debug a program with various functions of the emulator debugger Refer to 1 1 Package Components page 14 Refer to User Registration page 12 Install it from the included CD ROM Select a power voltage supplied to the target MCU Connect the USB interface cable to the USB interface connector J2 of the emulator and the USB port of the host machine Connect a power supply to the power connector J1 Power supply should be 5 0 V 5 2 A Connect the user system as occasion demands Turn on
6. Bit Bite Bits Bit4 Bis Bitz Bt Bro HO Joss e eMe oe do ed o Hao de Pe ll Rd dl 4 e Pf HE92 o E Y e o 2 gt os SIS H lee HEFEO PMR IRG3 IRQ2 Rai Rao IXD2 i EEE SA S MOW Evaluation chip HFFE2 PMR3 POF27_ POE POF25 Por24 Pora SAT SA CHFFF2 IEGRI NMEG 163 162 161 eco R ENRI ENDT JENTA IENWP TENS IEN2 ENT ENO CAFRES IENRZ TENTS TeNTeS TEST 7 MSTIW MSTTA LEES MSTCR2 MSTS3_2 MSTIBS MSTTB2 MSTTBT MSTIX MSTIZ MSTPWM HEES meters gt o o gt TVSTS 3 Address Register Bu B6 B5 BM ot Ble Bm Bw Sp rumen owe ou rou J ev LM IE Ir EG romero ren OI HO HO PE HO O HS ers 22 O HH gt ees ceo _ e er LES Pure TS Tae E E HFFEO S IU mos _ mao es ee S ES ee ss laa SNSeL J OS DION ME MM MAO __ eee emp 11 cs PJ co THrrr4 TeNRi_ TeNDT E RS ens E HES ERES Teres MSTIC MSTSS MSTAD MSIND MSTTW MSIIV FERA __ ___ HEES AAA REJ10J0918 0300 Rev 3 00 February 15 2007 tENESAS Page 78 of 102 ROE436640CPE00 User s Manual 4 Hardware Specifications 4 6 3 Precautions for the H8 3687 Series 1 The hardware manual says Initial value O These are reserved bits When read they always show the value 0 On the other hand the c
7. H dbscte pere ect 0 void Pouer UN Reset void 2 lowsree 3 resetprec E sample hee set_imask_cer 1 EB sbrke _INITSCT EE Download modules DE abs 77 _CALL_INIT Remove th E Dependencies Bh _INIT_IOLIBQ Use SIM I E stackscth 77 errno 0 Remove th srand 1 Remove th _s ptr NULL Remove th HardwareSetup Remove th set imask cor 0 gt maint _CLOSEALL Use SIM 1 CALL ENDC Remove th nara PM EP da Ley lt sample h8e lt gt resetprec REJ10J0918 0300 Rev 3 00 February 15 2007 ENESAS Page 50 of 102 ROE436640CPEO00 User s Manual 3 Usage Emulator Debugger 3 6 Hardware Break Point Setting Window 1 Break event setup dialog box 1 Opening the hardware break point setup dialog box Hardware Break Point Clicking this button opens the hardware break point setup dialog box Or you can select H W Break points from Break of View menu for the same effect 2 Hardware Break Point Setting Window in initial state H W break point Setting Window in initial BH Break Point Setting ioj x state 8 Select the Enable H W Break check box and this break PASS E ADDR AUUESOMDITON a O points function will be enabled allowing you to set hardware break Detail E Enable Detain 3 Opening the break event setting dialog box Setting Break Event eak Point Setting Click the event
8. T N ao ES ES I T N LQ lO T N oo ala I T q co N H F793 Evaluation chip H F79B Ejs dE HFFCO Bow TCWE erp gt gt 7 El HEFES POE pores Pora pores HFFEA PORTS HEFES PCR26 HEFEA PCR76 HEFEB PCRES HEFEE gt 7 Es 2 a gt HEFFS Sus TSS _ HEFF7 _IRR2 ARTS IRATB2 IRATB1 Lo o THFFFA MSTCR2 MSTS3_2 MSTTBS MSTIES MSTTST MSTIX MSTIZ MSTPWM ares wstora o Juss Ean TRT for TT TT HE IES Mest MINS MESTRES FEZ TENDE Wr PAWREJTOCROW rama Wa AA GE a owe ESO rou pe A Hra Ls TER CS E CT O O O E peros EerT ER ceo 9 cos y too y cee cor c0 rap TS ES Il lo Lo A H8 36077 HEFCO TESEWD Bowl TCWE TCSRWE WOON Bow WAST HFEDE RNET gt 2 HTHH S eT ee mre RS JAJA oa EE a EA HEFES PORT PORT PORTE PORTS PORTA PORTO HFFES as Sa E Cr PCR20 HFFEA PCR7 T Te TE PCR74 PCR7T PCR70 HFFEB Pons POR f Pores Por OS TI HFFEE NSL OO PA cerrara HEES ENE p ENTE ee O HEFF7_ _IRR2_ SITE AA HA HFFFS MSTARI A Meme MSTS3 MSTAD 4 MSTIV MSTIA HFFFA WSTCR2 METZ Lo qrsm P MSTIZ MSTPWM HFFFB MSTCRS To o o o T Lo o Tn REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 84 of 102 ROE436640CPE00 User s Manual 4 Hardware Specifications 4 6 6 Precautions for the H8 36079 Series 1 The hardware manual says Initial value 0 These are rese
9. according to the clock used by your target MCU O Internal Emulator s internal clock e External Emulator s internal clock The option you have specified here remains effective the next time you start up REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 43 of 102 ROE436640CPEOO User s Manual 3 Usage Emulator Debugger 3 3 Starting Up the Emulator Debugger MCU Setting Dialog Box 1 MCU tab 1 Specifying the processor mode Specifying the processor mode Select the appropriate processor mode that suits your MCU Setting system For the H8 300H Series you can specify only the following processor mode Single chip Mode Single Chi 2 Referencing the MCU pin status Referencing the MCU pin status This column shows the state of each MCU pin MCU Setting NC means that the value is indeterminate REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 44 of 102 ROE436640CPE00 User s Manual 3 Usage Emulator Debugger 3 4 Checking Connections of the Emulator System Check to see that the emulator debugger has been connected correctly to the emulator D Help Tools Window RTA YAT Depas e a ar O pee eo pa lar AAA EE AENA Gal Checking connections of the emulator system E E mol Sample h8 When the emulator debugger is connected correctly to the emulator after you have finished setting up the Init dialog box and the M
10. 2 MSTTBS MsTTB2 MsTTB1 MSTIX _MSTTZ_ MSTPWM HEES Mstcr3 msrss2l Adress Register on ene bw sw e e sm bw AA T EEE DE ES REO E ed SEE EP E RT A RE RESTA RSS RR ES E PS E DS O E E EBRO Y EBO H8 36014 AAA TEA ZA A A EE DES ESB SO MS EE O ED CS EE E f ES DE DON RE E SE Do ew sf TA ES E o DA EE EH ee TE E Efe do fold m AAA REJ10J0918 0300 Rev 3 00 February 15 2007 tENESAS Page 94 of 102 ROE436640CPE00 User s Manual 5 Troubleshooting This chapter describes how to troubleshoot when this product does not work properly 5 1 Flowchart to Remedy the Troubles Figure 5 1 shows the flowchart to remedy the troubles from when power to the emulator is activated until the emulator 5 Troubleshooting debugger starts up Check this while the user system is disconnected For the latest FAQs visit the Renesas Tools Homepage http www renesas com tools Turning on emulator Upper panel LED of emulator Normal Init dialog box of emulator debugger displayed Normal MCU Setting dialog box of Not normal 1 Check the connection of power supply cable See 2 4 Connecting the Power Supply for the Emulator page 23 2 Check that the power is properly supplied to the use system See 2 6 Turning ON the Power page 25 Not normal Error displayed 1 Check the operating environment etc of the emulator deb
11. 2007 tENESAS Page 86 of 102 ROE436640CPE00 User s Manual 4 Hardware Specifications 4 6 7 Precautions for the H8 36064 Series 1 The hardware manual says Initial value O These are reserved bits When read they always show the value 0 On the other hand the compact emulator stipulates that these bits must always be set to 0 and that when read these bits show the set value H FFEO Port Mode Register 1 Bit 0 H FFE1 Port Mode Register 5 Bits 7 6 H FFE2 Port Mode Register 3 Bits 7 6 5 H FFFO System Control Register 1 Bit 3 H FFF1 System Control Register 2 Bit 6 H FFF4 Interrupt Enable Register 1 Bit 6 H FFF5 Interrupt Enable Register 2 Bits 7 6 H FFF9 Module Standby Control Register 1 Bits 7 2 0 H FFFA Module Standby Control Register 2 Bits 6 5 3 2 Although these bits in the hardware manual are reserved bits the compact emulator stipulates that these bits must always be set to 0 and that when read these bits show the set value H FFFB Module Standby Control Register 3 3 Although the hardware manual says that registers are located at the addresses shown below the compact emulator stipulates that writing to the addresses has no effect and that when read they show indeterminate values This is because no registers exist at these addresses in the compact emulator H F730 Low voltage detection Control Register H F731 Low voltage detectio
12. Clock Control Status Register CKCSR H F734 RC Control Register RCCR H F735 RC Trimming Data Protect Register RCTRMDPR H F736 RC Trimming Data Register RCTRMDR H F737 Flash Memory Control Register 1 FLMCR1 H FF90 Flash Memory Control Register 2 FLMCR2 H FF91 Flash Memory Power Control Register FLPWCR H FF92 Block Specification Register 1 EBR1 H FF93 Flash Memory Enable Register FENR H FF9B For details refer to notes on each MCUs in Notes on Using This Product 2 page 75 Note on Clock Supply to the MCU O A clock supplied to the evaluation MCU is selected by the Clock tab in the Init dialog box of the emulator debugger 1 When Internal is selected A clock generated by the oscillation circuit in the emulator is supplied to the evaluation MCU The clock is continually supplied to the evaluation MCU regardless of a status of user system clock and a status of user program execution 2 When External is selected Clock supply to the evaluation MCU depends on oscillation state oscillate off of the user system Notes on Software Breaks O Software breaks change the instruction at a specified address to a BRK H 5770 Therefore take note that when you reference the result of a trace in bus mode H 5770 is displayed O As the BRK instruction is used for the emulator do not use it in a user program REJ10J0918 0300 Rev 3 00 February 15 2007 ENESAS Page 66 of 1
13. Hardware Specifications 4 6 4 Precautions for the H8 36087 Series 1 The hardware manual says Initial value O These are reserved bits When read they always show the value 0 On the other hand the compact emulator stipulates that these bits must always be set to 0 and that when read these bits show the set value H FFE2 Port Mode Register 3 Bits 7 6 5 H FFF5 Interrupt Enable Register 2 Bits 7 6 H FFF9 Module Standby Control Register 1 Bits 7 2 H FFFA Module Standby Control Register 2 Bits 6 5 3 2 Although these bits in the hardware manual are reserved bits the compact emulator stipulates that these bits must always be set to 0 and that when read these bits show the set value H FFFB Module Standby Control Register 3 3 The hardware manual says Initial value 0 These are reserved bits When read they always show the value 0 On the other hand the compact emulator stipulates that these bits must always be set to 0 H FFF7 Interrupt Flag Register 2 4 Although these bits in the hardware manual are reserved bits the compact emulator stipulates that these bits must always be set to 0 H FFE4 Port Control Register 1 Bit 3 H FFE5 Port Control Register 2 Bits 7 6 5 H FFEA Port Control Register 7 Bits 7 3 H FFEB Port Control Register 8 Bits 4 0 5 Although the hardware manual says that registers are located at the addresses shown belo
14. 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 possible cases of misuse where a potential danger exists Therefore the warnings written in this user s manual and the warning labels attached to this emulator do not necessarily cover all of such possible situations or cases Please be sure to use this emulator correctly and safely on your own responsibility 6 This product is not qualified under UL or other safety standards and IEC or other industry standards This fact must be taken into account when taking this product from Japan to some other country REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 4 of 102 ROE436640CPE00 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 h
15. IMPORTANT Note on the A D Converter Function O Because a 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 REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 39 of 102 ROE436640CPE00 User s Manual 3 Usage Emulator Debugger 3 Usage 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 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 To connect to the H8 300H Tiny Compact Emulator select H8 300H Tiny Compact Emulator REJ10J0918 0300 Rev 3 00 February 15 2007 tENESAS Page 40 of 102 ROE436640CPE00 User s Manual 3 Usage Emulator Debugger 3 2 Starting Up the Emulator Debugger Init Dialog Box 1 MCU tab 1 Specifying the MCU file Specifying the MCU file 0H Tiny Compact Emulator Click the Refer button Debussing Information GIS A file selection dialog box will be displayed so select the desired MCU file The MCU file
16. ROM 128KB Normal mode 0000h DFFFh Advanced mode 000000h 0 1 FFFFh 2 Internal RAM 6KB Normal mode E000h EFFFh F780h FF7Fh Advanced mode FFE000h FFREFFFh FFF780h FFFF7Fh Operating voltage frequency 20MHz at 2 7 5 5 V REJ10J0918 0300 Rev 3 00 February 15 2007 tENESAS Page 64 of 102 ROE436640CPE00 User s Manual 4 Hardware Specifications 4 2 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 Notes on Internal Memory ROM RAM O The evaluation MCU mounted on this product has RAM of 6 KB and flash ROM of 128 KB For this reason the nonexistent ROM or RAM area of the target MCU may be accessed O With this product the flash ROM area of target MCU is cleared at 0000h NOP instruction when starting up the emulator Note on Unused Area O You cannot use unused areas Write signals to the areas will be ignored and values read will be undefined Notes on RESET Input A low input to pin RESET from the user system is accepted only when a user program is being executed when the RUN status LED on the emulator s upper panel is lit O The time for starting up 0 2 Vcc to 0 8 Vcc and falling edge 0 8 Vcc to 0 2 Vcc for RESET pin should be set to 1 ps or less Note on NMI Input O A low input to pin NMI from the user system is accepte
17. Y the same time r Combination K PI AND nd Bec E When you have finished setting the combinatorial event ns Enable Detar EA ENTE E st cose condition click the Set button REJ10J0918 0300 Rev 3 00 February 15 2007 ENESAS Page 55 of 102 ROE436640CPE00 User s Manual 3 Usage Emulator Debugger 3 7 Trace Window 1 Trace window 1 Opening the trace window Trace window Clicking this button opens the trace window Or you can select Trace from Trace of View menu for the same effect Trace window The trace window is used to show the results of real time devo aaa yla zm y Ranes 065535 000000 Ares Before Bresk File Oyele 000053 Address 003000 Time trace measurements It has the following four display Cycle Label Address Data R W RWT AREA STATUS MODE E 000053 003000 04 RD o ROM DATA ACT 000052 001160 3001 RD 1 ROM PROG ACT HESSE 00116C 3001 RD 0 ROM PROG ACT modes 000050 00116E 6B02 RD ROM PROG ACT Bus mode 000049 00116E 6B02 RD ROM PROG ACT S E 000048 003001 08 RD ROM DATA ACT Bus information per cycle can be inspected The contents 000047 003001 08 RD ROM DATA ACT THU 901170 3002 RD ROM ACT are displayed in order of execution paths 000045 001170 3002 RD ROM ACT i v 11 MP B H 04 R1L 000044 001172 A904 RD ROM ACT Disassemble mode 000043 001172 A904 RD ROM A 1174 BNE OMG 16
18. emulator 2 If normal operation is not restored after step 1 shut OFF power to the emulator once and then reactivate it REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 8 of 102 ROE436640CPEO00 User s Manual Contents Contents FM Le isi i i vc etl ca AAN A A i Ut ahi aids Caen A 3 Isel T 4 Precautions for Safety coi asta andian iaaa da SA Eua E bao dd AE ERAS L Ra 6 e AAA A A AA E E E O dias Dog aaa La dada ei ad cimo Sui a mae ado aca dE Lis EA add dead nd nan e usadas 9 User Registration civic e ad Au oa nada RR Aa aaa pa 12 TQPIMMINGIOGY ane case E dio sos oca danos had piada ca dle Lad bd ada ies ep ia gana 13 AAA A T I A tua nddas Susa ddi bri ah des idades Sua EE NSE SU N S SU qa de SU nad SU qu dd ud qa sta 14 1 1 le ee al ielas 14 1 2 System Configuralion is caasa siste seecctencapeduneth a q df ad ALE NORA DA DADO dA Qin a aaa do 15 1 21 System Configuration our tase ta EEE ARAL api a tada 15 1 2 2 Names and Functions of each part of the Emulator rear 16 1 3 Specifications ooo ai 19 1 4 Operating ENVIO AMEN Exec dictar ib 20 2 OUD TT 21 2 1 Flowchart of Starting Up the Emulator sees eee eee eee 21 2 2 Installing the Included Software TT 22 2 3 Attaching the Ferrite es lT 22 2 4 Connecting the Power Supply for the Emulator ee ee ee 23 2 5 Connecting the Host Machine eee eee eee eee 24 2 6 Turning ON the Power assis lt teitae sin idee end d dg aaia ed ela a
19. hereby under any patents copyrights or other intellectual property rights of Renesas Electronics or others You should not alter modify copy or otherwise misappropriate any Renesas Electronics product whether in whole or in part Descriptions of circuits software and other related information in this document are provided only to illustrate the operation of semiconductor products and application examples You are fully responsible for the incorporation of these circuits software and information in the design of your equipment Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from the use of these circuits software or information When exporting the products or technology described in this document you should comply with the applicable export control laws and regulations and follow the procedures required by such laws and regulations You should not use Renesas Electronics products or the technology described in this document for any purpose relating to military applications or use by the military including but not limited to the development of weapons of mass destruction Renesas Electronics products and technology may not be used for or incorporated into any products or systems whose manufacture use or sale is prohibited under any applicable domestic or foreign laws or regulations Renesas Electronics has used reasonable care in preparing the information included in this document but Re
20. is abnormal in the self check When an error is detected shut off the emulator and the user system and follow the steps in the Table 2 4 Table 2 4 Error display in the self check and how to remedy it LED display Problem amp Remedy The emulator system is not working properly Check that power is supplied to the emulator The emulator may be damaged Contact your local distributor A clock is not supplied to the emulator Check that the oscillator circuit board OSC 3 is attached The power is not supplied to the emulator Check that the power supply cable is connected properly Check of jumper switch settings see Table 2 3 The emulator system is not working properly The emulator may be damaged Contact your local distributor IMPORTANT Notes on the Self check O Be sure to disconnect the user system before executing the self check Use the preinstalled oscillator circuit board OSC 3 20 MHz to execute the self check If the self check does not result normally excluding target status errors the emulator may be damaged Then contact your local distributor REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 30 of 102
21. is stored in the directory in which you installed the HEW Example C Hew4 Tools Renesas DebugComp Platform PDTarget H8TinyCPE McuFiles Serial No E ss The MCU file contains the information specific to the T Self Check target MCU r Debug Option The MCU file you have selected is displayed in the MCU TT Enable the Trace Point Function section of the MCU tab Y Only an effective cycle is recorded to the trace memory S Help T Next Hide Serial No Shows the currently connected emulators in list form Select the serial No of the emulator you want to be connected 2 Using or not using the CPU rewrite mode and trace point function Using or not using the trace point function The emulator has two point events which are shared by the trace function and the hardware break function Specify whether or not to use the trace point function MCU H83664 mcu When not using the trace point function default deselect the check box In this case the events are used for the hardware break function 2 R36640 46 M026 Serial No e To use the trace point function select the check box I Self Check In this case the events are used for the trace point function The hardware break function is disabled r Debug Option Enable the Trace Point Function Iv Only an effective cycle is recorded to the trace memory Getting trace data for valid cycles or all cycl
22. line at which you want set a break event READ taddr OOF EOO data 001 READ addr OOF EO data 00 Detail r EST EIS REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 51 of 102 ROE436640CPE00 User s Manual 3 Usage Emulator Debugger 4 Opening the break event setting dialog box Specifying the event type Click to select the event type you want to set FETCH 41 Set Event Detects an instruction prefetch DATA ACCESS Detects a memory access 2 When FETCH is selected 1 Window for setting addresses Setting the address You can set eight conditions e g a specified address a specified address range etc When you have finished setting the address click OK addr Address1 IS REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 52 of 102 ROE436640CPE00 User s Manual 3 Usage Emulator Debugger 3 When DATA ACCESS is selected 1 Window for setting the address Setting the address Al Set Event Status You can set eight conditions e g a specified address a specified address range etc 2 Window for setting data Setting data You can set two conditions e g specified data or not to 41 Set Event Status compare data DATA A Setting the access condition data Datal You can set three conditions e g read write and read write When you have finished setting the data and tee dar access co
23. no registers exist at these addresses in the compact emulator H F730 Low voltage detection Control Register H F731 Low voltage detection Status Register H F732 Reset Source Decision Register H F734 Clock Control Status Register H F735 RC Control Register H F736 RC Trimming Data Protect Register H F737 RC Trimming Data Register H FF90 Flash Memory Control Register 1 H FF91 Flash Memory Control Register 2 H FF92 Flash Memory Power Control Register H FF93 Block Specification Register 1 H FF9B Flash Memory Enable Register H FFDE Port Data Register C H FFEE Port Control Register C REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 91 of 102 ROE436640CPE00 User s Manual 4 Hardware Specifications 6 Although the hardware manual says Initial value 1 the initial value is O in the compact emulator When the watchdog timer counts up these bits must always be set to 1 H FFCO Timer Control Status Register WD E ae ee ee E a aoa HFFCO TCSRWD TCWE TCSRWE B2WI WRST HEEDE Cesare ces HFFEO PMA Ra R Ra Roo 1XD2 PWM DD TMOW H FFE1 PMR5 POF57 POF56 WKP5 WKP4 WKP3 WKP2 WKP1 WKPO HFFE2 PMR3 POF27 POF POF25 Por24 POF23 E ES ESC CTO ee ee ee EE ESSE HFFFS ene ENT E NE Lo _ HFFF9 MSTCRT MSTS4 MSTIIC MSTS3 MSTAD MSTWD MSTIW MSTIA HFFFA MSTCR2 MSTS3 2 MSTIBS MSTIB2 MSTIBI M
24. on Using This Product 2 4 6 1 Precautions for the H8 3664 Series 1 The hardware manual says Initial value 1 These are reserved bits When read they always show the value 1 On the other hand the compact emulator stipulates that these bits must always be set to 0 and that when read these bits show the set value H FFEO Port Mode Register 1 2 The hardware manual says Initial value 0 These are reserved bits When read they always show the value 0 On the other hand the compact emulator stipulates that these bits must always be set to 0 and that when read these bits show the set value H FFE1 Port Mode Register 5 Bits 7 6 H FFF9 Module Standby Control Register 1 Bit 7 3 Although these bits in the hardware manual are reserved bits the compact emulator stipulates that these bits must always be set to 0 and that when read these bits show the set value H FFE2 Port Mode Register 3 H FFF5 Interrupt Enable Register 2 H FFFA Module Standby Control Register 2 H FFFB Module Standby Control Register 3 4 Although the hardware manual says that registers are located at the addresses shown below the compact emulator stipulates that writing to the addresses has no effect and that when read they show indeterminate values This is because no registers exist at these addresses in the compact emulator H FF90 Flash Memory Control Register 1 H FF91 Flash Memory Control Reg
25. power supply to the MCU and its power voltage As shown in Table 2 2 below set the switch according to the connection to the user system Table 2 2 Setting jumper switches mondo MCU power supply MCU power supply o source selection voltage selection Description the user system jumper JP1 jumper JP2 33V Supplied from the emulator The MCU operating Not connected INT ae al 50V Supplied from the emulator The MCU operating voltage is 5 0 V Supplied from the user system This emulator Connected EXT Invalid consumes max 500 mA of electrical current from the user system A CAUTION Note on Jumper Switch Settings Q Otherwise the internal circuit may cause a break O Always shut OFF the emulator before changing the setting of the jumper switches and connecting the cable REJ10J0918 0300 Rev 3 00 February 15 2007 tENESAS Page 25 of 102 ROE436640CPE00 User s Manual 2 Setup 2 6 2 Checking Connections of the Emulator System Before turning the power ON check the connection of the interface cable to the host machine emulator and user system 2 6 3 Turning ON OFF 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 for about 10 seconds 2
26. respectively Pay attention to the polarities of the power supply If its positive and negative poles are connected in reverse the internal circuit may be broken O Do not apply any voltages exceeding the product s rated power supply voltage 5 0 V 5 Extreme voltages may cause a burn due to abnormal heat or cause the internal circuit to break down Cautions to Be Taken for Turning On the Power O 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 O Do not leave either the emulator or user system powered on because of leakage current the internal circuits may be damaged O When turning ON the power again after shutting OFF the power wait about 10 seconds Cautions to Be Taken for Handling This Product O Use caution when handling the main unit Be careful not to apply a mechanical shock O 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 O Do not pull this emulator by the communications interface cable or the cable for connecting the user system And excessive flexing or force may break conductors Caution to Be Taken for System Malfunctions Q If the emulator system malfunctions because of interference like external noise do the following to remedy the trouble 1 Press the RESET switch of the
27. system POWER m Use this setting for power on emulation when you want to turn the 5 target power supply on or off or change the power supply voltage A CAUTION Note on Setting Jumper Switches O Always shut OFF the emulator before changing the setting of the jumper switches and connecting the cable Otherwise the internal circuit may cause a break REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 34 of 102 ROE436640CPE00 User s Manual 2 Setup 2 9 3 Selecting Clock Supply 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 6 shows the clocks and their initial settings Table 2 6 Clock supply to the MCU Clock Emulator debugger display Description Initial setting Main OSC1 OSC2 Internal Internal osalt ci board OSC 3 or OSC 2 Yes External Oscillator circuit on the user system Sub X1 X2 Internal Internal Oscillator circuit 32 768 kHz External Oscillator circuit on the user system Yes 1 Using an Internal Oscillator Circuit Board 1 Kinds of Oscillator Boards The ROE436640CPE00 comes with an oscillator circuit board OSC 3 20 MHz And an oscillator circuit bare board OSC 2 is included with this product If you use an internal oscillator circuit board of the emulator as a main clock choose Internal in the emulator debugger after replacing oscillator circuit boards to ch
28. 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 Inadequate user s system or misuse of it Fires earthquakes and other unexpected disasters In the above cases contact your local distributor If your product is being leased consult the leasing company or the owner 6 4 Repair Provisions 1 repairs not covered by warranty The products elapsed more than one year after purchase is not covered by warranty 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 Fl
29. 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 REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 100 of 102 Compact Emulator for H8 300H Tiny Series ROE436640CPE00 User s Manual Publication Date Feb 15 2007 Rev 3 00 Sales Strategic Planning Div auna Renesas Technology Corp Microcomputer Tool Development Department Edited by Renesas Solutions Corp 2007 Renesas Technology Corp and Renesas Solutions Corp All rights reserved Printed in Japan ROE436640CPE00 User s Manual ENESAS Renesas Electronics Corporation 1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan REJ10J0918 0300 T
30. 02 ROE436640CPE00 User s Manual 4 Hardware Specifications IMPORTANT Notes on mode transition O Mode transition is initiated by an interrupt However because the emulator generates an emulation only interrupt when one of the following operations is performed it is possible that an unexpected mode transition will occur while no interrupts have ever been generated in the user program itself Forcible break caused by entering the Esc key or pressing the Halt toolbar button Break specified in an event detection system Single stepping Step In Step Over or Step Out Program is run by Go from the SLEEP instruction address to which a software break has been set Notes on the reserved areas O In the actual MCU the reserved areas are not guaranteed of program operation When debugging a program that resides partly in the reserved area for reasons of memory size we recommend selecting the MCU that has the largest ROM size available O Since the compact emulator emulates multiple target MCUs using a single evaluation MCU it occurs that the compact emulator has I O registers other than those of the target MCU Therefore be careful not to access the unused addresses in the I O register area The values read or written to those addresses cannot be guaranteed Note also that the addresses H F000 to H FOFF comprise an area used by the compact emulator so do not access this area The values read or written to those addresses canno
31. 4K cycles of instruction execution before and after a trace point condition was met is recorded After Combination 64K cycles of instruction execution after a trace point OR Detail lA Enable Detail condition was met is recorded Full I 7 IS 64K cycles of instruction execution after a trace began is Ti v Detail Break y otal Jetal recorded Reset Save Load Set Close 4 Setting trace write conditions Setting trace write conditions You can specify a condition for the cycles to be written into the trace memory m Event Status ADDRE ACCE CONDITION Total 1 B1 000000 FETCH faddr 000000 All cycles are written into memory O 1 B2 000000 FETCH addr 000000 Pick up Only the cycles in which the specified condition was met are written into memory Exclude Only the cycles in which the specified condition was not Combination PID for Detail DP Enable p Trace Area Write Condition When you have finished setting the trace write condition Break met are written into memory click this button The Realtime trace Write Condition dialog box shown below will appear Realtime trace Write Condition Write mode Setting pose TE Te nt Start End De 081 Only the cycle in which the specified Start event occurred De ez A range of cycles from when the specified Start event occurred to when the
32. 6 ER6 ER PROG Instruction fetch cycle 000c20 01006FE0OFFD4 a a Sd DATA Data access cycle SLEEP Sleep mode SUBSLEEP Subsleep mode Source display OTHER No change MODE uvas aaaiviavz m v Shows the operation mode of the MCU Range 047131 000000 _ Area Before Break File sample h8 c Cycle 000073 Address 000DF0 Time Type Status address Source ACT Active mode l SUB Subactive mode 000D4 gap gap 2 Disassemble display 33333P53 000D62 D00D6C voia change long a Note If modes are changed from subactive to standby It aang tmp TRS modes in STATUS some displayed cycles may be int i marked DMAC Note however that no DMAC 000078 for i 0 i lt 10 i accesses have actually been performed 000D80 tmp i a i OOODBS i 0 i lt 10 i OOODBE ali tmp 9 il Data access display Viel la alviay my Range 047131 000000 Area Before Break File Cycle 000094 Address DOFE96 Time Cycle Label Data ccess ERES Essa 2 00FES6 0000 00FE98 OFF6 O0FEF6 0000 00084 OOFEF8 OFF6 000078 00FE94 0009 sample_h8 c 88 00070 00FE94 000A 00064 00FE94 000A sample_h8 c 91 5000046 OOFEBE 0000 sample_h8 c 52 000040 00FECO FEFA 000036 00FEC2 OCIA OOFEF6 0000 OOFEF8 OFFS OOFECE 0000 OOFEDO OFF6 OOFO1A 0C28 000002
33. 6 4 Power Supply to the User System This emulator cannot supply the power to the user system Therefore design your system so that the user system is powered separately This product consumes max 500 mA of electrical current from the user system Please consider the capacity of the power supply of the user system The voltage of the user system should be 2 7 V lt Vcc lt 5 5 V Do not change the voltage of the user system after turning on the power To change the power supply voltage of the user system set the POWER select jumper to the EXT POWER side For details about the POWER select jumper refer to 2 9 2 Setting the Jumpers of the ROE436640EPBMO Board page 34 REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 26 of 102 ROE436640CPE00 User s Manual 2 Setup 2 6 5 LED Display When the Emulator Starts Up Normally After the emulator starts up check the status of the LEDs to see whether the emulator operation is enabled or not Figure 2 7 shows the positions of the emulator status LEDs RENESAS POWER USB 5 0V powe POWER SYSTEM SAFE WSAFE STATUS System status LEDs DC DU COMPACT EMULATOR Oz ROE436640CPE00 0 EXT3 3V 5 0V INT Target status LEDs gt gt MADE IN JAPAN Figure 2 7 Positions of the system status LEDs and target status LEDs 1 System status LEDs Check that the LED1 and LED2 of the system status LEDs are lit immediately after th
34. 640CFG20 and a sample foot pattern 4 4 3 External Dimensions of the Converter Board ROE436640CFK20 Figure 4 6 shows external dimensions and a sample foot pattern of the converter board ROE436640CFK20 for a 64 pin 0 5mm pitch LQFP a 0 30 0 05 000 SOS P E ROE436640CFK20 REV A MADE IN JAPAN H ple 0 50 0 05 Ill 10 0 max10 1 aa ais lt 14 0 mn13 50 gt l Y Unit mm Figure 4 6 External dimensions of the converter board ROE436640CFK20 and a sample foot pattern REJ10J0918 0300 Rev 3 00 February 15 2007 ENESAS Page 72 of 102 ROE436640CPE00 User s Manual 4 Hardware Specifications 4 5 Notes on Using This Product 1 Notes on using this product are listed below Be sure to read these notes before using this product IMPORTANT Note on Downloading Firmware O Do not shut off the power while downloading the firmware If this happens the product will not start up properly If power is shut off unexpectedly redownload the firmware Notes on the Self check O If the self check does not result normally the emulator may be damaged Then contact your local distributor O Run the self check with the user system not connected Note on Quitting the Emulator Debugger O To restart the emulator debugger after it ends always shut power to the emulator module off once and then on again Notes on the User System Power Supply Order of Powering On O When the user system is con
35. B hub combination will work and guaranteed REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 19 of 102 ROE436640CPEO00 User s Manual 1 4 Operating Environment 1 Outline Be sure to use this emulator with the operating environmental of the emulator and host machine listed in Tables 1 6 and 1 7 Table 1 6 Operating environmental conditions Item Description Operating temperature 5 to 35 C no dew Storage temperature 10 to 60 C no dew Table 1 7 Operating environment of the host machine Item Description Host machine IBM PC AT compatibles OS Windows 98SE Windows Me Windows XP Windows 2000 CPU Pentium III 600 MHz or more recommended Interface USB 1 1 full speed Memory 128 MB or more recommended Pointing device such as mouse Mouse or any other pointing device usable with the above OS that can be connected to the main body of the host machine CD drive Needed to install the emulator debugger or refer to the user s manual 1 Windows is either registered trademarks or trademarks of Microsoft Corporation in the United States and other countries 2 Can be connected to the USB2 0 port of the host machine With the USB interface of this product not all hardware such as host machine USB devices USB hub combination will work and guaranteed REJ10J0918 0300 Rev 3 00 February 15 2007 tENESAS Page 20 of 102 ROE436640CPE00 User s Manual
36. Board ROE436640CFG20 72 4 4 3 External Dimensions of the Converter Board BROE226640C EK 20 72 4 5 Notes on Using This Product 1 c ccceccceceeeceeseeeeeeeeceaeeeesaeeeeaeeeceaeeseaaeseaaaeseaeeeseaeeseaaesgaeessaeeesaeeseaaeseeneeesaees 73 Note on Downloading Firmware secicsss ceive tic dll ata 73 Notes on the Self Check scccscssescauscccactcaccenessecdecciavacccasaccuedesatacecettecd stots navuetesasaaccettaadesghateaasastrnestlaaaeedendtacesttanas 73 Note on Quitting the Emulator Debugger eee ee eee 73 Notes on the User System Power Supply Order of Powering On a 73 Note on Clock Supply to the MCU TT 74 Note on Reset of a User System see eee eee eee eee eee 74 Notes on Software Seel 74 Notes on CE Declaration of Conformity eee eee ee ee eee eee 74 4 6 Notes on Using This Product 2 c ccccecceceneceeseeeeeeeeceaeeeeaaeeeeaeeecaeeecaaeeseaaeseeeeesaaeeesaaesseaeeseeeeeecaeeesaeseeneeesaees 75 4 6 1 Precautions for the H8 3664 Benes sese ee ee eee eee eee 75 4 6 2 Precautions for the H8 3672 Series see eee 77 4 6 3 Precautions for the H8 3687 Benes sese eee eee eee eee neee eee 79 4 6 4 Precautions for the H8 36087 Benes eee 81 4 6 5 Precautions for the H8 36077 Benes eee eee 83 4 6 6 Precautions for the H8 36079 Series eee 85 4 6 7 Precautions for the H8 36064 Benes eee eee 87 4 6 8 Precautions for the H8 3694 Series see eee 89 4 6 9 Precautions f
37. CU Setting dialog box you will see a message Connected displayed on the Debug tab of the Output window F Connected 4 1 Build Debug Find in Files Version Control Ready FERE Dans DE REJ10J0918 0300 Rev 3 00 February 15 2007 SENESAS Page 45 of 102 ROE436640CPE00 User s Manual 3 Usage Emulator Debugger 3 5 Program Execution 1 Downloading the program 1 Downloading from the work space window Downloading the program E ey sample_h8 Download the object program you want to debug E S sample_h8 E E Assembly source f Select Download from xxx abs of Download module AE lowlvisre Et 6 source file 8 dbscto the same effect 2 lowsre c ison E resetprec E sample hae E sbrk c EM Download modules D E Dependenc Download module E lowsrc Download module debug data on ly E sbrkh Uns medula E stacksc Or you can select Download from the Debug menu for Configure View Allow Docking Hide Showing the source program Double click the xxx c of C source file The Editor TEETH Z e dx FILE samplo h8 c z Source window will be displayed showing the content of 75 DATE Tue Mar 08 2005 DESCRIPTION Main Program Va CPU TYPE H8 the xxx c file 4 x This file is generated by Renesas Project Generator ver 4 0 N KEK KKK BHO CI finclude lt no_fl
38. D DATA ACT Data 00FE94 0009 RD DATA ACT OOODDA 1010 RD PROG ACT Shows the status of the data bus OOODDA 1010 RD PROG ACT 000DDC 0950 RD PROG ACT R W 000DDC 0950 RD ACT OOODDE 0100 RD d00nDR 0100 RD ACT Shows the status of the data bus O00DEO 6911 RD ACT a E com OOODEO 6911 RD ACT Displayed as RD for Read WR for Write and 000DE2 0100 RD ACT 000DE2 0100 RD ACT OOFES6 0000 RD ACT for no access RWT This is the signal to indicate a valid bus cycle When valid RWT 0 The Address and Data signals are deuiverlamalvias myw Range 047131 000000 Area Before Break File Cycle 000113 Address 000DD4 Time effective when this signal is 0 Cycle Address obj code Label Mnemonic TA AREA 000DD4 6F60FFD4 E B H FFD4 16 ER6 RO 000DD8 1010 RO Shows the target of bus access OOODDA 1010 a RO 000DDC 0950 R5 RO Type Status OOODDE 01006911 GER1 ER1 ROM ROM area OOODE2 01006981 ER1 GERO 000DE6 6F60FFD4 H FFD4 16 ER6 RO RAM RAM area OOODEA 0B50 1 R0 RO R H FFD4 16 ERG 1 O 8 Internal T O area in 8 bit bus width OOODEC 6FEOFFD4 OOOBEO SESUFEDA e ad 1 O 16 Internal I O area in 16 bit bus width OOODF4 79200008 000DF8 apc4 GH ODBE 8 STATUS OOODFA 79177900 H 7900 R7 O00DFE 6075 E GER74 R5 Shows the operating status of the MCU 000E00 6D76 A GER7 R6 000E02 5470 Type Status 000C1A 01006F60FFFC S G H FEFC 1
39. F730 Low voltage detection Control Register H F731 Low voltage detection Status Register H FF90 Flash Memory Control Register H FF91 Flash Memory Control Register 2 H FF92 Flash Memory Power Control Register H FF93 Block Specification Register 1 H FF9B Flash Memory Enable Register REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 79 of 102 ROE436640CPE00 User s Manual 4 Hardware Specifications Address Register Bi Bio Bis Bita Bits Biz eu bio ips gt e L 2 e RR 11 EGAA gt Y e Me lt e gt f 1 2 Cira AR AMARA SR I H sli le SN sl lie nfs o o FRANCIS o G o ee ee ee EN ue 2 lts ol esos A e do sl o MA IO A E ESTO O A O E EEC HFFE2 PmR3 Por27 pores Por2s Porz24 pors Evaluation chip HEFE4 HIFFES HFFEA HFFEB PCR87 HFEF IENTB3 lenTe2 entei HFFF7 IRRTB3 iRRTB2 apa H FFF9 MSTS4 HeFFA MSTCR2 msTS3_2 MSTTB3 MSTTB2 MSTTBI MSTIX MSTIZ MSTPWM Herre mstees msrss2l Address Register 6 Sme pis om os se om bw ES EEEF Eq q EE ER EE ee Es EE EA L ee ee al dy rors e _ H8 3687 RES E a E E E CL EEE ES RZ H e BAC CI E AAA TE E E E H E E a E DO Ea vz HSS Hes usa mn REJ10J0918 0300 Rev 3 00 February 15 2007 2tENESAS Page 80 of 102 ROE436640CPE00 User s Manual 4
40. FF91 Flash Memory Control Register 2 H FF92 Flash Memory Power Control Register H FF93 Block Specification Register 1 H FF9B Flash Memory Enable Register REJ10J0918 0300 Rev 3 00 February 15 2007 ENESAS Page 89 of 102 ROE436640CPE00 User s Manual 4 Hardware Specifications HS fo Asta gt po lt A 2 e e 2 dp ERR I I I n 33 II 0 O MII Evaluation chip I T a o wo eee ee eee ee EE E FE O A O O E a ETA pa E O SU Pi ES PS A EE GS DE CEE CEEE OC ENC HEFEO PMRI moas 1602 ma ROO 1XD2 PWM TXD TOW HEFEI WKPO HEFEZ PMR3 POF27 POF26 POF25 Por24 Pora HFFFS JENA2 MENTES 1ENTB2 1ENTB gt HEFFO MSTTA HFFFA MSTCR2 MSTS3 2 MSTTIB3 MSTIB2 MSTTB1 MSTIX MSTIZ MSTPWM HFAB MSICR3 _ MSTS AAA EEE L Or ES SS Esc EEE EFA E RE E H8 3694 DO 20 O E O a E UR E E IO RO O LO ARA ss ER gt es Ac lt LZIN lt HFFEO HFFE1 HFFE2 HFFFS HFFF9 HFFFA HFFFB REJ10J0918 0300 Rev 3 00 February 15 2007 tENESAS Page 90 of 102 ROE436640CPE00 User s Manual 4 Hardware Specifications 4 6 9 Precautions for the H8 36094 Series 1 The hardware manual says Initial value 1 These are reserved bits When read they always show the value 1 On the other han
41. ROE436640CPE00 User s Manual 2 Setup 2 8 Connecting the User System Figure 2 11 shows the connection of the ROE436640CPEO00 and the user system As for the connections of other than the 64 pin MCU below refer to the user s manual for the converter board Compact emulator 64 pin 64 pin 0 8mm pitch 0 5mm pitch Converter board QFP Converter board FP ROE436640CFG2 ROE436640CFK2 Screw M2x12mm 1 Screw M2x12mm 2 I Flat washer 1 ROE436640CIF00 I ROE436640CFG20 Flat washer 2 4 R0E436640CIF00 4 ROE436640CFK20 v oe l i Ze NS Agi 0 8mm pitch NE Gon 0 5mm pitch QFP foot pattern LQFP foot pattern e No 1 pin 1 These items are included with the ROE436640CFG20 package 2 These items are included with the ROE436640CFK20 package Figure 2 11 Connection of the ROE436640CPE00 and user system A CAUTION Note on Connecting the User System O Take care not to attach the converter board in a wrong direction It may cause a fatal damage to the emulator C149 064 008 B5 and IC149 064 075 B51 are trademarks of Yamaichi Electronics Co Ltd REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 31 of 102 ROE436640CPE00 User s Manual 2 Setup 2 8 1 Connecting to a 64 pin 0 8mm pitch Foot Pattern Here following is a procedure of connecting to a 64 pin 0 8mm pitch foot pattern on the user system using the ROE436640CFG20 F
42. STIX MSTIZ MSTPWM HFFFB MSTCR3 _ T MISTS 2 mo 1a cee a Tor RH nu ena CI SE Hero RSA E E SL LGS Heras RR SPL vos San rezo fode ve PARE TORO MORN H __ BZ EST __ swe ecu rojo Troi 121 C3 ren O H H H H HHS Heres eme T T Heras EY fea ees ee ery m Pres FENN Mise S HB 36094 R Pore E E E E E POO A A E RL 160 E LS HET Pms O wes TRET RES WRP2 WKP1 WKPO mel LL 1 Il A Hr EC cc CL o EIS mes LL IL Hero TOST TSE HSS MSTAD NSTWD HS ST MSTIA THA _ _ H THB REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 92 of 102 ROE436640CPE00 User s Manual 4 Hardware Specifications 4 6 10 Precautions for the H8 36014 Series 1 The hardware manual says Initial value O These are reserved bits When read they always show the value 0 On the other hand the compact emulator stipulates that these bits must always be set to 0 and that when read these bits show the set value H FFEO Port Mode Register 1 Bits 6 5 2 0 H FFFI System Control Register 2 Bits 6 1 0 H FFF2 Interrupt Edge Select Register 1 Bits 7 2 1 H FFF4 Interrupt Enable Register 1 Bits 6 2 1 H FFF9 Module Standby Control Register 1 Bits 7 0 H FFFA Module Standby Control Register 2 Bits 6 3 1 0 2 Although these bits in the hardware manual are re
43. The execution paths of the executed instructions can be 003002 1234 RD ROM 003002 1234 RD ROM d d E E 001174 5860 RD ROM inspected The contents are displayed in order of execution 001174 5860 RD ROM 001176 OOFC RD ROM 001176 00FC RD ROM paths Source mode The execution paths of the source program can be inspected Operating buttons of the tool bar can reference the execution paths f Data access mode Data read write cycles can be inspected In addition to the data access information the window can display the source line information in combination with it The trace window shows the measurement result when a real time trace measurement has finished The trace window remains blank until the real time trace measurement in progress finishes REJ10J0918 0300 Rev 3 00 February 15 2007 ENESAS Page 56 of 102 ROE436640CPE00 User s Manual 3 Usage Emulator Debugger 2 Trace window Bus display Explanation of the trace window bus display qe vor aaa yla gt x m y Ranee 047131 000000 Area Before Break File Cycle 000113 Address 000DD4 Time a a EA Address Data R W RWT STATUS MODE The following explains the displayed contents from left to 000DD4 6F60 RD 1 PROG ACT 3 ht 000DD4 6F60 RD PROG ACT ng id 000DD6 FFD4 RD PROG ACT 000DD6 FFD4 RD PROG ACT Address O00pD 1010 RD PROG ACT Shows the status of the address bus 000DD8 1010 RD PROG ACT DOFE94 0009 R
44. To our customers Old Company Name in Catalogs and Other Documents On April 1 2010 NEC Electronics Corporation merged with Renesas Technology Corporation and Renesas Electronics Corporation took over all the business of both companies Therefore although the old company name remains in this document it is a valid Renesas Electronics document We appreciate your understanding Renesas Electronics website http www renesas com April 1 2010 Renesas Electronics Corporation Issued by Renesas Electronics Corporation http www renesas com Send any inquiries to http www renesas com inquiry ENESAS 8 10 11 12 Notice All information included in this document is current as of the date this document is issued Such information however is subject to change without any prior notice Before purchasing or using any Renesas Electronics products listed herein please confirm the latest product information with a Renesas Electronics sales office Also please pay regular and careful attention to additional and different information to be disclosed by Renesas Electronics such as that disclosed through our website Renesas Electronics does not assume any liability for infringement of patents copyrights or other intellectual property rights of third parties by or arising from the use of Renesas Electronics products or technical information described in this document No license express implied or otherwise is granted
45. U and the user system the A D converter operates differently from that of the actual MCU Note on Power on Reset amp Low voltage Detection Circuit Functions O These functions are not supported REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 65 of 102 ROE436640CPE00 User s Manual 4 Hardware Specifications IMPORTANT Note on exception handling O Because the compact emulator emulates several target MCUs with a single evaluation MCU the exception handling factors of the actual MCU and those of the evaluation MCU are not always the same Use only exception handling factors which the hardware manual describes that it is available In addition the low voltage detection interrupt that an evaluation MCU does not have and the exception handling related to an on chip oscillator are not supported Note on the I O registers O Since the compact emulator emulates several target MCUs using a single evaluation MCU the I O registers of the actual MCU and those of the evaluation MCU are not always the same Therefore do not access the reserved I O registers of the target MCU Note also that accesses to the registers listed below that are associated with power on reset amp low voltage detection circuit functions on chip oscillator and flash memory control are invalid Low voltage detection Control Register LVDCR H F730 Low voltage detection Status Register LVDSR H F731 Reset Source Decision Register LVDRF H F732
46. ain use conditions Further Renesas Electronics products are not subject to radiation resistance design Please be sure to implement safety measures to guard them against the possibility of physical injury and injury or damage caused by fire in the event of the failure of a Renesas Electronics product such as safety design for hardware and software including but not limited to redundancy fire control and malfunction prevention appropriate treatment for aging degradation or any other appropriate measures Because the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or system manufactured by you Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental compatibility of each Renesas Electronics product Please use Renesas Electronics products in compliance with all applicable laws and regulations that regulate the inclusion or use of controlled substances including without limitation the EU RoHS Directive Renesas Electronics assumes no liability for damages or losses occurring as a result of your noncompliance with applicable laws and regulations This document may not be reproduced or duplicated in any form in whole or in part without prior written consent of Renesas Electronics Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this document or Renesas Electronic
47. ange a clock supplied to an MCU REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 35 of 102 ROE436640CPE00 User s Manual 2 Setup 2 Replacing Oscillator Circuit Boards Figure 2 15 shows how to replace the oscillator circuit boards amp O C ol O fo mb Jer Dojo joio d NT EXT 3 3V 5 0 The oscillator circuit board of the emulator is in the lower right corner of the board momma Oscillator circuit board 91 UOO 0 Unscrew the screw securing the oscillator circuit board Lift off the oscillator circuit board Attach the oscillator circuit board for replacement to the connector of the emulator Secure the new oscillator circuit board with the screw Figure 2 15 Replacing oscillator circuit boards A CAUTION Note on Replacing the Oscillator Circuit Board O When removing the upper cover or replacing the oscillator circuit boards be sure to shut OFF the power supply Otherwise the internal circuit may cause a break REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 36 of 102 ROE436640CPE00 User s Manual 2 Setup 3 Using the Internal Oscillator Circuit Bare Board To use this product at a frequency you like build a desired oscillator circuit on the included OSC 2 oscillator circuit bare board Figure 2 16 shows an external view of the OSC 2 oscillator circuit bare board and the conn
48. arting mask production evaluate your system and make final confirmation with a CS Commercial Sample version MCU REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 67 of 102 ROE436640CPE00 User s Manual 4 Hardware Specifications 4 3 Connection Diagrams Figures 4 1 to 4 3 show the connection diagrams of the ROE436640CPE00 These connection diagrams mainly show the interface section The signals not shown in the figures connect the evaluation MCU and the user system directly The circuits not connected to the user system such as the emulator s control system are omitted Table 4 2 shows IC electric characteristics of this product for reference purposes Compact emulator control board ROE436640EPBMO Converter board P56 SDA P10 P17 P10 P17 P20 P22 P50 P57 P74 P76 P85 P87 gt lt 5 74LV4066 PB4 PB7 User system H8 300H Tiny Evaluation Chip 100kQ Connected to the inside of the emulator Figure 4 1 Connection diagrams of ROE436640CPE00 H8 3664 3694 36094 3672 etc A CAUTION Note on DC Characteristics O Because a protective serial resistance analog switches and other devices are used between the ports the DC characteristics are different from those of an actual MCU Make note on this when using this product REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 68 of 102 ROE436640CPE00 User s Manual 4 Hardware Specifications Compact emulator co
49. aw 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 REJ10J0918 0300 Rev 3 00 February 15 2007 2ENESAS Page 99 of 102 ROE436640CPEO00 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 repair at your expense 6 5 How to Make Request for Repair If your product is found faulty fill in the Repair Request Sheet included with this product then send it along with this product for repair to your local distributor Make sure that information in the Repair Request Sheet is written in as much detail as possible to facilitate repair A CAUTION Note on Transporting the Product O 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
50. ble 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 O 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 O Make sure nothing falls into the cooling fan on the top panel especially liquids metal objects or anything combustible Warning for Installation NI O Do not set this product in water or areas of high humidity Make sure that the product does not get wet Spilling iS water or some other liquid into the product may cause unrepairable damage Warning for Use Environment O 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 REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 7 of 102 ROE436640CPE00 User s Manual Precautions for Safety A CAUTION Cautions to Be Taken for Connecting the Power Supply O Do not use any power cable other than the one that is included with the product O The power cable included with the product has its positive and negative poles color coded by red and black
51. compact emulator stipulates that these bits must always be set to 0 and that when read these bits show the set value H FFEO Port Mode Register 1 Bits 6 5 2 0 H FFFI System Control Register 2 Bits 5 1 0 H FFF2 Interrupt Edge Select Register 1 Bits 7 2 1 H FFF4 Interrupt Enable Register 1 Bits 6 2 1 H FFF9 Module Standby Control Register 1 Bits 7 0 3 Although these bits in the hardware manual are reserved bits the compact emulator stipulates that these bits must always be set to 0 and that when read these bits show the set value H FFE2 Port Mode Register 3 H FFF5 Interrupt Enable Register 2 H FFFA Module Standby Control Register 2 H FFFB Module Standby Control Register 3 4 Although the hardware manual says that registers are located at the addresses shown below the compact emulator stipulates that writing to the addresses has no effect and that when read they show indeterminate values This is because no registers exist at these addresses in the compact emulator H FF90 Flash Memory Control Register 1 H FF91 Flash Memory Control Register 2 H FF93 Block Specification Register 1 H FF9B Flash Memory Enable Register REJ10J0918 0300 Rev 3 00 February 15 2007 ENESAS Page 77 of 102 ROE436640CPE00 User s Manual 4 Hardware Specifications Address Register
52. ction jumper JP1 INT MCU power supply voltage selection jumper JP2 5V POWER jumper INT POWER CLOCK RESET RUN LED3 LED4 LED5 LED6 POWER CLOCK RESET RUN LED3 LED4 LEDS LED6 POWER CLOCK RESET RUN POWER SAFE LED1 LED2 POWER SAFE TT LED1 LED2 Self check starts POWER SAFE TT TT LED3 LED4 LED5 T LED6 Blinking POWER CLOCK RESET RUN LED3 LED4 LED5 LED6 E SAFE LED status ON TI LED1 LED2 It takes 20 OFF Normal RESET 1 Within 2 seconds of activating power press the reset switch RESET 2 Check that the SAFE LED starts blinking then press the system reset switch again 3 Target status LEDs start blinking at random intervals seconds at OSC1 20MHz Error POWER SAFE POWER CLOCK RESET RUN POWER SAFE CER add KE A LED1 LED2 LED3 LED4 LED5 LED6 LED1 LED2 SAFE LED is turned off and one or more target status LEDs start blinking according to the error type LED display mit ON Blinking OFF Figure 2 10 Self check procedure REJ10J0918 0300 Rev 3 00 February 15 2007 tENESAS Page 29 of 102 ROE436640CPE00 User s Manual 2 Setup 2 7 2 If an Error is Detected in the Self check Table 2 4 lists how to remedy the troubles if the target status LED display
53. d the compact emulator stipulates that these bits must always be set to 0 and that when read these bits show the set value H FFEO Port Mode Register 1 2 The hardware manual says Initial value 0 These are reserved bits When read they always show the value 0 On the other hand the compact emulator stipulates that these bits must always be set to 0 and that when read these bits show the set value H FFE1 Port Mode Register 5 Bits 7 6 H FFF9 Module Standby Control Register 1 Bit 7 3 Although these bits in the hardware manual are reserved bits the compact emulator stipulates that these bits must always be set to 0 and that when read these bits show the set value H FFE2 Port Mode Register 3 H FFF5 Interrupt Enable Register 2 H FFFA Module Standby Control Register 2 H FFFB Module Standby Control Register 3 4 Although the hardware manual describes the functions shown below they are not available on the compact emulator because the evaluation MCU does not have them power on reset amp low voltage detection circuit on chip oscillator The watchdog timer starts operating in the initial state after the reset clock output Port C 5 Although the hardware manual says that registers are located at the addresses shown below the compact emulator stipulates that writing to the addresses has no effect and that when read they show indeterminate values This is because
54. d only when a user program is being executed only while the RUN status LED on the emulator s upper panel is lit Notes on Maskable Interrupts O 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 emulator Therefore timers and other components do not stop running If a maskable interrupt is requested when the user program is not being executed including Internal I O access 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 O Take note that when the user program is not being executed including Internal I O access when run time debugging is being performed a peripheral I O interruption is not accepted Note on Oscillator Circuit O Make note of the fact that in the oscillator circuit where a resonator is connected between OSC1 and OSC2 oscillation does not occur because a converter board is used between the evaluation MCU and the user system For notes on when using the oscillator circuit on the user system refer to 2 9 3 Selecting Clock Supply page 35 It is same for a sub clock oscillator X1 and X2 On chip oscillator function is not supported Note on A D Converter O Because a converter board and other devices are used between the evaluation MC
55. e 0 These are reserved bits When read they always show the value 0 On the other hand the compact emulator stipulates that these bits must always be set to 0 and that when read these bits show the set value H FFE2 Port Mode Register 3 Bits 7 6 5 H FFF5 Interrupt Enable Register 2 Bits 7 6 H FFF9 Module Standby Control Register 1 Bits 7 2 H FFFA Module Standby Control Register 2 Bits 6 5 3 2 Although these bits in the hardware manual are reserved bits the compact emulator stipulates that these bits must always be set to 0 and that when read these bits show the set value H FFFB Module Standby Control Register 3 3 The hardware manual says Initial value 0 These are reserved bits When read they always show the value 0 On the other hand the compact emulator stipulates that these bits must always be set to 0 H FFF7 Interrupt Flag Register 2 4 Although these bits in the hardware manual are reserved bits the compact emulator stipulates that these bits must always be set to 0 H FFE4 Port Control Register 1 Bit 3 H FFE5 Port Control Register 2 Bits 7 6 5 H FFEA Port Control Register 7 Bits 7 3 H FFEB Port Control Register 8 Bits 4 0 5 Although the hardware manual says that registers are located at the addresses shown below the compact emulator stipulates that writing to the addresses has no effect and that when read they show indeterminate val
56. e 17 of 102 ROE436640CPEO00 User s Manual 1 Outline 6 MCU Power Supply Source Selection Jumper JP 1 This is a jumper switch to set the power supply source to the MCU For details on this switch see 2 6 1 MCU Power Supply Source Selection Jumper MCU Power Supply Voltage Selection Jumper page 25 7 MCU Power Supply Voltage Selection Jumper JP2 This is a jumper switch to set the power supply voltage of the MCU This setting is valid when the MCU power supply source selection jumper is set to INT only For details on this switch see 2 6 1 MCU Power Supply Source Selection Jumper MCU Power Supply Voltage Selection Jumper page 25 REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 18 of 102 ROE436640CPE00 User s Manual 1 3 Specifications 1 Outline Table 1 5 lists the specifications of the ROE436640CPE00 Table 1 5 ROE436640CPEO00 specifications Applicable MCUs The applicable 64 pin MCUs for the H8 300H Tiny Series are shown below H8 3664 Group H8 36064 Group H8 3694 Group H8 36094 Group H8 3687 Group H8 36087 Group H8 3672 Group H8 36077 Group H8 36014 Group H8 36079 Group The following 80 pin MCU is available by using with the converter board ROE436049CFJ10 H8 36049 Group Usable mode Normal mode advanced mode Maximum operating frequency 20 MHz at 2 7 5 5 V Applicable power supply User system connected 2 7 5 5 V JPI EXT User syste
57. e power is activated If it is not lit shut off the emulator and check the power supply for the emulator is properly connected 2 Target status LEDs Target status LEDs light as shown in Figure 2 8 when the user system is not connected and as shown in Figure 2 9 when a user system is connected After turning on the power only the LED5 RESET lights on Check the target status LEDs display normally after starting up the emulator debugger When the target status LEDs do not display as shown in Figures 2 8 and 2 9 refer to 5 Troubleshooting page 95 When the user system NOT connected Setting the JP1 of ROE43664EPBMO JP1 is set to INT POWER side The power LED does not light when the user system not connected JP1 is set to EXT POWER side POWER LED3 The power LED does not light when the user system connected or not CLOCK C LED4 Ton RESET LEDS Morr RUN J ED Figure 2 8 Target status LEDs display when the emulator starts up normally when user system not connected REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 27 of 102 ROE436640CPE00 User s Manual 2 Setup When the user system connected If the POWER LED does not light when the JP1 of the ROE43664EPBMO is set to INT POWER shut off the system POWER LED3 and check that the setting of the jumper switches and the power is properly supplied to the user system CLOCK L LED4 RESET __ LEDS LT ou RUN LED6 m Fi
58. ector pin locations Figure 2 17 shows the circuitry of the oscillator circuit bare board OSC 2 Use the number of oscillator circuits recommended by the oscillator manufacturer J1 4 GND J1 3 Oscillation output J1 2 GND J1 1 VCC X1 5 08 mm pitch 2 pin oscillator X2 2 54 mm pitch 2 pin oscillator IC1 Inverter Unbuffer X3 2 54 mm pitch 3 pin oscillator Figure 2 17 Circuits of the oscillator circuit bare board OSC 2 REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 37 of 102 ROE436640CPE00 User s Manual 2 Setup 2 Using an Oscillator Circuit on the User System To operate this product with an external clock construct an oscillator circuit as shown in Figure 2 18 in the user system and input the oscillator output at 50 duty within the operating range of the evaluation MCU into pin OSC1 And pin OSC2 should be open Choose External in the emulator debugger to use this clock Evaluation MCU OSC1 OSC2 Oscillator circuit Oscillator output Figure 2 18 External oscillator circuit Make note that in the oscillator circuit shown in Figure 2 19 where a resonator is connected between pins OSC1 and OSC2 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 X1 and X2 Evaluation MCU OSC1 OSC2 Figure 2 19 Circuit in which oscil
59. ede a edna 25 2 6 1 MCU Power Supply Source Selection Jumper MCU Power Supply Voltage Selection Jumper 25 2 6 2 Checking Connections of the Emulator System see eee eee eee eee eee 26 2 6 3 Turning ON OFF the e T 26 2 6 4 Power Supply to the User System sese ee eee eee ee eee 26 2 6 5 LED Display When the Emulator Starts Up Normally eee eee eee eee ee eee eee eee 27 PS T 29 2 11 Sell check Procedure T 29 2 7 2 lf an Error is Detected in the Self check eee 30 2 8 Connecting the USEr SyStem H 31 2 8 1 Connecting to a 64 pin 0 8mm pitch Foot Pattern sss eee eee eee eee eee eee eee 32 2 8 2 Connecting to a 64 pin 0 5mm pitch Foot Pattern sss eee eee eee eee eee eee eee 33 2 9 CHANGING Settings A AS 34 2 9 1 MCU Power Supply Source Selection Jumper MCU Power Supply Voltage Selection Jumper 34 2 9 2 Setting the Jumpers on the ROE436640EPBMO Board sss sees eee eee eee 34 2 9 3 Selecting Clock Supply vivi da 35 2 9 4 A D Conversion Bypass Capacitors eee eee 39 3 Usage Emulator DEDUIIST cacon tdi tati deta 40 3 1 Starting Up the Emulator Debugger ee eee eee eee 40 3 2 Starting Up the Emulator Debugger Init Dialog BOX ss sese ee eee eee 41 3 3 Starting Up the Emulator Debugger MCU Setting Dialog BOX sss sese eee eee eee eee 44 3 4 Checking Connections of the Emulator System ee ee ee 45 3 90 PIOQamEXCCUION e ii cr rer errer rarer reer Pertrerrrcreer errs reer Ae 46 3 6 Hardware Break Po
60. es 1 The hardware manual says Initial value 1 These are reserved bits When read they always show the value 1 On the other hand the compact emulator stipulates that these bits must always be set to 0 and that when read these bits show the set value H FFEO Port Mode Register 1 2 The hardware manual says Initial value 0 These are reserved bits When read they always show the value 0 On the other hand the compact emulator stipulates that these bits must always be set to 0 and that when read these bits show the set value H FFE1 Port Mode Register 5 Bits 7 6 H FFF9 Module Standby Control Register 1 Bit 7 3 Although these bits in the hardware manual are reserved bits the compact emulator stipulates that these bits must always be set to 0 and that when read these bits show the set value H FFE2 Port Mode Register 3 H FFF5 Interrupt Enable Register 2 H FFFA Module Standby Control Register 2 H FFFB Module Standby Control Register 3 4 Although the hardware manual says that registers are located at the addresses shown below the compact emulator stipulates that writing to the addresses has no effect and that when read they show indeterminate values This is because no registers exist at these addresses in the compact emulator H F730 Low voltage detection Control Register H F731 Low voltage detection Status Register H FF90 Flash Memory Control Register 1 H
61. es With this emulator you can choose to get trace data for only IT Next Hide Help valid cycles or for all cycles e To get data for only valid cycles default Select this check box Trace data will be acquired for only valid cycles O To get data for all cycles Deselect this check box Trace data will be acquired for all cycles REJ10J0918 0300 Rev 3 00 February 15 2007 ENESAS Page 41 of 102 ROE436640CPE00 User s Manual 3 Executing the self check npact Emulator MCU Debugging Information Emulator MCU H83664 mcu Serial No 2 R36640 4CM026 y FT Self Check r Debug Option Enable the Trace Point Function IZ Only an effective cycle is recorded to the trace memory Help 7 Next Hide 2 Debugging Information tab 1 Referencing the compiler used and the object format DH Tiny Compact Emulator MCU Debugging Information Emulator Compiler ELF DWARF20 Object Format T On Demand TT Next Hide Help REJ10J0918 0300 Rev 3 00 February 15 2007 2ENESAS 3 Usage Emulator Debugger 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 O When you are using the emulator you have just purchased When you fail to download the f
62. g See 2 9 3 Selecting Clock Supply page 35 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 Connected Check that the reset pin of the user system is held high not go out REJ10J0918 0300 Rev 3 00 February 15 2007 tENESAS Page 96 of 102 ROE436640CPE00 User s Manual 5 Troubleshooting 5 2 2 MCU Setting Dialog Box Does Not Appear at Emulator Debugger Startup Table 5 2 Checkpoints of errors at emulator debugger startup Error Checkpoint Communication error occurred Check that the USB cable is connected properly Data was not sent to the target See 2 5 Connecting the Host Machine page 24 Not compact emulator Check that an emulator other than the compact emulator such as PC4701 PC7501 is not connected Target MCU is in the reset state Check that the reset pin of the user system is held high Target clock is stopped When the clock is supplied from an external oscillator check that the oscillator circuit in the user system is oscillating properly 5 2 3 Errors Occur at Emulator Debugger Startup Table 5 3 Checkpoints of errors at debugger startup Error Checkpoint Target MCU is uncontrollable 1 Check that the IC socket etc mounted on the user system is soldered properly 2 Check that the connector is installed properly to the
63. g reset RUN LED6 Green ON User program is being executed OFF User program is not being executed 3 System Reset Switch By pressing the system reset switch you can initialize the emulator system Table 1 4 shows the functions of the system reset switch depending on the state of the emulator Table 1 4 Functions of the system reset switch State of Emulator Function Initializes the emulator and waits for a command from the When the user s program is halted emulatorde buses l Stops the user s program initializes the emulator and When the user s program is executed P Pros waits for a command from the emulator debugger IMPORTANT Notes on a System Reset O After pressing the system reset switch restart the emulator debugger Otherwise the display of emulator debugger and the actual value in the emulator may not match O When the emulator debugger does not start up normally even after rebooting turn off the emulator and then turn on again 4 Power Connector J1 This is a connector for connecting the power supply to this product For details refer to 2 4 Connecting the Power Supply for the Emulator page 23 5 USB Cable Connector J2 This is a USB cable connector for connecting the host machine to this product For details 2 5 Connecting the Host Machine page 24 REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Pag
64. gure 2 9 Target status LEDs display when the emulator starts up normally when user system connected IMPORTANT Note on the Target Status CLOCK LED O If the LED is not turned on check the following 1 After powering on the emulator before starting up the emulator debugger Make sure that the oscillator circuit board is properly installed in the emulator 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 REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 28 of 102 ROE436640CPEO00 User s Manual 2 7 Self check 2 7 1 Self check Procedure 2 Setup 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 10 1 If the user system is connected disconnect it 2 Set the jumper as the factory settings to execute the self check see Table 2 3 3 Within 2 seconds of activating power to the emulator press the system reset switch on the emulator upper 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 is displayed in about 20 seconds the self check terminated normally Table 2 3 Jumper settings for the self check Switch Setting MCU power supply source sele
65. he ROE436640CPE0O0 3 Attach the ROE436640CFK20 to the IC149 064 075 B51 and secure it with the screws M2x12mm ROE436640CIF00 Screw M2x6mm T y Upper cover Flat washer MCU with on chip flash memory etc 1C149 064 075 B51 E sg 64 pin 0 5mm pitch PLQP0064KC A foot pattern These items are included with the ROE436640CFK20 package e No 1 pin Figure 2 13 Connecting to a 64 pin 0 5mm pitch foot pattern A CAUTION Notes on Connecting the User System O Take care not to attach a converter board in a wrong direction It may cause a fatal damage to the emulator and user system O The connectors of the ROE436640CPE00 and ROE436640CFK20 are guaranteed for only 50 insertion removal iterations REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 33 of 102 ROE436640CPE00 User s Manual 2 Setup 2 9 Changing Settings 2 9 1 MCU Power Supply Source Selection Jumper MCU Power Supply Voltage Selection Jumper These are the jumper switches to select power supply to the MCU and its power voltage Set the jumpers according to the use conditions before turning on power referring to 2 6 1 MCU Power Supply Source Selection Jumper MCU Power Supply Voltage Selection Jumper page 25 2 9 2 Setting the Jumpers on the ROE436640EPBMO Board Figure 2 14 shows the location of jumper switches on the ROE436640EPBMO board and their factory settings
66. idely with its load You are recommended to use an AC adapter with a switching power supply or a stabilized power supply REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 15 of 102 R0E436640CPE00 User s Manual 1 Outline 4 User system This is your application system This product can be used when not connecting the user system 5 Power supply for the user system This is a power supply for the user system As this emulator cannot supply the power to the user system supply the power to the user system separately from the emulator 6 Host machine This is a personal computer for controlling the emulator 7 Pitch converter board such as ROE436640CFG20 This is a pitch converter board for connecting to an MCU foot pattern on the user system For details refer to 2 8 Connecting the User System page 31 1 2 2 Names and Functions of each part of the Emulator Figure 1 2 shows the names of the LEDs on the upper panel of the emulator J1 Power connector J2 USB interface connector System status LEDs LED1 Emulator power POWER LED2 Emulator startup SAFE System reset switch JP2 MCU power supply voltage selection jumper COMPACT EMULATOR os factory setting 5 0 V ROE436640CPE00 9 5 JP1 MCU power supply source selection jumper factory setting INT DL L CD CIT Target status LEDs J owen 3 cal pera LEDS User system power POWER cLock EJ Y A TARG ET 10
67. int Setting Window eee eee 51 3 7 Trace WINDOW ecc a ie dad aca sh dada doe da Dea dO QUA da LE 56 3 8 RAM Hela Taise lt niin anion ds 61 REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 9 of 102 R0E436640CPE00 User s Manual Contents 4 Hardware Specifications sicario 64 4 1 Target MCU Specifications iissa a aa roca 64 4 2 Differences between the Actual MCU and Emulalor sss sese eee 65 Notes on Internal Memory ROM RAM sse eee eee 65 Note on Unused Atreides 65 Notes on RESET Tie coi ta dd lada da E 00 6 pa dan a 65 Notevon NMI Iie id tdo diia 65 Notes on Maskable Interrupts sse eee ee eee eee eee eee 65 Note on Oscillator ele T T 65 Note on A D Converter ss vssoovvcvssc ess kkn uR gr saadsaussaacavandeadstabvantaea E a RAKERA ERKKA 65 Note on Power on Reset amp Low voltage Detection Circuit FEUncHOnS s sese eee eee 65 Note on exception Handling T 66 Note onthe He lt T TT 66 Note on Clock Supply to the MOU asics cota ati 66 Notes on Software BreakS iia carita iia iria 66 Noles on modetranSiloni iii a add cana aaa 67 Notes on the reserved areas eee 67 Notes on EEPROM cicanie ii e T OT T E T E 67 Note on DC Charactenisica sse ee eee 67 Note On F le Ea iia ta tt eii 67 4 3 Connection Se la T 68 4 4 External DIMENSIONS viviana Aaa ceded aaa ini 71 4 4 1 External Dimensions of the Compact Emulator eee eee eee eee 71 4 4 2 External Dimensions of the Converter
68. irmware When you successfully download the firmware but fail to start up the emulator When you want to confirm whether the emulator is operating normally because for example the MCU runs out of control or something is wrong with the trace results This function can be enabled only when you are starting up the emulator debugger Specifying the compiler used and the object format Specify the compiler you are using and the format of the object file output by the compiler Compiler Select the compiler you are using By default the C compiler from Renesas is selected Object Format Select the format of the object file that is output by the compiler you are using Specifying the method for storing debug information There are two methods for storing debug information on memory method where data is held in memory and an on demand method where data is held in a temporary file On Memory This method helps to speed up processing if your computer has sufficient memory On Demand This method helps to reduce the amount of memory needed To use this method select the On Demand check box Page 42 of 102 ROE436640CPEO00 User s Manual 3 Usage Emulator Debugger 3 Emulator tab 1 Specifying the target clock Specifying the target clock H Tiny Compact Emulator Specify the clock sources supplied to the MCU main clock and sub clock Select the appropriate clock sources
69. ister 2 H FF92 Flash Memory Power Control Register H FF93 Block Specification Register 1 H FF9B Flash Memory Enable Register REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 75 of 102 ROE436640CPE00 User s Manual 4 Hardware Specifications Ages Register BW 56 65 Eu pos po pos o ar gt p op opppopp o REST HES TE E PR A E E SP A E lo ID lola ie lia OE aereo pue mos mos mor Rao 1xD2 eum TxD TWOW RR Por27 POr Pores Pora Pores 7 CHEERS 1ENR2 fentes enea rente PR RE O HEFFA MSTORZ MSTS3 2 MSTTES MSTTB2 MSTTBT MSTIX MSTIZ MSTEWM parere meree gt gt gt STS Address Register __Bitz_ Bite BiS BE A BBB rM J FLER RFR PFLFWCR Y POWND ANC CE INC RCA H E IC HF 9B T FENR T Fen y gt gt Rasp ec E REJ10J0918 0300 Rev 3 00 February 15 2007 tENESAS Page 76 of 102 R0E436640CPE00 User s Manual 4 6 2 Precautions for the H8 3672 Series 1 The hardware manual says Initial value 1 These are reserved bits When read they always show the value 1 On 4 Hardware Specifications the other hand the compact emulator stipulates that these bits must always be set to 0 and that when read these bits show the set value H FFEO Port Mode Register 1 2 The hardware manual says Initial value 0 These are reserved bits When read they always show the value 0 On the other hand the
70. lation does not occur REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 38 of 102 ROE436640CPE00 User s Manual 2 Setup 2 9 4 A D Conversion Bypass Capacitors There is a foot pattern on the ROE436640EPBMO board for mounting bypass capacitors for an A D conversion circuit near the MCU Mount suitable bypass capacitors as occasion demands Figure 2 20 shows where they are installed and the configuration of this product Front side of the ROE436640EPBMO io ON O gg E Hima E TT E IT Z 2 E E 2 Qi z E E E a Jo E S E E Jnn R Ien a TOA Ii UT y l E i dono f my ZENE AS alll S AVcc Avss bypass capacitor AVcc AVss 5 O C2 Figure 2 20 Foot pattern for A D conversion bypass capacitors and the configuration of this product
71. m not connected 3 3 V or 5 0 V JP1 INT supplied from the emulator set by JP2 Basic debugging functions Download 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 64K cycle bus information recordable Address 20 bits Data 16 bits MCU status 12 bits 5 trace modes supported Break Before A bout After Full Can be recorded ON OFF by events Real time RAM monitor function 1 024 bytes 256 bytes x4 Data last access result Hardware break function 2 points Address match bus match max 255 pass counts Execution time measurement function Time between program start and stop Connection to user system see 2 8 Connecting the User System For 64 pin 0 8mm pitch QFP PRQP0064GB A R0E436640CFG20 For 64 pin 0 5mm pitch LQFP PLQP0064KC A ROE436640CFK20 Power supply for emulator DC 5 0 V 5 2A externally supplied Prepare a power supply which complies with CE marking requirements separately Host machine interface USB USB 1 1 full speed mini B standard connector Can be connected to the USB2 0 port of the host machine With the USB interface of this product not all hardware such as host machine USB devices US
72. minate values This is because no registers exist at these addresses in the compact emulator H FFF730 Low voltage detection Control Register H FFF731 Low voltage detection Status Register H FFF732 Reset Source Decision Register H FFF734 Clock Control Status Register H FFF735 RC Control Register H FFF736 RC Trimming Data Protect Register H FFF737 RC Trimming Data Register H FFFF90 Flash Memory Control Register H FFFF91 Flash Memory Control Register 2 H FFFF92 Flash Memory Power Control Register H FFFF93 Block Specification Register 1 H FFFF9B Flash Memory Enable Register H FFFFDE Port Data Register C H FFFFEE Port Control Register C REJ10J0918 0300 Rev 3 00 February 15 2007 ENESAS Page 85 of 102 ROE436640CPE00 User s Manual 4 Hardware Specifications 6 Although the hardware manual describes the functions shown below they are not available on the compact emulator because the evaluation MCU does not have them power on reset amp low voltage detection circuit on chip oscillator The watchdog timer starts operating in the initial state after the reset clock output Port C 7 Although the hardware manual says Initial value 1 the initial value is O in the compact emulator When the watchdog timer counts up these bits must always be set to 1 H FFFFCO Timer Control Status Register WD Address Regis
73. must be taken when handling the product Must not be used within 30 meters of a domestic radio or television receiver For correct operation of this product it is recommended that Mobile phones are not used within 10 meters of this product system This product should be powered down when not in use This product generates uses and can radiate radio frequency energy and may cause harmful interference to radio communications Tf this product causes harmful interference to radio or television reception which can be determined by turning this product off or on you are encouraged to try to correct the interference by one or more of the following methods Ensure attached cables do not lie across the probe board and converter board Reorient the receiving antenna Increase the distance between the product and the receiver Connect the product into an outlet on a circuit different from that to which the receiver is connected Consult the dealer or experienced radio TV technician for help O Attach the ferrite core included with this product close to the DC plug of the power cable Without the ferrite core it may cause interference The power cable should be wound around the ferrite core as shown in the figure and close the ferrite core until 1t clicks REJ10J0918 0300 Rev 3 00 February 15 2007 ENESAS Page 74 of 102 ROE436640CPE00 User s Manual 4 Hardware Specifications 4 6 Notes
74. n Clock Supply to the MCU 0 A clock supplied to the evaluation MCU is selected by the Clock tab in the Init dialog box of the emulator debugger 1 When Internal is selected A clock generated by the oscillation circuit in the emulator is supplied to the evaluation MCU The clock is continually supplied to the evaluation MCU regardless of a status of user system clock and a status of user program execution 2 When External is selected Clock supply to the evaluation MCU depends on oscillation state oscillate off of the user system Note on Reset of a User System O During a program execution if a user reset or watchdog timer reset occurs while it is accessing to an odd address by byte access RAM monitor and event detection do not operate properly RAM monitor RAM monitor access attribute in the next address is displayed Event detection An event of the next address is detected Notes on Software Breaks O Software breaks change the instruction at a specified address to a BRK H 5770 Therefore take note that when you reference the result of a trace in bus mode H 5770 is displayed O As the BRK instruction is used for the emulator do not use it in a user program Notes on CE Declaration of Conformity O This product complies with CE marking EN55022 Class A 1998 Al 2000 A2 2003 EN55024 1998 Al 2001 A2 2003 Please use it with care described below Electrostatic Discharge Precautions
75. n Status Register H FF90 Flash Memory Control Register 1 H FF91 Flash Memory Control Register 2 H FF92 Flash Memory Power Control Register H FF93 Block Specification Register 1 H FF9B Flash Memory Enable Register 4 Although the hardware manual says that an initial value is 1 the compact emulator s initial value is 0 These bits must always be set to 1 when counting up the watchdog timer H FFCO Timer Control Status Register WD 5 Although these bits in the hardware manual are reserved bits the compact emulator stipulates that these bits must always be set to 0 H FFFFE4 Port Control Register 1 Bit 3 H FFFFES5 Port Control Register 2 Bits 7 6 5 H FFFFEA Port Control Register 7 Bits 7 3 H FFFFEB Port Control Register 8 Bits 4 0 6 Although the hardware manual says that the allowable output high current is 5 0 mA it is 2 0 mA in the compact emulator REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 87 of 102 ROE436640CPE00 User s Manual 4 Hardware Specifications Address Register Bit Bro Bis Bita Bits Bite Bit Bio ao E AE AE AN RAS AR ste MEE MESES BEEN EEN ES E A E A Ho CARA 2 gt gt gt gt gt lc HF gt BR gt gt To HFB Iodo HFFEo PMRi IRQ3 IRQ2 Rar Rao
76. n change the manner in which the RAM monitor area SEE you have set in the above dialog box is displayed Up Shows the blocks at the preceding addresses Down 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 37 9F 9F 7F 2E FF D E9 BI 26 57 5B FD 2E DO DB FI 30 6 9 E 34 6 7F 6 FD EF DE 6F F2 FS ANE cat described below Green Addresses accessed for read Red Addresses accessed for write White Addresses not accessed The background colors can be changed as necessary REJ10J0918 0300 Rev 3 00 February 15 2007 ENESAS Page 63 of 102 ROE436640CPE00 User s Manual 4 Hardware Specifications 4 Hardware Specifications This chapter describes specifications of this product 4 1 Target MCU Specifications Table 4 1 lists the specifications of target MCUs which can be debugged with this product Table 4 1 Specifications of target MCUs for the ROE436640CPE00 Item Description Applicable MCU The applicable 64 pin MCUs for the H8 300H Tiny Series are shown below H8 3664 Group H8 36064 Group H8 3694 Group H8 36094 Group H8 3687 Group H8 36087 Group H8 3672 Group H8 36077 Group H8 36014 Group H8 36079 Group The following 80 pin MCU is available by using with the converter board ROE436049CFJ10 H8 36049 Group Applicable MCU mode Normal mode Advanced mode Maxi ROM RAM capacity 1 Internal flash
77. ndition click OK REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 53 of 102 ROE436640CPE00 User s Manual 3 Usage Emulator Debugger 3 Example Data Settings The ROE436640CPEO00 requires that events be set according to the bus operation Make sure the even address data is set on the upper side and the odd address data is set on the lower side Setting events for wordwise accesses to the 8 bit bus area of the internal I O i S A setting a break event MOV W RO H FFDE RO H 0001 Setting a break event Al A2 Writ to H FFDE i rfi d in two s te writes rite access to is performed in two separate writes Address 1 00FFDE Address 1 00FFDF Make sure that events are set for the even and odd addresses separately Data 1 0000 Data 1 0001 cycle Label Address Data R W RWT AREA STATUS MODE DATA ACT 000015 PDRC OOFFDE 1 1 0 8 MASK FFOO MASK 00FF 000014 pDRC OOFFDE 000013 OOFFDF A 000012 B Access WRITE Access WRITE Even address high order data effective Set the combinatorial events to AND Odd address low order data effective Setting events for wordwise accesses to the 16 bit bus areas of the ROM RAM Setting a break event and internal I O MOV W R2 H E002 R2 H AA55 Al Address 1 00E002 Cycle Label Address Data R W RWT AREA STATUS MODE 000057 00E002 RASS WR 1 RAM DATA ACT Data 1 AA55 000056 00E002 AASS WR O DATA l MASK FFFF High order and l
78. nected be sure to set the JP1 of the control board upper board to EXT O This emulator cannot supply the power to the user system Therefore design your system so that the user system is powered separately O This emulator consumes max 500 mA of electric current from the user system O The voltage of the user system should be as follows 2 7 VW lt Vec lt 5 5V O Do not change the voltage of the user system after turning on the power When you change the voltage of the user system be sure to set the JP1 of the ROE436640EPBMO to the EXT POWER side O Before powering on your emulator system check that the host machine the emulator the converter board and user system are all connected correctly Next turn on the power to each equipment following the procedure below 1 Turn ON OFF the user system and the emulator as simultaneously as possible 2 When the emulator debugger starts up check the target status LEDs on the emulator to see if this product is ready to operate Is the power supplied Check that target status LED POWER is ON 1 Is the supplied Check that target status LED CLOCK is ON 1 When the user system is not connected the target status LED POWER does not light Note that the target status LED POWER light when the JP1 of the ROE436640EPBMO is set to the EXT POWER side REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 73 of 102 ROE436640CPE00 User s Manual 4 Hardware Specifications IMPORTANT Note o
79. nesas Electronics does not warrant that such information is error free Renesas Electronics assumes no liability whatsoever for any damages incurred by you resulting from errors in or omissions from the information included herein Renesas Electronics products are classified according to the following three quality grades Standard High Quality and Specific The recommended applications for each Renesas Electronics product depends on the product s quality grade as indicated below You must check the quality grade of each Renesas Electronics product before using it in a particular application You may not use any Renesas Electronics product for any application categorized as Specific without the prior written consent of Renesas Electronics Further you may not use any Renesas Electronics product for any application for which it is not intended without the prior written consent of Renesas Electronics Renesas Electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for an application categorized as Specific or for which the product is not intended where you have failed to obtain the prior written consent of Renesas Electronics The quality grade of each Renesas Electronics product is Standard unless otherwise expressly specified in a Renesas Electronics data sheets or data books etc Standard Computers office eq
80. nt 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 Make sure to read this chapter before using this product This symbol represents a warning about safety It is used to arouse caution about a potential N danger that will possibly inflict an injury on persons To avoid a possible injury or death please be sure to observe the safety message that follows this symbol DANGER indicates an imminently dangerous situation that will cause death or heavy wound N D ANGER 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 A WAR N N G unless it is avoided CAUTION indicates a potentially dangerous situation that will cause a slight injury or a A CAUTION medium degree injury unless it is avoided C AUTI ON CAUTION with no safety warning symbols attached indicates a potentially dangerous situation that will cause property damage unless it is avoided IM P O RT ANT This is used in operation procedures or explanatory descriptions to convey exceptional conditions or cautions to the user In addition to the five above the following are also used as appropriate Z means WARNING or CAUTION ian AN CAUTION AGAINST AN ELECTRIC SHOCK means PROHIBITION Bi pisa
81. ntrol board ROE436640EPBMO Converter board P10 P17 P10 P17 P20 P22 P20 P22 P50 P57 EEPROM P50 P57 P61 P63 470 P61 P63 P74 P76 P74 P76 P85 P87 P85 P87 is 220 470 P23 P24 SS P23 P24 74HC4066 P60 P64 P67 P60 P64 P67 S 74LV4066 P70 P72 Sa P70 P72 74HC4066 SS PB4 PB7 74HC4066 User system H8 300H Tiny Evaluation Chip 100kQ 33 V 50 V Connected to the inside of the emulator Figure 4 2 Connection diagrams of ROE436640CPE00 H8 3687 36087 36064 36077 and 36079 etc A CAUTION Note on DC Characteristics O Because a protective serial resistance analog switches and other devices are used between the ports the DC characteristics are different from those of an actual MCU Make note on this when using this product REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 69 of 102 ROE436640CPE00 User s Manual 4 Hardware Specifications Compact emulator control board ROE436640EPBMO Converter board User system H8 300H Tiny Evaluation Chip 100kQ 33 V 50 V Connected to the inside of the emulator Figure 4 3 Connection diagrams of ROE436640CPE00 H8 36014 etc Table 4 2 Electrical characteristics of the 74LV 4066 and 74HC4066 LV4066 Standard values HC4066 Standard values Symbol Ttem Condition 7 Unit Min Standard Max Min Standard Max Ron ON resi
82. nvironment High performance Embedded Workshop to control the emulator 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 This means a program stored in the flash ROM of the emulator It analyzes contents of communication with the emulator debugger and controls the compact emulator ROE436640CPE00 This program is downloadable from the emulator debugger to upgrade firmware or to support other MCUs Host machine This means a personal computer used to control the emulator main unit and compact emulator 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 compact emulator which is operated in the specific mode for tools In this user s manual this symbol is used to show active Low e g RESET Reset signal REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 13 of 102 ROE436640CPEO00 User
83. oat h gt finclude lt stdio h gt finclude lt math h gt finclude lt stdlib h gt void main void void sort long a void change long a extern void srand unsigned int void maintvoid long a 10 min max long j int i srand 1 printf Data Input HS 1 fort i 0 i lt 10 i DE j rand REJ10J0918 0300 Rev 3 00 February 15 2007 tENESAS Page 46 of 102 ROE436640CPE00 User s Manual 3 Usage Emulator Debugger 2 Program execution 1 Resetting the user program CPU reset Resets the program Or you can select CPU Reset from Debug menu for the same effect 2 Executing the user program Go Go Runs the program beginning with the current PC position Or you can select Run from Debug menu for the same effect 3 Executing the user program Go Free Go Free Runs the program beginning with the current PC position Ler SU 0 POD The software and hardware breaks set in it are ignored 4 Executing the user program Reset Go Reset Go Runs the program after reset JO D Or you can select Reset Go from Debug menu for the same effect 5 Step execution of the user program Step In Single steps the program executing each statement including those in functions Step Over Single steps the program executing each function call a
84. ompact emulator stipulates that these bits must always be set to 0 and that when read these bits show the set value H FFE2 Port Mode Register 3 Bits 7 6 5 H FFF5 Interrupt Enable Register 2 Bits 7 6 H FFF9 Module Standby Control Register 1 Bits 7 2 H FFFA Module Standby Control Register 2 Bits 6 5 3 2 Although these bits in the hardware manual are reserved bits the compact emulator stipulates that these bits must always be set to 0 and that when read these bits show the set value H FFFB Module Standby Control Register 3 3 The hardware manual says Initial value 0 These are reserved bits When read they always show the value 0 On the other hand the compact emulator stipulates that these bits must always be set to 0 H FFF7 Interrupt Flag Register 2 4 Although these bits in the hardware manual are reserved bits the compact emulator stipulates that these bits must always be set to 0 H FFE4 Port Control Register 1 Bit 3 H FFE5 Port Control Register 2 Bits 7 6 5 H FFEA Port Control Register 7 Bits 7 3 H FFEB Port Control Register 8 Bits 4 0 5 Although the hardware manual says that registers are located at the addresses shown below the compact emulator stipulates that writing to the addresses has no effect and that when read they show indeterminate values This is because no registers exist at these addresses in the compact emulator H
85. 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 including product data diagrams charts pro grams and algorithms represents information on products at the time of publication of these materials and are subject to change by Renesas Technology Corp without notice due to product improvements or other reasons It is therefore recommended that customers contact Renesas Technology Corp or an authorized Renesas Technology Corp product distributor for the latest product information before purchasing a product listed herein The information described here may contain technical inaccuracies or typographical errors Renesas Technology Corp assumes no responsibility for any damage liability or other loss rising from these inaccuracies or errors Please also pay attention to information published by Renesas Technology Corp by various means including the Renesas Technology Corp Semiconductor home page http www renesas com 4 When using any or all of the information contained in these materials including product data diagrams charts programs and algorithms please be sure to evaluate all information as a total system before making a final decision on the applicabilit
86. or details on the ROE436640CFG20 refer to its user s manual 1 Mount the IC149 064 008 B5 included with the ROE436640CFG20 to the user system 2 Attach the ROE436640CFG20 to the J3 and J4 of the ROE436640CPE0O0 3 Attach the ROE436640CFG20 to the IC149 064 008 B5 and secure it with the screws M2x12mm ROE436640CIF00 Screw M2x8mm T y Upper cover Flat washer MCU with on chip flash memory etc IC149 064 008 B5 E sg 64 pin 0 8mm pitch PRQP0064GB A foot pattern These items are included with the ROE436640CFG20 package e No 1 pin Figure 2 12 Connecting to a 64 pin 0 8mm pitch foot pattern A CAUTION Notes on Connecting the User System O Take care not to attach a converter board in a wrong direction It may cause a fatal damage to the emulator and user system O The connectors of the ROE436640CPE00 and ROE436640CFG20 are guaranteed for only 50 insertion removal iterations REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 32 of 102 ROE436640CPE00 User s Manual 2 Setup 2 8 2 Connecting to a 64 pin 0 5mm pitch Foot Pattern Here following is a procedure of connecting to a 64 pin 0 5mm pitch foot pattern on the user system using the ROE436640CFK20 For details on the ROE436640CFK20 refer to its user s manual 1 Mount the IC149 064 075 B51 included with the ROE436640CFK20 to the user system 2 Attach the ROE436640CFK20 to the J3 and J4 of t
87. or the H8 36094 Benes eee eee 91 4 6 10 Precautions for the H8 36014 Series sese eee eee 93 b TPOUBIOSNOOTING fas 2 cias ed cctepencdevace ch vezecanedee ada do devi va ctecuwed ca duct od babes cette tue dadas dad Aa Wa da oqehca day cubes daa aa caia da 95 5 1 Flowchart to Remedy the Troubles eee eee eee eee 95 5 2 When the Emulator Debugger Does Not Start Up Properly eee eee eee eee eee eee 96 5 2 1 When the LEDs of the Emulator Do Not Display Normal sese sese eee 96 5 2 2 MCU Setting Dialog Box Does Not Appear at Emulator Debugger Startup sse ee ee ee e ee ee 97 5 2 3 Errors Occur at Emulator Debugger Startup sese eee eee eee eee 97 5 3 How to Request for Te eien TT 98 REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 10 of 102 ROE436640CPEO00 User s Manual Contents 6 Maintenance and Quarantoe es seccecccecessanchersavecethyeacescuadendshevnskeeusteancnvt eesset a aaa aN aa aaa aaa aaaea 99 6 1 User RISA IN cos sitesi ess A a atingia 99 6 2 Mainlenance E A caccuadvansdacesaveddanbaazduanscasddadseavdauhlaadudansaavaelsstacdadenbtaadadansaaudeciededddbleaddaataatdaabtaadadanteas 99 6 3 QUATaANtes cessaniais seria eae ieee a dida dd Sd atas bd nada id eau dada a 99 6 4 Repair ProvisionS lt saunas ll a da 99 6 5 How to Make Request for Repair eee 100 REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 11 of 102 ROE436640CPE00 User s Manual User Registration Use
88. ow order data effective Access WRITE a l l l Setting a break event Setting events for bytewise accesses to the ROM RAM and internal I O MOV B ROL H E000 ROL H 04 Al MOV B ROH H E001 ROH H 08 Address 1 00E000 Data 1 0400 Cycle abel address Data WI AREA STATUS MODE MASK FFOO 000069 RAM TOP 00E000 04 000068 RAM TOP 00E000 04 000067 001140 E001 000066 001140 E001 000065 001142 6B82 000064 001142 6Ba2 000063 00E001 08 000062 00E001 08 Access WRITE dG ororojela Setting a break event Even address high order data effective Al Odd address low order data effective Address 1 00E001 Data 1 0008 MASK 00FF Access WRITE REJ10J0918 0300 Rev 3 00 February 15 2007 tENESAS Page 54 of 102 ROE436640CPE00 User s Manual 3 Usage Emulator Debugger 4 Setting the combinatorial event condition for the hardware break point 1 Window for setting the combinatorial event condition Setting the combinatorial event condition There are following three conditions that you can choose for the combinatorial events IV Enable HAW Break PASS E ADDR ACCE CONDITION STOR 1 Al OOFEOO READ add OOFEDO data 00 The program breaks when one of the specified events 1 42 00FEO1 READ add DOFEO1 data 001 occurs AND The program breaks when all of the specified events occur AND Same Time The program breaks when the specified events occur at
89. point setup window 3 Usage Emulator Debugger Trace Point Clicking this toolbar button opens the trace point setting window Or you can select Trace from Trace of View menu for the same effect 2 Trace Point Setting Window in initial state Trace Point Settine Event Status ADDRE ACCE CONDITION O 1 B1 000000 FETCH addr 000000 O 1 B2 000000 FETCH add 000000 PID m Combination for Detail P Enable Detalle m Trace Area Break h Total Write Condition L Detalle Reset Save Load Set Close REJ10J0918 0300 Rev 3 00 February 15 2007 2tENESAS Trace Point Setting Window in initial state Be sure to enable the trace point function in the Init dialog box before you set up in this window Here you can set events in the same way as for the hardware breakpoints Page 59 of 102 ROE436640CPE00 User s Manual 3 Usage Emulator Debugger 3 Specifying a trace area Specifying a trace area You can specify a trace range for the trace event Trace Point Settine Break 64K cycles of instruction execution before the user program stopped is recorded Event Status ADDRE ACCE CONDITION O 1 B1 000000 FETCH addr 000000 O 1 B2 000000 FETCH addr 000000 Before 64K cycles of instruction execution before a trace point condition was met is recorded About 6
90. r Registration When you have purchased the emulator presented in this user s manual please make 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 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 REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 12 of 102 ROE436640CPE00 User s Manual Terminology Terminology Some specific words used in this user s manual are defined as follows Emulator R0E436640CPE00 This means a compact emulator for H8 300H Tiny Series this product MCU board R0E436640EPBMO The MCU board ROE436640EPBMO with an evaluation MCU Emulator system This means an emulator system built around the compact emulator ROE436640CPE00 The emulator system is configured with an emulator main unit compact emulator ROE436640CPE0O emulator debugger Debugger Package for H8 300H Tiny Series and host machine Emulator debugger Debugger Package for H8 300H Tiny Series This means a software tool which starts up in the integrated development e
91. ribes specifications of the ROE436640CPE00 compact emulator and how to setup it For details on the integrated development environment High performance Embedded Workshop emulator debugger and evaluation version C C Compiler Package for H8 H8S H8SX Families which are included with the ROE436640CPEO0O0 refer to the online manual All the components of this product are shown in 1 1 Package Components page 14 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 tools Related manuals Item Manual Accessory Tools ROE436640CFG20 User s Manual ROE436640CFJ20 User s Manual ROE436049CFJ10 User s Manual Integrated development environment High performance Embedded Workshop User s Manual Emulator debugger H8 300H Tiny Compact Emulator Emulator Debugger User s Manual C compiler C C Compiler Package for H8 H8S H8SX Families Assembler Assembler Optimizing Linkage Editor User s Manual REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 3 of 102 ROE436640CPE00 User s Manual Important Important Before using this product make 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 refe
92. rs to the following products that are manufactured by Renesas Technology Corp 1 Compact emulator main unit 2 Package converter board for connecting the user system The emulator herein does not include your 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 H8 300H Tiny Series of Renesas 16 bit single chip MCUs It provides support for system development in both software and hardware Make 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 Inno 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
93. rved bits When read they always show the value 0 On the other hand the compact emulator stipulates that these bits must always be set to 0 and that when read these bits show the set value H FFFFE2 Port Mode Register 3 Bits 7 6 5 H FFFFF5 Interrupt Enable Register 2 Bits 7 6 H FFFFF9 Module Standby Control Register 1 Bits 7 2 H FFFFFA Module Standby Control Register 2 Bits 6 5 3 2 Although these bits in the hardware manual are reserved bits the compact emulator stipulates that these bits must always be set to 0 and that when read these bits show the set value H FFFFFB Module Standby Control Register 3 3 The hardware manual says Initial value 0 These are reserved bits When read they always show the value 0 On the other hand the compact emulator stipulates that these bits must always be set to 0 H FFFFF7 Interrupt Flag Register 2 4 Although these bits in the hardware manual are reserved bits the compact emulator stipulates that these bits must always be set to 0 H FFFFE4 Port Control Register 1 Bit 3 H FFFFE5 Port Control Register 2 Bits 7 6 5 H FFFFEA Port Control Register 7 Bits 7 3 H FFFFEB Port Control Register 8 Bits 4 0 5 Although the hardware manual says that registers are located at the addresses shown below the compact emulator stipulates that writing to the addresses has no effect and that when read they show indeter
94. s from Break of View menu _slptr NULL for the same effect HardwareSetup set imask cer 0 main S W break point column REJ10J0918 0300 Rev 3 00 February 15 2007 tENESAS Page 49 of 102 ROE436640CPE00 User s Manual 3 Usage Emulator Debugger 4 Executing up to the cursor position 1 Setup procedure for running the program up to the cursor position Setup procedure for running the program ae 138 up to the cursor position ETA Ejs 1 Click the line in the text area that you want to be 2 6 Assembly source f l E lowlvisre vga Sores ile Perea sect on ResetPRE executed ame entry vect 0 void Pouer UN Reset void eza set_imask_cer 1 E sbrke _INITSCT ES Download modules DE 2 Click the execution button to the cursor position _ DE 77 LALL_INITO Remove th E Dependencies E lowsrch 55 55 pow INIT_IOLIBO Use SIM I Or you can select Go to Cursor from Debug menu for E stackscth ani errno 0 Remove th srand 1 Remove th the same effect _slptr WW L Remove th HaptareSetup Remove th z6t imask cer 0 main _CLOSEALL Use SIM 1 _CALL_END Remove th as of 5 sample hBc lt gt resetpreo 2 After the execution has finished MMO PPS e e aaa aa ala ae ajos EG sample ho E sample h8 Gy Assembly source f E lowlvisre pragma section ResetPRG E O source file
95. s O Use the power supply which complies with CE marking requirements REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 23 of 102 R0E436640CPE00 User s Manual 2 5 Connecting the Host Machine Connect the emulator and the host machine with the USB interface cable Connect the USB interface cable included to the USB interface connector J2 and the USB port of the host machine see Figure 2 5 2 Setup To emulator power supply A SAFE STATUS COMPACT EMULATOR ROE436640CPE00 A To host machine Connect the USB interface cable to connector J 2 Figure 2 5 Connecting the emulator system REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 24 of 102 ROE436640CPE00 User s Manual 2 Setup 2 6 Turning ON the Power 2 6 1 MCU Power Supply Source Selection Jumper MCU Power Supply Voltage Selection Jumper Set the MCU power supply source selection jumper and the MCU power supply voltage selection jumper of the emulator according to conditions of use see Figure 2 6 POWER USB 5 0V 5 0V COMPACT EMULATOR ROE43664CPE00 a 5 gt Q 1 3 3 o n E E w ffi E z z JP1 MCU power supply source selection jumper factory setting INT JP2 MCU power supply voltage selection jumper factory setting 5 0V Dicono COMP EMULATOR MADE IN JAPAN Figure 2 6 Jumper switch locations These are the jumper switches to select
96. 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 ROE436640CPE00 package consists of the following items When unpacking it check to see if your ROE436640CPE00 contains all of these items Table 1 1 Package components Ttem Quantity ROE436640CPE00 compact emulator OSC 3 20MHz oscillator circuit board pre mounted OSC 2 oscillator circuit bare board USB interface cable for connecting host machine and emulator Power supply cable Ferrite core for connecting power supply cable H W Tool Customer Registration Sheet English H W Tool Customer Registration Sheet Japanese ROE436640CPEO00 User s Manual this manual R0E436640CPE00 User s Manual Japanese ROE436640CPEO00 Release Notes English ROE436640CPE00 Release Notes Japanese CD ROM Emulator debugger Renesas Debugger Package for H8 300H Tiny Series Evaluation version C C Compiler Package for H8 H8S H8SX Families kek kek l kek l kek l ed l ed l ed l ed l kek l kek l kek l kek l ked Please keep the ROE436640CPE00 s packing box and cushion material in your place for reuse at a later time when sending your product for repair or other purposes Always use these packing box and cushion material when transporting this produc
97. s one step Step Out Exists a function and stops at a statement in the program next to the one that called the function Or you can select Step In or other corresponding commands from Debug menu for the same effect REJ10J0918 0300 Rev 3 00 February 15 2007 ENESAS Page 47 of 102 ROE436640CPE00 User s Manual 3 Usage Emulator Debugger 6 Stopping the user program HALT Sl 01 iy He Stops the program Or you can select Halt from Debug menu for the same effect 7 Editor Source window after you have stopped the user program Editor Source window HardwareSetup The position at which the user program has stopped is set_imask_cer 0 marked by a yellow arrow sleep __interrupt vect 1 void Manua 771 771 REJ10J0918 0300 Rev 3 00 February 15 2007 tENESAS Page 48 of 102 ROE436640CPE00 User s Manual 3 Usage Emulator Debugger 3 Setting software break points 1 Screen after software breakpoint setup Screen after software break point setup Software break point B fpragma section ResetPRG h A software break point can be set or cleared by double clicking the break point display area E ESTO eer 1 This is rewritten to a break instruction and program execution starts _INIT_IOLIB Or you can select S W Break Points button of the tool bar errno 0 srand 1 or select S W Break Point
98. s products or if you have any other inquiries Note 1 Renesas Electronics as used in this document means Renesas Electronics Corporation and also includes its majority owned subsidiaries Note 2 Renesas Electronics product s means any product developed or manufactured by or for Renesas Electronics ENESAS C 7 D me 7 lt D D ROE436640CPE00 User s Manual Compact Emulator for H8 300H Tiny Series Renesas Electronics com Rev 3 00 2007 02 www renesas co Keep safety first in your circuit designs 1 Renesas Technology Corp puts the maximum effort into making semiconductor products better and more reliable but there is always the possibility that trouble may occur with them Trouble with semiconductors may lead to personal injury fire or property damage Remember to give due consideration to safety when making your circuit designs with ap propriate measures such as i placement of substitutive auxiliary circuits ii use of non flammable material or iii prevention against any malfunction or mishap Notes regarding these materials 1 These materials are intended as a reference to assist our customers in the selection of the Renesas Technology Corp product best suited to the customer s application they do not convey any license under any intellectual property rights or any other rights belonging to Renesas Technology Corp
99. served bits the compact emulator stipulates that these bits must always be set to 0 and that when read these bits show the set value H FFE2 Port Mode Register 3 H FFF5 Interrupt Enable Register 2 H FFFB Module Standby Control Register 3 3 Although the hardware manual says that registers are located at the addresses shown below the compact emulator stipulates that writing to the addresses has no effect and that when read they show indeterminate values This is because no registers exist at these addresses in the compact emulator H F730 Low voltage detection Control Register H F731 Low voltage detection Status Register H FF90 Flash Memory Control Register H FF91 Flash Memory Control Register 2 H FF92 Flash Memory Power Control Register H FF93 Block Specification Register 1 H FF9B Flash Memory Enable Register REJ10J0918 0300 Rev 3 00 February 15 2007 ENESAS Page 93 of 102 ROE436640CPE00 User s Manual 4 Hardware Specifications Adress Register Bit Biro Bits Bis Bis Br Bit Bito Evaluation chip _HFFEO PMri IRQs IRQ2 mor IRQO TXD2 PWM TxD TMOW HFFE2 PMR3 POF27 Porzs POF25 Pores pors Hrer2 ari NMEG Ecs c2 c1 teGo HFFF4 IENRI IENDT IENTA Enwp Ens tenz len Eno HFFFS IENR2 IENTBS IENTBZ IENTB1 HEFEA MSTCR2 MSTS3
100. specified Start event became Cancel nonexistent SS SSS R A range of cycles from when the specified Start event occurred to when the specified End event occurred REJ10J0918 0300 Rev 3 00 February 15 2007 ENESAS Page 60 of 102 ROE436640CPE00 User s Manual 3 Usage Emulator Debugger 3 8 RAM Monitor Window 1 RAM monitor window 1 Opening the RAM monitor window RAM monitor Clicking this button opens the RAM monitor window Or you can select RAM monitor from CPU of View menu for the same effect RAM monitor window This window shows changes of memory contents while the ft BBW n mae DA 0 2 aho user program is executed This is accomplished by using the 100ns Label Register 0 H 2 44 5 40 0 48 4 Ba ES ROWLTOP real time RAM monitor function and the memory contents corresponding to the RAM monitor area are displayed in dump form The memory contents displayed here are updated at given intervals by default every 100 ms during user program execution 000120 REJ10J0918 0300 Rev 3 00 February 15 2007 tENESAS Page 61 of 102 ROE436640CPE00 User s Manual 3 Usage Emulator Debugger 2 RAM monitor area setting window 1 Opening RAM monitor area setting window RAM monitor area setting Clicking this button opens the RAM monitor setting Register 0 2 3 4 5 6 7 window 2 RAM moni
101. ssemBy PROHIBITED means A FORCIBLE ACTION gian EEE unrtuc THE POWER CABLE FROM THE RECEPTACLE REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 6 of 102 ROE436640CPE00 User s Manual Precautions for Safety Z WARNING Warnings for AC Power Supply If the attached AC power cable does not fit the receptacle do not alter the AC power cable and do not plug it forcibly Failure to comply may cause electric shock and or fire O Use an AC power cable which complies with the safety standard of the country O Do not touch the plug of the AC power cable when your hands are wet This may cause electric shock O 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 O If other equipment is connected to the same branch circuit care should be taken not to overload the circuit O Use the power supply which complies with CE marking requirements O O When installing this equipment insure that a reliable ground connection is maintained O 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 ca
102. stor Vec 4 5V 21 100 96 200 Q ARon ON resistor difference Vcc 4 5V 2 20 10 IOFF Leak current Off Vcc 12 0V 1 1 A Iz Leak current On output open Vec 12 0V 1 1 T A CAUTION Note on DC Characteristics O Because a protective serial resistance analog switches and other devices are used between the ports the DC characteristics are different from those of an actual MCU Make note on this when using this product REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 70 of 102 ROE436640CPE00 User s Manual 4 Hardware Specifications 4 4 External Dimensions 4 4 1 External Dimensions of the Compact Emulator Figure 4 4 shows external dimensions of the ROE436640CPE00 connected with the converter POWER USB OV DU COMPACT EMULATOR ROE436640CPE00 S OWER PCLOCK TARGET EEPRESET STATUS C C Unit mm Figure 4 4 External dimensions of the compact emulator REJ10J0918 0300 Rev 3 00 February 15 2007 ENESAS Page 71 of 102 ROE436640CPE00 User s Manual 4 Hardware Specifications 4 4 2 External Dimensions of the Converter Board ROE436640CFG20 Figure 4 5 shows external dimensions and a sample foot pattern of the converter board ROE436640CFG20 for a 64 pin 0 8mm pitch QFP mn20 80 e ROE436640CFG20 REV A MADE IN JAPAN lt mn20 80 gt i T Unit mm Figure 4 5 External dimensions of the converter board ROE436
103. t If there is any question or doubt about the packaged product contact your local distributor REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 14 of 102 ROE436640CPE00 User s Manual 1 Outline 1 2 System Configuration 1 2 1 System Configuration Figure 1 1 shows a configuration of the ROE436640CPE00 system Power supply for emulator separately available USB interface cable Power supply cable Power supply for user system separately available n n a on User system Pitch converter board such as ROE436640CFK20 Host machine Compact emulator separately available ROE436640CPE00 Figure 1 1 System configuration 1 Compact emulator ROE436640CPE0O0 this product This compact emulator contains for the H8 300H Tiny Series which has a real time trace function This is described as emulator hereafter It is configured with a compact emulator control board upper board and an MCU board ROE436640EPBMO lower board contains an evaluation MCU 2 USB interface cable included This is an interface cable for connecting the host machine and emulator 3 Power supply for emulator This is a power supply for the emulator Supply 5 0 V 5 DC Prepare a power supply which complies with CE marking requirements separately The power cable is included with this product Note Be aware that there are some AC adapters whose power supply voltage varies rather w
104. t be guaranteed Notes on EEPROM O To permit the H8 36xxN with built in EEPROM to be evaluated this product has a serial EEPROM mounted directly in the conversion boards ROE436640CFG20 and ROE436640CFK20 one in each When evaluating the H8 36xxN be sure to select the MCU file H836xxN mcu in the emulator debugger Note that although the H8 36xxN permits the slave address code of its internal EEPROM to be rewritten to H 00 H 07 the slave address of the serial EEPROM mounted on the conversion board is fixed to H 00 default for the internal EEPROM of the H8 36xxN Note also that this EEPROM can be rewritten up to 100 000 times When this rewrite limit is exceeded please purchase a new conversion board O The serial EEPROM mounted on the conversion board has P57 SCL and P56 SDA connected to it with 10 kQ pullup resistors included Pay careful attention when you select pullup resistor values for the target system The pullup resistors of the target system affect the rise and fall times of signals depending on their selected values In the worst case the serial EEPROM cannot be accessed correctly Note on DC Characteristics O Because a protective serial resistance analog switches and other devices are used between the ports the DC characteristics are different from those of an actual MCU Make note on this when using this product Note on Final Evaluation O Be sure to evaluate your system with an evaluation MCU Before st
105. ter Biz Bie Bits Bits Bits Bite Bim Bio 20 T ERES RR ee ee eee eee RR eee IST EEE EE o RSS o RES ERR HT IMPRESA gt alo e lp ss doce DEE RR ERR RE RES H FFF734 Je sds e EN de CEEE EE PS PE E E RE RE RE it pe RR DS pp ire DR 28 28 peer ooo 2 gt Y o e L HEEE7S0 gt ll o Cf lo 9 o o gt S mer die E fl e ff P 2 1 oS 15567 A A ee A O HT ERA ES RE RSA E E A ERR RENNES COI ll A SO SS DO O oS Evaluation chip HFFFFDE ela e S o oo ea 1 o HFFFFE2 PMR3 Por27 POF26 POF25 POF24 POS HFFFFEE Il ce 0 2 o 1 Ae 0 2 os gt H FFFFF5 IENR2 IENTB3 IENTB2 IENTB1 H FFFFF7 IRR2 IRRTBS IRRTB2 IRRTB1 H FFFFFA MSTCR2 MSTS3_2 MSTTB3 MSTTB2 MSTTB1 MSTTX MSTIZ MSTPWM HFFFFFB MSTCR3 _ _ MTS HFFF7S7 ACTAMDAJTAMD7 TAMOS IhMDS TAVA TRMDS TAMOS LTD TENDO Ro Male HER O E O O E H CEEI PENA FESPE m H8 36079 DE BEM rowe ea SEE eam from MES D Poni rom PORTE PORTS PoR PoR PoR PORTO PHFFFFES ES orem RH ee Pom22 Poner POR HFFFFEB Pors PCR87 Pcrse Pers AAA meree LI O HH PEROT N bir AAA AS E o oo Fere M2 AJA ARTE C e O TEN FEFEEES MSTCRT A JOWSTIO VSTS3 MSTAD MSM MSTV MSTTA HFFFFFA MSTORZ WSTS3 2 E sta vistrz justo is PEA a Pe E A REJ10J0918 0300 Rev 3 00 February 15
106. the ferrite core included with this product close to the DC plug of the power cable Without the ferrite core it may cause interference The power cable should be wound around the ferrite core as shown in the figure and close the ferrite core until it clicks Figure 2 2 Attaching the ferrite core REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 22 of 102 ROE436640CPE00 User s Manual 2 Setup 2 4 Connecting the Power Supply for the Emulator Connect the power supply for the emulator to the power connector J1 The specification of the power supply for the emulator is listed in Table 2 1 Table 2 1 Specification of power supply of the emulator Power supply voltage DC 5 0 V 5 2 A Figures 2 3 and 2 4 show the specifications of the power connector J1 and an applicable plug respectively Electrod Electrode ectrode ectrode 1 7mm Inside diameter 4 75mm e Figure 2 3 Power connector specifications Figure 2 4 Applicable plug specifications A CAUTION Notes on Connecting a Power Supply of the Emulator O The power cable included in this product package is colored red and black O Be careful about the polarity of the power supply Connecting to the wrong electrode could destroy internal circuits O Do not apply a voltage exceeding the specified voltage of the product 5 0 V 5 because it may cause burn injuries and the failure of internal circuit
107. the power to the emulator and the user system as simultaneously as possible Check that the system status LED and POWER and RESET of target status LED are lighting When the user system is not connected the POWER LED does not light up Start up the High performance Embedded Workshop and the emulator debugger Set the INIT dialog box and MCU Setting dialog box of the emulator debugger For how to use the emulator debugger refer to the online manual of the High performance Embedded Workshop and emulator debugger Figure 2 1 Flowchart of starting up the emulator REJ10J0918 0300 Rev 3 00 February 15 2007 tENESAS Page 21 of 102 ROE436640CPE00 User s Manual 2 Setup 2 2 Installing the Included Software 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 The auto_run exe starts up by inserting the included CD into the CD ROM drive and the HTML page for installation will open Install the C compiler emulator debugger and USB driver as occasion demands In process of installation user information dialog box to enter the user information contractor section contact address and host machine will open The supplied information will be turned into a format by which technical support will be provided by e mail 2 3 Attaching the Ferrite Core Attach
108. tor area setting window in initial state RAM Monitor Area Setting Window in initial state MRAM Monitor rea Setting No settings by default pj Current Assigned Area To set a RAM monitor area click the Add button The RAM Monitor Area Setting window will be displayed 4 blocks 024 bytes are available lt 1 block 256 bytes gt Save Load Close REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 62 of 102 ROE436640CPE00 User s Manual 3 Usage Emulator Debugger 3 RAM monitor area setting dialog box Specifying the start address You can set the start address of the RAM area to be Set RRAM Area Start G Size 1 Specifying the size monitored Area You can set the size to be monitored by specifying the Cancel number of blocks from the start address One block is 256 bytes in size 4 RAM monitor area setting dialog box when RAM monitor area is changed from H FEO0 to 1 block 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 Current Assigned rea TR U button The RAM Monitor Area Setting window will be Start Si rea OOFEOO 1 DOFEDO OOFEFF displayed 3 blocks 768 bytes are available lt 1 block 256 bytes gt Save Load Close 5 RAM monitor area setting dialog box Changing the RAM monitor display area You ca
109. ues This is because no registers exist at these addresses in the compact emulator H F730 Low voltage detection Control Register H F731 Low voltage detection Status Register H F732 Reset Source Decision Register H F734 Clock Control Status Register H F735 RC Control Register H F736 RC Trimming Data Protect Register H F737 RC Trimming Data Register H FF90 Flash Memory Control Register H FF91 Flash Memory Control Register 2 H FF92 Flash Memory Power Control Register H FF93 Block Specification Register 1 H FF9B Flash Memory Enable Register H FFDE Port Data Register C H FFEE Port Control Register C REJ10J0918 0300 Rev 3 00 February 15 2007 ENESAS Page 83 of 102 ROE436640CPE00 User s Manual 4 Hardware Specifications 6 Although the hardware manual describes the functions shown below they are not available on the compact emulator because the evaluation MCU does not have them power on reset amp low voltage detection circuit on chip oscillator The watchdog timer starts operating in the initial state after the reset clock output Port C 7 Although the hardware manual says Initial value 1 the initial value is 0 in the compact emulator When the watchdog timer counts up these bits must always be set to 1 H FFCO Timer Control Status Register WD Address Register Bitz Bro Bits Bi Big Bite eu Bito I
110. ugger See the user s manual online manual of the emulator debugger 2 Reinstall the emulator debugger Not normal Error displayed emulator debugger Normal Program window of emulator debugger displayed Normal Emulator debugger startup completed See 5 2 2 MCU Setting Dialog Box Does Not Appear at Emulator Debugger Startup page 97 Error displayed See 5 2 3 Errors Occur at Emulator Debugger Startup page 97 Figure 5 1 Flowchart to remedy the troubles tENESAS REJ10J0918 0300 Rev 3 00 February 15 2007 Page 95 of 102 ROE436640CPEO00 User s Manual 5 Troubleshooting 5 2 When the Emulator Debugger Does Not Start Up Properly 5 2 1 When the LEDs of the Emulator Do Not Display Normally Table 5 1 Errors LEDs show and their checkpoints Error Connection to the user system Checkpoint LEDs do not light up Check that the power cable is connected See 2 4 Connecting the Power Supply for the Emulator page 23 Target Status POWER LED does not light up Connected Check that power Vcc and GND is properly supplied to the user system Target Status CLOCK LED does not light up Not connected 1 Check that both the main and sub clocks of the emulator debugger are not set to EXT See the CLK command of the emulator debugger 2 Check that the oscillator circuit board is properly installed in the emulator and is oscillatin
111. uipment communications equipment test and measurement equipment audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots High Quality Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems safety equipment and medical equipment not specifically designed for life support Specific Aircraft aerospace equipment submersible repeaters nuclear reactor control systems medical equipment or systems for life support e g artificial life support devices or systems surgical implantations or healthcare intervention e g excision etc and any other applications or purposes that pose a direct threat to human life You should use the Renesas Electronics products described in this document within the range specified by Renesas Electronics especially with respect to the maximum rating operating supply voltage range movement power voltage range heat radiation characteristics installation and other product characteristics Renesas Electronics shall have no liability for malfunctions or damages arising out of the use of Renesas Electronics products beyond such specified ranges Although Renesas Electronics endeavors to improve the quality and reliability of its products semiconductor products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under cert
112. uman 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 damage or infringement on patent rights or any other rights arising from the use of any information products or circuits presented in this user s manual 2 The information or data in this user s manual does not implicitly or otherwise grant a license for patent rights or any other rights belonging to us or third parties 3 This user s manual and this emulator are copyrighted with all rights reserved by us This user s manual may not be copied duplicated or reproduced in whole or part without prior written consent of us About diagrams The diagrams in this user s manual may not all represent exactly the actual object REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 5 of 102 ROE436640CPE00 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 preve
113. user system REJ10J0918 0300 Rev 3 00 February 15 2007 tENESAS Page 97 of 102 ROE436640CPEO00 User s Manual 5 Troubleshooting 5 3 How to Request for Support After checking the items in 5 Troubleshooting fill in the text file the installer of the emulator debugger generates in the following directory and email to your local distributor http tool support renesas com eng toolnews registration support txt For prompt response please specify the following information 1 Operating environment Operating voltage Y Operating frequency MHz Clock supply to the MCU Internal oscillator External oscillator 2 Condition The emulator debugger starts up does not start up The error is detected not detected in the self check Frequency of errors always frequency 3 Problem REJ10J0918 0300 Rev 3 00 February 15 2007 2ENESAS Page 98 of 102 ROE436640CPEO00 User s Manual 6 Maintenance and Guarantee 6 Maintenance and Guarantee This chapter describes how to perform maintenance warranty information repair provisions and the procedures for requesting a repair 6 1 User Registration When you purchase our product be sure register as a user For user registration refer to User registration page 12 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
114. w the compact emulator stipulates that writing to the addresses has no effect and that when read they show indeterminate values This is because no registers exist at these addresses in the compact emulator H FF90 Flash Memory Control Register 1 H FF91 Flash Memory Control Register 2 H FF92 Flash Memory Power Control Register H FF93 Block Specification Register 1 H FF9B Flash Memory Enable Register REJ10J0918 0300 Rev 3 00 February 15 2007 RENESAS Page 81 of 102 ROE436640CPE00 User s Manual 4 Hardware Specifications oa pel gt lt o 2 ee ee ECON OA O PERE EA a RR E RR RE ETC al alo la o alo A EEE fo fs oe ose erra E Lele Here2 pues Por27 porze pores Porz4 pores Evaluation chip eres tenga tentes ente2 enei ree mea imeres imerso errar HFEFA MSTCR2 MSTS3 2 msTT83 MSTTB2 MSTTBI MSTTX MSTIZ MSTPWM Herre msrers o e gt iste E SEA A EE O PO E A MECHA NA ON O E A L GE E ES E E Doses H H8 36087 2 EE ES E EEE RCE DES EE ZN cc rp E a EA PTE EE ERES AAA RLH gt gt RE E E EST Do Oa veraz stem ES usres E eee gt SEE E e DES REJ10J0918 0300 Rev 3 00 February 15 2007 tENESAS Page 82 of 102 ROE436640CPE00 User s Manual 4 Hardware Specifications 4 6 5 Precautions for the H8 36077 Series 1 The hardware manual says Initial valu
115. y 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 potentially at stake Please contact Renesas Technology Corp or an authorized Renesas Technology Corp product distributor when considering the use of a product contained herein for any specific purposes such as apparatus or systems for transportation vehicular medical aerospace nuclear or undersea repeater use 6 The prior written approval of Renesas Technology Corp is necessary to reprint or reproduce in whole or in part these materials 7 If these products or technologies are subject to the Japanese export control restrictions they must be exported under a license from the Japanese government and cannot be imported into a country other than the approved destination Any diversion or reexport contrary to the export control laws and regulations of Japan and or the country of destination is prohibited 8 Please contact Renesas Technology Corp for further details on these materials or the products contained therein ROE436640CPE00 User s Manual Preface Preface The ROE436640CPEO00 is a compact emulator for H8 300H Tiny Series MCUs which has a real time trace function This user s manual mainly desc
Download Pdf Manuals
Related Search
Related Contents
Hirden AC Servo Drive for Industrial Control Application H3L10 Bazooka MGA4150 Stereo Amplifier User Manual 2. 機械安全に関する基本安全規格とグループ安全規格の概要 Robust, weather-resistant telephone Operating instructions TWIN CAM INSTRUCTIONS Manuel d`utilisation Copyright © All rights reserved.
Failed to retrieve file