Home
E8 Emulator Additional Document for User`s Manual
Contents
1. REJ10J0976 0500 Rev 5 00 Aug 01 2007 Page 28 of 30 tENESAS E8 Emulator Section 8 Applicable Tool Chain and Third party Products Section 8 Applicable Tool Chain and Third party Products With the R32C 80 Series E8 emulator you can debug a module created by the inhouse tool chain and third party products listed in Table 8 1 below Table 8 1 Applicable Tool Chain and Third party Products M3T NC308WA V 5 20 Release 02 or later Third party IAR EWM32C V 3 10A or later products REJ10J0976 0500 Rev 5 00 Aug 01 2007 Page 29 of 30 tENESAS E8 Emulator Section 8 Applicable Tool Chain and Third party Products REJ10J0976 0500 Rev 5 00 Aug 01 2007 Page 30 of 30 tENESAS E8 Emulator Additional Document for User s Manual Notes on Connecting the M32C 84 M32C 85 M32C 86 M32C 87 and M32C 88 Publication Date Aug 01 2007 Rev 5 00 l Sales Strategic Planning Div PUPS OECD Renesas Technology Corp Edited by Microcomputer Tool Development Department Renesas Solutions Corp 2007 Renesas Technology Corp and Renesas Solutions Corp All rights reserved Printed in Japan E8 Emulator Additional Document for User s Manual CENESAS Renesas Technology Corp 2 6 2 Ote machi Chiyoda ku Tokyo 100 0004 Japan
2. REJ10J0976 0500 Rev 5 00 Aug 01 2007 Page 23 of 30 tENESAS E8 Emulator Section 6 Notes on Using the E8 Emulator 22 23 24 ZS Note on debugging in CPU rewrite mode When debugging in CPU rewrite mode do not rewrite in CPU block O area addresses FFFOOOh FFFFFFh and block containing the E8 emulator program If these areas are rewritten the E8 emulator will not control the MCU Do not halt the user program while setting up the CPU rewrite mode and releasing it If halted the E8 emulator may not control the MCU In addition disable the automatic update in the watch window or fix the display in the memory window before running the program so memory accesses do not occur during an execution To check the data after executing the CPU rewrite mode halt the program after releasing the CPU rewrite mode and refer to the memory window etc When rewriting the Flash memory in the program area select Menu gt Setup gt Emulator gt System to open the Configuration dialog box in the High performance Embedded Workshop In this dialog box change the Flash memory synchronization setting to Flash memory to PC and set the debugger cache to OFF In this setting the Flash memory is read whenever a break occurs which takes some time Use it with the Disable setting except when debugging in CPU rewrite mode Notes on rewriting Flash memory Do not reset the MCU when rewriting the Flash memory The Flash memory is rew
3. REJ10J0976 0500 Rev 5 00 Aug 01 2007 Page 4 of 30 tENESAS E8 Emulator Section 3 Connecting the E8 Emulator to the User System Section 3 Connecting the E8 Emulator to the User System Before connecting the E8 emulator to the user system a connector must be installed in the user system so a user system interface cable can be connected When designing the user system refer to Figure 4 1 E8 Connecting Connector Pin Assignments and Figures 5 1 to 5 4 Example of an E8 Connection Before designing the user system be sure to read the E8 Emulator User s Manual and related device hardware manuals Table 3 1 shows the recommended connector for the emulator Table 3 1 Recommended Connector i Type Number Specification 14 pin connector 2514 6002 3M Limited 14 pin straight type Connect E8 connecting connector pins 2 6 10 12 and 14 firmly to the GND on the user system board These pins are used as an electric GND and monitor the connection of the user system connector Note the pin assignments for the user system connector User system interface cable ae SY Connector User system Pin 2 Pin 1 Figure 3 1 Connecting the User System Interface Cable with an E8 Connecting Connector Notes 1 Do not place any components within 3 mm area of the connector 2 When using the E8 emulator as a programmer connect it to the user system in the same way REJ10J0
4. Use this figure as a reference when determining the pull up resistance value User system connector Power supply circuit Vcc use only with power supply mode 8 74LVC125A Emulator control circuit 74LVC125A 2SC2462 10kQ 1 Power for the upper 74LVC125A is supplied from Vcc in the user system connector or power supply circuit in power supply mode Figure 5 12 Interface Circuit Inside the E8 Emulator For Reference REJ10J0976 0500 Rev 5 00 Aug 01 2007 Page 16 of 30 tENESAS E8 Emulator Section 6 Notes on Using the E8 Emulator Section 6 Notes on Using the E8 Emulator pd Program area for the E8 emulator Table 6 1 lists the program areas allotted for the E8 emulator Do not change this area allocation otherwise the E8 emulator will not control the MCU If settings were changed disconnect the debugger and then reconnect it Table 6 1 Program Area for the E8 Emulator Program Area for E8 Emulator RAM Size ROM Size Programming pares Area 320 KB 384 KB 512 KB 320 KB 384 KB 512 KB Group Part No M30843FW M30843FH M30843FJ M30845FW M30845FH M30845FJ M30853FW 320 KB M30853FH 384 KB M30853FJ 512 KB M30855FW 320 KB M30855FH 384 KB M30855FJ 512 KB M32C 86 M30865FJ 512 KB M30879FL M3087BFL M30873FH M32C 87 M30875FH M30876FJ M30878FJ M30879FK M3087BFK M30880FW M30882FW M32C 88 M30880FH M30882FH M30880FJ M30882FJ Note 1 When starting the debugger the Emulator Setting dia
5. timer started REJ10J0976 0500 Rev 5 00 Aug 01 2007 Page 22 of 30 CENESAS E8 Emulator Section 6 Notes on Using the E8 Emulator 19 Exceptional step execution a Software interrupt instruction Step execution cannot be performed in the internal processing of instructions undefined overflow BRK and INT which generate a software interrupt continuously in the program Example INT instruction NOP NOP INT 3 NCE Passes through if the STEP execution is carried out JMP MAIN INT_3 NOP lt _ Program should be stopped at this address NOP NOP REIT b INT instruction To debug the user program with the INT instruction set a PC break for the internal processing of the INT instruction and execute the program with the GO command Example NOP INT 3 NOP JMP MAIN Execute using GO command INT 3 NOP Break lt NOP REIT 20 Go to cursor function The Go to cursor function is actualized using an address match break Therefore when you execute the Go to cursor command all the address match breaks you set become invalid while all the PC breaks remain valid 21 Note on PC break point When downloading a user program after modifying it the set address of PC break may not be corrected normally depending on the modification Therefore break points other than the set PC breaks may shift After downloading a user program check the setting of PC breaks in the event point window and reset it
6. 0 Rev 5 00 Aug 01 2007 Page 13 of 30 tENESAS E8 Emulator Section 5 Examples of E8 Connections 2 Single power supply and memory expansion mode Pulled up at 4 7kO to 22kO Pulled up at Vcc 4 7kO or more User system connector Figure 5 7 Connection of E8 Emulator and Pins P50 and P55 Single Power Supply and Memory Expansion Mode Note 1 The HOLD signal cannot be used Pull up P55 on the user system 3 In dual power supply and single chip mode Pull up or down on P55 according to the MCU pin state after disconnecting the E8 emulator P55 may be in a Hiz state while the E8 emulator is active Therefore set the pin resistance value so the voltage cannot be at the midpoint potential depending on the voltage dividing of the resistance inside the E8 emulator Figure 5 12 Pulled up at Vcc2 4 7kQO or more User system connector P50 CE Figure 5 8 Connection of E8 Emulator and Pins P50 and P55 Dual Power Supply and Single chip Mode 4 In dual power supply and memory expansion mode Pulled up at 4 7kQ to 22kO Pulled up at Vcc2 Vcc2 4 7KQ or more User system af ra connector P Figure 5 9 Connection of E8 Emulator and Pins P50 and P55 Dual Power Supply and Memory Expansion Mode Note 1 The HOLD signal cannot be used Pull up P55 on the user system REJ10J0976 0500 Rev 5 00 Aug 01 2007 Page 14 of 30 tENESAS E8 Emulator Section 5 Examples of E8 Connections 3 The E8 emulator uses the CNVss
7. 6 0500 Rev 5 00 Aug 01 2007 Page 12 of 30 tENESAS E8 Emulator Section 5 Examples of E8 Connections Points to Remember 1 Pins P64 P65 P66 and P67 are used exclusively by the E8 emulator Connect the E8 emulator to the MCU pins Connect pins P65 P66 and P67 to the E8 emulator after pulling up the MCU pins Pull up or down on P64 according to the MCU pin state after disconnecting the E8 emulator P64 may be in a Hiz state while the E8 emulator is active Therefore set the pin resistance value so the voltage cannot be at the midpoint potential depending on the voltage dividing of the resistance inside the E8 emulator Figure 5 12 Vcc Vcc Vcc Vcc1 Vcc1 Vcc 1 Pulled up at User system 7 4 7kQ or more connector 1 k ooo _ P67 TxD P67 5 ros Figure 5 5 E8 Emulator and MCU Connection 2 The E8 emulator uses pins P50 and P55 for MCU control Connect the E8 emulator to the MCU pins 1 In single power supply and single chip mode Pull up or down on P50 and P55 according to the MCU pin state after disconnecting the E8 emulator P50 and P55 may be in a Hiz state while the E8 emulator is active Therefore set the pin resistance value so the voltage cannot be at the midpoint potential depending on the voltage dividing of the resistance inside the E8 emulator Figure 5 12 User system connector Figure 5 6 Connection of E8 Emulator and Pins P50 and P55 Single Power Supply and Single chip Mode REJ10J0976 050
8. 7 letters Cancel Figure 6 3 ID Code verification Dialog Box Note on Program Flash mode When the ID code is specified by the ID option of the Imc30 download the MOT file or HEX file When the X30 file is downloaded the ID code is not valid When downloading the X30 file specify the ID code using an assembler directive command such as BYTE The file to which the ID code specified by the assembler directive command ID is output varies depending on the version of the assembler For details refer to the Assembler User s Manual 9 Operation clock during a user program halt While the user program halts the E8 emulator program changes the main clock divide by N value to operate 10 Reset The reset vector is used by the E8 emulator program If the MCU is reset while executing the user program control is transferred to the E8 emulator program and the user program is forced to stop Do not use the hardware reset 2 software reset and watchdog timer reset otherwise the E8 emulator will not operate normally REJ10J0976 0500 Rev 5 00 Aug 01 2007 Page 21 of 30 tENESAS 11 12 13 14 15 16 17 18 E8 Emulator Section 6 Notes on Using the E8 Emulator Memory access during emulation execution When referring to or modifying the memory contents the user program is temporarily halted For this reason a real time emulation cannot be performed When a real time emulation is necessary d
9. 976 0500 Rev 5 00 Aug 01 2007 Page 5 of 30 tENESAS E8 Emulator Section 3 Connecting the E8 Emulator to the User System REJ10J0976 0500 Rev 5 00 Aug 01 2007 Page 6 of 30 tENESAS E8 Emulator Section 4 E8 Connecting Connector Pin Assignments Section 4 E8 Connecting Connector Pin Assignments Figure 4 1 shows the pin assignments for the E8 connecting connector M32C 84 M32C 88 MCU signals P65 SCLK Vss CNVss P55 EPM P67 TxD Vss P50 CE Vcc P64 BUSY Vss P66 RxD Vss RESET Vss Pin 1 mark Connector O O O O Pin14 Cy O O O RP 0O O Pin13 h ee d ronio oN WY Pin 1 mark Figure 4 1 E8 Connecting Connector Pin Assignments Note Pin 14 is used for checking the connection between the E8 and the user system and is not directly connected to the Vss inside the E8 Make sure pins 2 6 10 12 and 14 are all connected to the Vss REJ10J0976 0500 Rev 5 00 Aug 01 2007 Page 7 of 30 tENESAS E8 Emulator Section 4 E8 Connecting Connector Pin Assignments REJ10J0976 0500 Rev 5 00 Aug 01 2007 Page 8 of 30 tENESAS E8 Emulator Section 5 Examples of E8 Connections Section 5 Examples of E8 Connections The following show connection examples When using the emulator as a programmer the connection specification between the E8 and the MCUs is the same as shown below 1 In single power supply and single chip mod
10. REJ10J0976 0500 Everywhere you imagine g gt NI ESAS E8 Emulator Additional Document for User s Manual ROE000080KCE00EP8 Renesas Microcomputer Development Environment System M16C Family M382C 80 Series Notes on Connecting the M32C 84 M32C 85 M32C 86 M32C 87 and M32C 88 Rev 5 00 Renesas Technology Aug 01 2007 WWW FeEnesas com 10 TA 12 13 Notes regarding these materials This document is provided for reference purposes only so that Renesas customers may select the appropriate Renesas products for their use Renesas neither makes warranties or representations with respect to the accuracy or completeness of the information contained in this document nor grants any license to any intellectual property rights or any other rights of Renesas or any third party with respect to the information in this document Renesas shall have no liability for damages or infringement of any intellectual property or other rights arising out of the use of any information in this document including but not limited to product data diagrams charts programs algorithms and application circuit examples You should not use the products or the technology described in this document for the purpose of military applications such as the development of weapons of mass destruction or for the purpose of any other military use When exporting the products or technology described herein you should follow the applicable export control la
11. Setting Firmware location Program 800h Byte Use F00 oo MIM FBOOOO MAX FFF700 Work RAM 100h Byte Use U4 p MIN 0400 MAX 6300 eet Do not show this dialog box again Figure 6 2 Firmware Location Tab of the Emulator Setting Dialog Box REJ10J0976 0500 Rev 5 00 Aug 01 2007 Page 20 of 30 tENESAS E8 Emulator Section 6 Notes on Using the E8 Emulator 8 Flash memory ID code This MCU function prevents the Flash memory from being read out by anyone other than the user The ID code in Table 6 4 written to the flash memory of the MCU must match the ID code displayed in the Figure 6 3 ID Code verification dialog box at debugger startup otherwise the debugger cannot be launched Note that when the ID code is FFh FFh FFh FFh FFh FFh FFh the ID code is regarded as undefined In this case the ID code is automatically authenticated and the ID Code verification dialog box is not displayed In Program Flash mode the contents of the user program are input into the ID code area When debugging in other modes FFh FFh FFh FFh FFh FFh FFh is written into the ID code area regardless of the contents of the downloaded user program Table 6 4 ID Code Storage Area of M32C ID Code yveritication Please input the ID code beinge written in the flash memory ID Code n 020304050607 Input Mode f Hex Specity ID code by hexadecimal 14 digits f ASCH Specify ID code by ASCI character within
12. ations Renesas products are not designed manufactured or tested for applications or otherwise in systems the failure or malfunction of which may cause a direct threat to human life or create a risk of human injury or which require especially high quality and reliability such as safety systems or equipment or systems for transportation and traffic healthcare combustion control aerospace and aeronautics nuclear power or undersea communication transmission If you are considering the use of our products for such purposes please contact a Renesas sales office beforehand Renesas shall have no liability for damages arising out of the uses set forth above Notwithstanding the preceding paragraph you should not use Renesas products for the purposes listed below 1 artificial life support devices or systems 2 surgical implantations 3 healthcare intervention e g excision administration of medication etc 4 any other purposes that pose a direct threat to human life Renesas shall have no liability for damages arising out of the uses set forth in the above and purchasers who elect to use Renesas products in any of the foregoing applications shall indemnify and hold harmless Renesas Technology Corp its affiliated companies and their officers directors and employees against any and all damages arising out of such applications You should use the products described herein within the range specified by Renesas especially with respect to the m
13. aximum rating operating supply voltage range movement power voltage range heat radiation characteristics installation and other product characteristics Renesas shall have no liability for malfunctions or damages arising out of the use of Renesas products beyond such specified ranges Although Renesas endeavors to improve the quality and reliability of its products IC products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions Please be sure to implement safety measures to guard against the possibility of physical injury and injury or damage caused by fire in the event of the failure of a Renesas 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 applicable measures Among others since the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or system manufactured by you In case Renesas products listed in this document are detached from the products to which the Renesas products are attached or affixed the risk of accident such as swallowing by infants and small children is very high You should implement safety measures so that Renesas products may not be easily detached from your products Renesas shall have no liability for damages arising out of such detachment This docum
14. be executed Setting the PC break points Changing the memory contents in the Flash memory area In this mode when starting the debugger the E8 emulator erases the Flash memory data for the MCUs and simultaneously writes the E8 emulator program Power supply When supplying power to the user system from the E8 click the Power Target from Emulator MAX 300mA check box Note that when debugging the system which operates the MCU with a dual power supply power cannot be supplied from the E8 3 Firmware Location tab For details see 1 Program area for the E8 emulator and 7 Debugging using the watchdog timer in Section 6 Notes on Using the E8 Emulator REJ10J0976 0500 Rev 5 00 Aug 01 2007 Page 27 of 30 CENESAS E8 Emulator Section 7 Debugger Setting 4 MCU Setting Tab In the MCU Setting tab set the operating condition of the MCU used in the user system Emulator mode Firmware Location MCU Setting MOU Setting ML Madada F w Processor Mode Memory Expansion Mode Figure 7 38 MCU Setting Tab Specify processor mode Specify the processor mode according to the user system One of the following can be specified Single Chip Mode Memory Expansion Mode Notes The following describes precautions to be taken when using the emulator in memory expansion mode When the external area cannot be rewritten via normal memory access software breaks cannot be used in that area
15. e Pulled up at 4 7KQ or more Vcc Pulled up at 4 7kQ or more Vcc E hit SCLK RxD TxD ee P67 n 7 a CE P50 1 kaim Pulled up at 4 7KQ or more x i lt JJ m w m Pulled down at 4 7kQ or more 14 pin 2 54mm pitch Open collector buffer connector User system Figure 5 1 Example of an E8 Connection Single Power Supply and Single chip Mode Note 1 For details on setting pins P50 P55 and P64 refer to numbers and 2 of Points to Remember on page 13 REJ10J0976 0500 Rev 5 00 Aug 01 2007 Page 9 of 30 tENESAS E8 Emulator Section 5 Examples of E8 Connections 2 In single power supply and memory expansion mode Pulled up at 4 7kQ Pulled up at 4 7kQ to 22kO or more Pulled up at 4 7kQO or more Pulled up at 4 7kQO or more Pulled down at 4 7kQO or more 14 pin 2 54mm pitch connector Open collector buffer User system Figure 5 2 Example of an E8 Connection Single Power Supply and Memory Expansion Mode Notes 1 For details on setting pin P64 refer to number of Points to Remember on page 13 2 The HOLD signal cannot be used Pull up P55 on the user system 3 P50 is used as the WRL WR pin The E8 emulator outputs H to the CE pin when going to boot mode resetting the MCU In other cases the CE pin is in a Hiz state This prevents signal collision between the E8 emulator and the MCU The WRL WR pin does not affec
16. e set when the debugger is launched The contents set from this dialog box excluding Power Supply group box items also become valid the next time the debugger is launched When launching the debugger for the first time after creating a new project work space the Emulator Setting dialog box is displayed with the Wizard Emulator Setting Emulator mode Firmware Location MOU Setting MEU Group M32C B4 Group Device M30843FW Mode f Erase Flash and Connect f Keep Flash and Connect f Program Flash C Debueeine of GPU rewrite mode Power supply iw Power Target from Emulator MA 300mA Magy fe 5OV me Do not show this dialog box again Figure 7 1 Emulator Setting Dialog Box If you check Do not show this dialog box again at the bottom of the Emulator Setting dialog box the Emulator Setting dialog box will not be displayed the next time the debugger is launched You can open the Emulator Setting dialog box using one of the following methods After the debugger is launched select Menu gt Setup gt Emulator gt Emulator Setting Hold down the Ctrl key while launching the debugger When Do not show this dialog box again is checked the E8 does not supply power to the user system REJ10J0976 0500 Rev 5 00 Aug 01 2007 Page 25 of 30 tENESAS E8 Emulator Section 7 Debugger Setting 2 Emulator mode tab Device selection mode specification and power supply
17. ent may not be reproduced or duplicated in any form in whole or in part without prior written approval from Renesas Please contact a Renesas sales office if you have any questions regarding the information contained in this document Renesas semiconductor products or if you have any other inquiries Contents Section 1 Inside the E8 Emulator Users Manual ccccsssssssssseeeeceeceeeeeeeanaaeessseeeeeeceeeeeeeeeeseeesaaaaeansnseeeeseeeeeeseeees 1 Section 2 E8 Emulator Specifications 0 0 cccccccccccccccsssecceeeeeeeceeeeceeeceeeeeaeseceeeeseeceeeeeaeseceeeseaaueeeeesaaaeeeeeessageeeeeeeas 3 Section 3 Connecting the E8 Emulator to the User System ccccccccceseeceeeeeeeeeceeeeeeeseceeeeeeeeeeeeaaeeceeesseaaeeeeeeeas 5 Section 4 E8 Connecting Connector Pin Assignments cccccccseeeceeeceeeeceeceeesseceeeeeeeseceeeseeseeeeeseuaeeeeeesaaaeeeeeeeas 7 SECHOMS Examples 0 ES GOMMOCIOIS scsisic tains ide a a aa a bance Santee agentes 9 Secion 6 Notes on Usindine ES EMUO senon a N ne eee 17 SECHON 7 DEDUGCE SCHING eors aa aa 25 Section 8 Applicable Tool Chain and Third party Products ccccccccccseseceeceeceeceeceeceeeeceeseeeeeeseeeeeeseaeeseesaeeeeeas 29 This user s manual is applicable to the E8 emulator software V 2 10 Release 00 or later E8 Emulator Section 1 Inside the E8 Emulator User s Manual Section 1 Inside the E8 Emulator User s Manual The E8 emulator manual consists of two documen
18. es Interrupts used by the E8 emulator program The BRK2 instruction interrupt address match interrupt and single step interrupt are used by the E8 emulator program Therefore make sure the user program does not use any of these interrupts The E8 emulator changes these interrupt vector values to the values to be used by the emulator No problems occur if the interrupt vector values are written in the user program REJ10J0976 0500 Rev 5 00 Aug 01 2007 Page 19 of 30 tENESAS Section 6 Notes on Using the E8 Emulator E8 Emulator Section 6 Notes on Using the E8 Emulator 7 Debugging using the watchdog timer When debugging the user program using the watchdog timer click the Debugging of program that uses WDT check box in the Firmware Location tab of the Emulator Setting dialog box By clicking this box the E8 emulator program refreshes the watchdog timer during program operation If memory access is executed through memory reference or modification the watchdog timer will be refreshed by the E8 emulator program When using the actual MCU the watchdog timer starts operating by writing to the watchdog timer start register However when using this emulator the watchdog timer starts after initiating the user program because the E8 emulator program refreshes the watchdog timer even if a user program halts Note that this timing will differ from the actual operational timing Emulator Setting Emulator mode Firmware Location MCU
19. es 7 P i a Microprocessor mode is not supported Address match break 8 points Break functions PC break points maximum 255 points Forced break Flash memory programming function Available Clock synchronized serial communication via P64 P65 P66 P67 ROM size 2 KB variable assigned address RAM size 256 bytes variable assigned address Stack 20 bytes UART1 function and P64 P65 P66 P67 Pins P50 and P55 Address match interrupt Unnecessary USB bus powered power supplied from the PC USB USB 1 1 full speed Also connectable to host computers that support USB 2 0 Power supply function Can supply 3 3 V or 5 0 V to the user system maximum 300 mA M32C 84 3 0 V 0 3 V or 5 0 V 0 5 V M32C 85 5 0 V 0 5 V Power voltages M32C 86 3 0V 40 3Vor5s 0V 0 5V M32C 87 sd V0 3 Vor5 0V 0 5V M32C 88 50V 0 5V Table 2 2 shows the operating environment of the E8 emulator MCU resources to be used Interface with host machine Table 2 2 Operating Environment Active 10 C to 35 C Temperatures Inactive 10 C to 50 C o Active 35 RH to 80 RH no condensation Humidity l Inactive 35 RH to 80 RH no condensation Active maximum 2 45 m s Vibrations Inactive maximum 4 9 m s Transportation maximum 14 7 m s Ambient gases No corrosive gases REJ10J0976 0500 Rev 5 00 Aug 01 2007 Page 3 of 30 tENESAS E8 Emulator Section 2 E8 Emulator Specifications
20. k RAM address for the E8 emulator is specified in the Firmware Location tab of the Emulator Setting dialog box REJ10J0976 0500 Rev 5 00 Aug 01 2007 Page 18 of 30 tENESAS E8 Emulator 3 4 The E8 emulator uses up to 20 bytes of the stack pointer during a user program break Therefore set aside 20 bytes 5 The E8 emulator controls the MCUs by using the P50 P55 P64 P65 P66 P67 RESET and CNVss pins for the stack area SFRs used by the E8 emulator program As the SFRs listed in Table 6 3 are used by the E8 emulator program do not change any of these values If these values are changed the E8 emulator cannot control the MCU Note that UART1 transmit interrupt control register SITIC and UART receive interrupt control register SIRIC always read out values used by the emulator These registers are not initialized by selecting Debug gt Reset CPU or by using the RESET command If register contents are referred to a value that has been set in the E8 emulator program will be read out Table 6 3 SFRs Used by the E8 Emulator Program roscon Pon P6register Pe esas6ean7 e oscan Pon Ps direction register Poe Bisas 6ana7 ra Notes 1 Do not change this register value 2 Do not change the value of the bits listed in the column to the left When operating this register make changes using the bit operation instructions to avoid changing the bit valu
21. log box shown in Figure 6 1 is displayed Specify the area which will not be used in the user system The data area cannot be specified M32C 84 24 KB M32C 85 24 KB 24 KB FFFFE8h FFFFEBh 2 KB of the 256 bytes FFFFFCh FFFFFFh programming 1 area 1 D A us 48 KB 384 KB 24 KB 512 KB 31 KB 768 KB 48 KB 320 KB 384 KB 18 KB 512 KB Ww REJ10J0976 0500 Rev 5 00 Aug 01 2007 Page 17 of 30 tENESAS E8 Emulator Section 6 Notes on Using the E8 Emulator Emulator Setting Emulator mode Firmware Location MCU Setting Firmware location Program 800h Byte Use FBOO o0 MIN FBOOOO MAK FFF YOO Work RM 100h Byte Use 04 o0 MIM 0400 MAX 6300 Debuegine of program that uses WOT Sea th Do not show this dialog box again Figure 6 1 Firmware Location Tab of the Emulator Setting Dialog Box 2 When the system is launched the E8 emulator initializes the general registers and some of the flag registers as shown in Table 6 2 Table 6 2 E8 Emulator Register Initial Values Register Initial Value RO to R3 bank 0 1 O0000h AO A1 bank O 1 000000h FB bank 0 1 000000h SB bank 0 1 000000h PC Reset vector value in the vector address table INTB bank O 1 000000h 000000h Work RAM Address for the E8 emulator 100h 1 000000h 000000h 000000h DMDO DMD1 OOh DCTO DCT1 0000h DRCO DRC1 0000h DMAO DMA1 000000h DRAO DRA1 000000h DSAO DSA1 000000h Note 1 The Wor
22. m like disabling the automatic update in the watch window or fix the display in the memory window before running the program so that memory accesses do not occur during an execution If a DMACII transfer complete interrupt occurs while the user program halts or when memory contents are referenced or modified during user program execution the E8 emulator cannot control the MCU Reserved area The addresses not specified in the Hardware Manual for M32C 84 M32C 85 M32C 86 M32C 87 and M32C 88 Groups are reserved area Do not change the contents Otherwise the E8 emulator cannot control the MCU Debugging in stop mode or wait mode When in stop mode or wait mode the program cannot be stopped by the E8 emulator If you attempt to stop the program in stop or wait mode the emulator will not control the MCU Do not operate windows until the program stops at the breakpoint by setting the breakpoint at the line of the program where the stop mode or the wait mode is cancelled When using stop mode or wait mode in the user program disable the automatic update in the watch window or fix the display in the memory window before running the program so memory accesses do not occur during an execution Peripheral I Os during a halt During a user program halt interrupts are not accepted although peripheral I Os continue to run For example a timer interrupt is not accepted although the timer continues to count when a user program is stopped by a break after the
23. pin for MCU control Pull down the E8 emulator and MCU pins and connect the E8 emulator User system Pulled down at connector 4 7kQ or more M32C 84 88 Figure 5 10 E8 Emulator and CNVss Pin Connection 4 The RESET pin is used by the E8 emulator Therefore use an open collector output buffer or a CR reset circuit as the reset circuit for the user system The recommended pull up value is 4 7 KQ or more The MCU can be reset by outputting L from the E8 emulator However if the reset IC output is H the user system reset circuit cannot be set to L As such the E8 emulator will not operate normally User system connector RESET M32C 84 88 Pulled up at 4 7kQO or more Open collector buffer Figure 5 11 Example of a Reset Circuit Connect Vss and Vcc to the Vss and Vcc Vccl of the MCU respectively The amount of voltage input to Vcc Vccl Vcc2 must be within the specified range of the MCU If NMI interrupts are not used make sure the NMI pin is pulled up to the Vcc Vcc1 pin through a resistor oO N A Pin 14 is used for checking the connection between the E8 and the user system and is not directly connected to the Vss inside the E8 Make sure that pins 2 6 10 12 and 14 are all connected to the Vss REJ10J0976 0500 Rev 5 00 Aug 01 2007 Page 15 of 30 tENESAS E8 Emulator Section 5 Examples of E8 Connections 9 Figure 5 12 shows the interface circuit in the E8 emulator
24. ritten when the Flash memory write end is displayed in the output window of the High performance Embedded Workshop If the MCU is reset when rewriting the Flash memory the user program or the E8 emulator program may be disrupted Flash memory rewrite occurs When downloading the user program After setting PC breaks in the Flash memory and executing the user program After canceling PC breaks in the Flash memory and executing the user program After rewriting the value of the Flash memory in the memory window and executing the user program Notes on the E8 emulator power supply When writing a program with the E8 emulator for mass production processes the program requires reliability so do not use the E8 emulator power supply function Supply power separately to the user system according to the allowable voltage for MCU writing Voltage supplied from the E8 emulator depends on the quality of the USB power supply of the PC and as such precision is not guaranteed Note that when debugging the system which operates the MCU with a dual power supply power cannot be supplied from the E8 Notes on the emulator setup switch Use the emulator setup switch at the factory setting upper side 1 REJ10J0976 0500 Rev 5 00 Aug 01 2007 Page 24 of 30 tENESAS E8 Emulator Section 7 Debugger Setting Section 7 Debugger Setting 1 Emulator Setting dialog box The Emulator Setting dialog box is provided for setting items that need to b
25. setting are made from the Emulator mode tab of the Emulator Setting dialog box Emulator mode Firmware Location MGU Setting MCU Group M324 Group id Device M30843 Fi r Mode f Erase Flash and Connect C Keep Flash and Connect f Program Flash f Debugging of GPU rewrite mode Power supply iw Power Target from Emulator MAX 300mA2 Bash f BO Figure 7 2 Emulator mode Tab MCU Group Select the name of the MCU group to be used from the MCU Group drop down list Device Select the type of MCU to be used from the Device drop down list REJ10J0976 0500 Rev 5 00 Aug 01 2007 Page 26 of 30 tENESAS E8 Emulator Section 7 Debugger Setting Mode Erase Flash and Connect When starting the debugger the E8 emulator erases the Flash memory data for the MCUs and simultaneously writes the E8 emulator program Keep Flash and Connect When launching the debugger the E8 emulator retains the Flash memory data for the MCUs Note that the area for the E8 emulator program and the vector area used by the E8 emulator will change Program Flash The E8 emulator starts as a simple programmer When downloaded the E8 writes only the user program E8 emulator program is not written Therefore the program cannot be debugged in this mode Debugging of CPU rewrite mode Select this setting when debugging the program which rewrites the CPU In this mode the following debug operation which rewrites the Flash memory cannot
26. t the memory because the pin has a low active signal REJ10J0976 0500 Rev 5 00 Aug 01 2007 Page 10 of 30 tENESAS E8 Emulator Section 5 Examples of E8 Connections 3 In dual power supply and single chip mode Pulled up at 4 7kQ or more Pulled up at 4 7KQ Vec2 Pulled up at Vcc1 Vcci Vcci1 Vcci or more ae 4 7kQ or more JAE P64 1 M32C P55 1 84 88 P f Pulled up at 4 7KQ or more ii Pulled down at 4 7kQ or more 14 pin 2 54mm pitch connector Open collector buffer User system Figure 5 3 Example of an E8 Connection Dual Power Supply and Single chip Mode Note 1 For details on setting pins P55 and P64 refer to numbers 1 and 2 of Points to Remember on page 13 REJ10J0976 0500 Rev 5 00 Aug 01 2007 Page 11 of 30 tENESAS E8 Emulator Section 5 Examples of E8 Connections 4 In dual power supply and memory expansion mode Pulled up at 4 7kQ or more Pulled up at 4 7kQ to 22kQ Pulled up at Vec2 a T7 4 7kQ ormore V2 7 Pulled up at 4 4 7kQ or more Vcc e Farn ia Pulled up at 4 7kQ or more a NU Pulled down at 4 7kO or more 14 pin 2 54mm pitch connector Open collector buffer User system Figure 5 4 Example of an E8 Connection Dual Power Supply and Memory Expansion Mode Notes 1 For details on setting pin P64 refer to numbers and 2 of Points to Remember on page 13 2 The HOLD signal cannot be used Pull up P55 on the user system REJ10J097
27. ts the E8 User s Manual and the E8 Additional Document for User s Manual this document Be sure to read BOTH documents before using the E8 emulator 1 2 E8 Emulator User s Manual The E8 Emulator User s Manual describes the hardware specifications and how to use the emulator debugger E8 emulator hardware specifications Connecting the E8 emulator to the host computer or user system Operating the E8 emulator debugger Tutorial From starting up the E8 emulator debugger to debugging E8 Additional Document for User s Manual The E8 Additional Document for User s Manual describes content dependent on the MCUs and precautionary notes MCU resources used by the E8 emulator Example of the E8 emulator connection or interface circuit necessary for designing hardware Notes on using the E8 emulator Setting the E8 emulator debugger during startup REJ10J0976 0500 Rev 5 00 Aug 01 2007 Page 1 of 30 tENESAS E8 Emulator Section 1 Inside the E8 Emulator Users Manual REJ10J0976 0500 Rev 5 00 Aug 01 2007 Page 2 of 30 tENESAS E8 Emulator Section 2 E8 Emulator Specifications Section 2 E8 Emulator Specifications Table 2 1 shows the E8 emulator specifications for the M32C 80 Series Table 2 1 E8 Emulator Specifications for the M32C 80 Series Taraet MCUs M16C Family M32C 80 Series 9 M32C 84 M32C 85 M32C 86 M32C 87 and M32C 88 Groups Single chip mode Memory expansion mode Available operating mod
28. uring a program execution disable the automatic update in the watch window or fix the display in the memory window before running the program so that memory accesses do not occur during an execution When the E8 emulator does not supply power to the user system it consumes the power voltage of the user system from several mA to more than 10 mA This is because the user power supply drives one 74LVC125A to make the communication signal level match the user system power supply voltage When debugging the Flash memory is frequently rewritten by the E8 emulator Therefore do not use an MCU that has been used for debugging in products Also as the E8 emulator program is written to the MCU while debugging do not save the contents of the MCU Flash memory which were used for debugging nor use them as the ROM data for products NMI interrupt If NMI interrupts are used be sure to take the necessary precautions before executing the user program like disabling the automatic update in the watch window or fix the display in the memory window before running the program so that memory accesses do not occur during an execution If an NMI interrupt occurs while the user program halts or when memory contents are referenced or modified during user program execution the E8 emulator cannot control the MCU DMACII transfer complete interrupt If DMACII transfer complete interrupts are used be sure to take the necessary precautions before executing the user progra
29. ws and regulations and procedures required by such laws and regulations All information included in this document such as product data diagrams charts programs algorithms and application circuit examples 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 products listed in this document please confirm the latest product information with a Renesas sales office Also please pay regular and careful attention to additional and different information to be disclosed by Renesas such as that disclosed through our website http www renesas com Renesas has used reasonable care in compiling the information included in this document but Renesas assumes no liability whatsoever for any damages incurred as a result of errors or omissions in the information included in this document When using or otherwise relying on the information in this document you should evaluate the information in light of the total system before deciding about the applicability of such information to the intended application Renesas makes no representations warranties or guaranties regarding the suitability of its products for any particular application and specifically disclaims any liability arising out of the application and use of the information in this document or Renesas products With the exception of products specified by Renesas as suitable for automobile applic
Download Pdf Manuals
Related Search
Related Contents
Let`s go M99T2/M36T2 End User Guide リチウムダイナパワー GUIDA RAPIDA DEFENDER-8/12 - M.System di Morandi Marcello Texas Instruments DAC7741EVM Network Card User Manual Users manual Copyright © All rights reserved.
Failed to retrieve file