Home
E8 Emulator Additional Document for User`s Manual Notes on
Contents
1. R8C 24 R5F21244 16 KB R5F21245 24 KB ee 2 KB of the ROM area 1 R5F21246 32 KB po User Flash Area 8000h 87FFh R5F21247 48KB Ce OO 2 KB of the ROM area 1 Baten one FFE4h FFE7h User Flash Area 13800h 13FFFh REC 25 R5F21254 16 KB FFE8h FFEBh R5F21255 24 KB FFECh FFEFh E 2 KB of the ROM area 1 FFF8h FFFBh Data Flash Area 2400h 2BFFh R5F21256 32 KB 2KB FFFCh FFFEH Data Flas 00 User Flash Area 8000h 87FFh R5F21257 48 KB 2 KB of the ROM area 1 R5F21258 64 KB 2 KB Data Flash 2BFFh User Flash Area 13800h 13FFFh Note 1 When using the MCU types R5F21246 R5F21248 R5F21256 or R5F21258 the Emulator Setting dialog box shown in Figure 6 1 is displayed Specify the area which will not be used by the user system If the Enable advanced setting check box is checked the area used by the emulator can be specified with the address Figure 6 2 REJ10J0975 0400 Rev 4 00 Aug 01 2007 Page 13 of 26 2tENESAS E8 Emulator Section 6 Notes on Using the E8 Emulator Emulator Setting Emulator Setting Emulator mode Firmware Location Communication Baud Rate Emulator mode Firmware Location Communication Baud Rate Please select firmware location Please select tir mware location C Data Flash Area f Data Flash Area User Flash 4rea User Flash Area Specify the address 138 00 1SFFF MIM C4000 MAX 13800 Enable advanced setting W Enable
2. 3 Firmware Location tab For details see 1 Program area for the E8 emulator in Section 6 Notes on Using the E8 Emulator REJ10J0975 0400 Rev 4 00 Aug 01 2007 Page 23 of 26 2tENESAS E8 Emulator Section 7 Debugger Setting 4 Communication Baud Rate tab Select communication baud rate between the E8 and MCU in the Communication Baud Rate tab 500000bps default setting should be selected during normal use Emulator mode Firmware Location Communication Baud Rate Please select communication baud rate between Emulator and MELU SOOU00 bps z Figure 7 3 Communication Baud Rate Tab REJ10J0975 0400 Rev 4 00 Aug 01 2007 Page 24 of 26 2tENESAS E8 Emulator Section 8 Applicable Tool Chain and Third party Products Section 8 Applicable Tool Chain and Third party Products With the R8C Tiny 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 Tool chain M3T NC30WA V 5 20 Release 1 or later NC8C V 5 30 Release 1 or later Third party TASKING M16C C C 4 EC Compiler V 2 3r1 or later products IAR EWM16C V 2 12 or later REJ10J0975 0400 Rev 4 00 Aug 01 2007 Page 25 of 26 2tENESAS E8 Emulator Section 8 Applicable Tool Chain and Third party Products REJ10J0975 0400 Rev 4 00 Aug 01 2007 Page 26 of 26 CENESAS E8 Emulator Additional Document for User s Manual
3. Notes on Connecting the R8C 24 and R8C 25 Publication Date Aug 01 2007 Rev 4 00 Sales Strategic Planning Div Published by 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 E8 Emulator Additional Document for User s Manual CENESAS Renesas Electronics Corporation 1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan REJ10J0975 0400
4. 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 Awww renesas com Send any inquiries to hitp www renesas com inquiry CENESAS 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
5. advanced setting Cancel Cancel Do not show this dialog box again Do not show this dialog box again Figure 6 1 Firmware Location tab Figure 6 2 Firmware Location tab of Emulator Setting Dialog Box 1 of Emulator Setting Dialog Box 2 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 Initial Value E8 Emulator PC Reset vector value in the vector address table Activation RO to R3 bank 0 1 0000h AO A1 bank 0 1 0000h FB bank 0 1 0000h INTB 0000h USP 0000h 05FFh 0000h 0000h 3 The E8 emulator communicates with the MCU by using the MODE and RESET pins 4 The E8 emulator uses up to 8 bytes of the stack pointer during a user program break Therefore set aside 8 bytes for the stack area 5 Peripheral function used by the E8 emulator program UART1 is used by the E8 emulator Do not use UART1 in the user program REJ10J0975 0400 Rev 4 00 Aug 01 2007 Page 14 of 26 2tENESAS E8 Emulator Section 6 Notes on Using the E8 Emulator 6 SFRs used by the E8 emulator program The SFRs listed in Table 6 3 are used by the E8 emulator program as well as the user program Do not change the value in the memory window etc by other than the user program Note that although the SFRs can be changed during user program execution the changed value cannot be read at the br
6. 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
7. ation Baud Rate MOU Group REG S25 Group ys Device REF21259 x Mode f Erase Flash and Connect C keep Flash and Connect C Program Flash C Debugging of GPU rewrite mode Power supply Power Target from Emulator Max 300mA C Cancel 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 REJ10J0975 0400 Rev 4 00 Aug 01 2007 Page 21 of 26 2tENESAS E8 Emulator Section 7 Debugger Setting 2 Emulator mode tab Device selection mode specification and power supply setting are made from the Emulator mode tab of the Emulator Setting dialog box Emulator mode Firmware Location Communication Baud Rate MOU Group REG S25 Group F Device R5F21258 Mode f Erase Flash and Connect C Keep Flash and Connect C Program Flash C Debugging of GPU rewrite mode Power supply Power Target fram Emulator Max 300mA2 G Gg Figure 7 2 E
8. celing 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 Notes on the emulator setup switch Use the emulator setup switch at the factory setting upper side 1 REJ10J0975 0400 Rev 4 00 Aug 01 2007 Page 19 of 26 2tENESAS E8 Emulator Section 6 Notes on Using the E8 Emulator REJ10J0975 0400 Rev 4 00 Aug 01 2007 Page 20 of 26 CENESAS 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 be 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 Communic
9. connector Open collector buffer Figure 5 1 Example of an E8 Connection When using the emulator as a programmer the connection specification between the E8 and the MCUs is the same as shown in Figure 5 1 REJ10J0975 0400 Rev 4 00 Aug 01 2007 Page 9 of 26 2tENESAS E8 Emulator Section 5 Examples of E8 Connections Points to Remember 1 The E8 emulator uses the MODE pin for MCU control and forced break control Pull up the E8 emulator and MCU pins and connect the E8 emulator Pulled up at 4 7kKQ 10 User system connector a R8C 24 MODE RgC 25 Figure 5 2 E8 Emulator and MODE Pin Connection 2 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 R8C 24 R8C 25 Pulled up at 4 7k Q or more Open collector buffer Figure 5 3 Example of a Reset Circuit Connect Vss and Vcc to the Vss and Vcc of the MCU respectively Do not connect anything to the N C pin The amount of voltage input to Vcc must be within the specified range of the MCU aS Pin 14 is used for checking the connection between the E8 and the u
10. e 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 8 Debugging during a watchdog timer operation When running the E8 emulator program the program refreshes the watchdog timer If memory access is executed through memory reference or modification the watchdog timer will be refreshed by the E8 emulator program Note that this timing will differ from the actual operational timing REJ10J0975 0400 Rev 4 00 Aug 01 2007 Page 15 of 26 2tENESAS E8 Emulator Section 6 Notes on Using the E8 Emulator 9 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 5 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 re
11. eak The SFRs listed in Table 6 4 are used by the E8 emulator program not the user program Do not change the registers otherwise the E8 cannot control the MCU Note that UART1 transmit interrupt control register S1TIC and UART receive interrupt control register SIRIC always read out values used by the emulator The SFRs listed in Tables 6 3 and 6 4 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 1 Symbol 000Ah PRCR Bit 0 1 0023h High speed on chip oscillator control register 0 FRAO 0024h High speed on chip oscillator control register 1 FRA1 All bits 01B3h Flash memory control register 4 FMR4 Note 1 As of Version 2 08 Release 00 of the E8 emulator software the value for the protect register bit 1 can be changed by the user program as well as other programs Table 6 4 SFRs Used by the E8 Emulator Program 2 Notes on Using wmo 1 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 values 7 Interrupts used by the E8 emulator program The BRK instruction interrupt address match interrupt single step interrupt and address break interrupt are used by th
12. ed 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 laws 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 suitabili
13. esas 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 maximum 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 ris
14. esas 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 equ
15. eseeeeeeeas 25 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 manual consists of two documents 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 the hardware Notes on using the E8 emulator Setting the E8 emulator debugger during startup REJ10J0975 0400 Rev 4 00 Aug 01 2007 Page 1 of 26 2tENESAS E8 Emulator Section 1 Inside the E8 Emulator Users Manual REJ10J0975 0400 Rev 4 00 Aug 01 2007 Page 2 of 26 CENESAS E8 Emulator Section 2 E8 Emulator Specifications Section 2 E8 Emulator Specifications Table 2 1 shows the E8 emulator
16. gardless of the contents of the downloaded user program Table 6 5 ID Code Storage Area of R8C 24 and 25 ID Code yverttication Please input the ID code bene written in the flash memory ID Code 01020304050607 Input Mode f Hex Specify ID code by hexadecimal 14 digits f ASCH Specify ID code by ASOT character within 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 REJ10J0975 0400 Rev 4 00 Aug 01 2007 Page 16 of 26 2tENESAS 10 11 12 13 14 15 16 17 E8 Emulator Section 6 Notes on Using the E8 Emulator Operation clock during a user program halt When the user program halts the emulator changes the CPU clock to the internal high speed on chip oscillator approx 8MHz to operate However the peripheral features operate with the clock specified by the user program Reset The reset vector is used by the E8 emulator program If the MCU is reset while executing the user program control
17. 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 Ren
18. ipment 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
19. is transferred to the E8 emulator program and the user program is forced to stop Do not use the voltage monitor 0 reset voltage monitor 1 reset voltage monitor 2 reset watchdog timer reset and software reset otherwise the E8 emulator will not operate normally 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 during 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 Reserved area The addresses not specified in the Hardware Manual for R8C 24 and R8C 25 Groups are reserved area Do not change the con
20. k 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 document 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 oecon G Notes on Usindine ES EMUO senon a ne eee 13 SECHON 7 DEDUGCE SCHING eors aa a 21 Section 8 Applicable Tool Chain and Third party Products cccccccccseseceeceeceeceeeeceeeeeeeeeseeseeesseeeeeseaeeee
21. lator Specifications REJ10J0975 0400 Rev 4 00 Aug 01 2007 Page 4 of 26 CENESAS 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 Figure 5 1 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 E8 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 4 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 a W Connector l 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
22. mulator 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 REJ10J0975 0400 Rev 4 00 Aug 01 2007 Page 22 of 26 CENESAS 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 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
23. nterrupt vector table above REJ10J0975 0400 Rev 4 00 Aug 01 2007 Page 18 of 26 2tENESAS E8 Emulator Section 6 Notes on Using the E8 Emulator Ze 23 24 pie Note on debugging in CPU rewrite mode CPU rewrite can be executed only for the data area If it is executed for the program area the E8 emulator cannot control the MCU When rewriting the data area 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 If CPU rewrite can be executed for the data area and erase program process can be suspended do not use software breaks Notes on rewriting Flash memory Do not reset the MCU when rewriting the Flash memory The Flash memory is rewritten 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 can
24. ough if the STEP execution is carried out 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 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 and hardware breaks you set become invalid while all the PC breaks remain valid 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 Note on setting the break condition of the hardware breaks When selecting the normal address bus selecting Address radio button in the Break condition dialog box as a condition for the address bus do not set the following addresses Otherwise an unauthorized break may occur Address in the interrupt vector table Address set in the interrupt vector table interrupt routine start address Branch address of the branch instruction Both fixed vector table and variable vector table are included with the i
25. 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 C TA D me lt Q 5 Cc Q E8 Emulator ROEQOOO80KCEOOEP16 Additional Document for User s Manual Renesas Microcomputer Development Environment System M16C Family R8C Tiny Series Notes on Connecting the R8C 24 and R8C 25 Renesas Electronics Rev 4 00 2007 08 WWW Frenesas 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 describ
26. same way REJ10J0975 0400 Rev 4 00 Aug 01 2007 Page 5 of 26 2tENESAS E8 Emulator Section 3 Connecting the E8 Emulator to the User System REJ10J0975 0400 Rev 4 00 Aug 01 2007 Page 6 of 26 CENESAS 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 R8C 24 and 25 MCU signals N C Vss N C Vss N C Vss MODE Vcc N C Vss N C Vss RESET Vss Pin 1 mark Connector Pin14 Pin13 Pin 1 mark ae ee ee b Ronumuo LP AON Da wo MY 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 Pin 4 is connected to the internal circuit These pins are not directly connected to the Vss inside the E8 Make sure pins 2 4 6 10 12 and 14 are all connected to the Vss REJ10J0975 0400 Rev 4 00 Aug 01 2007 Page 7 of 26 2tENESAS E8 Emulator Section 4 E8 Connecting Connector Pin Assignments REJ10J0975 0400 Rev 4 00 Aug 01 2007 Page 8 of 26 CENESAS E8 Emulator Section 5 Examples of E8 Connections Section 5 Examples of E8 Connections Figure 5 1 shows a connection example Pulled up at 4 7KQ 10 Vcc MODE pin7 MODE R8C 24 i R8C 25 ie O Pulled up at 4 7 KQ or more User system 14 pin 2 54mm pitch
27. ser system and Pin 4 is connected to the internal circuit These pins are not directly connected to the Vss inside the E8 Make sure pins 2 4 6 10 12 and 14 are all connected to the Vss REJ10J0975 0400 Rev 4 00 Aug 01 2007 Page 10 of 26 2tENESAS E8 Emulator Section 5 Examples of E8 Connections 7 Figure 5 4 shows the interface circuit in the E8 emulator 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 Emulator control circuit 2502462 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 4 Interface Circuit Inside the E8 Emulator For Reference REJ10J0975 0400 Rev 4 00 Aug 01 2007 Page 11 of 26 2tENESAS E8 Emulator Section 5 Examples of E8 Connections REJ10J0975 0400 Rev 4 00 Aug 01 2007 Page 12 of 26 CENESAS E8 Emulator Section 6 Notes on Using the E8 Emulator Section 6 Notes on Using the E8 Emulator 1 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 ROM Size Program Area for E8 Emulator _ ue Programing Data Area Vector Area PAA IOA Area Default Area
28. specifications for the R8C 24 and R8C 25 Groups Table 2 1 E8 Emulator Specifications for the R8C 24 and R8C 25 Groups Target MCUs M16C Family R8C Tiny Series freee rscasanamscascee OOO Break functions Address match break 4 points or Address match break 2 points Data condition break 1 point PC break points maximum 255 points Forced break User interface 1 line clock asynchronous serial interface communication via MODE pin UART1 function cannot be used in a user program MCU resources to be used ROM 2 KB 1 Stack 8 bytes Address match interrupt UART1 function Emulator power supply Unnecessary USB bus powered power supplied from the PC Interface with host machine USB USB 1 1 full speed ene Also connectable to host computers that support USB 2 0 Power voltages 3 0 5 5 V f XIN 20MHz Note 1 Varies depending on the MCU For details see Section 6 Notes on Using the E8 Emulator Table 2 2 shows the operating environment of the E8 emulator 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 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 REJ10J0975 0400 Rev 4 00 Aug 01 2007 Page 3 of 26 2tENESAS E8 Emulator Section 2 E8 Emu
29. tents Otherwise the E8 emulator cannot control the MCU Debugging in stop mode or wait mode When debugging in stop mode or wait mode do not operate windows until the program stops at the breakpoint by setting the breakpoint at the line of the program which will be executed after the stop mode or wait mode is cancelled 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 When the program is forcibly stopped or the memory is referred to or modified in stop or wait mode the stop or wait mode will be cancelled 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 timer started REJ10J0975 0400 Rev 4 00 Aug 01 2007 Page 17 of 26 2tENESAS E8 Emulator Section 6 Notes on Using the E8 Emulator 18 Exceptional step execution 19 20 21 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 NOP JMP MAIN INT_3 NOP lt Program should be stopped at this address NOP NOP REIT Passes thr
30. ty 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 applications 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 Ren
Download Pdf Manuals
Related Search
Related Contents
Hotel Room Extension User Guide MANUEL D`UTILISATION LV 用 AC/DC電源基板[LV1 M25 / M55 User Guide Ethernet & IEC 61850 Start Up NETGEAR N300 Wireless ADSL2+ Modem Router DGN2200v3 "1, 2, 3, soleil" - format : PDF Copyright © All rights reserved.
Failed to retrieve file