Home

QB-MINI2 On-Chip Debug Emulator with Programming

image

Contents

1. Funan oye code subentation Go amp Go Start Here Come Here Resta sap exsculon Hardware beak 2 comment used by exscuton and cess Sanware break ROM area pins RAM area 2000 ponts RAM ang RUN Pin masking Arabe reset pi ony Tine measurement Measurement resouton 00 execiton start to break Max measurement ime Approximately 100 hou User apasa used tor debugging ROM 2K by es 12 bytes intera RAM 16 bes max Fundanpesisediordebuging UART selected XD TxD selected SI 80 806 WS Notes 1 The folowing devices are not yet supported VBSOES KEZ VBSOESIKF2 VESOESIKG LPDTOFST33 VBSOESIE2 2 Available with restrictions For details refer to 32 6 Cautions on debugging 27 CHAPTER 3 HOWTO USE MINCUBE2 WITH Vaso MICROCONTROLLER 322 System configuration Figure 3 9 the system configuration for on chip debugging Figure 3 9 System Configuration for On Chip Debugging ag 2 2 Target system lt 1 gt Host machine Products with USB ports 2 Software Includes tha debugger USB driver device fles and so on Download these NEC Electronics sofware from the folowing website 005 URL hw nace comimiorofodsong USB cable accessory lt gt MINICUBEZ his produci gt gin target cable accessory 6 Targ
2. MICROCONTROLLER 825 Securing of user resources and setting of security ID and on chip debug option byte Tho user must prepare the following to perform communication between MINICUBE2 and the target device and implement each debug function If NEC Electronics assembler RA78KOR or compiler CC7BKOR is used the ems can be set by using linker options Refer to the on the following pages and set these items lt B gt When C SPY manufactured by Systems is used read also the following material C SPY Hardware Debugger Systems User Guide issued by AR Systems Securement of memory space The shaded portions in Figure 6 11 ara the areas reserved for placing the debug monitor program so user programs or data cannot be allocated in these spaces Those spaces must be secured so as not to be used by the user program Moreover this area must not be rewritten by the user program E Figure 6 11 Memory Spaces Where Debug Monitor Programs Are Allocated erat RON space lera RAM space TT see la Debug maniar an io sen or tano PP a Debug montar aes e Secrty 10 wea ESH debug optan by area Tuer Bl tug mont we E ned lor on chip tagging Note 1 Wen he pseudo RRM fcio is not used dug ve made i be bytes est vcr rere 1o dires abate 1o mondo program Seting ot security ID and on chip debug option byte The secur
3. Target devica Singles UART communication 2 mode je MNICUBEZ Target system Note modo Sige ira UART communication using TOOLO pin mode Single ire UART communication using TOOLO and TOOL pins ES Table 6 1 Differences Between 1 Wire Mode and 2 Wire Mode Cemmurioaon Flash Programming Debugging Function Tere mode p Passio resumo menor RAM uncta oe mode Available Pesado reso RAM montor RAM uncto Avalable 186 m CHAPTER 6 TO USE MINICUBE2 WITH MICROCONTROLLER 544 Pin assignment This section describes the interface signals used between MINICUBE2 and the target system Table 62 the pin ass ionment Table 6 3 descebos the functions of each pin The pin assignment varies between T wire and 2 wiro modes so design the circuit appropriately according to the circuit connection examples described on the folowing sections Table Pin Assignment I Id To vew For ive Mode For Wee Node D z RESET OUT 3 D RFU 7 RFU D RFU RFU w RFU LI RFU 3 RFU G00000000 9900900009 Li RESET Pin assignment ol urget connect con a tote mounted on targat ston Note Signal names in MINIGUBE2 Table 63 P
4. This efect is not applicable if values are filed into a hole area without a coda When performing fling ho fing value must be OxFF for securing the area Link directive Add the folowing code to the ink directive fle Tho folowing shows an example when the intemal ROM end address is OX and intemal RAM ond address is ROMSEG LOAD 7R Voxaat200 MonitorROM 7A Mon orROM E MRAMSEG LOAD Rw VoxOateto MonitorRAM SNOBITS PAW MonitorRAM ES CHAPTER HOWTO USE MINICUBE WITH VES MICROCONTROLLER 6 Securement of communication serial interface UART or CSLHIS is used for communication between MINICUBE2 and the taret system The setings relatod to the serial interfaco modes aro perfomed by the debug monitor program but if the setting is changed by the user program a communication error may occur To prevent such a problem from occuring communication serial interface must bo secured in the user program How to secure communication serial interface Create the user program observing the following points Serial intertace registers Do not set the registers related to UART and in the user program Interrupt mask register When UART is used do not mask receive end interrupts When CSHHIS is used do not mask transmit emdintemupis The folowing shows an example Example Seting other than below is prohibited when the target device is the VESOESIKI2 and CSIOD is
5. Eaten ma Crangeci Related Documents i INTRODUCTION IRODUCTON Sion Supported Devices CHAPTER Deleon of Remark in MINCUBE2 information ate overview Note 3 of Figures 2 and 33 n 3 12 Circul connection example corrected Note CHAPTER 3 HOWTO Adlon of Note 7 in Figure 43 and 44 Adon of Note 6 in Figure 45 104 9 Aion ot Note 5 in Figure 410 and 4 11 E USE MINICUBE2 WITH 323 Securing of user resources and seting of security ib vaso Descrpton of materiai when partner toolis used sed MICROCONTROLLER Aston ol ote Figure 3 12 Change ot Assemble source in 3 Securement ot area tor debug monitor program Change o Note in c Securement communication serial Interface Aton of 2 Caulons unique o devise and 13 Processing of monitoring program or debugging n 26 Cautions on debugging Change of Figure amp 2 41 Target System Design CHAPTER 4 HOWTO 412 Gireuk connection examples USE MINCUBE2 WITH Adon ol Note 2 in Table 45 Change cf 41 Resetting the target device by power on clear POC oniy Descrpton edd 1o 425 Securing of resources and eating of secu 1 427 Cautions on debugging Change ot 13 Emulation of POC function c 14 Device without on chip debug funcion Note 2of Figures 52 ln 32 Circuli connection example corrected Note G added CHAPTERS HOWTO Desorption added to 5 25 Securing of user resources
6. MiNICUBE2 Target system ate User Eve 103 CHAPTER S HOW TO USE MINICUBE2 WITH MICROCONTROLLER 54 Pin assignment This section describes the interface signals used between MINICUBEZ and the target system Table 5 1 ists the pin assignment Table 5 2 describes the functions of each pin The pin assignment varies depending on whether the operation is debugging or programming so design the circuit appropriately according to the cirouit connection examples described on the folowing sections Table 5 1 Pin Assignment Pn Name For Programming RESET OUT ATA woo DATA RFU s RFU REL 69636900090 REL 696962699 RESEN REL Pin assignment target conector To be on targat Note Signal names n MINICUBEZ Table 5 2 Pin Functions Piae NOU RESET Pin ued o Input ree signal tom a te systern RESETOUT our Pn edo reset irato he tarot don our Pn used o clock signa othe target dece and to se e lal devis 10 programma made mour Phusediorecehe commands or data target doves and 1o commands target device s Pn ued to put handshake signal Me targat devo WIE ur Pn used to set he target device
7. Ursa UITIUM CHAPTER 4 HOW TO USE MINCUBE2 WITH 78KO MICROCONTROLLER 41 5 Mounting connector onto target system The connector must be mounted on the target system for connecting MINICUBE2 wit the target system 254 mm pitch 10 or 16 pin general purpose connector can be used The folowing products are recommended HIFSFO 10PA 2 5405 10 right angl type made by Hirose Electric Co Lidi HIFSFO 10PA 2 5408A 10 straight ype made by Hirose Electi Co Lid HIFSFC 16PA 2 54DS 16 inright angle type made by Hirose Electric Liti HIFSFC 16PA 2 S4DSA 16in straight ype made by Hirose Electric Co Lid 7616 5002PL 16 pin right angle type made by Sumitomo 3M Lid 7616 80027 16 pin straight ype made by Sumitomo 3M Lid Compact connectors and loosezwire cables are also available as options For more information on these products access the MINICUBE2 information sile URL hp necel comimirofengishiproducecatashiminicube2 himi Figure 420 2 54 mm Pitch 10 16 Pin General Purpose Connector Pin Layout TOP VIEW a Pin assignment when MINICUBE2 S is connected in this direction d6 pin 109in v 2 29500000 995099 eeeeeoo9 Pin assignment of target connector to be mounted on target system n CHAPTER 4 HOWTO USE MINICUBE2 WITH 78KO MICROCONTROLLER 42 On Chip Debugging This section describes the system configuration s
8. perform debugging with MINICUBE2 the debug monitor area must be secured For details refer to 525 Securing of user resources Unsupported sofware debugger device or firmware is used The software used may not support debugging ofthe target device Refer to the document OB MINI2 Operating Precautions and check the supported version When using software provided by an NEC Electronics partner refer to the documents prepared by the partner company Detect of MINICUBE2 MINICUBE2 may have a defect Refer to CHAPTER 7 SELF TESTING ne CHAPTER 5 HOWTOUSEMINCUBE2 WITH MICROCONTROLLER 524 System shutdown procedure Terminate debugging and shutdown the system in the folowing order Ifthe folowing order is not observed the target system or MINICUBE2 may be damaged 1 Debugger termination Terminate he debugger 2 Target system power shutdown Shutdown the power supped to the target system This step is not necessary if the power select switch is set tora or 9 Unplugging the USB cable Unplug the USB cabe from MINICUBE2 or the host machine 4 Unplugging the target cable Unplug the target cable trom MINICUBE2 or the target system mm a CHAPTER TO USE MINCUBE2 WITH MICROCONTROLLER 525 Securing of user resources Tho user must prepare the following to perform communication between MINICUBE2 and the target device and implement each debug funct
9. 10 Cautions when using pseudo real time RAM monitor function lt 1 gt Tho usar program is stopped while the pseudo realtime RAM monitor function processing is being performed 2 gt It the pseudo realtime RAM monitor function is executed during a standby etate the standby stata is released lt The program temporary operates with PCC 0 during break This break time is extended when the system clock frequency is low or when the CPU operating speed is lowered lt gt When the pseudo realtime RAM monitor function processing is performed the IXS value is forcibly set as shown below so thatthe intemal ow spoed RAM area size becomes the maximum Device with OCD control coda Vi oc Device with OCD control V2 00 or later 00h lt 5 gt H the interrupt disabled stale DI setting is sat or the operating cock is switched to intemal oscilation clock or subcock by the user program during the pseudo real time RAM monitor function processing pseudo realtime RAM monitor function processing is suspended A break occurs in the user program dor approximately 40 due to the pseudo real time RAM monitor function processing Usar program stop period Approximately 40 Notes 1 Version can be checked by selecting About fom the Heip menu in the debugger 2 Devices with control code V1 ax CHAPTER 4 HOW TO USE MINCUBE2 WITH 78KO MICROCONTROLLER 11 Period in which user program is stopped while pseudo realtime
10. without using the reset pin RESET OUT is valid only when the debugger is running or during lash programming Figure 66 Circuit Connection for the Case Where Target Device Is Only Reset via POC Veo 110 1040 Target connector Target device RESET OUT _feser RESET IN X Uta nual m CHAPTER 6 HOWTO USE MINCUBEZ WITH MICROCONTROLLER 6 1 4 Mounting connector onto target system The connector must be mounted on the target system for connecting MINICUBE2 with the target system 254 mm pitch 16 pin general purpose connector can be used The folowing products are recommended HIFOFC 16PA 2 54DS ighangle type made by Hirose Electric Co Lid HIFOFC I6PA 2 straight type made by Hirose Electric Lid 7616 5002PL rig t angle type made by Sumitomo 3M Lidi 7616 60027 straight type made by Sumitomo 3M Lid Compact connectors and loose wire cables are also avaiable as options For more information on these products acess the MINICUBE2 information st URL pur necel commicto engishproducscaiatiinicube2 hil Figure 6 7 254mm Pitch 16 Pin General Purpose Connector Pin Layout Pin assignment when MINICUBE2 is connected in this direction TOPVIEW 66990996 Pin assignment of target connector to be mounted on target system 142 m CHAPTER 6 HOW TO USE MINICUBEZ WITH TEKOR MICROCONTROLLER
11. CHAPTER 5 HONTOUSE MINCUBE2 WITH MICROCONTROLLER 4 Connecting the USB cable Connect MINICUBE2 to the host machine as shown in Figure 5 19 before the power to the target system is turned on When the power select switch is soto T the modo LED flashes white atr connection When the power select switch is set to 3 or 757 the mode LED glows white connection The power is always supped ater MINICUBE is connected to host machine with the USB cable Caution Do not change the switch setting while the USB cable is connected Figure 5 19 Connecting MINICUBE2 to Host Machine MINICUBE2 Applying power to target system Tum on power to the target system This step is not necessary if tha power select switch is set to 37 or Tho modo LED glows white after power application 6 QB Programmor startup Start the QB Programmer from the Start menu of Windows The mode LED glows green afer OB Programmor startup A serias of basic operations after this step is described in the following section For detailed usage of the 08 Programmer refer to the QB Programmer Programming GUI Operation User s Manual L4 CHAPTER 5 HOWTOUSE MINCUBE2 WITH MICROCONTROLLER 534 Usage examples This section describes a seres of basic operations using the QB Programmer using the sPO7SFO294 as an example The operations from execution of he Autoprocedure command to programming for the
12. LI CHAPTER 6 HOWTO USE MINCUBEZ WITH MICROCONTROLLER Figure 6 14 Security ID Setting Example Dot Otu Lay Losses facet tem F T Cede tea I Unida Dom beton sertis FE y aequa EEE E sr aml EZDI 2 Caution If you have forgotten the security ID erase the flash memory by flash programming self programming and then set the security ID again 182 CHAPTER 6 HOW TO USE MINICUBE2 WITH TEKOR MICROCONTROLLER 6 Securement of stack area for debugging This area requires 6 bytes as the stack area for debugging Since this area is alocalod immediately before stack area the address of this area varias depending on the stack increase and decrease That is 6 tra bytes are consumed for th stack aoa used Figure 6 15 ilustrates the case where the stack area is increased when the internal high speed RAM stats from oxFOFOO Figure 6 15 Variation of Address of Stack Area for Debugging bee sickest 0 Se rsa spaca owrora coo pamai arcrol enar How to secure areas Sat he stack pointer by estimating the stack area consumed by the user program 6 bytes Make sure that the stack pointer does not extend beyond the internal high speed RAM start adress Remark Reter to the self programming manual for how to secure the stack area
13. target cable MNICUBE 7 Target system CHAPTER 3 HOW TO USE MINCUBE2 WITH Vaso MICROCONTROLLER 4 Connecting the USB cable Connect MINICUBE to the host machine as shown in Figure 3 11 before the power to the target system is turned on When the power select switch is sat to T the modo LED flashes white aflar connection When the power select switch is set to 3 or 5 he mode LED glows white after connection Figure 3 11 Connecting MINICUBE2 to Host Machine m MINICUBE2 USB cable Host machine Applying power to target system Tum on power to the target system This stop is not necessary if the power select switch is set to 3 or 5 The mode LED glows white afier power anpcation 6 Debugger startup the debugger The modo LED glows blu debugger startup For the operation after this stop rafer to the user s manual for the debugger the debugger does start normaly or he operation is unstable the possible causes may be the following Communication error between MINICUBE and target system Whether communication is performed normally can be checked using the OCD Checker For details reler to the user s manual for the OCD Checker The user resource has not been secured or the security ID has not been set perform debugging with MINICUBE2 the debug monitor area and communication serial interface for communication must be secured and the security ID must be set For d
14. 4 Unplugging the target cable Unplug tho target cable MINICUBE2 or the target system 338 Cautions on flash programming This section describes the caufons for fash programming Be sure to read the folowing for the propor use of MINICUBEZ To improve the wring quay understand and evaluate the following ems betore using MINICUBEZ Circuits are designed as described in the users manuals for the device and MINICUBE2 The device QB Programmor and MINICUBE2 ara used as described in each user s manual The power supplied to the target system is stable so CHAPTER 4 HOWTO USE MINICUBE2 WITH 78 MICROCONTROLLER This chapter describes how to use MINICUBE2 when performing on chip debugging and flash programming fora microcontroler On chip debugging is a method to debug a microcontroler mounted on the target system using a debug function implemented in the device Since debugging is performed withthe target device operating on the board this method is suitable for feld debugging Flash programming is a method to write program to the flash memory embedded in a device Erasing wring and veriying the program can be performed on board with the device Read the following chapters if you are using MINICUBE2 for the first ime with a 78 microcontroller as the target device 41 Target System Design For communication between MINICUBE2 and the target system communication
15. 7 4 25 Clock setting 428 Securing of user resources and setting of security ID 427 Cautions on debugging 43 Flash Programming 43 1 Specifications of programming function 4 3 2 System configuration 4 3 3 System startup procedure 4 3 4 Usage example 4 3 5 System shutdown procedure 4 3 6 Cautions on flash programming CHAPTER 5 HOW TO USE MINICUBE2 WITH 78KOS MICROCONTROLLER 5 1 Target System Design 5 1 1 Pin assignment 6 1 2 Circuit connection example 5 1 3 Connection of reset pin 5 1 4 Connection of INTP pin 5 1 5 Connection of X1 and X2 pins 5 1 6 Mounting connector onto target system 52 On Chip Debugging 52 1 Debug functions 522 System configuration 5 2 3 System startup procedure 524 System shutdown procedure 525 Securing of user resources 526 Debugging of alternate functions of X1 and X2 pins 527 Cautions on debugging 53 Flash Programming 521 Specifications of programming function 5 3 2 System configuration 5 33 System startup procedure 5 34 Usage example 5 35 System shutdown procedure 5 3 6 Cautions on flash programming CHAPTER 6 HOW TO USE MINICUBE2 WITH 7EKOR MICROCONTROLLER 62 On Chip Debugging 62 1 Debug functions 22 System configuration 6 2 3 System startup procedure 24 System shutdown procedure 147 5 Securing of user resources and setting of security ID and on chip debug option byte 148 6 26 Cautions on deb
16. Figure 3 1 resents an overview ofthe MINICUBE2 communication interface As shown on the left side of the figure MINICUBE performs serial communication withthe target device on the target system For this communication communication circus must be mounted on the target system Refer to tis section to design appropriately UART and CSI H S are supported as communication modes Note that is not available i there is no HIS pin connection The H S pin is the name of the pin for the programmer and this pin might not be described as an altemate funcion pin in the users manual of the device In such a case connect the relevant port that is assigned to the HS pin In the VBSOES J for example tha PCMO pin is assigned to the HIS The pins used for serial communication are basically the same as those of the flash memory programmer such as PG FPA but some devices do not support some of them Refer to the document OB MINI2 Operating Precautions and check tha supported pins Figure 3 1 Outline of Communication Interface Communication circula must be mounted on the target system Serial communication UART CSHAS NUBE Targa system Host machine m CHAPTER 3 HOW TO USE MINCUBE2 WITH V S MICROCONTROLLER assignment This section describes the interface signals used between MINICUBEZ and the target system Table 3 1 lists the pin assignment Tabie 3
17. Remark Reter to the pin connection in Figure 5 10 when the X1 or X2 pin is not used mm m CHAPTER 5 HOWTO USE MINCUBE2 WITH MICROCONTROLLER 51 8 Mounting connector onto target system Tho connector must be mounted on the target system for connecting MINICUBE2 wit the target system 2 54 mm plc 16 pin general purpose connector can be used The following products are recommended HIFSFO 16PA 2 540S ightangle type made by Hirose Electric Co Lid HIFSFC I6PA 2 SADSA straight type made by Hirose Electric Co Lid 7616 S002PL igh angle type made by Sumitomo 3M Lid 7616 6002P1 straight type made by Sumitomo 3M Ld Compact connectors and loose wire cables are also avaible as options For more information on these products acess the MINICUBE information site URL tpifwww com mierolengishlproductlsc atash minicube2 him Figure 5 12 254 mm Pitch 16 Pin General Purpose Connector Pin Layout view d Pin assignment when MINICUBE2 is connected in this direction 66990666 Pin assignment of target connector to be mounted on target system n2 CHAPTER S TO USE MINCUBE2 WITH MICROCONTROLLER 52 On Chip Debugging This section describes the system configuration startupishutdown procedure and cautions for debugging when on chip debugging is performed with MINICUBE2 52 1 Debug functions Tab
18. for Intingement of patents copyrights or other intelectual propery rights of third parties by or arising from the use of NEC Electronics product etd i hie document any other lability arising from tho use of such products No leense express impied or otherwise is granted under any patenta or cher intellectual propery rights of NEC Elecroncs or others Descriptions of cireuits software and other related information in this document are provided for istrative Purposes semiconductor product operation and application examples The incorporation of these cults software and information in the design of a customer s equipment shal be done under the full of the customer NEC Electronics assumes no responsibly for any losses Incurred by Customers or third parties arising from the use ofthese software and Information Wile NEC Electronics endeavors to enhance the qual reliably and safety of NEC Electronics products customers agree and acknowledge thatthe possibilty of detects thereof cannot be eliminated entirely To minimize risks of damage to property or jury including death to persone arising from defects In NEC Electronics products customers must incorporate sufclent safety measures in thelr design such as redundancy e contalnment and ant alurefeatures NEC Electonics products are classed into the folowing three quay grades spect The Specife quality grade applies only to NEC Electronics product
19. 1 2 and PILI Multiply rato 8x 1 2 x 1 2 2 2 CHAPTER 3 HOWTO USE MINCUBE2 WITH Vis MICROCONTROLLER vasoemas Note the following two when debugging the VESDEMAS the target microcontroller t Ifthe Muliply rate is set to 1 25 or 25 in the Configuration dialog box when using the 1085008 these values wil be an integer 1 or 2 when the Configuration dialog box is opened the next time This is a problem of the debuggers display so the actual CPU cock is not affected 2 When the CKSEL pin is ow level PLL mode andthe target interlace is CSI st tho Multiply rate in Configuration dialog box to 10 and then start the debugger Thi process is required because the lock is fed to ono muted by 10 in the device specifications for the instance of writing the debug monitor program in the programming mode Once the debugger starts restoring the original rate wil not affect the debugging operation VESOESE2 VBSOESIIKT VBSOENIAS VBSOEMAS and VBSOENIGS Note the folowing point when debugging the 850 5 2 VBSDESIIK VBSOE IAS or VBSOE IA4 as the target microcontroler t When the target interface is CSI set tho Muliply rate in the Configuration dialog to 8 and thon stat the debugger This process is required because the clock is fixed to one multiplied by in the device specications for the instance of witing the debug monitor program in the program
20. 4 14 ilustrates the circuit connection for the case where the reset signal is switched automaticaly using the selector logic with or without MINICUBE2 connected When using fash sell programming refer to Figure 415 Caution The reset circuit is disconnected if flash self programming is performed FLMDO HI without connected no signals can be input to the RESET pin Figure 4 14 Circuit Connection for Automatically Switching Reset Signal with Selector Logie When Not Using Flash Self Programming Target connector E RESET OUT enin via RESET RESET IN e 4 Fimo Fi Side A LON SideB Reset connector RESET signal Note FLMDO is high leve when MINICUBE is connected and FLMDO is pulled down when MINICUBE is nol connected Figure 4 15 Circuit Connection for Automatically Switching Reset Signal with Selector Logie When Using Flash Self Programming Target connector Yoo device RESET OUT RESET RESET n ee rro LOW Side 8 31 Nee Reset connector RESET signal Note This designed tor fash self programming which controls the FLMDO pin via ports naan e CHAPTER 4 HOW TO USE MINICUBE2 WITH 78KO MICROCONTROLLER 9 Manually switching the reset signa
21. The mode LED glows green afer OB Programmor startup A serias of basic operations afar this step is described in the following section For detailed usage of the OB Programmer refer to the QB Programmer Programming GUI Operation User s Manual EI CHAPTER 3 HOW TO USE MINCUBE2 WITH ViS MICROCONTROLLER 334 Usage examples This section describes a seres of basic operations using the QB Programmer using the sPO7OF3792 as an example The operations from execution of he Autoprocedure EPV command to programming for he target device are described For other commands and thelr applications refer to the QB Programmer Programming GUI Operation User s Manual The conditions used for a sers of operations in this section are as follows Target system Target device Power supply voltage 5V supplied from MINICUBE2 Communication channel 2 MHz MINICUBE2 Switches Mode select switch M2 Power select switch 5 lt Q8 Programmer gt Parameter fle 7oFa7a2 PRM Clock seing 5 MHz x ecilator on the target system side Operation mode chip Program fie sample hex Command options Blank check betore Erase selected Read verily atter Program selected Security fag after Program selected Security function Disable Read selected m CHAPTER HOWTOUSE MINCUBE2 WITH VES MICROCONTROLLER 1 Setting of programming environment Set he programming environment folowing the
22. a 78KOR microcontroller using MINICUBE 83 Specifications of programming function 6 7 Specifications of Programming Function Funera Speatestons Host race USB 20 Companie wih 1 1 Target merece UART ie mede Tenet system vage 271 55V depend on he targat devo Gok supply intemal ghspeed cociaton cock te ured Power sunely mesma curent aing 100 mA equation ol deve pacc Parameter Ne lor NEC Electronics PO FPA used Securty tag sein Standalone operato Unavaa rus be connected machine 532 System configuration Figure 6 16 iutrates the system configuration for flash programming Figure 6 16 System Configuration for Flash Programming M A ae gt E Target system lt 1 gt Host machine Products with USB ports gt Sofware Includes the QB Programmer USB driver parameter fle and so on Download these NEC Electronics software from the folowing website 008 URL htpifwww comimicralodslang USB cable accessory 4 MINICUBE this product lt gt 16 pin target cable accessory lt gt Target connector sold separato 156 CHAPTER 6 HOW TO USE MINCUBEZ WITH TEKOR MICROCONTROLLER 633 System startup procedure This section describes the system startup procedure Observe the following order 1 Preparation and installation of software The folowing software s required to pe
23. area the address of this area varies depending on tho stack increase and decrease Figure 4 32 ilustrates the case where the stack area is increased when the intemal high speed RAM starts OxF B00 Figure 4 32 Variation of Address of Stack Area for Debugging gt lt gt lt oreor oro epe Stack area Stack area for debug epo OOO p A space intemal hig orem Speed RAM O FB00 CHAPTER 4 HOW TO USE MINCUBE2 WITH 78KO MICROCONTROLLER Tho size of this area also varies depending on whether software breaks or pseudo realtime RAM monitor is used Table 43 Size of Stack Area for Debugging Tem Size c Stack Area or Debugging Tones Wen sofware breaks aroused bes Wien pseudo RAM used ie sofware breaks posu RRM are used to secure areas Refer o the address rango shown below and set the stack pointer Example When intemal high speed RAM starts from OxFB00 Standard Within the rango OxFB07 to OxFEDE When software breaks aro used also refer to e Within the rango OxF 600 to OxF EDF When pseudo realtime RAM monitor is used also refer to f Within the rango tsFBOE to When software breaks and pseudo realtime RAM monitor is used also referto and N Within the rango OFB10 to OxFEDF Note Because the area OxFEDF is used by MINICUBE2 during break set th ial valo ofthe stack point
24. at he set sofware breakpoint position lt 4 gt Stop execution at the set software breakpoint postion gt Stop over execution tur Out execution lt Come Here I Permit is selected in the Flash Programming area in the Configuration dialog box the following operations cannot be performed Seting changing or canceling of hardware breaks b Mask nglunmasking of intemal reset Switching of peripheral breaks 1 Debugging in t wire mode in the condition that debugging is performed in tire mode selected by choosing TOOLO in the Target Device Connection area in the Configuration dialog box of the debugger when ho intemal high speed oscilator is used for the CPU operating clock breaks may not occur normally if the frequency variation between debugger startup and break occurrence except for when changing the register is too large This Situation may occur when the variation of operating voltage or temperature is too large 12 Pseudo realtime monitor function Nola the folowing points when using the pseudo realtime monitor function lt 1 gt Standby mode HALT or STOP may be cancelled during monitoring 2 The pseudo realtime monitor function does not operato while the CPU operating clock is stopped rete enue 155 CHAPTER 6 HOW TO USE MINCUBEZ WITH TKOR MICROCONTROLLER Flash Programming Tris section describes the system configuration and starup ehutdowm procedure when Rash programming is performed tor
25. ch open drain butler output resistance 1000 or less The VDD or GND level may be unstable when the logic of RESET INOUT of MINICUBE2 is inverted so observe the conditions described below in Remark Figure 412 Circuit Connection with Reset Circuit That Contains Bufer MINICUBE2 Target devico Reset connector Voo RESET OUT RESET Bufer RESELIN gt ietance of at least R1 ten times that of R2 R1 being 10 or more resistor R2 is not required if the buffer of ho reset cuit consists of CMOS output Tho circuit enclosed by a dashed ino is not required when oniy flash programming is performed Remark Mako tho re Figure 4 11 ilustrates the connection for the case where the rese ciroult on the target system contains buffers and the reset signal is only generated via resistors or capacitors Design the circuit observing the conditions described below in Remark Figure 413 Circuit Connection with Reset Circuit That Contains No Buffers MINICUBE2 Target device Raset connector Veo RESET OUT RESET m RESET IN a stanco of at least R1 ten times that of R2 R1 being 10 or more Tho cuit enclosed by a dashed ino is not required when only flash programming is performed Remark Mako tho re CHAPTER 4 HOW TO USE MINCUBE2 WITH 78KO MICROCONTROLLER 2 Automatically switching the reset signal via selector logic Figure
26. circuits must be mounted on the target system This section describes the circuit design and mounting of connectors 42 On Chip Debugging This secton descrbes the system configuration and startup method to perform on chip debugging with MNICUBE2 43 Flash Programming This secon describes the system configuration and startup method to perform fash programming wih MNICUBE2 mm A 5 CHAPTER 4 HOW TO USE MINCUBE2 WITH MICROCONTROLLER 44 Target System Design This section describes the target system circuit design required for on chip debugging and lash programming Figure 4 1 and Figure 4 2 present overviews of the MINICUBE2 communication interface For communication between and tho target system communication circus must be mounted on the target system shown on the side of the figure Refer to this section to design circuits appropriately Figure 4 1 Outline of Communication Interface for On Chip Debugging Cammunicaton circuits must ba mounted on the target system Communication via xux ar OCD 1AOCD 18 MNCUBEZ board Host machine luse ommurieatin Target syst Figure 42 Outline of Communication Interface for Flash Programming Communication rau must be mounted on target system UART communication 2 24 Target Host machine Target syata
27. for self programming Uta nual 153 ES CHAPTER 6 HOW TO USE MINICUBE2 WITH MICROCONTROLLER 6 2 6 Cautions on debugging This section describes cautions on performing on chip debugging for a 78KOR microcontoter Be sure to read the folowing to use MINICUBE2 properly 0 Handling of device that was used for debugging Do not mount device that was used for debugging on mass produced product because the flash memory was remiten during debugging and the number of rewrtes of the flash memory cannot bo guaranteed Moreover do not embed the debug monitor program into mass produced products Flash set programming 1 space where the debug monitor program is allocated is rewritten by flash self programming the debugger can no longer operate normally This caution also applies to boot swapping for such an 9 Operation after reset After an extemal pin reset or intemal reset the monitor program performs debug initialization processing Consequent the time reset occurence unti user program execution differs from that in the actual device operation Not Permits selected inthe Flash Programming area in the Configuration dialog box of the debugger tha time unti the user program is executed compared vith the time when Permit is selected is delayed several 100 ms 4 Debugging with real machine running without using MINICUBE2 1 debugging is performed wit a ral machine running without using MINICUBE2
28. includes the jump instruction for the debug monitor program How to secure areas It is not necessary secure this area intentonaly When downloading a program however the debugger rewrites the rest vocor in accordance with the folowing cases If the rewritten does not match the folowing cases the debugger generates an error FOc34 when using the 085008 When two nop instructions are placed in succession address 0 Before wing After wing Jumps to debug monitor program at O0 When two OXFFFF successively placed from address 0 already erased device Before wing After writing ONFFFE 2 Jumps to debug monitor program at x0 OQ OAF FFF ru Tho jrinstruction is placed at address 0 when using NEC Electronics compiler 50 Before wing After writing OO jrdepo2 gt Jumps to debug monitor program at x0 Dt rdepz2 4 mova2 and jmp are placed in succession from address 0 when using IAR compiler ICCV850 Before wing After writing CxO movimmsoreg 2 Jumps to debug monitor program at 0x0 Imp reg Qi mov mma regt Oxa imo regt Tho jump instruction or the debug monitor program is placed at address O Before wring Aner wrting Jumps to debug monitor program at 00 change CHAPTER 3 HOW TO USE MINCUBE2 WITH V50 MICROCONTROLLER ES 0 Securement of area for debug monitor program The shaded portions Figure 3 12 ar
29. is running n accordance with the sting in tho Flash Programming area in the Configuration dialog box of the debugger FLMDO pin output status while the debugger is running changes as follows Rewrting by fash sol programming is not possible when the output status is kow level When Perit selected High levei ow level for about 100 s after reset release When Not Permit is selected Low level 10 Operation at voltage with which flash memory cannot be written t any of the folowing debugger operations lt 1 gt to 7 which involve flash memory rewriting is performed wha flash memory cannot be rewritten the debugger automaticaly changes tho register setting so as to enable flash memory rewriting and restores the register seting ater the operations completed If any ofthe following operations lt 1 gt to lt 7 gt is performed fash memory rewriting has been disabled or operation is performed at a voltage with which fash memory cannot be rewritten however the debugger outputs an error and the operation is ignored To prevent the flash memory from being rewritten select Not Permit in the Flash Programming area in the 1D78K0R QB Configuration dialog box To prevent the frequency from being switched automatically select User in the Monitor Clock area in the Flash Programming area in the ID78KOR OB Configuration dialog box 1 Witing o intemal fash memory lt 2 gt Seting or canceling of software breakpoint Starting execution
30. is used for communication 9 Standby release with pseudo RRM and DMM functions enabled Tho standby mode is released by the pseudo RAM function and DMM funcion if one of the folowing conditions is satisfied Modo for communication between MINICUBEZ and the target device is CSEHIS Mode for communication between MINICUBE2 and the target device is UART and the main clock has been supplied Writing to peripheral VO registers that requires a specific sequence using DMM function Peripheral UO registers that requires specific sequence cannot be writen with the DMM function ES CHAPTER HOWTOUSE MINCUBE2 WITH VES MICROCONTROLLER 6 Device with which the debugger startup is slowed When the debugger is started for the frs time chip erasure and wrting of debug monitor program are Peomed The folowing devices require about a dozen seconds for those operations VasoESLG2 VESOESLUP VaSOESIME2 VBSOESIHF VBSOESIMG2 VESOESIMUP vesoesne2 D Writing of debug monitor program t the CPU operating clock seting is changed by the debugger the debugger rewrites the debug monitor program At this time it takes about a dozen seconds for this operation When using NEC Electronics debugger ID850QB this specification applies when the setting in the Clock area in the Configuration dialog box 0 Flash sot programming Ja space where the debug monitor program is located is rewritten by fash programming the debugger
31. jumper open and mount a clock circuit OCD1A may be a diferent name such as P31 depending on the device used For details refer to the user s manual tor the target device This connection is designed assuming that the RESET signal is output from the N ch open drain buffer output resistance 100 Q or less For detals referto 413 Connection of reset pin The circuit enclosed by a dashed ine is designed for fash self programming which controls the FLMDO pin ports Use the port for inputting or outputting the high level When flash self programming is not a pulldown resistance for the FLMDO pin can be within 1 to YOKE This is for pin processing when not used as device change this value to another resistance value soo APPENDIX A EQUIVALENT CIRCUIT mm s CHAPTER 4 HOWTO USE MINICUBE2 WITH 78KO MICROCONTROLLER ES Notes 1 Figure 4 5 When Both Debugging nd Programming Are Performed with X1 X2 Communication X1 Oscillator Is Used FLMD1 Pin Is Provided Connect TxD transmit side of tho target device FD receive side of the target connector tranamit side of the target connector to RxD receive side of the target device During debugging the cock mounted on the 72K0 OCD board can be supped nd TxD no clock mounted a dockof4 8 or 16 MHz can be supplied D
32. no longer operate normaly 9 Emulation of POC function The function of the target device cannot be emulated Make sure that he power to the target system is not shut down during debugging 10 Operation ator reset After an extemal pin reset or intemal reset the monitor program performs debug initialization processing Consoquenty to time from reset occurence unti user program execution dier from that in the actual device operation 11 Debugging with real machine running without using MINICUBE2 7t debugging is performed witha real machine running without using MINICUBE2 write tho user program using the QB Programmer Programs downloaded by the debugger include the monitor program and such a program malfunctions not controled via MINICUBE2 12 Cautions unique to devices vesci Note th following two points when debugging the VESDESIFXG as the target microcontroler lt 1 gt When the QB MINI2 is connected to the target system via UARTDO RH cannot be used as the CPU dock The debug monte program will change the register seting so as to select the main clock oscilator clock ar tho reset If the register setting is changed by the user program tho debugger operation wil become inva 2 When using the pseudo RRM function or the DMM function wih the ID8SOOB set the result of the following calculation as the Multiply rate in the Configuration dialog box rate 8x PLLO x PLI Example When PLLO
33. not change the switch setting while the USB cablo connected Table 4 11 Setting of Power Select Switch Sene Description 3 MINIGUBEZ to he target system D SVissupladirom MINICUBEZ woe target yan T Power supply of he target used MINCUBE2 detects the power orte tet system The detected power also used as the power supply fr he communication ace Note The maximum rating of the curent is 100 mA do not use MINICUBE withthe target system with the higher current rating The power is always supplied afr MINICUBE2 is connected to the host machine 9 Connecting the target system Connect MINICUBE2 to the target system as shown in Figure 4 35 before the power to the target system le turned on When the power select switsh is set to T the step of 4 Connecting the USB cable can be performed betore this step Figure 435 Connecting MINICUBE to Target System MINICUBEZ Target system ate Maia CHAPTER 4 HOWTO USE MINCUBE2 WITH 78KO MICROCONTROLLER 4 Connecting the USB cable Connect MINICUBE to the host machine as shown in Figure 4 36 before the power to the target system Is turned on When the power select swiich is sat to T the modo LED flashes white aflar connection When the power select switch is set to 3 or 5 he mode LED glows white connection Tho power is aways supped after MINICUBE is connected to the host machine
34. of MINICUBE2 Consequently the target device s POC function performs pseudo emulation Note that there is an error of 21 V between the POC detection voltage and the target system voltage CHAPTER 4 TO USE MINICUBE2 WITH MICROCONTROLLER ES 14 Device with without on chip debug function Only the devices with the on chip debug function can be debugged Seo the user s manual of the target device for checking whether itis equipped with the on chip debug function To debug a device without tno on chip debug funcion perform debugging by using an uppercompatibo product The following shows an example when using the 7BKOKF2 Target Davos OrChpDsbugFuton Deuce tor Debuggng Device Fi DF Used tor Debugging POT Noteqapped OFloruPDTeFOSA PDTFOSNS Sama IMS and XS BF for uPOTEFOSAS rT values according to he target deve DF for PDTEFOSAS E CHAPTER 4 HOW USE MINICUBE2 WITH MICROCONTROLLER 43 Flash Programming This section describes the system configuration and starup ehutdowm procedure when Rash programming is performed tor a 78K0 microcontroler using MINICUBE2 Specifications of programming function Table 4 10 Specifications of Programming Function Funciona USB 20 compatto wih Target interlace TART Target system voltage 27 55V depends on he target deve e
35. operation the break function for stack pointer initialization failure becomes Seting a software break Mito to the stack pointer rom the Register window Write to the fash memory rom the Memory window etc a software break occurs while the initial setting has not been made for the stack poir Uninitialized Stack Pointer is displayed on the status bar The subsequent operations are not performed normally make sure to set the SP value in the user program the message D Caution on downloading a HEX fle When downloading HEX fle do set fling value other han OxFF for the object converter option e CHAPTER 4 HOW TO USE MINCUBE2 WITH 78KO MICROCONTROLLER 6 Software break 2 the debugger does not terminate normally duo to a factor such as freeze while a software break ss instruction for which the software break is set and that has aen substiled by debug instruction remains as is avoid this select Object in the Download dialog box and download the load module In particular take care regarding this point when starting the debugger using project fla as well as when using Ph Flea f he Object check box and Ol ran donned he projet the T Erase 9 Caution on performing step execution Some SFR special function registers remain stopped during step execution In such a case execute the instruction withthe reaime execution function
36. set To parto debugging with MINICUBE2 the user resource must be secured and the secur ID must be set For details refer o 4 2 6 Securing of user resources and setting of security ID Unsupported sofware debugger device or firmware is used The sofware used may not support debugging of the target device Refer to the document QB MINI2 Operating Precautions and check the supported version When using software provided by an NEC Electronics partner refer to the documents prepared by the partner company Detect of MINICUBE2 MINICUBE2 may have a defect Refer to CHAPTER 7 SELF TESTING CHAPTER 4 HOW TO USE MINCUBE2 WITH 78KO MICROCONTROLLER 424 System shutdown procedure Terminate debugging and shutdown the system in the folowing order Ifthe folowing order is not observed the target system or MINICUBE2 may be damaged 1 Debugger termination Terminate he debugger 2 Target system power shutdown Shutdown the power supped to the target system This step is not necessary ifthe power select switch is set tora or 9 Unplugging the USB cable Unplug the USB cabe from MINICUBE2 or the host machine 4 Unplugging the target cable Unplug the target cable trom MINICUBE2 or the target system mm CHAPTER 4 HOWTOUSEMINCUBE2 WITH 78KO MICROCONTROLLER 425 Clock setting MINICUBE2 can supply clock to be used as the high speed system clock The setting of the 78K0 OCD board must be perfor
37. steps lt 1 gt to 7 described below 1 ick the Device menu on the monu bar and then cick Setup lt 2 gt The Device Setup dialog box appears in which the Standard tab is active Figure 3 17 Standard Tab of Device Setup Dialog Box p Teter 9 ai Orem s 1 eal lt gt Click the FRI Fl Riad bution to open the Parameter File Select dialog box Select the parameter for tho target device and then click the Open button Figure 3 18 Parameter File Select Diak Ce medie RL X tm CHAPTER 3 HOWTO USE MINCUBE2 WITH Vaso MICROCONTROLLER 4 Set the items in the Target Device Connection Operation Mode and Supply Oscilator areas in accordance with your programming environment The folowing shows an example Figure 3 1 Standard Tab of Device Setup Dialog Box After Setting p sug Dota Unum fenus EX we feet oie lt 5 gt The 7 32 can use the Got Security Setings command so click the OK button to retum to the main window cick the Device manu and thon click Get Security Setings Afer execution of this command the security functions and boot area setings for the target device can be checked in the Security fg setings area on the Advanced tab in the Device Setup dialog box For details refor to he OB Programmer Programming GUI Operation User s Manual Fi
38. to the users manual tor the target devico Tris is for pin processing when not used as device change this value to another resistance value see APPENDIX A EQUIVALENT CIRCUIT ES CHAPTER 4 HOW TO USE MINCUBE2 WITH 78KO MICROCONTROLLER Notes 1 Figure 410 When Only Debugging ls Performed with OCDIA OCDIB Communication n se sagt This connection is designed assuming that the RESET signal is output from the Nich open drain buffer output resistance 100 0 of less Fordelals reforto4L 3 Connection of reset pin OCD1A 00018 may be diferent namo such as P31 depending on the device used Check the pin name with the users manual for the target device Since this pin is dedicated to debugging during debugging setings mado by the user program are ignored If this pin is assigned to an input pot pin must be connected as shown in this figure because itis open when MINICUBE2 is not connected During debugging the clock mounted on the 78K0 OCD board can be supplied If no clock is mounted dock o 4 8 or 16 MHz can be supplied neither of ham is used for the CPU operating cock Tho circuit enclosed by a dashed ine is designed for fash self programming which controls the FLMDO pin pot Use the port for inputting or outputting the high level When flash self programming is not pertormed a pulldown resistanc
39. used VE E E A dog eso x To Tx T T4 T4 T4 T xA Note Do not mask receive those interupts when there is receive error interrupt or receive status interupt Port registers When UART is used do not set port registers to make the TxD and RD pins invalid When CSI HIS is used do not set port registers to make tha SI SO SCK and H S pins invalid The H S pin is used as the port output tor debugging The following shows two examples Example Seting other than below is prohibited when the target device is the V880ES KJ2 and UARTO is m I 6 5 4 39 2 1 pecs XIX TT TTA T8 P o6 5 4 3 2 1 0 X Dx Dx D TT TD T xA m 35 CHAPTER 3 HOWTO USE MINCUBE2 WITH Vis MICROCONTROLLER Example2 Seting other than below is prohibited when the target device is the VESOES HG2 and CSIBO is used X TX Ix Tx Tx TT x x T D x x x X TX T T4 T T4 x T 6 5 4 3 2 1 x x x x Dx Dx Dx xA Note Tho port values corresponding to the HIS pin are changed by the monitor program according to the debugger status To perform port register settings in bit units usualy the user program can use read modiy wita If an interrupt for debugging occurs before writing however an unexpected operation may be performed 9 Security ID setting Tris setting is required to prevent
40. with the higher current rating The power is always supplied afr MINICUBE is connected to the host machine 9 Connecting the target system Connect MINICUBE to th target system as shown in Figure 3 15 before the power to the target system is turned on When the power select switch is set to T the step of 4 Connecting the USB cable can be performed betore this step Figure 3 15 Connecting MINICUBEZ to Target System eq P 16 target cable MINICUBE2 Target system CHAPTER HOWTOUSE MINCUBE2 WITH VES MICROCONTROLLER 4 Connecting the USB cable Connect MINICUBE2 to the host machine as shown in Figure 3 16 before the power to the target system is turned on When the power select switch is sotto T the modo LED flashes white atr connection When the power select switch is set to 3 or 87 ho mode LED glows while afier connection The power is always supped after MINICUBE is connected to the host machine wih the USB cable Caution not change the switch setting while the USB cable is connected Figure 3 16 Connecting MINICUBE2 to Host Machine a MINICUBE2 USB cable Host machine 6 Applying power to target system Tum on power to the target system This step is not necessary if the power select switch is set to 3 Tho modo LED glows white after power application 6 a8 Programmer startup Start the QB Programmer from the Start menu of Windows
41. with the USB cable Caution Do not change the switch setting while the USB cable is connected Figure 436 Connecting MINICUBE2 to Host Machine B MINICUBE2 USB cable Host machine Applying power to target system Tum on power to the target system This sop is not necessary if the power select snitch is set to 3 or The mode LED glows white after power application 6 08 Programmer startup Stat the QB Programmer from the Start menu of Windows The mode LED glows green afer OB Programmor startup A series of basic operations atr this step is doscebad in the following section For detailed usage of the QE Programmer refer to the QB Programmer Programming GUI Operation User s Manual CHAPTER 4 HOW TO USE MINCUBE2 WITH 78KO MICROCONTROLLER 434 Usage examples This section descrbas a series of basic operations using tho QB Programmer using the PD7SFOS47D as an example The operations from execution of he Avoprocedure EPV command to programming for he target device described For other commands and their applications refer to the QB Programmer Programming GUI Operation Users Manual Tho condtins used for a series of operations in this section aro as follows Target syst Target device LPDTSFOSETD Pomer supply voltage 5 V supplied from MINICUBE2 Communication channel UART 15200 bps MINICUBE2 gt Switches Mode select switch M2 Power select swich 5 lt QB Programmer gt
42. write tho user program using the QB Programmer Programs downloaded by the debugger include the monitor program and such a program includes processing to make the TOOLO pin low evo Operation when debugger starts When the debugger is started if the Target Device Connection seting in the Configuration dialog box of the debugger is diferent from the sting for the previous debugging the intemal flash memory is erased 6 Debugging after program is written by flash programming 1 program is writen to tho intemal fash memory using the QB Programmor PG FPA on chip debugging is disabled even if it is enabled in the on chip debugging option byte setting perform debugging of the target alter that erase the intemal fash memory using the QB Programmer or PG FPA and then download the program using the debugger D LV clear start function setting address During debugging the debug monitor program stops the LVI default start funcion at address Consequently the LVI default start function is kept stopped even after debugging is completed unless the seting to address is changed through flash programming 6 On chip debugging option byte setting address C3H Tho on chip debugging option byte setting is rewritten arbitrary by the debugger 154 m E ES CHAPTER 6 HOW TO USE MINICUBEZ WITH TEKOR MICROCONTROLLER 9 FLMDO pin output status while debugger
43. 2 describes the functions of each pin The pin assignment varies depending on whether CSEH S or UART is used so design th circuit appropriately according to the circuit connection examples described on the following sections Fi Pin No Pin Name ee EE meee 1 lu 7 m Em ax RFU v 10 RFU m 1 ee 00000000 ie nns lute Bunte RUE NN d a pr naan EPI TET Puss custo tal tote Er ar Phase ote wets bte rete rini rus ar Tem E x De peu eT mmo mri ohm cons a E our pe imda x TIT TIT rm magia sitne Note As seen rom MINIGUBED 19 CHAPTER 3 HOWTO USE MINCUBE2 WITH Vis MICROCONTROLLER 342 Circuit connection examples Tho circuit design on the target system varies depending on the communication interface mode Refer to the folowing table and see the relevant circuit connection example Caution The constants described in the circuit connection example are reference values Ifyou perform flash programming aiming at mass production thoroughly evaluate whether the specifications of the target device are satisfied Table 33 Corresponding Circuit Connection Diagrams Genero ra
44. 62 On Chip Debugging This section describes the system configuration statupishutdown procedure and cauons for debugging when on chip debugging is performed with MINICUBE2 621 Debug functions Table 6 4 lists the debug functions when a 78KOR microcontrol sed the target device and the ID78KOR QB is Table 6 4 Debug Functions Funciona Speatcaions 10 be D codo Gn Start Here Come Hers Resta sap exsculon Hardware beak pin comment used by execution and access Sotware break 2 000 points resa wing to memory ang RUN Resa masking rtamalertem est oxecion stat Measurement resouton 00 Mex measurement ime Approximate 100 hou User spaces und debugging ama ROM 1024 22 bas Intra RAM 6 past Functan pes used or debug tae mode TOOLS ee mode TOOLD TOOL Note For details refer to 62 5 Securing of user resources and setting of security ID and on chip debug option byte Ute nual 143 CHAPTER 6 HOWTO USE MINCUBEZ WITH 7aKOR MICROCONTROLLER 522 System configuration Figure 6 8 ilustrates the system configuration for on chip debugging Figure 68 System Configuration for On Chip Debugging gt Target system a 2 D Host machine Products wilh USB ports Software Includes the debugger USB div
45. CUBE2 WITH MICROCONTROLLER 4 Set items in the Target Device Connector Operation Mode and Supply Oscilator areas in accordance with your programming environment The folowing figure shows an example Figure 5 22 Standard Tab of Device Setup Dialog Box After Setting p Peete Fie Fieri eran Supper fueras us me eae x eee se ESI Ea lt Next set he items in the Command options and Security flag settings areas in accordance wih your programming environment The folowing figure shows an example Figure 5 23 Advanced Tab of Device Setup Dialog Box meet en eana re Sena dan 2 pO TAE 130 1 CHAPTER 5 HONTOUSE MINICUBE WITH MICROCONTROLLER lt B gt By cicking tno OK bution the programming environment is set and the Device Setup dialog box is dosed The main window appears as follows Figure 5 24 Completion of Programming Environment Setting beer e Be Lu ss LI CHAPTER 5 HOWTO USE MINCUBE2 WITH MICROCONTROLLER Selection of program fle Select he program fle following the steps lt 1 gt to 3 described below 1 Clck the Ele mona on the monu bar and then click Load lt 2 gt The program fle select dialog box appears Figure 25 Pro
46. Erase f the flash memory in the target device is not blank Program Very and Security commands are executed fer the target device sequentially The mode LED on MINICUBE flashes yelow during execution When the command execution is completed normally the mode LED glows green and the folowing window appears Figure 4 44 Completion of Autoprocedure EPV Command Execution Dee ven Leb a7 ERE p Emerson 200 Fach Poeran mre A pem Forrai deum Vite Foot n ZI Fish Uer irre GOS EX Samike isats LO Am Satin corey pos EEN Uaioe Seer Teo Fen Verte a Eme Che Feet Uer he SN gb san Veith inii Eu 100 I CHAPTER 4 HOW TO USE MINCUBE2 WITH 78KO MICROCONTROLLER 435 System shutdown procedure Terminate fash programming and shutdown the system in th folowing order Ifthe folowing order is not observed the target system or MINICUBE2 may be damaged 1 Terminating the QB Programmor Terminale the QB Programmar it you are not going to perform programming to other devices Remark When the QB Programmer is terminated the seting information is saved in the qbp in fle Due to this flo he same setting is maintained when the QB Programmer is started the next ime 2 Target system power shutdown Shutdown the power supped to the target system Thi
47. MINICUBE2 to Host Machine Su Lond 4g MINICUBE2 USB cable Host machine 4 Startup of MINICUBEZ diagnostic tool Stat the MINICUBE2 dagnosti tool 1 he diagnostic tool was installed when NEC Electronics sofware was installed tha diagnostic tools registered on the Start menu as NEC Eloctorics MINICUBE Uttios s Vu varsion For the operation after hs stop ratar to tho users manual for the MINICUBE2 diagnostic tool 169 ES APPENDIX A EQUIVALENT CIRCUIT Tho equivalent circuit in MINICUBE2 which is related to the communication interface between MINICUBE2 and ho target system is shown below Although an example of the target system circuit connections is presented in this document refer to t when determining the parameters during substrate designing Figure A 1 MINICUBE Equivalent Circuit Target system side MINICUBE2 interior target connector pin number Remark With 7EKOS and 78KOR microcontrollers pins 3 and 5 are shorted out During on chip debugging of FAKO mieroconroilers te loin routing is prtomed when connecting be Ping 3 and 5 are shorted out and assigned to the target pins 12 and 14 shorted out and assigned to the target 170 m ES APPENDIX REVISION HISTORY Revisions up to the previous odion shown below The Applied to column indicato ho chapter in each dien to which t revision was applied
48. Manual Tho conditions used for a series of operations in this section are as follows Target Targat device PDTBF116S Power supply voltage 5V supplied from MINICUBE2 Communication channe UART 1 Mbps lt miNicUBE2 gt Switches Mode select Mt Power select switch 5 lt Q8 Programmer gt Parameter fle 7AF1166 PRM Cock seing Nono intemal high speed oecilation clock is used Operation modo chip Program fi sample hex Command options Blank check betore Erase selected Read very atter Program selected Uta nual 159 CHAPTER 6 HOWTO USE MINCUBEZ WITH TKOR MICROCONTROLLER 0 Setting of programming environment Sot he programming environment following the steps lt 1 gt to 6 descrbed below 1 Clck the Device menu on the monu bar and then click Setup lt 2 gt The Device Setup dialog box appears in which the Standard tab is active Figure 6 19 Standard Tab of Device Setup Dialog Box Teter 9 lt a gt Cick tho PRM Fs Risa button to open the Parameter Fle Select dialog Select the parameter for tho target device and then click the Open button Figure 6 20 Parameter File Select Dialog Box nete x o te 160 Uta ena CHAPTER 6 HOW TO USE MINCUBEZ WITH TEKOR MICROCONTROLLER lt 4 gt Set ihe items in the Target Device Connection Operation Mode and Supply Oscilator areas in acc
49. NEC User s Manual QB MINI2 On Chip Debug Emulator with Programming Function Target Devices V850 Microcontrollers 78KOR Microcontrollers 78KO Microcontrollers 78KOS Microcontrollers Document No U18371EJ2VOUMOO 2nd edition Date Published March 2008 NS NEC Electronics Corporation 2006 Printed in Japan memo MINICUBE is a registered trademark of NEC Electronics Corporation in Japan and Germany and Germany or a trademark in the United States of America Windows is either a registered trademarks or a trademark of Microsoft Corporation inthe United States andlor other countries PC AT is a trademark of International Business Machines Corporation C SPY is registered trademark owned by IAR Systems AB The Information in this document Is current as of March 2008 The information Is subject to change without notice For actual design in refer to he latest publications of NEC Electronics data sheets or data books ste for the most up to date specifications of NEC Electronics products Not products andlor types are avallable In every country Please check with an NEC Electronics sales representative for avallablity and additional information No of ths document may be copied or reproduced in any form or by any means without the prior writen consent of NEC Electronics NEC Electronics assumes no responsibilty for any errors that may appear inthis document NEC Electronics does not assume any
50. Parameter fle 78FOS47D PRM sting 20 MHz x oscilator on the target system side Operation mode chip Program fie samolahex Command option Blank check before Erase selected Read Verty ater Program selected mm 95 CHAPTER 4 HOW TO USE MINCUBE2 WITH MICROCONTROLLER 1 Setting of programming environment Sot he programming environment following the steps lt 1 gt to 6 described below 1 Clck the Device menu on the monu bar and then click Setup 2 The Device Setup dialog box appears in which the Standard tab is active Figure 47 Standard Tab of Device Setup Dialog Box ma ma pen lt tho FRI Fie Raad bution to open the Parameter File Select dialog box Select tho parameter for tho target device and then cick the Open bution Figure 438 Parameter File Select Dialog Box CHAPTER a USE MINICUBE2 WITH MICROCONTROLLER lt 4 gt Set the items in the Target Device Connection Operation Mode and Supply Oscilator areas in accordance with your programming environment The folowing figure shows an example Figure 439 Standard Tab of Device Setup Dialog Box After Setting see vane a7 poe foe om r ise lt gt Switch to the Advanced tab Sot the items in the Command options and Security fag settings areas in accordance with your programming
51. Programming Are Performed with OCDTAIOCDIB Communication X1 Oscillator s Used FLMDI Pin Is Not Provided eser ar 79 Connect TxD transmit side of the target device to FD receive side of the target connector and TxD tranamit side of the target connector to RxD receive side of the target device During debugging the clock mounted on the 72K0 OCD board can be supplied If no clock is mounted a dock of 4 B or 16 MHz can bo supplied neither of them is used for the CPU operating During ash programming us the clock mounted on the targat system OCD1A 00018 may bo diferent namo such as P31 depending on the device used Check the pin name wih the users manual for the target device Since this pin is dedicated to debugging during debugging port setings made by the user program aro ignored If this pin is assigned to an input port pin must be connected as shown in this figure because itis open when MINICUBE2 is not connected This connection is designed assuming that the RESET signal is output from the N ch open drain buffer output resistance 100 0 or less For details referto 413 Connection of reset pin The circuit enclosed by a dashed ine is designed for fash self programming which controls the FLMDO pin ports Uso the port for inputting or outputting the high evel When flash self programming is not pe
52. RAM monitor function is being processed Tho sampling ime canbe setin the Extended Option dialog The folowing shows the execution time whereas the operating frequency o Ure ere Feri Bek Wen estaue RR CON meses FT Pegiat btan Fesat Bosh iar vette MHz and interrupts enabled El with an RRM generated while user program main routine is running Redraw samolng tme oye Severs tens mo 1o several hundreds me Aoc ale The A pero occus tor me number of the RAM poire bytea 1 FRM Funcion Sampling Range Break Time por Max Intamupt Pending Tina Byes 110 10x 2 330 os dyes 110 10x 4 440 ops 36 bytes 110 10 16 1870 5 Tom appro 11045 Pseudo realtime RAM monitor function processing in progress uring a break RAM data collection and RAM data transmission B gprims Userprogamis running c User program nunning sampling time A A B x sampling range 12 Caution on mounting a cock on 78KO OCD board When a clock is mounted on the 78K0 OCD board power supply may not become the GND level even i the power to tho target system is shut down 15 Emulation of POC function I power supply the target system is tumad of during debugging the target device enters the reset state by the RESET_OUT pin
53. Use WITH MICROCONTROLLER m APPENDIX B REVISION HISTORY Descriptor Jedi Change of Table 61 Target System Design Note 2 ol Figures 6 2 in 84 2 Cireult connection example corrected Note 5 added 025 Securing of user resources and seting of security 10 and on chip debug option by Description ot materia added Aion ot Not 1 in Figure 6 1 Aton ot Noe a Securement ot debug monitorare 625 Cautions on debugging Dolton of 5 Stap execution s chang of T LVI defaut start funtion setting address Change 10 Operation at voltage with which ash memory cannot be writen change of 11 Debugging in re mode Change ot 12 Pseudo reaime mentor funcion CHAPTER HOWTO Use MINICUBEZ WITH MICROCONTROLLER Adon of APPENDIX A EQUIVALENT CIRCUIT EQUIVALENT CIRCUIT a memo eet Mart 173 China Co Let Press Gautam Ne 27 DiC Haan usa Gemary Bg ns Pn i cesa Er d Cr pM tree hen Sang PA Chia PC Maree ore Teoma woso ENON BF Te Saaw Dung gungen Ote Aaa veneni Fam Da eu r Tersus aoo EOM d
54. VO to INTP Jumper sting When debugging with MINICUBE2 connected 1 2 shored ter man shove 2a sorted Caution If debugging is performed with a real machine running without using MINICUBE2 write the user program using the OB Programmar Programs downloaded by the debugger include the monitor program and such a program malfunctions if itis not controlled via MINICUBE2 110 CHAPTER HOW TO USE MINCUBE2 WITH MICROCONTROLLER 51 5 Connection of X1 and X2 pine Tho X1 and X2 pins are used when the debugger is started for the fst tmo when downloading the monitor program and when programming is performed wit the QB Programmer Design circuits appropriately according tothe relevant case among the cases shown below 1 and x2 pins are not used in target system Seo Figure 5 10 2 X1 and X2 pins are used in target system Sse Figure 5 11 and 526 Debugging ofaltematefunctions of X1 and X2 pins Figure 5 10 Circuit Connection for the Case Where X and X2 Pins Are Not Used in Target System Target connector Target desc x x ES Figure 5 11 Circuit Connection for the Case Where X1 and X2 Pins Are Used in Target System device danger sening hen debugger le slated tor the iret ne downloading me montor program or when programming is pertomed win QB Programmer 1 2 shorted Oner an above 22 honed
55. a ES CHAPTER 1 OVERVIEW 1 2 Notes Before Using MINICUBE2 Chapters 1 and 2 present an overview and the basic specifications of MINICUBE2 and the folowing chapters provide separate descriptions for the target devices and the purpose of use To utlize this manual efecively refer to the following table and see the relevant chapter for your target device and purpose of use Table 1 1 Chapters Corresponding to Usage Target Devoe Purpose of Use Relevant Chapter Ven CHAPTERS HOW TO USE MINCUBEZ WITH Vaso MICROCONTROLLER Target stem desir 33 Target Systm Desin debugging 32 OnChpDebuggeg ash memory programming 33 Fam Programming E3 CHAPTER HOW TO USE MINCUBEZ WITH Tako MICROCONTROLLER Target ayeten des 43 Target System Desin debugging 42 OnChpDebuggeg Fish memory programming 43 Fash Programming ES CHAPTERS HOW TO USE MINICUBEZ WITH MICROCONTROLLER ayeten desir 1 Target System Desin Onipdebuggng 52 OnChpDetuggeg ash memory programming 53 Fash Programming ES CHAPTERS HOW TO USE MINCUBEZ WITH MICROCONTROLLER Target des 3 Target System Dosign 82 OnChpDebuggeg ash memory programming Fam Programming MINICUBE sessi CHAPTER SELETESTHG Spansion ol supported dvess CHAPTERS FIRMWARE UPDATE 13 Supported Devices Access tho folowing MINICUBE information s
56. a device fles and so on Download these NEC Electronics software rom the folowing website ODS URL ttn nece com microlodslena USB cable accessory MINICUBE product 16 pin target cable accessory Target connector sod separately CHAPTER 6 HOW TO USE MINCUBEZ WITH TEKOR MICROCONTROLLER 623 System startup procedure This section describes the system startup procedure Observe the following order 1 Preparation and installation of software The following software is required to perform on chip debugging For details on preparation and installation ot software ratar othe setup manual supplied with MINICUBE2 Debugger USB driver Device fia may be unnecessary when using a partner manufactures debugger 2 Switch setting Set the mode select switch to M1 Set he power select switch by refering to Table 6 5 Caution Do not change the switch setting while the USB cable is connected Table 6 5 Setting of Power Select Switch Description Vis MINIGUBEZ t a target yan 5 Vis supp sd rom MINICUBEZ tha target yan ower supply cl the target sym i used MINCUBE2 detects me power oro target estem Note The maximum rating of tha current is 100 mA do not use MINICUBEZ with the target system with higher current rating The power is always supplied ater MINICUBE is connected to the host machine 9 Connecting the target system Connect MINICUBE t
57. aret deve soy satio 9 Power select switch This switch is used to ot tho power supplied to the target system Table 22 describes the seting deta switch is set lo 3 at shipment auton Do not change the switch setting while the USB cable Is connected Table 22 Setting of Power Select Switch Sanna Descriptor SV cupped MINICUBEZ to the target oyster Factory ating The supple power is ted back MINCUBE2 and used only lor power detection s EV is MINICUBEZ oe target estan The supple power is ted ackto MINCUBE2 and usd only or power detecto T Power supply of he target ests used MINCUBE2 detects te power or targat sytem Note Tho maximum rang of the curent i 100r do not use MINICUBE2 wilh the target system with the higher current rating The power is aways supplied after MINICUBE is connected to the host machine 14 CHAPTER 2 NAMES AND FUNCTIONS OF HARDWARE 9 USB interface connector Thi is connector used to connect MINICUBE2 with the host machine a USB cable A USB 2 0 compliant mini B connector UX6OA MB SST Mado by Hirose Elect e Co Lit is employed 4 Target interface connector Thi connoctor used to connect MINICUBEZ withthe target system via a 16 target cable Connect the TEKO OCD board fer debugging 78KO microcontroller To prevent the 7EKO OCD board from being Insert by mistake pin 11 i
58. ata format and the baud rate are changed and the atemato uncton ports changed to control mode Also masking of UART receive interrupts is released Caution When the values of tho registers related to the communication pins are changed from those set by the monitoring program the debugger may hang up because a communication failure will occur In this case use the debugger to perform a CPU reset and restore the CPU CHAPTER 3 HOWTO USE MINCUBE2 WITH VES MICROCONTROLLER 3 3 Flash Programming Tris section describes the system configuration and startup shutdown procedure when Rash programming is peromed ora VSO microcontroller using MINICUBE 33 1 Specifications of programming function Table 3 6 Specifications of Programming Function Funciona USB 20 compan wih 1 1 UART or SEMIS Tenet est volage 271 55V depend on he targat dice lk apply 36 8 or 4 clock can be supplied mounted on he target system can be used Power supe 5 or 5 V maximum curent rating 100 mA Action Parameter fle tor NEC Electronics PO FPA i used Securty tag satin Standalone operation must be connected o host machina 332 System configuration Figure 3 14 illustrates the system configuration for Rash programming Figure 3 14 System Configuration for Flash Programming rs 1 E 2 m
59. before the power to the target system is turned on When the power select switch is soto T the mode LED flashes white after connection When the power select switch is set to 8 or the mode LED glows white after connection The power is always supplod after MINICUBE is connected to tho host machine wih the USB cabo Caution Do not change the switch setting while the USB cable is connected Figure 6 18 Connecting MINICUBEZ to Host Machine a MINICUBE2 USB cable Host machine Applying power to target system Tum on power to the target system This step is not necessary ithe power select switch is set to 8 or The mode LED glows white ater power application 6 a8 Programmer startup Start the QB Programmer from the Start menu of Windows The mode LED glows green ater OB Programmor startup A serias of basic operations after this step is described in the folowing section For detailed usage of the OB Programmor refer to the QB Programmar Programming GUI Operation User s Manual 158 Uta Menal CHAPTER 6 HOW TO USE MINICUBEZ WITH TEKOR MICROCONTROLLER 834 Usage examples This section describes a series of basic operations using the QB Programmer using the sPO7EF1166 as an example The operations from execution of the Auoprocedure EPV command to programming forthe target device described For other commands and their applications refer to the QB Programmer Programming GUI Operation Users
60. ce and so Download these NEC Electonics software from the folowing website ODS URL hip necekcomimierolodeleng lt gt USB cable accessory lt 4 gt MINICUBE this product 5 78K0 OCD board accessory lt B gt 10 pin target cab accessory T 16 target cable accessory lt gt Target connector soid separately CHAPTER 4 HOWTOUSEMINCUBE2 WITH 78KO MICROCONTROLLER 423 System startup procedure This section describes the system startup procedure Observe the folowing order 1 Preparation and installation of software Tho folowing software is required to perform on chip debugging For details on preparation and installation of software rafer to the setup manual supplied with MINICUBE2 Debugger USB river Device may be unnecessary when using partner manufactures debugger 9 Switch setting Sot the select switch lo M2 Set tho power select switch by refering to Table 4 7 Caution not change the switch setting while the USB cable is connected Table 47 Setting of Power Select Switch 3 rom MNIGUBEZ o a rp estar D EV ie rom MINICUBEZ o he target est T Power supply ha target MINCUBE2 detects the power or target system The detecied power is used as e power supply fr th communicate interlace Note The maximum rating of the curent is 100 mA do not use MINICUBE
61. ce Mode Pater gues guess E CHAPTER 3 HOWTO USE MINCUBE2 WITH VES MICROCONTROLLER Figure 3 2 Recommended Circuit Connection When UART Is Used for Communication Interface eter pn eH E Notes 1 Connect TxD sido of the target device to RAD receive side of ta target connector and TxD side of tho target connector to xD receive sido of the target device Read the serial interface pin names on the target device side as those for fash programming supported by the target device 2 This pin may be used to supply an extemal clock during flash programming 4 8 or 16 MHZ For the connection rater to the user s manual for the target device 3 The alternate function of this pin can be used because this pin changes to input unused when debugging n MINICUBEZ itis pulled down at 100 KQ 4 This connection is designed assuming that the RESET signal is output from the N ch open drain buffer output resistance 1000 or less For detas rafer to 3 1 3 Connection of reset pin 5 The enclosed by a dashed ine is not required when oniy lash programming is performed 6 The enclosed by a dashed ine is designed for fash seif programming which controls the FLMDO pin via ports Use the port for inputting or outputting the high level When flash sel
62. chine 9 Connecting the target system Connect MINICUBE2 to the target system as shown in Figure 5 14 before the power to the target system is turned on Connecting MINICUBE2 to Target System seein target cable MINICUBE2 Target system m ns CHAPTER 5 HOWTO USE MINCUBE2 WITH MICROCONTROLLER 4 Connecting the USB cable Connect MINICUBE to the host machine as shown in Figure 5 15 before the power to the target system is turned on When the power select switch is set to T the modo LED flashes white connection When tha power select switch is set o 2 or 5 mode LED glows white after connection Figure 5 15 Connecting MINICUBEZ to Host Machine 48 18 MINICUBE2 USB cable Host machine Applying power to target system Tum on power to the target system This stop is not necessary if the power select switch is set to 3 or Tho modo LED glows white after power application 6 Debugger startup Start he debugger The modo LED glows green ar debugger startup For the operation after this stop refer to the users manual for the debugger tho debugger does not start normally or the operation is unstable the possible causes may be the flowing Communication error between MINICUBE2 and target system Whether communication is performed normally can be checked using the OCD Checker For detas refer to the users manual for the OCD Checker The user resource has not been secured
63. ck supp 16 8 or 4 clock can be supplied lock mounted on the target system can be used Power supe 5 or 5 V maximum curent rating 100 mA Action dovce apeate Parameter tor NEC Eoctonics PO FPA i used Securty tag sering alis Standalone operation must be connected o host machine 432 System configuration Figure 4 34 the system configuration for flash programming Figure 4 34 System Configuration for Flash Programming E of mm Target system lt 1 gt Host machine Products with USB ports gt Sotware Includes the QB Programmer USB driver parameter fles and so on Download these NEC Electronics sofware from the folowing website ODS URL hw nace com microlodslang USB cable accessory 4 MINICUBE his produci gt 16in target accessory lt gt Target connector sod separate CHAPTER 4 HOW TO USE MINCUBE2 WITH 78KO MICROCONTROLLER 433 System startup procedure This section describes the system startup procedure Observe the following order 1 Preparation and installation of software The folowing sofware s required to perform lash programming For details on preparation and installation ot software ratar to the setup manual supplied with MINICUBE2 QB Programmer USB driver Parameter tie 2 Switch setting Set he modo select switch o M2 Set he power select switch by referring to the following table Caution Do
64. cuit enclosed by a dashed ine is designed for fash self programming which controls the FLMDO pin ports Use the port for inputting or outputting the high evel When flash self programming is not a pulldown resistance for the FLMDO pin can be within 1 to 10 This is for pin processing when not used as device change this value to another resistance valua see APPENDIX A EQUIVALENT CIRCUIT m G ES CHAPTER 4 HOWTO USE MINICUBE2 WITH KO MICROCONTROLLER Notes 1 Figure 4 9 When Only Debugging le Performed with X1 X2 Communication This connection is designed assuming that the RESET signal is output from the Nich open drain buffer output resistance 100 0 or less For details referto 4 1 3 Connection of reset pin For debugging mount no clock circuit For flash programming mount a cock ccu During debugging the clock mounted on the 7EKD OCD board can be supplied If no clock is mounted a dock of 4 8 or 16 MHz can be supplied The circuit enclosed by a dashed ine is designed for fash self programming which controls the FLMDO pin Via ports Use the port for inputting outputting the high level When flash self programming is not performed a pull down resistance for the FLMDO pin can be within 1 to 10 OCD1A may be ferent name such as P31 depending on the device used For details refer
65. d above in 1 Circumstances not covered by product guarantee not uso device that was used for on chip debugging as the official produc Readers Purpose Organization How to Read This Manual Conventions INTRODUCTION This manual is intended for users who wish to perform debugging using the QB MINIZ generic name MINICUBE2 The readers of this manual are assumed to be familar with the device functions and usage and to have knowledge of debuggers and fash programming This manual is intended to give users an understanding of the basic specifications and correct use of MINICUBE2 This manual is divided into the following sections General Names and functions of hardware Setesting Firmware update is assumed that the readers of this manual have general knowledge in ho folds of lectica engineering logic crus and microcontrollers Thi manual escrbes the basic setup procedures To understand tho basic specifications and usages of MINICUBE2 Read this manual according to the CONTENTS The mark R shows major revised points The revised points can be easily searched by copying an lt A gt in the PDF fe and specifying itin the Find what feld know tho manipulations command functions and oth of MINICUBE See the user s manual of the debugger to be used setings Note Footnote tor item marked with Note in the text Caution Information requiring particular attention R
66. ding on the target device For details confirm the target device s user s manual 3 The debug interlace pin name varies depending on t target device s usor s manual target device For details conim the 55 CHAPTER 4 HOWTOUSEMINCUBE2 WITH 78KO MICROCONTROLLER Figure 4 3 When Both Debugging and Programming Are Performed with X1 X2 Communication Only Internal High Speed Oscillator 1s Used d um reu s onu ses XE s x seo Notes 1 Connect TxD transmit side of the target device to RD receive side of the target connector and TxD tanem side of the target connector to RxD receive side of the target device 2 During debugging the clock mounted on the 78K0 OCD board can be supped I no clock is mounted dock of 4 8 or 16 can be supplied During flash programming only a clock of 4 8 or 16 MHZ can be supplied For debugging short 1 2 of JP1 and 1 2 of JP2 For fash programming short pin 2 of JP1 and JP2 oniy For the target device operation without MINICUBE2 connected leave JP1 and JP2 open 4 may bo a diferent name such as P31 depending onthe device used For details refer to tho users manual for the target device 5 This connection is designed assuming that the RESET signal is output from the N ch open drain buffer out
67. do realtime RAM monitor cannot be used sss osea Ds AT 16 SSS is an arbitrary symbol name eight characters or less CHAPTER 4 HOW TO USE MINCUBE2 WITH 78KO MICROCONTROLLER 427 Cautions on debugging This section describes cautions on performing on chip debugging for a 78KO microcontroler Be sure to read the following to use MINICUBE2 properly 1 Handling of device that was used for debugging Do not mount a device that was used for debugging on mass produced product because tho lash memory was rewritten during debugging and the number of rewrites of the flash memory cannot be guaranteed 2 Overwriting flash memory during on chip debugging If the folowing operations are performed during on chip debugging the lash memory in the device is overwrite T Downloading a program lt gt Manipulation in Memory dialog box lt B gt Manipulation in Memory Copy dialog box 4 Manipulation to change memory in Memory window lt 5 gt Online assembly in Assemble window lt gt Setings when using software breaks lt T gt Program execution or software reset operation wil Permit has been selected for the Target Power seting in the Configuration dialog box lt gt Operation that usos pseudo realtime RAM monitor function It takes ime from completion of lash memory programming unti the control is passed o GUI 9 Software break 1 During program running do not rewrite the data at tho ad
68. dress whore sofware break is set This includes se programming and rowing to RAM If performed the instruction placed at the address may bo invalid 4 Boot swapping during self programming The boot swapping function cannot be emulated This is because boot swapping moves the memory spaces sed for debugging and thus the debug communication can no longer be performed mm CHAPTER 4 HOWTOUSEMINCUBE2 WITH 78KO MICROCONTROLLER Emulation in self programming mode For self programming the mode is switched from normal mode to self programming mode MOV PFCMD 0ASH MOVREPMCAM 1 MOV MOV FLPMC TH From this poston Caio MOV MOV FLPMC OH Mode At MOV FLPMC 0FFH MOVFLPMC OH 3 n To his postion Tho section between 2 and 9 is in self programming made A1 Step execution or debug operations such stopping program execution cannot be performed in this section In ation do set a software break in the section between 1 and 3 therwise tho execution continues Without a break but emulation is not performed normaly 6 Break function for stack pointer initialization failure This function executes break when an interrupt occurs or a PUSH instruction is executed while the inital sating has not been made for the stack pointe he manipulation or instruction shown below ie executed immediately afier reset
69. e for the FLMDO pin can be within 1 to 10 Tris is for pin processing when not used as a device To change this value to another resistance value see APPENDIX A EQUIVALENT CIRCUIT ES CHAPTER 4 HOW TO USE MINICUBE2 WITH 78KO MICROCONTROLLER Notes 1 2 a s Figure 4 11 When Only Programming is Performed eire m pere UT OX pex dass This connection is designed assuming that the RESET signal is output from the N ch open drain butler output resistance 100 0 or less For details referto 413 Connection of reset pin Connect TxD transmit side of the target device to RxD receive side of he target connector and TxD side of the target connector to RxD receive side of the target device When the input clock to the target device is generated on the target system CLK does not need to be connected Please leave it open when no connection is made When no input cock is generated or the dedicated program adapter FA series is used CLK can be used as a pin to feed the external clock 4 8 16 MHz to the target device For the connection refer to the user s manual for the target device FLW pin is provided on the target device the connection must be made If FLMD1 pin is not provided the targat device lave it open This is for pin processing when not used as device To change thi
70. e the areas where the debug monitor program is allocated The monitor program performs initialization processing for debug communication interface and RUN or break processing forthe CPU The intemal ROM area must be filed wih OxFF This area must not be rewritten by the user program How to secure areas tis not necessary required to secure this area if he us program does not use this area avoid problems that may occur during the debugger startup however it is recommended to secure this area in advance using the complor The folowing shows examples for securing the area using the NEC Electronics compiar 5 Add the assemble source ie and ink directive code as shown below _ Assemble source Add the following code as an assemble source fie Secures 2 KB space for monitor ROM section section MontorOM const space 0800 Ox Secures interrupt vector for debugging section 08007 space 4 Ox Secures interrupt vector for serial communication for receive Secures vector for receive error interrupt and receive status interrupt f any Change the section name according to serial communication modo used section INTCEIQU space 4 Ox Secures 16 byt space for monitor ROM section aecion MonterRAM bes montorumeym 16 4 defines monitorramsym symbol Note The downloading speed can be increased by replacing this ine with the statement monitorromsym to perform a symbol definition
71. ebugging Fash programming is method to write a program to the fash memory embedded in device Erasing wring and veriying the program can be performed on board with the device Read the folowing chapters i you are using MINICUBE2 for the first mo with a 78KOR microcontroller as the target device 61 Target System Design For communication between MINICUBE2 and the target system communication circuits must be mounted on the target system This section describes the circuit design and mounting of connectors 62 On chip Debugging This section descrbes the system configuration and startup method to perom on chip debugging with MINICUBE2 Flash Programming This secon describes the system configuration and startup method to perform fash programming wih MINICUBE m 195 CHAPTER 6 HOW TO USE MINCUBEZ WITH TKOR MICROCONTROLLER 6 Target System Design section describes the target system circuit design required for on chip debugging and lash programming Figure 6 1 presents an overview of the MINICUBE2 communication interface shown on the left side of tho figure MINICUBEZ performs serial communication with the target device on the target system For this communication communication circus must be mounted on the target system Refer to this section to design appropriately Figure 6 1 Outline of Communication Interfaco Communication circu must be mounted on the target system
72. ecton 0 Manually switching the reset signal with jumper 9 Resetting the target device by power on clear POC only 106 Uefa nnd Viere CHAPTER HOWTOUSE MINCUBE2 WITH MICROCONTROLLER 1 Automatically switching the reset signal via series resistor Figure 5 3 ilustrates th reset pin connection described in 5 1 2 Circuit connection example This connection is designed assuming that the reset circuit on the target system contains an N ch open drain butler output resistance 1000 or less The VDD or GND level may be unstable when the logic of RESET INIOUT of MINICUBE2 is inverted so observe the condilons described below in Remark Figure 5 3 Circuit Connection with Reset Circuit That Contains Butter Target devico Reset connector Veo Voo RESET OUT RESET Buffer ar Remark Make the resistance of at least R1 ten times that of R2 R1 being 10 K or more Pulup resistor R2 i not required the buffer of the reset circuit consists of CMOS output Tho circuit enclosed by a dashed nei not required when only fash programming is performed Figure 5 4 ilustrates the connection for the case where the reset circuit on the target system contains butler and the reset signal is only generated via resistors or capacitors Design the circuit observing the condone described below in Remark Figure 5 4 Circuit Connection with Reset Circuit That Contai
73. em the tine required for download be shortened as when setto 4 MHz CHAPTER 4 HOW TO USE MINCUBE2 WITH 78KO MICROCONTROLLER 428 Securing of user resources and setting of security ID MINICUBE2 uses the user memory spaces shaded portions in Figure 4 29 to implement communication wih the target device or each debug functions The areas marked with a dot are always used for debugging and other areas are used foreach debug function used Refer to the descriptions of a to 1 the folowing pages and secure these spaces in the user program or using the compiler options ES When C SPY manufactured by IAR Systems is used road also the folowing material C SPY Hardware Debugger Systems User Guide issued by IAR Systems Figure 429 Reserved Area Used by MINICUBE2 in Internal RAM space amc o sare ter utra p p Post area RRM area romes BFH a Debug manor area DET c Security area ce cue epson tte rn E TEN e Sobre break ares Ge a Debug meni arma Lu E CHAPTER 4 HOW TO USE MINCUBE2 WITH MICROCONTROLLER o Debug monitor area this area must be secured Adirossos 0302 0103 and area staring from address must bo secured fo embed the debug monitor program N this area is reurton by fash self programming on chip debugging can no longer be performed H
74. emark Supplementary infomation Numeric representation Binary oo 0r o08 Decimal Hexadecimal Pref indicating power of 2 address space memory capacity K doy 2 1024 M mega 2 1024 5 Terminology MINGUBEZ Genere name of GE MIN Target doves Tisis 1o be Targat Tis me to be debugged sec cro ton includes sofware and hardware created by user OCD um OCDianattrevaton Or Ch Debug Tre OCD unt moans the debug funcion block embedded in the target Firmware Program embedded n ma deve tor carling MINICUBEZ 2 Programmer GUI sofware used fash programming Re Related Documents Pease use tho folowing documents in conjunction with this manual The related documents isted below may include preliminary versions However preliminary versions are not marked as such Documents Related to Development Tools User s Manuals G8 MIN Or Chi Debug Emulator wih Programming Function Tis document OB MN Setup Manus Pamer Tool 1095008 Ver 320 Debugger Operation 3 1078008 Ver 290 negate Debugger Operation inasre D78K15 OB Var 281 tert Debugger Operator 3 DTEKOFCOB Ver 320 Debugger pean 3 O8 Programmer Programing GUI Operator Visser MINCUBE2 Tool MNCUBE OCD Checker isse Caution The related documents
75. emark Describe the address to the portion of in accordance with the Nash memory capacity of the target device see o following table Fah Memmory Capacly of Value Descbed In Soure 0 Securement of stack area for debugging Inthe intemal RAM space of the target device tho shaded portion in Figure 5 16 are the area where the debug monitor program usos as th stack area 5 bytes Since this area is allocated immediately before the stack area that is used by the user program the address of this area varies depending on the stack increase and docroase Therelore the tack pointer must be set by making allowances for the stack size 5 bytes used for debugging The following figure states the case where the stack area is increased when the internal high speed RAM starts from OxF EOD B p gt Sopes Aratati space wrens oeoo hmm orem mE How to secure areas Rafer to the address range shown below and set the stack pointer Example When intemal high speed starts from OxFEOO Within the range OXFEOS to OxFEFF 120 CHAPTER S HOWTO USE MINICUBE2 WITH MICROCONTROLLER 9 Securement of communication serial interface The INTP pin is used for communication between MINICUBE2 and tha target system The setings related to the INTP pin are performed by the debug monitor pr
76. environment The following figure Figure 440 Advanced Tab of Device Setup Dialog potent ep impact shows an example Box CHAPTER 4 HOW TO USE MINCUBE2 WITH Ko MICROCONTROLLER lt gt By clicking the OK button the programming environment is set and the Device Setup dialog box is dosed The main window appears as follows Figure 4 41 Completion of Programming Environment Setting pese Vow teb BeL 33 IEEE s IL aue w E iul mb S ee CHAPTER 4 HOW TO USE MINCUBE2 WITH 78KO MICROCONTROLLER 2 Selection of program fle Select he program fle following tho stops lt 1 gt to 3 described below 1 Cek the Ele monu on the menu bar and then click Load lt 2 gt The program fle select dialog box appears Figure 4 42 Program File Select Dialog Box Lokm DRE enom Bernie Hee mE lt a gt Select he program fle for the target device and then click the OPER button Figure 4 43 Completion of Program File Selection Tw Deve Vm dep Ba es SX ssh oper oR Mame SU osa Eo co ERT E p col pu LS Eme RE 29 f L CHAPTER 4 HOW TO USE MINCUBE2 WITH MICROCONTROLLER Execution of Autoprocedure EPV command Cickthe Device menu on the menu bar and then click AUtoprocadure EPV Tho Blank Check
77. er to OxFEDF not OxFEEO when th initial value is set to OXFEDF the actual value used for tho sack OXFEDE there wil be probleme Furthermore OxFEDF is prohibited for use as stack area but be us as variable area o Software break area area is used for software breaks How to secure areas Reter o the folowing and secure the area SSS CSEG AT 555 is an arbitrary symbol name eight characters or less DB 0 Pseudo realtime RAM monitor RRM area When pseudo roamo RAM monitor is used tho area of debug monitor area referto 256 bytes intemal extended area from OXF7FO to OxF7FF must be reserved How to secure debug monitor area 256 bytes When using NEC Electronics compilar CC7EKO tho area used for pseudo realtime RAM monitoring can be secured using the linker option Figure 4 38 shows the Linker Options dialog box ofthe project manager 256 bytes to the area specified in a make the area 512 bytes in total mm CHAPTER a TO USE MINICUBE2 WITH MICROCONTROLLER Figure 4 33 Linker Option Setting When Pseudo RAM Monitor and Software Break Are Used DAT teas pe IE Bis stare T centre Fi Lm wem ote LE eme ome oe How to secure intemal extended RAM area Fro the folowing and secure the area H this area does not existin the target device pseu
78. et connector sold separate CHAPTER HOWTOUSE MINCUBE2 WITH VASO MICROCONTROLLER 323 System startup procedure This section describes the system startup procedure Observe the following order 1 Preparation and installation of software The folowing software is required to perform on chip debugging For details on preparation and installation of software refer to the soup manual supplied with MINICUBE2 Debugger use driver Device fle may be unnecessary when using a partner manufactures debugger 2 Switch setting Set the modo select switch to M2 Set the power select switch by refering to Table 35 Caution Do not change the switch setting while the USB cable Is connected Table 3 5 Setting of Power Select Switch Description Vis ron MNICUBEZ V a target yan 5 Vis supp sd rom MINICUBEZ tha target yan Power supply of he target i used MINCUBE2 detects the power or he target sem The detected power is also usd asthe power supply or me comemunlcelion aac Note The maximum rating of the current is 100 mA do not use MINICUBEZ with the target system with higher current rating The power is always supp ed after MINICUBEZ is connected to the host machine 9 Connecting the target system Connect MINICUBE2 to the target system as shown in Figure 3 10 before the power to the target system is turned on Figure 3 10 Connecting MINICUBEZ to Target System 2
79. etails refer to 425 Securing of user resources and setting of security ID Unsupported sofware debugger device or fmware is used The sofware used may not support debugging of the target device Refer to the document Operating Precautions and check the supported version When using software provided by an NEC Electronics partner refer to the documents prepared by the partner company Delect of MINICUBE2 MINICUBE2 may have a defect Rater to CHAPTER 7 SELF TESTING CHAPTER TO USE MINCUBE2 WITH VES MICROCONTROLLER 324 System shutdown procedure Terminate debugging and shutdown the system in the folowing order Ifthe folowing order is not observed the target system or MINICUBE2 may be damaged 1 Debugger termination Terminate the debugger 2 Target system power shutdown Shutdown the power supplied to the target system This step is not necessary if the power select switch is set to ors 9 Unplugging the USB cable Unplug the USB cable from MINICUBE or the host machine 4 Unplugging the target cable Unplug the target cable trom MINICUBE2 or the target system mm E ES CHAPTER 3 HOW USE MINCUBE2 WITH Vis MICROCONTROLLER 325 Securing of user resources and setting of security ID The user must prepare the following to perform communication between MINICUBE and the target device and implement each debug funcion eter to the descriptions on the folowing paga
80. f programming is not performed a pulldown resistance for the FLMDO pin can be within 1 to 10k This is for pin processing when not used as a device To change this value to another resistance value see APPENDIX A EQUIVALENT CIRCUIT m a CHAPTER 3 HOW TO USE MINCUBE2 WITH V50 MICROCONTROLLER lt B gt Figure 33 Recommended Circuit Connection When ls Used for Communication Interface reser our E E Simro aH oa roolit E Notes 1 Connect SO transmit side of the target device to SI receive side of the target connector and SO transmit side of the target connector to SI receive side of the target device Read the serial interface pin names on the target device side as tnos for fash programming supported by the target device This pin may be used to supply an extemal clock during flash programming 4 8 or 16 MHZ For he connection rater to the user s manual for the target device The alterate funcion of this pin can be used because this pin changes to input unused when debugging n MINICUBEZ itis pulled down at 100 ko This connection is designed assuming that the RESET signal is output from the N ch open drain buffer output resistance 1000 or less For details refer to 3 1 3 Connection of reset pin 5 The cireuit enclosed by a dashed ine is not required
81. get system varies depending the used connector and interface signals Tho following 1 to 3 aro the major purpose of use Confirm the purpose refer to Table 4 5 and s relevant connection example for specifications Caution The constants described in the circuit connection example are reference values If you perform flash programming aiming at mass production thoroughly evaluate whether the specifications of the target device are satisfied 1 Used to perform on chip debugging and flash programming one 16 pin connector 2 Used to on chip debugging via 10 pin connector This of circuit connection can be used wih on chip debugging emulator QB 78KOMINI 9 Used to fash programming Table 45 Corresponding Circuit Connection Diagrams Usage Programming Debug Operang Cek Sawee FMD Rer sed aed by Target Devos pi m eas uer xoc tighapeed oscar Not o connect oscilator notused provided X1 onal 7 m Rowe 5 EDTA ps vtemangspeedcschr Not I Ocom pan xt esctatrnot used _ provided X car 7 T Forst ww Powe ee conector PS rene core att wes uw E Z fromen Notes 1 Rafer to the target device s user s manual to confirm whether an FLMD pin is provided 2 The debug interface pin name varies depen
82. gram File Select Dialog Box banD Bante tes Hemne SE isotype Suse Herts Tres s en lt gt Select he program fle for the target device and then cick he Figure 26 Completion of Program File Selection beet Paes Sw 132 CHAPTER 5 HOWTO USE MINICUBE2 WITH MICROCONTROLLER 9 Execution of Autoprocedure EPV command Cek the Device menu on the menu bar and then cick Autoprocedure EPV The Blank Check Erase f the flash memory in the target device is not blank Program Very and Securty commands are executed for the target device sequentially The mode LED on MINICUBE2 fashes yellow during execution When the command execution is completed normally the mode LED glows green and the following window appears Figure 5 27 Completion of Autoprocedure EPV Command Execution Eia beet Sp BA KF Sw LI CHAPTER 5 HOWTOUSE MINCUBE2 WITH MICROCONTROLLER 535 System shutdown procedure Terminate fash programming and shutdown th system in the folowing order Ifthe folowing order is not observed he target system or MINICUBE2 may be damaged 0 Terminating the QB Programmor Terminate the QB Programmer i you are not going to perorm programming to other devices Remark When the QB Programmer is terminated the setting information is saved in the qbpuni fle Due to fle the same seting maintai
83. gure 3 20 Advanced Tab of Device Setup Dal lox After Get Security Settings Execution inlet nl o FT orate Cuter CHAPTER HOWTOUSE MINCUBE2 WITH VES MICROCONTROLLER lt gt Next set tho tems in ho Command optione and Security fag settings areas in accordance wit your programming environment The folowing figure shows an example Figure 321 Advanced Tab of Device Setup Dialog Box Imm v Bi zl o Seg tn P vehe dn gen pcm pe IU Lo DES lt T gt By clicking the OK bution the programming environment is set and the Device Setup dialog box is closed The main window appears as Figure 3 22 Completion of Programming Environment Setting IN eX Sa 47 CHAPTER 3 HOW TO USE MINCUBE2 WITH Vis MICROCONTROLLER Selection of program fle Select he program fle following tho steps lt 1 gt to 3 described below 1 Clck the Ele mona on the menu bar and then cick Load lt 2 gt The program fle select dialog box appears Figure 3 23 Program File Select Dialog Box banD Jem Henne S lt a gt Select he program fle for the target device and then cick he Figure 3 24 Completion of Program File Selection es Baer Sw CHAPTER HOWTO USE MINCUBE2 WITH VES MICROCONTROLLER 9 Execution of Autoprocedure EPV command Cek
84. h general purpose connector TSM 108 01 L DV employed 16 CHAPTER 3 HOW TO USE MINICUBE2 WITH V850 MICROCONTROLLER MINICUBE2 when perforning on chip debugging and flash programming for On chip debugging is a method to debug a microcontroler mounted on the target system using a debug function implemented in the device Since debugging is performed wih the target device operating on the board this method is suitable for field debugging Flash programming is method to write a program to the flash memory embedded in a device Erasing wing and veriying the program can be performed on board with the device Read the following chapters if you are using MINICUBE for ho frst tmo with a V850 microcontroller as the target device 31 Target System Design For communication between MINICUBE2 and the target system communication circus must be mounted on the target system This section describes the circuit design and mounting of connectors 32 On chip Debugging This secton describes the system configuration and startup method to perform on chip debugging with MNCUBE2 33 Flash Programming This section describes the system configuration and startup method to perform flash programming with MNCUBE2 mm A 7 CHAPTER 3 HOW TO USE MINCUBE2 WITH Vaso MICROCONTROLLER Target System Design This section describes the target system circuit design required for on cip debugging and lash programming
85. i or refer to the document for details on the devices that support debugging and flash programming with MINICUBE2 The document describes the development tools that are required as the support conditions sra interface and operating precautions so be sure to read the document in action to this manual MNCUBE information ste URL hp Amen noce comimicrclongishiproducusc aMashlmiricuba2 him Document Document namo QB MINI2 Operating Precautions Remark The above mentioned document is posted on tho MINICUBE2 information Web sta essai UITIUM CHAPTER 1 OVERVIEW 34 Hardware Specifications Tis section describes the MINICUBE2 hardware specifications Tho specifications related to the on chip debug and fash memory programming functions described in the folowing chapters Table 1 2 Hardware Specifications 73 Tem peace Operating power supp Supplied va USB 5 V Operating envicnment Temperature 40 o DC ondes 10 10 80 RH no condensation Straps anion Temperature 15 180 C condone unidiy 10 10 80 RH no condensation Wag Bernat 40 9 Hoel machine Target non machine OO NX Safes EM PCIAT compatible Target OS Windows Windows Ma Windows 2000 Windows XP use 20 1 1 companta USB cable Curent ELL Target meraca Target cable length Terpin cable 10 em pin Suporte canner 254
86. illustrates the circuit connection for the case where the reset circuit on the target system contains butters and the reset signal is only generated via resistors or capacitors Design the circuit observing the conditions described below in Remark Figure 6 4 Circuit Connection with Reset Circuit That Contains No Buffers MNCUBE2 Target device _Reset connector Voo RESET OUT RESET m RESET IN gt Remark Make the resistance of at least R1 ten imes that of R2 R1 being 10 more The circuit enclosed by a dashed ine is not required when only flash programming is performed 140 m 1 CHAPTER 6 HOW TO USE MINICUBE2 WITH TEKOR MICROCONTROLLER 2 Manually switching the reset signal with jumper Figure 6 5 ilustrates the circuit connection for the case where the rest signal is switched using the jumper wih or without MINICUBE2 connected This connections simple but the jumper must be sot manually Figure 65 Circuit Connection for Switching Reset Signal with Jumper Target connector deve Target device RESET OUT 215 RESET Reset connector RESET IN RESET signal danger sening When MINICUBEZ ls connected 1 2 When MINICUBE2 ls not connected 23 shared 8 Resetting the target device by power on clear POC only Figure 64 ilustrates the circuit connection for the case where the target device is only reset via
87. in Functions RESET PID eset all Pn ued to oput rest oral to he dc uoo our Pi used to sere age o debug mode or programming ode d TNOUT Pn edo waremireceive conmendi ta between gel deve me Phsedtotunenitieceve cormandiata between he target deve Ph ued put hansehake signal he targat dedos RFU Tie ps ot used so leave open Notes 1 As seen from MINICUBE2 2 The RXD and TXD pins are internally shorted by seting the mode select switch to M1 CHAPTER 6 HOWTO USE MINICUBE2 WITH MICROCONTROLLER 6 1 2 Circuit connection example Refer to Figure 6 2 and design an appropriate cic Caution The constants described in the circuit connection example are reference values If you Perform flash programming aiming at mass production thoroughly evaluate whether the specifications of the target device are satisfied ES Figure 62 Recommended Circuit Connection rom P Notes 1 With MINICUBE2 the circuit enclosed by a dashed ine is not necessary because the and TKO pins are shorted other lash programmer is used these pins must be shorted on the target system because these pins may not be abe to be shorted in the programmer 2 This connection is required for 2 wire c
88. in a device Erasing and wring the program can be performed on board with the device Read the folowing chapters if you are using MINICUBE2 for the first time with a 78008 microcontroller as tho target device 5 1 Target System Design For communication between MINICUBE2 and the target system communication circuits must be mounted on target system This section describes the design and mounting of connectors 52 OnChip Debugging This section describes the system configuration and startup method to perm on chip debugging with MINICUBEZ 5 3 Flash Programming This section describes the system configuration and startup method to perform fash programming with MNICUBE2 102 are Maria UMEN CHAPTER 5 HOWTO USE MINICUBE2 WITH MICROCONTROLLER 5 1 Target System Design section describes the target system circuit design required for on chip debugging and flash programming Figure 5 1 presents an overview of the MINICUBE2 communication interface As shown on the left side of ihe figure MINICUBEZ performs serial communication with the target device on the target system For this communication communicaton circus must be mounted on the target system Refer to this section to design circus appropriately Figure 5 1 Outline of Communication Interface Communication crate must be mounted on targat system Target device Serial communication
89. ion Refer to the descriptions on the folowing pages and set these items inthe user program or using the compilar options R gt Whon C SPY manufactured by IAR Systems is used read also the following material IAR C SPY Hardware Debugger Systems User Guido issued by IAR Systems Securomant of memory space The shaded portions in Figure 5 16 are the areas reserved for placing the debug monitor program so user programs cannot be allocated in these spaces Figure 5 16 Memory Spaces Where Debug Monitor Programs Are Allocated Intemal ROM space Internal RAM space ROM end adress J Ram end adis 30 bytes Sys stack area tor debugging VET oct or sotware break ZW 0x18 TP interrupt vector EI Debug montor program area Securement of serial interface for communication The register setings concerning the INTP pin used for communication between MINICUBE2 and the target device perfomed by the debug monitor program must not bo changed ne CHAPTER S HOWTOUSE MINCUBE2 WITH MICROCONTROLLER 1 Securement of area for debug monitor program In the intemal ROM space of ho target device the shaded portions in Figure 5 16 are the areas whore the debug monitor program is allocated The monitor program performs initialization processing for debug communication interface and RUN or break processing for CPU The intemal area mu
90. ip debug option byt have not been set To debugging with MINICUBE2 the debug monitor area must be secured and the security ID and debug option byte must be sot For details refar to 625 Securing of user resources and setting of security 1D and on chip debug option byte Unsupported software debugger device fle or is used The sofware used may not support debugging of the target device Refer to the document OB MINIZ Operating Precautions and check the supported version When using software provided by an NEC partner referto the documents prepared by the partner company Detect of MINICUBE2 may have a defect Refer to CHAPTER 7 SELF TESTING 146 CHAPTER 6 HOW TO USE MINICUBEZ WITH TEKOR MICROCONTROLLER 824 System shutdown procedure Terminate debugging and shutdown the system in the folowing order Ifthe folowing order is not observed the target system or MINICUBE2 may be damaged 1 Debugger termination Terminate the debugger 2 Target system power shutdown Shutdown the power supplied to the target system This step is not necessary i t setto 3 of 5 poner select switch is 9 Unplugging the USB cable Unplug the USB cable from MINICUBE2 or the host machine 4 Unplugging the target cable Unplug the target cabe trom MINICUBE2 or the target system Uta nual L4 CHAPTER 6 HOW TO USE MINCUBEZ WITH
91. irmware Addition of supported devices Corecton o restictlons This chapter describes the method for checking firmware version system configuration and firmware update procedure Nolo hat MINICUBE2 may no longer operate it firmware is updated incorecty 8 1 System Configuration 8 1 ilustrates the system configuration for updating frmvare Figure 1 System Configuration for Firmware Update Lco eM m lt gt lt gt lt 1 gt Host machine Products wih USB ports lt gt Software Includes the USB driver and MINICUBE2 diagnosi tool These software can be instaled when an NEC Electronics debugger or OB Programmer installed Download these NEC Electonics sofware from the folowing website ODS URL hip necelcominicraledsiong lt gt USB cable accessory lt gt MINICUBE this product 168 CHAPTER amp FIRMWARE UPDATE 2 Firmware Update Procedure 1 Preparation and installation of software Tho following software is required to update frmware For details on preparation and installation of software refer to the setup manual supplied wih MINICUBE2 lt MINICUBE diagnostic tool USB diver 2 Switch setting Tho modo select switch and power select switch may be set to any postion 9 Connecting the USB cable Connect MINICUBE to the host machine Do not connect MINICUBE to the target system The mode LED glows white after connection Figure 82 Connecting
92. ity ID or on chip debug option byte must be embedded in the area filed wih yellow OxC3 and to XCD in Figur 6 11 to prevent the memory from being read by an unauthorized person 148 Uta ena CHAPTER 6 HOW TO USE MINICUBE2 WITH TEKOR MICROCONTROLLER a Securement of debug monitor area This is the area to which the debug monitor program is to be allocated The monitor program performs Inaiaizaton processing for debug communication interface and RUN or break processing forthe CPU This user programs data must not be placed in an area of 22 bytes near the on chip debug option byte and an area of 1 024 bytes betore the intemal ROM ond address In addon rest vector is rewritten to address allocated to a monitor program Nota Iis an of 88 bylas when the pseudo RAM function is not used during debugging in 2 wire mode If the intemal ROM end adress is Ox3FFFF a monitor program of 88 bytes is allocated tothe area from 3 to OGFFFF How to secure areas The folowing shows an example for securing the area when using NEC Electronics assembler RATEKOR or compler Select the On Chip Debug Option Bytes go check box as shown Inthe figure below area of 22 bytes is thus secured near the on chip debug option byte An area ot 1 024 bytes before the intemal end adress is also secured by seting the start address and Example intemal ROM ond address is OXSFFFF Figure 6 12 Secure
93. k CHAPTER 5 USE MINCUBE2 WITH MICROCONTROLLER 53 Flash Programming Tris section describes the system configuration and startuplshutdown procedure when Rash programming is perormed ora TEKOS miroconroler using MINICUBE 53 Specifications of programming function Table 5 5 Specifications of Programming Function Speatcaions Host race USB 20 Compan wih 1 Target rose TART Target system vage E710 55 V ends oh aga Cock ure BME clock can be spp Power api Sort curent 100 m queo o device speci Parameter le for NEC PO FPA used Securty tag sating Standalone operation navalis must be hos machine 532 System configuration Figure 5 17 illustrates the system configuration for Rash programming Figure 5 17 System Configuration for Flash Programming 7B di m Target system E lt 1 gt Host machine Products wih USB ports gt Sotware Includes the QB Programmer USB driver parameter fies and so on Dounioad these NEC Electronics sofware from the folowing website ODS URL hie nace comiimieralodslang USB cable accosson 4 MINICUBE2 this product lt gt 16in target cabo accessory lt Target connector sold separately m 125 CHAPTER HOWTO USE MINCUBE2 WITH MICROCONTROLLER 533 System startup procedure This section describes
94. l with jumper Figur 4 16 ilustrates the circuit connection for the case where the reset signal is switched using the jumper Wih or without MINICUBE2 connected This connection is simple but the jumper must be set manually Figure 4 16 Circuit Connection for Switching Reset Signal with Jumper Target connector Jumper i 3 Target device RESET OUT 2 RESET Reset connector RESET IN RESET signal WhenMINCUBE2i connected 1 2 Wen MINCUBE2 not connected 23 shred When 10 pin connector is used pins 1 and 2 of ho target connector can also be used as the jumper as shown in Figure 4 17 Figure 4 17 Jumper Connection When 10 Pin Connector Is Used Target connector Target devica RESET IN 0000 T RESET 00006 Reset connector RESET signa RESET OUT CHAPTER 4 HOW TO USE MINCUBE2 WITH 78KO MICROCONTROLLER ES 4 Resetting the target device by power on clear POC only Figure 4 18 states the circu connection for the case where the target device is only rese via POC without using the reset pin RESET OUT becomes active when power is applied to MINICUBE2 Even power supply to the target system is tumed off during debugging pseudo function emulation is available because RESET OUT becomes active Note that there is an error of 21 V between the POC detection voltage and the target system vo
95. le 5 3 iets the debug functions when a 78KDS microcontroller is the target device and the ID72KOS OE is used 1a debugger other than the 07805 08 made by partner manufacturer is used he available functions may dier so check the specifications of the debugger usd Table 53 Debug Functions Funciona Speclcaton Securty 10 m Go Sat Cone Here Restat step executor Sofware break Forced break vale except wile are abled RAM navit DUM wing to memory during RUN Pro masing vale extemal rss pin Time measurement Measurement resoiuton 100 e rom exten start o break Max measurement tine Appromatly 100 hours ser paces used tor debugging items RONE RANE S bytes as tack Funcion pins used for debugging WTP XT xz RESET Note The INTP pins to be used are described in the document OB MINIZ Operating Precautions The X1 and X2 pins are used when the debugger is started for the frst time when downloading monitor program na CHAPTER 5 HOWTO USE MINCUBE2 WITH MICROCONTROLLER 522 System configuration Figure 5 13 itrates the system configuration tor on chip debugging Figure 5 13 System Configuration for On Chip Debugging P Target system lt 1 gt Host machine Products wi USB ports lt gt Sotware Includes tha deb
96. listed above are subject to change without notice Be sure to use the latest version of each document for designing ote Documents Related to Development Tools Documents except User s Manuale Operating Precautions pcbarinat Caution The related documents listed above are subject to change without notice Be sure to use the latest version of each document for designing ote CONTENTS CHAPTER 1 OVERVIEW 14 Features 12 Notes Before Using MINICUBE2 13 Supported Devices 14 Hardware Specification CHAPTER 2 NAMES AND FUNCTIONS OF HARDWARE 2 1 Names of Supplied Hardware 22 Part Names and Functions of MINICUBE2 23 Part Names and Functions of 78K0 OCD Board CHAPTER 3 HOW TO USE MINICUBE2 WITH V850 MICROCONTROLLER 322 System configuration 323 System startup procedure 3 2 4 System shutdown procedure 325 Securing of user resources and setting of security ID 326 Cautions on debugging 33 Flash Programming 33 1 Specifications of programming function 3 32 System configuration 3 3 3 System startup procedure 3 3 4 Usage examples 3 3 5 System shutdown procedure 3 3 6 Cautions on flash programming CHAPTER 4 USE MINICUBE2 WITH 78KO MICROCONTROLLER 4 1 Target System Design 4 1 1 Pin assignment 4 12 Circuit connection examples 4 1 3 Connection of reset pin 41 4 Cautions on target system design seda nanasi
97. losed by a dashed line is not required when oniy flash programming is performed 24 m M CHAPTER HOW TO USE MINCUBE2 WITH VES MICROCONTROLLER 2 Manually switching tho reset signal with jumper Figure 3 6 trate the circuit connection for the case where the rese signal is switched using the jumper With or without MINICUBE2 connected This connection is simple but the jumper must be set manually Figure 26 Circuit Connection for Switching Reset Signal with Jumper Target connector Jumper Target device RESET OUT 2 RESET 3 Reset connector RESET IN RESET signal danger sening When MINICUBEZ ls connected 1 2 shorted When MINCUBE2 not connected 23 sored 9 Resetting the target device by power on clear POC only Figure 3 7 ilustrates the circuit connection for the case where the target device is only rese via POC without using the reset pin RESET OUT is valid only when the debugger is running or during fash programming Tho operation is not guaran POC funcion cannot be emulated Figure 3 7 Circuit Connection for the Case Where Target Device Is Only Reset via POC Veo 1101010 Target connector Target devico RESET OUT RESET IN X m 25 CHAPTER 3 HOWTO USE MINCUBE2 WITH Vis MICROCONTROLLER 344 Mounting connector onto target system The connector must be mounted on the taret system fo
98. ltage Figure 4 18 Circuit Connection for the Case Where Target Device s Only Reset via POC Veo 1101010 Target connector Target device RESET OUT _feser RESET IN X CHAPTER 4 HOWTOUSEMINCUBE2 WITH 78KO MICROCONTROLLER Cautions on target system design Note the following cautions when designing the target system Do not place XV OCDIA and 1 next to each other on the target system Hf the layout requires this thay should be made as short as possible Make to distance between the target connector and the target device as short as possible Since the X JOCDIA and X2 OCD18 lines are used for clock supply be sure shield them such as with GND pattem Before shipping the product use jumpers or other means to physically separate the X1 OCD1A and X2 0CD18 pins from the target connector in order to ensure normal clock oscilation When debugging remove capacitors feedback resistors and other elements for the resonator in order to prevent signal degradation due to the load placed the X1 0CD1A and X2 0CD18 pins Figure 4 19 Reference Diagram of Target System Target device x x Make the pattern where X1 and X2 are ext to each other as short as possible make the space wider Connect to the connector by using tin plating when debugging Shield both sides of the ine to reduce noise
99. m 15 CHAPTER 2 NAMES AND FUNCTIONS OF HARDWARE 22 Part Names and Functions of 78K0 OCD Board Tha 78KO OCD board is used for debugging a 78KO microcontroller not used for lash programming Figure 23 strates the extemal view of the 78KD OCD board The name of each part is pied on the 78K0 OCD board For each function refer to 1 to 4 Below Figure 23 Part Names of 78K0 OCD Board JO DEGERE EE 2 nununnnmulg g mmm E S m m 8 UUUUUUUU NEC vem For clock supply tothe target device 14 pin DIP socket is implemented as CLKI A 14 pin type oscilator 5 V parts board that can configure oscilation circuit can be mounted on the 14 pin socket A pars board such as the 1600314 manufactured by can bo used with this socket to configure oscilaon circuit This is a connector used to connect MINICUBE2 with the target interface connector of To prevent the 78K0 OCD board being inserted by mistake a dummy pin is mounted in the place of pin 11 in ont 6 ona This is a connector used to connect MINICUBE2 with the target syster via a 10 pin target cable A O core 254 mm pitch general purpose connector TSM 105 01 L DV is employed cna This is a connector used to connect MINICUBE2 With the target system a 16 pin target cabio coro 254 mm pitc
100. m Target system lt 1 gt Host machine Products with USE ports gt Sotware Includes the QB Programmer USE driver parameter fles and so Download these NEC Electronics sofware from the folowing website ODS URL comimiorolodslong USB cabo accessory 4 MINICUBE this produci lt 5 gt 16 pin target cable accessory lt gt Target connector sold separate m CHAPTER 3 HOWTO USE MINICUREA WITH Vaso MICROCONTROLLER 333 System startup procedure This section describes the sytem startup procedure Observe the following order 1 Preparation and installation of software The following sofware is required to perform fash programming For details on preparation and instalation of software reor to the setup manual supplied with MINICUBE QB Programmer USB driver Parameter flo 2 Switch setting Set the mode select switch o M2 Sot he power select switch by refering to Table Caution not change the switch setting while the USB cable is connected Table 3 7 Setting of Power Select Switch Senne Descriptor 3 MNIGUSEZ o a target estar D EV i MINICUBEZ 1o he target Power supply of ha used MINCUBE2 detects the power orte target stem The dott power is seas e power supply rh coneuriae aae Note The maximum rating of the current is 100 mA do not use MINICUBEZ with tha target system
101. m s2 m HAPTER 4 HOW TO USE MINCUBE2 WITH MICROCONTROLLER Pin assignment Tis section describes the interface signals used between MINICUBE and the target system Table 4 1 ists the pin assignment when a 16 pin target cable is used Table 4 2 describes the functions of each pin The pin assignment varies depending on whether the operation is debugging or programming so design the cicuit appropriately according to the connacton examples descrbed on the folowing sections Table 4 1 Pin Assignment When Using 16 Pin Target Cable Pn Nan ForDabuggg em Board Connected For Programming aD RESET QUT ax 00000000 Rar Pin ol target correc DATA RFU rr RESEN REL Note Signal names in MINICUBEZ Table 42 Pin Functions Piae wou RESET IN Pin une o rp om We aget RESETOUT our Pin used to ouput he target ax our Pr used to ouput cock alo me target device DATA TNOUT Piusedtoinpufoupur or data communication ding debugging rr Pin used to set ihe aget deve debug mode or programming mode our Pin used to set programming moie Pin used to receive conmandata Fon be wget device mo Pin used to vana
102. med according to the following clock supply methods 1 t 3 0 Using a clock mounted on the 78K0 OCD board Using a clock 4 8 16 MHz generated in MINICUBE2 G Using a cock mounted onthe target system 4 Using an intemal high speed oscilator generated in the target device only sotings for 1 to 4 are descebod below Supplying a clock used as the subsystem clock is not supported 1 Using a clock mounted on the 78KD OCD board Mount an oscilator or oscilation circuit CLK of the 78K0 OCD board Clock Board is automaticaly selected the Main Clock in the Configuration dialog box of the debugger The usable frequency is the same as that ofthe target device Refer o a when using the oscilator or b when mounting an oscilator Tho clock mounted the 78 0 board can be used only when the XI and X2 pins are used as the communication interlace When OCD1A and OCD1B are used as the communication interface the cock is supplied from the circuit connected the X1 and X2 pins of the target device However or program download at debugger startup the clock set by tno debugger is used Therooro for example when set to 16 MHz of the System the time required for download can bo shortened as when setto 4 MHZ 9 When using oscilator Mount the 14 pin oscilator 5 V CMOS in CLK of the 78KO OCD board as shown in Figure 4 28 TXC 1 manufactured by Tokyo Quartz Lid is recommended a
103. mentof Debug Monitor Area cusa Liva E um pem ia Z Seu Exp Uta Menal 149 CHAPTER 6 TO USE MINICUBE2 WITH MICROCONTROLLER 150 6 On chip debug option byte area This is tho area for ho security seting prevent tho flash memory rom being read by an unauthorized person Tho debugger manipulates the target device in accordance with the set value as shown below Table 6 6 On Chip Debug Option Byte Setting and Operation SetValue Description Remark Debugging amp disabled even 1 an on chip debug Tie sting ony sch as MINICUBEZ connected tor asn programming and sat programming as The onchip lsh memory not eased no mater how many tmas he secur 0 code authenteaton A occi Rash memory ares are erased If 0 code sutantcton tais Other than above Caution Values can be set only to bits 7 and 0 OCDENSET and OCDERSD Be sure to write 0000108 to bits 6 to 1 Remark Values set to bits 3 to 1 are changed during on chip debugging so valuas of these bits undefined after setting Howeve How to set be sure to set these bits to initial values 0 1 0 The folowing shows setting example when using NEC Electronics assembler RATBKOR or compiler CCTEKOR Seta value for the Control Value te
104. ming mode Once the debugger starts restoring the original multiply rate wil not affect he debugging operation R gt 13 Processing of monitoring program for debugging An overview of the processing of the monitoring program for debugging when MINICUBE2 has been connected and the debugger has been started including ater the debugger has been used to perform a CPU reset and related cautions are described below 1 Stopping watchdog imer that starts operating immediately ater reset Caution When an operation has been started in a user program for a watchdog timer whose operation is not started immediately after reset the debugger may hang up In this case use the debugger to perform a CPU reset and restore the CPU 2 Clock operations The VBSOESIFI VASOES Fx amp L and can use an intemal oscilator as the CPU clock For such devices an intemal clock is switched to an extemal clock during UART communication The PLL and frequency division are the same as during operation of program created by the use Caution With MINICUBE2 an internal clock is not supported during UART communication The internal low speed clock when the clock has been stopped is also not supported during UART communication Both clocks can be used in CSI 3 Changing setings to enable serial communication according to debugger communication pin settings For example in the case of UART the settings of UART control the d
105. mitconmandata o ha target device RED is pins rot ued so leave open Notes 1 As seen rom MINIGUBE2 2 Not used in some devices CHAPTER 4 HOW TO USE MINCUBE2 WITH MICROCONTROLLER 4 3 lists the pin assignment when a 10 pin target cable is used The 10 pin taret cable is dedicated for debugging Use this cable if tha target system is designed for MINICUBE GB 7EKOMINI or in order o lit the usage of the connector mounted on the target system only for debugging Table 4 Pin Assignment When Using 10 Pin Target Cable Pane T RESET IN RESET_OUT rr DATA Target system HHH Note Signal names in MINICUBE2 00000 Pin assignment of targat connector obe mountad on target system Table 4 4 Pin Functions Pham our RESELIN Fin used to reset sional tothe target system meserour our Pin used 1o up reset signal oh target deos our Pin used sp cock sional os target device BATA OUT Pinusedio dta communication Gung debug Noo our Pin use targat o debug moda or programming mode RFU is pin ia rot ued so lave open Note seen from MINICUBED I CHAPTER 4 HOW TO USE MINCUBE2 WITH 78KO MICROCONTROLLER 412 Circuit connection examples The circuit design on the tar
106. mm ple gene purpose connector Supply wage SAV yp or OV b Supply core 100 mA max Cent consungton mAb Voltage range 18555 2 M CHAPTER 2 NAMES AND FUNCTIONS OF HARDWARE chapter describes the names and functions of MINICUBE2 and accossorios part names desorbed in this chapter are used throughout this document This chapter provides an overview of the various functions Reading it through the reader wil gain a basic grasp of MINICUBE2 and the solcheck board that wil tacito reading of subsequent chapters While reading this chapter also check if the hardware has defect 2 Names of Supplied Hardware Figura 2 1 shows the names ot hardware supplied with MINICUBE2 Figure 2 1 Names of Supplied Hardware MINICUBE2 16 pin target cable 10 pin target cable 78K0 OCD board A 20 MHz oscillator mounted CHAPTER 2 NAMES AND FUNCTIONS OF HARDWARE 22 Part Names and Functions of MINICUBE2 Figure 22 shows the names of he MINICUBE2 main unit For their functions refer to 1 1o 5 below Figure 22 t Names of MINICUI m _ 0 Modo select switch This switch is used to select the targat device Tabie 2 1 describes the seting details This swich is set to at shipment Table 2 1 Description of Mode Select Switch Ea Sata TEKOS or TAKOR microcontroler aa trat dvo ots VESO or TEKD microcontroler as t
107. ned when the QB Programmer is started the next time 2 Target system power shutdown Shutdown the power supped to the target system This step is not necessary if the power select switch is set n Unplugging the USB cable Unplug tha USB cab from MINICUBE2 or the host machine When the power select switch is set to T tho step of 4 Unplugging the target cable can be performed before his step 4 Unplugging tho target cable Unplug the target cable MINICUBE2 or ho target system 538 Cautions on flash programming This section describes the for flash programming Be sure to read the folowing for the propor use of MINCUBE2 To improve the wing quay fully understand and evaluate the following ems betore using MINICUBEZ Circus are designed as described in the users manuals for the device and MINICUBE2 The device QB Programmor and MINICUBE2 are used as described in each users manual The power supplied to the target system is stable 134 Uefa nnd CHAPTER 6 HOW TO USE MINICUBE2 WITH 78KOR MICROCONTROLLER This chapter describes how to use MINICUBE2 when performing on chip debugging and flash programming fora TEKOR microconroer On chip debugging is a method to debug a microcontroler mounted on the target system using a debug function implemented in the device Since debugging is perormod with the targat device operating tha board this method is suitable for feid d
108. ns No Butters MNCUBE2 Target device Reset connector Voo RESET RESET OUT m RESET IN gt Remark the resistance of at least R1 ten times that of R2 RI being 10 or more Tho circuit enclosed by a dashed ine is not required when only lash programming is performed 107 CHAPTER 5 HOW TO USE MINCUBE2 WITH MICROCONTROLLER 2 Manually switching the rest signal with jumper Figure 5 5 ilustrates the circuit connection fer the case where the reset signal is switched using the jumper ih or without MINICUBE2 connected This connection is simple but the jumper must be set manually Figure 5 5 Circuit Connection for Switching Reset Signal with Jumper Target connector deve Target device RESET OUT 3 2 RESET 3 Reset connector RESET IN RESET signal When MINICUBEZ is connected 1 2 When MINCUBE2 not connected 23 shred 9 Resetting the target device by power on clear only 108 Figure 5 6 ilustrates the ciroult connection for the case where the target device is only reset via POC without using the reset pin RESET OUT is vad when the debugger is running during ash programming Tho operation is not guaranteed the power to the target system is shut down during debugging Note that POC function cannot be emulated Figure 5 6 Circuit Connection tor the Ca
109. o debug mode Tis pin ie not used o leave Note A seen MINICUBEZ 104 CHAPTER S USE MINCUBE2 WITH MICROCONTROLLER 542 Circuit connection example Refer to Figure 5 2 and design an appropriate cic Caution The constants described in the circuit connection example are reference values If you perform flash programming aiming at mass production thoroughly evaluate whether the specifications of the target device are satisfied ES Figure 2 Recommended Circuit Connection eei E aru T iri red MN ux dee m new PES i te m Notes 1 The RESET pin is used to download the monitor program at debugger startup or to implement forced reset Therefore a pin that amate functions as the RESET pin cannot be used For reset pin connection refer to 13 Connection of reset pin 2 This is the pin connection when the X1 and X2 pins are not used in the target system When using the X1 and X2 pins refer o 5 1 5 Connection of XI and X2 pins Tho X2 pin is genty pulled down in the device during the reset period With MINICUBE it is pulled up at 1 5 so use a resistance of about 100 when puling it down on the substrate No problem wil occur the dashed ine portions are connected 4 Thi pin is connected to enhance ho accuracy of time measurement be
110. o the target system as shown in Figura 6 9 before the power to the target system is turned on Figure 9 Connecting MINICUBE2 to Target System seein target cable MINICUBE2 7 Target system m 1 145 CHAPTER 6 HOW TO USE MINCUBEZ WITH TKOR MICROCONTROLLER 4 Connecting the USB cable Connect MINICUBE to the host machine as shown in Figure 6 10 before the power to the target system is turned on When the power select switch is set toT the mode LED flashes white after connection When the power select switch is set to 3 or 5 he mode LED glows whe after connection Figure 6 10 Connecting MINICUBE2 to Host Machine sa MINICUBE2 USB cable Host machine Applying power to target system Tum on power to the target system This stop is not necessary i the power select switch is sat to 8 or 5 The mode LED glows white afier power application 6 Debugger startup Start the debugger The mode LED glows yelow after debugger startup For the operation after this stop refer to the user s manual for the debugger the debugger does start normaly he operation is unstable the possible causes may be the following Communication between MINICUBE and target system Whether communication is performed normally can be checked using the Checker For details reor to the users manual for the OCD Checker The user resource has not been secured the security ID and on ch
111. odo to the assembler source Example When seting x02 SSS CSEG AT SSS is an arbitrary symbol name eight characters or less 2 Caution If address 0184 is overwritten by 0x00 by self programming communication is disabled and debugging and connection can no longer be performed even if the debugger is restarted In case erase the memory via flash programming 9 Security ID area essential This is the area for the security seting to prevent the lash memory from being read by an unauthorized person The security ID functions as a password for starting the debugger Tho debugger starts only when the socurty ID that is input during debugger startup and the security ID embedded in this area match How to sot When using NEC Electronics assembler RATEKO an ID code is generated in this area using the linker option 90 Figure 4 31 shows the Linker Options dialog box of the project manager Select the Securty ID check box as shown in the figure below and set an arbitrary ID code 10 bytes CHAPTER 4 HOWTO USE MINCUBE2 WITH MICROCONTROLLER Figure 4 31 Linker Option Setting Security 10 DAT Lost s Lo T S sc centi E em om oe Stack area for debugging this area must be secured This area requires 7 to 16 bytes as the stack arem for debugging Since this area is alocated immediatly before the stack
112. ogram but if the setting is changed by the user program communication error may occur To prevent such a problem from occuring communication serial interface must be secured in the user program How to secure communication serial interlace Create the user program observing the following points Interrupt mask fag register not disable interrupts using the interrupt mask fag register corresponding to t INTP pin used Example Seting other than below is prohibited when the target device is the 78KOS KB1 and is used I 6 5 4 3 2 1 0 mi 1e ee xA Port mode registers of tomate function ports not set to the output mode the atemateunction corresponding to the INTP pin used Example Seting other than below is prohibited when the target device is the TEKOSKB1 and INTPO is xDDD Ix xA Extemal interrupt mode registers not set to other than the rising edge the extemal interrupt modo register corresponding to the NTP pin used Example Seting other than below is prohibited when the target device is the 78KDSIKB1 and INTP3 is used mm E CHAPTER HOWTOUSE MINCUBE2 WITH MICROCONTROLLER 528 Debugging falternate unctions of X1 and X2 pins Tho X1 and X2 pins are used when the debugger is started for the frst tmo when downloading the monitor program and when programming is performed with the QB Programmer ti not necessar
113. omatically switching the reset signal via series resistor Figure 3 4 lusatos the reset pin connection described in 3 1 2 Circuit connection examples This connection is designed assuming that the reset circuit on the target system contains an N ch open drain buffer output resistance 1000 or less The VDD or GND level may bo unstable when the logic of RESET_INOUT of MINICUBE is inverted observe the conditons described below in Remark Figure 34 Circuit Connection with Reset Circuit That Contains Buffer MINICUBEZ Target devioe Reset connector Moo Veo RESET_OUT RESET Buter RESEL IN Remark Mako the resistance of at least R1 ten times that of R2 R1 being 10 k or more Pullup resistor R2 is not required if the buffer of the reset cuit consists of CMOS output Tho cuit enclosed by a dashed ino is not required when oniy lash programming is performed Figure 3 5 ilustrales the circuit connection for the case where the reset circuit on the target system contains buffers and the reset signal is only generated resistors capacitors Design the circuit observing conditions described below in Remark Figure 35 Circuit Connection with Reset Circuit That Contains No Buffers MINICUBE2 Target device Raset connector Voo RESET OUT RESET m RESET IN ar Remark Mako the resistance of at least R1 ten times that of R2 RI being 10 KA or more Tho circuit enc
114. ommunication but not for fe communication This pin is left open when MINICUBE is not connected so connect pulkup or pull down resistor to this pin betore using The TOOL pin becomes the pin that supplies a clock from the target device to MINICUBE2 Digital noise that is synchronized wih this clock may interfere wit the GND power supply Take general countermeasures against noise such as inserting a dumping resistor as required 3 This connection is designed assuming that the RESET signal is output from tho N ch open drain buffer output resistance 1000 or less For details rafer o 6 1 3 Connection of reset pin The enclosed by a dashed ine is not required when oniy flash programming is performed 5 This is tor pin processing when not used as a device To change this value to another resistance value APPENDIX A EQUIVALENT CIRCUIT 138 m CHAPTER 6 HOW TO USE MINICUBEZ WITH TEKOR MICROCONTROLLER 61 3 Connection of reset pin This section describes the connection of the rset for which special attention must bo paid in the cuit connection example shown in the previous section During on chip debugging reset signal from the target system is input to MINICUBE masked and thon output to the target device Therefore the reset signal connection varies depending on whether MINICUBE2 is connected For flash programming the circuit must be designed so that the reset signals of the target
115. ordance with your programming environment The folowing figura shows an example Figure 21 Standard Tab of Device Setup Dialog Box After Setting pm Teen P pot fueras pe ao Lo omit Cm w m lt Next set he items in the Command options and Security fag settings ares in accordance wih your programming environment The flowing figure shows an example Figure amp 22 Advanced Tab of Device Setup Dialog Box Conmara Baked tuos P Rana pe T Oran atm Pagan p ien sete zl T Dese rises Fe Fed woman sionis ES zal Uta Menal LI CHAPTER HOWTO USE MINCUBEZ WITH TKOR MICROCONTROLLER lt gt By clicking the OR button the programming environment is st and the Device Setup dialog box is closed The main window appears as follows Figure amp 23 Completion of Programming Environment Setting Ba s Mem Pm Fcc 162 m CHAPTER 6 HOW TO USE MINICUBE2 WITH TEKOR MICROCONTROLLER 2 Selection of program fle Select he program fle following the stops lt 1 gt to 3 described below 1 Clck the Ele monu on the menu bar and then click Load lt 2 gt The program fle select dialog box appears Figure 24 Program File Select Di banD enda Fome ies type Sse Her
116. owto secure areas When using NEC Electronics compar 7 addresses 0X02 0x09 and area staring from address can be secured fr debug monitoring using the linker option Figure 4 28 shows the Linker Options dialog box 9 ho project manager Select the On Cip Debug check box as shown in tho figure below 1f he pseudo ARM function is not used set ho size to 256 bytes in actually 257 bytes from OxBF to Oxt 8 aro secured Ihe pseudo RRM function is use rafer to 0 Figure 4 20 Linker Option Setting Debug Monitor Area inii E Dot Ou Lea mo F em prem IEEE CHAPTER 4 USE MINICUBE2 WITH MICROCONTROLLER Option byte area essentia This is the area for the security seting to prevent the lash memory rom being read by an unauthorized person Tho target device operates in accordance with the set value as shown below Table 4 8 Option Byte Setting and Operation Savas Perak 73 Debugging s navali even fan on chip debug emulator Ts sening etch os MINICUBEZ connected only tor nash programming oe The fash memory s ot erased no matar how many E mes secur 0 code authentication tale as A oni fash memory ares are erased I sac 10 z Omerwanae Sening preted Howto sot Describe the codo for seting the option byte in the user program Rr to the folowing and add a c
117. put resistance 1000 or less For details refer to 413 Connection of reset pin 6 The circuit enclosed by a dashed ine is designed for fash self programming which controls the FLMDO pin ports Uso the port for inputting outputting the high level When flash self programming is not a pulldown resistance for the FLMDO pin can be within 1 to TOKE This is for pin processing when not used as device change this value to another resistance value soo APPENDIX A EQUIVALENT CIRCUIT ES CHAPTER 4 HOW TO USE MINCUBE2 WITH 78KO MICROCONTROLLER Notes 1 2 Figure 4 4 When Both Debugging and Programming Are Performed uth X1 X2 Communication X1 Oscillator Used FLMD1 Pin Is Not Provided eH HE al ioe I ie y Connect TxD transmit side of the target device to FD receive side of the target connector and TxD side of he target connector to RxD receive side of the target device During debugging the cock mounted on the 78K0 OCD board can be supplied If no clock is mounted a dock of 4 8 or 16 MHz can be supplied During fash programming use the clock mounted onthe target system For debugging short the jumper and mount no clock cireuit For flash programming and the target device operation without MINICUBE2 connected eave the
118. r communication between MINICUBE2 and the target devico aro masked The altemate uncion port corresponding to the INTP pin is not set to the input mode The external interrupt edge corresponding to the INTP pin is not set to the rising edge Standby modo is entered while standby release by maskable interrupt is prohibited Flash self programming Jta space where the debug monitor program is alocalod is rewritten by fash selt programming the debugger longer operate normaly 6 Operation after reset After an extemal pin reset or intemal reset the monitor program performs debug initialization processing Consoquenty the time from reset occurence unti user program execution from that in the actual device operation mm 123 CHAPTER HOWTOUSE MINCUBE2 WITH MICROCONTROLLER D Emulation of POC function 124 The function of the target device cannot be emulated Make sure that the power to the target system is not shut down debugging Debugging with real machine running without using MINICUBE2 If debugging is performed wit real machine running without using MINICUBE2 wite the user program using the QB Programmer Programs downloaded by the debugger include the monitor program and such a program malfunctions ifit not controlled MINICUBE2 Caution on protect byte Set the protect byte so as to permit programming to the entire and erasing of the entire bloc
119. r connecting MINICUBE with tho target system 2 54 mm plc 16 pin general purpose connector can be used The folowing products are recommended HIFSFC 16P4 2 54D5 ight angle type made by Hirose Electric Co Lid HIFSFC 16PA 2 54DSA straight type made by Hirose Electric Co Lid 7616 S000PL igh angl type made by Sumitomo 3M Ltd 7616 8002PL straight type made by Sumitomo 3M Lid Compact connectors and loosewire cables are also avaiable as options For more information on these products accoss the MINICUBE2 information site URL hip nece com mierolengishiproductlsc aitash minicube2 mi Figure 4 254 mm Pitch 16 Pin General Purpose Connector Pin Layout Pin assignment when MINICUBE2 is connected in this direction TOPVIEW 66990996 Pin assignment of target connector to be mounted on target system CHAPTER HOWTOUSE MINCUBE2 WITH VES MICROCONTROLLER 32 On Chip Debugging This section describes the system configuration startupishutdown procedure and cauons for debugging when on chip debugging is performed with MINICUBE2 2 Debug functions Table 3 4 ists the debug functions when a V850 microcontroler is the target device and the ID8SOQB is used Ifa debugger other than the 085098 made by partner manufacture is used tho available functions may difer check he specifications of the debugger used Table34 Debug Functions
120. rform lash programming For details on preparation and installation ot software reor othe setup manual supplied with MINICUBE QB Programmer USB driver Parameter tie 2 Switch setting Set the mode select switch to MI Set the power select switch by reering to the folowing table Caution not change the switch setting while the USB cable is connected Table 6 8 Setting of Power Select Switch Sene Description ppd MNICUBEZ V a target yan SVissupladirom MINICUBEZ tha target yan Power supply he target used MINCUBE2 detects the power or he target estem The elected power is also usd asthe power supply or me communion aac Note The maximum rating of tha current is 100 mA do not use MINICUBEZ with the target system with higher current rating The power is always supplod after MINICUBEZ is connected to the host machine 9 Connecting the target system Connect MINICUBE2 to the target system as shown in Figure 6 17 before the power to the target system is tumed on When the power select switch is set to the step of 4 Connecting the USB cable can be performed betore this stop Figure 647 Connecting MINICUBE2 to Target System 16 pin target cable Target system Uta nual 187 CHAPTER 6 HOWTO USE MINCUBEZ WITH TKOR MICROCONTROLLER 4 Connecting the USB cable Connect MINICUBE to the host machine as shown in Figure 6 18
121. rformed a pull down resistance for the FLMDO pin can be within 1 to 10 This is for pin processing when not used as device To change this value to another resistance value soo APPENDIX A EQUIVALENT CIRCUIT CHAPTER 4 HOW TO USE MINCUBE2 WITH 78KO MICROCONTROLLER Figure 4 8 When Both Debugging and Programming Are Performed with OCD1AOCD1B Communication X1 Oscilator Is Used FLMDI Pin ls Provided 4 Notes 1 Connect TxD transmit side of the target device to RxD receive side of the target connector and TD tanem side of the target connector to RxD receive side of the target device 2 During debugging the clock mounted on the 78K0 OCD board can be suppied I no clock is mounted cock of 4 8 or 16 MHz can be supplied neither of them is used for the CPU operating cock During lash programming use the clock mounted on the target system Since this pin is dedicated to debugging during debugging port setings made by tho user program are ignored this pin is assigned to an input port the pin must be connected as shown in this figure because itis open when MINICUBE2 is not connected 4 This connection is designed assuming that the RESET signal is output from the N ch open drain buffer output resistance 100 0 or less For details referto 413 Connection of reset pin 5 The cir
122. ries 2 NEC Electronics products means any product developed or manufactured by or for NEC Electronics as above Goneral Precautions for Handling This Product 1 Circumstances not covered by product guarantee ifthe product was disassembled altered o repaired by the customer tft was dropped broken or given another strong shock Uso at overvoltago use outside guaranteed temperature range storing outside guaranteed temperature range If power was tumed on while the USB cable or connection to the target system was in an unsatistactory state ifthe cable of the USB cable the target cable or the Ike was bent or pulled excessively ifthe product got wet itis productis connected to the target system when there is a potential diference between the GND of this product and GND of the target system If tho connectors or cables are pluggediunplugged whe this product isin the power on state tf excessive load is applied to the connectors or sockets metal part of the interface connector or another such part comes in contact wih an electrostatic charge I specifications other than those specified are used for the USB port 2 Safety precautions The product may become hot depending on tho status of use Bo careful of low temperature bums and other dangers due to the product becoming hot Bo careful of electrical shock There is a danger of electrical shock i tho product is used as describe
123. s an oscilator Figure 426 Mounting Oscillator 5v cua Tr ph 0000000 NC clock 90000000 o 9 mm M CHAPTER 4 HOW TO USE MINCUBE2 WITH 78KO MICROCONTROLLER 6 When mounting an oscillator by using resonator Refer to Figure 427 and mount an oscilator in of he 78KD OCD board Figur 427 shows the appearance ater mounting th oscilator 7160 00 314 made by PRECI DIP can be used as tho parts board to bo mounted in tho socket Figure 427 TBKO OCD Board Mounting Diagram and CLK Equivalent Circuit m A i Hover cuo cook our 2 n 3b 4 he n 5 Jio sie prj 7 8 Parts Mounting Di GUI Equivalent ad CCE omeen Geamicresnaror year Sens Figure 4 28 Appearance After Mounting Oscillator 79 CHAPTER 4 HOW TO USE MINICUBE2 WITH MICROCONTROLLER Using a clock 4 8 or 16 MHz generated in MINICUBEZ FRemave the oscilator or oscilation circuit on the 78K0 OCD board System is automaticaly selected Clock in Configuration dialog box of the debugger Fr the settings refer to the users manual or the debugger The clock generated in MINICUBE2 can be used only when the X1 and X pins are used as the communication interlace When and 18 are used as the communication interface the cock is s
124. s and set these tems inthe user program or using the compiler options When a partner oo is used read also the folowing material When using MULTI manufactured by Green Hils Software QB MINIZ Setup Manual User s Manual Partner Tool 0191588 When using SPY manufactured by Systems IAR C SPY Hardware Debugger Systems User Guide issued by IAR Systems Securement of memory space The shaded portons in Figure 3 12 are the areas reserved for placing the debug monitor program so user programs and data cannot be allocated in these spaces These spaces must bo secured so as not to be used by the user program Figure 3 12 Memory Spaces Where Debug Monitor Programs Are Allocated nera ROM nd ooo RE CSI UART ceive rtp vaca ci 0 ares Spa C vector for denne E Debugging aes Note The veclors che recive error arp receive status any must be secured Securamant of serial interface for communication The register setings conceming UART or CS HIS used for communication between MINICUBE2 and the target device performed by the debug monitor program must not be changed Secu iy 0 seting The ID codo must be embedded in the area filed wih yellow 0x70 to 0x79 in Figure 3 12 to prevent the memory from being read by an unauthorized person CHAPTER HOWTOUSE MINCUBE2 WITH VES MICROCONTROLLER Reset vector A reset vector
125. s developed based on a customer designated quality assurance program ora specie application Tha recommended applications of an NEC Electronics product depend on qualty grade as indicated below Customers must check the qualty grade of each NEC Electronics product before using in a particular application Standard Computers equipment communications equipment test and measurement equipment audio and visual equipment home electronic applances machina tol personal electronic equipment and industrial robots Transportation equipment automobiles trains ships et traffic control systems antideaster ystems anti crime systems safety equipment and medial equipment not epocicaly designed for te support Specific aerospace equipment submersible repeaters nuclear reactor control systems Support systems and medical equipment for suppor dard Special and Special The qualty grade of NEC Electronics products Is Standard unless otherwise expressly in NEC Electronics data sheets or data books ste It customers wish o use NEC Electronics products in applications not intended by NEC Electronics they must contact an NEC Electronics sales representative in advance to determine NEC Electrons wilingness to support a given application ot 1 NEC Electronics as used inthis statement means NEC Electonics Corporation and also include majority owned subsidia
126. s removed at shipment Since this connector is compatible with 16 core 2 54 mm pitch general purpose connectors female commercially available cable can be substituted 5 Mode LED The appearance of the mode LED changes according to the status of hardware and software as shown in Table 23 Table 2 3 Mode LED Status oie ED Aopesans Cole USS Tags vob Sowas Cperson Sum Coen Delselon Noideiecei Not yet used BELLS Decl Fot yer sianed deber Tor VESTES has been sare and AAE or VED IGI TE Eo CPU suing or a program being downloaded debugger ERO irocsnirlars been Sad an debugger ERO OSTA SGT TT CPU suming or a program is being downloaded or TERO mico has ben SAET an CPU in te break mode The QB Poprmmar has been ted and i waling tor execution processing Allmabiehy ersevon processing has teen compita debugger or TOROS ICT OTT as ben Hae and CPU suming or a program is being downloaded 7 bug miocen ers has boe TET a CPU is in he break mode TA debugger or 7 ERG boo ard and CPU is nunning ora program being downloaded Aconmand tom he Programmer le being executed lor the tash memory comand Here Prog TTY esta in em Tis TASS anre HINICUEEZIS EET E USE TRECE GT eria ima spe n ingrid
127. s step is not necessary if the power select switeh is set foros 9 Unplugging the USB cable Unplug the USB cabe from MINICUBE2 or the host machine When the power select switch is set to T the step of 4 Unplugging the target cable can bo before this 4 Unplugging the target cable Unplug the target cable from MINICUBE2 the target system 438 Cautions on flash programming This section describes the cautions for flash programming Be sure to read the folowing for the proper use of MNCUBE To improve the witing quay fully understand and evaluate the following ems boloro using MINICUBEZ Circuits are designed as described in the user s manuals for the device and MINICUBE2 The devico QB Programmor and MINICUBEZ aro used as described in each user s manual The power supplied to the target system is stable mm 101 CHAPTER 5 HOW TO USE MINICUBE2 WITH 78K0S MICROCONTROLLER This chapler describes how to use MINICUBE2 when performing on chip debugging and flash programming for microcontroler e perform on chip debugging for 78 5 microcontroller a specife program debug function must be downloaded to the device and then debug the device mounted on the target system Since debugging is performed with the target device operating the board this method is suitable for feid debugging Fash programming is a method to wite a program to the lash memory embedded
128. s value to another resistance value see APPENDIX A EQUIVALENT CIRCUIT CHAPTER 4 HOW TO USE MINCUBE2 WITH 78KO MICROCONTROLLER 443 Connection of reset pin This section describes the connection of the reset pin for which special attention must bo paid in cicut connection examples shown in the previous section During on chip debugging reset signal from the target system is input to MINICUBE masked and thon output to the target device Therefore the reset signal connection varies depending on whether MINICUBE2 is connected For flash programming the circuit must be designed so that the reset signals of the target system and MINICUBE do not confit Select of the folowing methods and connect the raset signal in the circuit Tho details of cach method are described on the following pages 0 Automatically switching the reset signal resistor recommended described in recommended circuit connection in the previous section 2 Automatically switching the reset signal via selector logic 9 Manually switching the reset signal with jumper 4 Resetting the target device by power on clear POC only mm 65 CHAPTER 4 HOWTO USE MINICUBE2 WITH 78KO MICROCONTROLLER 0 Automatically switching the reset signal via resistor Figure 4 10 ilustratos th reset pin connection described in 4 12 Circuit connection examples Tris connection is designed assuming that the reset circuit on the target system contains an N
129. se Where Target Device Is Only Reset via POC E 1t010k0 Target connector Target device RESET OUT RESET IN X CHAPTER HOW TO USE MINCUBE2 WITH MICROCONTROLLER 544 Connection of INTP pin The INTP pin is used for communication between MINICUBE2 and the target device during debugging Design circuits appropriately according to the relevant caso among the casos shown below 1 INT pin is not used in target system as is iustatedin Figure 5 2 Recommended Circuit Connection Seo Figure 57 2 MINICUBE2 is used for programming not for debugging Seo Figure 5 8 9 MINICUBE2 is used for debugging and debugging of the INTP pin is performed only with a real machine Soo Figure 59 Figure 7 Circuit Connection for the Case Where INTP Pin ls Not Used in Target System Voo Target connector Target device InP inte Figure 5 8 Circuit Connection for the Case Where MINICUBE2 is Used Only for Programming Target connector Target device 2 inte xc Inte Usata manani 109 CHAPTER 5 HOWTOUSE MINCUBE2 WITH MICROCONTROLLER Figure 59 Circuit Connection for the Case Where MINICUBE is Used for Debugging and Debugging of INTP Pin ls Performed Only with Real Machine Voo Target connector m Jumper Target device inte 12 A 2 inte al External device
130. side of the target device 2 During debugging the clock mounted on the 78K0 OCD board can be supped I clock is mounted dock of 4 8 or 16 MHz can bo supplied neither of them is used for CPU operating cock During ash programming clock of 4 8 or 16 MHz can bo supplied 00014 00018 may bo diferent name such as P31 depending on the device used Check the pin name wih the users manual for the target device Since this pin is dedicated to debugging during debugging stings made by the user program aro ignored If this pin is assigned to an input pot pin must be connected as shown in this figure because itis open when MINICUBE is not connected 4 This connection is designed assuming that he RESET signal is output from the N ch open drain buffer output resistance 100 0 or less For details referto 413 Connection of reset pin 5 The circuit enclosed by a dashed ine is designed for fash self programming which controls the FLMDO pin porta Use the port for inputting or outputting the high level When flash self programming is not a pulldown resistance for the FLMDO pin can be within 1 to 10 Tris is for pin processing when not used as device To change this value to another resistance valua see APPENDIX A EQUIVALENT CIRCUIT mm M gt ES CHAPTER 4 HOWTOUSEMINCUBE2 WITH 78KO MICROCONTROLLER Notes 1 2 n s 6 60 Figure 4 7 When Both Debugging and
131. st be filed with OXFF This area must not be rewritten by the user program How to secure areas tia not necessary required to secure this area if the user program doas not use this area To avoid problems that may occur during the debugger startup however iis recommended to secure this area in advance using the compl The following shows examples for securing the area using the NEC Electronics assembler RATEKOS Add the assemble source code as shown below Assembla source example that securse INTP interrupt vector Sss CSEG 0018 755571 an arbitrary aymbol name eight characters ori om Remark Describe the INTP interrupt vector address to the porton of 0018h The folowing shows examples of the TaKOSI 1 When using 78KOSIKU1 or 78KOS KY 14 INTP1 000a When using 78KOSIKA1 or 78KOSIKB1 INTPS 0018h Assemble source example that secures an area for software break Sss CSEG 0e SSS is an arbitrary symbol ramo ight characters or ess Assemble source example that secures monitor program area lower than intemal ROM end address Sss CSEG Oedoh SSS is an arbitrary symbol name eight characters or le DB Od OfOfh Of Off Off Of Off OO Oth Oth Oh Of Oh om DB Od Off Off OI Off OO DI Oh Oh Of Oh Os 19 ines tof Oh Of oth om f Of f fh I Oh m 119 CHAPTER HOWTOUSE MINCUBE2 WITH MICROCONTROLLER R
132. step is not necessary if the power select switch is setto or 8 9 Unplugging the USB cable Unplug the USB cabe from MINICUBE2 or the host machine When the power select swich is set to T tho step of 4 Unplugging the target cable can be performed before this 0 unplugging the target cable Unplug the target cable MINICUBE2 or ho target system 838 Cautions on flash programming This section describes the cautions for flash programming Be sure to read the folowing for the propor use of MNCUBE2 To improve the wating qualty fully understand very and evaluate the following toms before using MINICUBEZ Circus are designed as described in the users manuals for the device and MINICUBE2 The device QB Programmor and MINICUBE2 are used as described in each users manual The power supped to the target system is stable Uta nual 165 CHAPTER 7 SELF TESTING Tris section describes the method to perform self esting with MINICUBE2 The MINICUBE2 diagnostic tool can be used find i the reason that the debugger does not operate normally derives from a defect or from other hardware 7 System Configuration Figure 7 1 iustos the system configuration for soles Figure 7 1 System Configuration for Set Testing lt 1 gt Host machine Products wi USB ports lt gt Sotware Includes the USB driver and MINICUBE2 diagnostic tool These software can be instaled when an NEC Elec
133. system and MINICUBE2 do not confit Select one of the folowing methods and connect the reset signal in the circuit Tho deals of each method are described on the following pages 1 Automatically switching the reset signal via serie connection in the previous section 2 Manually switching the reset signal with jumper 9 Resetting the target device by power on clear POC resistor recommended described in recommended circuit Uta nual 139 CHAPTER 6 HOWTO USE MINICUBE2 WITH MICROCONTROLLER 1 Automatically switching the reset signal via series resistor Figure 63 ilusatos the reset pin connection described in 6 1 2 Circuit connection example Tris connection is designed assuming that the reset circu on the target system contains an N ch open drain butler output resistance 1000 or less The VOD or GND level may be unstable when the logic of RESET INOUT of MINICUBE2 is inverted so observe the conditions described below in Remark Figure 6 3 Circuit Connection with Reset Circuit That Contains Buffer MNCUBE2 Target devico Reset connector Von RESET OUT RESET Buffer ar Remark Make the resistance of at least R1 ten times that of R2 R1 being 10 K or more Pulcup resistor R2 is not required if the bur of the reset circuit consists of CMOS The circuit enclosed by a dashed ine is not required when only flash programming is performed Figure 6 4
134. t cable Figure 4 24 Figure 423 With 10 Pin Connector Figure 424 With 16 Pin Connector Caution Connect the 78K0 OCD board to the target cable so that pin 1 position on each side 75 CHAPTER 4 HOW TO USE MINCUBE2 WITH 78KO MICROCONTROLLER Connecting the USB cable Connect MINICUBE to the host machine as shown in Figure 4 25 before the power to the target system is turned on When the power select switch is set to T the modo LED flashes white connection When the power select switch is set to 2 or 5 he mode LED glows white afr connection Figure 425 Connecting MINICUBE2 to Host Machine a J MINICUBE2 USB cable Host machine 6 Applying power to target system Tum on power to the target system This stop is not necessary if tho power select switch is set to 37 or The mode LED glows white after connection afr power application QD Debugger startup Start he debugger The mode LED glows orange alter debugger startup For the operation after this stop rater to tho users manual for the debugger the debugger does not start normally or the operation is unstable the possible causes may be the following Communication error between MINICUBE2 and target system Whether communication is performed normally can be checked using the OCD Checker For refer to the users manual for the Checker The usr resource has not been secured or the securty ID has not been
135. target device are described For other commands and thelr applications refer to the QB Programmer Programming GUI Operation Users Manual The conditions used for a sers of operations in this section are as follows Target system Target device PDTEFS2A Power supply voltage 5V supplied from MINICUBE2 Communication channel UART 115 200 bps MINICUBE2 Switches Mode select switch Mt Power select switch 5 lt Q8 Programmer gt Parameter fle 7aF234 PRM Cock seing 8 MHz supplied from MINICUBE2 Operation mode chip Program fi sample hex Command options Blank check betore Erase selected Checksum flag after Program selected 128 m CHAPTER 5 USE MINCUBE2 WITH MICROCONTROLLER 1 Setting of programming environment Set he programming environment following the steps lt 1 gt to 6 described below 1 ick the Device menu on the monu bar and then click Seup 2 The Device Setup dialog box appears in which the Standard tab is active Figure 520 Standard Tab of Device Setup Dialog Box Snte Ada j Teer p 9 i Orem se A Im lt gt Click the FRI Fl Riad button to open the Parameter File Select dialog box Select the parameter for tho target device and then click the Open button Figure 2 Parameter File Select Diak Fren o medie FRI x ote 129 CHAPTER HOWTO USE MIN
136. tartup shutdowm procedure and cautions for debugging when on chip debugging is performed with MINICUBE2 421 Debug functions 46 iets the debug functions when 78 microcontroller is the target device and the ID78KO OB is used It a debugger other than the 1D78K0 QB made by partner manufacturer is used the available functions may difer check tho specications of the debugger used Table 46 Debug Functions Funcions 10e D code Sa Here Hare Resta exaculon bra Break betore executor 1 unvalabie when using sofware boa Access break 1 point Sofware break 2000 pos RAM mong wing to memory during RUN Pr masking oat pi cry Time measurement Resolution 100 ja stat to break Masc measurement tme Approximately 100 hours User spaces used for debugging neal ROM 270 1o 525 bytes tamai RAM 7 10 16 bee Funcion pins used for debugging X1 X2 or OCD1A OCOIB CHAPTER 4 HOW TO USE MINCUBE2 WITH 78KO MICROCONTROLLER 422 System configuration Figure 4 19 illustrates the system configuration for on chip debugging Figure 421 System Configuration for On Chip Debugging lt 1 gt Host machine Products wi USB ports lt gt Sotware Includes the debugger USB driver devi
137. ten the QB Programmer and the monitor program is erased the procedure must be performed from step 1 again 122 m M CHAPTER S HOWTO USE MINICUBE2 WITH MICROCONTROLLER 527 Cautions on debugging This section describes cautions on performing on chip debugging for 78KOS microcontroler Be sure to read the following to use MINICUBE2 properly 1 Handling of device that was used for debugging Do not mount a device that was used for debugging on mass produced product because the flash memory was rewritten during debugging and the number of rewrites of the flash memory cannot be guaranteed 2 Cases where debugger operation speed is degraded The debugger operation speed may be degraded when too many contents of tho memory or regis splayed in a debugger window particulary when using a host machine with a USB 1 1 interface The debugger response is also slowed while the flash memory is being overwritten This phenomenon may be improved to some extent by raising the CPU operation clock frequency by seting the PCC or PPCC register 9 Reset processing It the RESET pin of the target device altematly functions as enable the RESET pin by the user program settings such as option byte seting 4 When breaks cannot be executed Forced breaks cannot be executed if one of the folowing conditions is satisfied lt Interrupts are disabled DI Interrupts issued for the INTP pin which is used fo
138. the Device menu on the menu bar and then click Autoprocedure EVIL The Blank Check Erase f the flash memory in the target device is not blank Programi Very and Securty commands are executed for the target device sequentially The mode LED on MINICUBE flashes yellow during execution When the command execution is completed normally the mode LED glows green and the following window appears Figure 325 Completion of Autoprocedure EPV Command Execution Te beet ip Pa Wer sx 49 CHAPTER 3 HOW TO USE MINCUBE2 WITH Vis MICROCONTROLLER 335 System shutdown procedure Terminate fash programming and shutdown th system in the folowing order Ifthe folowing order is not observed the target system or MINICUBE2 may be damaged 1 Terminating the QB Programmor Terminate the QB Programmer i you are not going to perorm programming to other devices Remark When the QB Programme is terminated the setting information is saved in the q pini fle Due to his fle the seting is maintained when the QB Programme is started the next tme 2 Target system power shutdown Shutdown the power supped to the target system This step is not necessary if the power select switch is set n Unplugging the USB cable Unplug tha USB cabe from MINICUBE2 or the host machine When the power select switch is set to T tho step of 4 Unplugging the target cable can be before his step
139. the memory from being read by an unauthorized person Embed a security 10 at addresses 0x70 to 0579 in the internal fash memory The debugger starts when the security ID hats set during debugger startup and the security ID set at adresses 0x70 to x79 match Ibi 7 of address 0179 is 07 however debugging is disabled In such a caso toro are methods to start debugger Debugging is mainly disabled for mass produced devices Ifthe user has forgotten the security ID or to enable debugging erase the fash memory and st the security ID again How to set security ID Embed a security ID at addresses 070 to 0x79 in the user program I the ID is embedded as folows for example te securty ID set by the debugger is 23456759ABCDEFV23D4 not case sensitive CHAPTER 3 HOWTO USE MINICUBE2 WITH VASO MICROCONTROLLER 3 3 73 aer ca 7 I NEC Electronics compiler CABSO is used tho security ID can bo s using the Compiler Common Options Figure 3 13 Security ID Setting with CABEO Fie Saue Dict ah Doves Secu Misure uen CHAPTER 3 HOWTO USE MINCUBE2 WITH V50 MICROCONTROLLER 328 Cautions on debugging This section describes cautions on performing on chip debugging for a V850 microcontroller Be sure to read the following to use MINICUBE2 properly 0 Handling of device that
140. the system startup procedure Observe the following order 1 Preparation and installation of software The folowing sofware is required to perform flash programming For details on preparation and installation of softwar reor to the setup manual supplied with MINICUBE QB Programmer USB driver Parameter flo 2 Switch setting Set the mode select switch o 1 Set he power select switch by refering to the following table Caution Do not change the switch setting while the USB cable is connected Table 5 6 Setting of Power Select Switch Senne Descriptor 3 MNIGUSEZ o a rp estar D Sle supplied MINCUBEZ he rp este T Power supply of he used MINCUBE2 detects the power lorte target estem The power is also seas e power supply rh coneuniae interlace Note Tho maximum rating of the current is 100 mA do not use MINICUBEZ with tha target system with higher current rating The power is always supplied afr MINICUBE is connected to the host machine 9 Connecting the target system Connect MINICUBE to the target system as shown in Figure 5 18 before the power to the target system is turned on When the power select switch is set to T the step of 4 Connecting the USB cable can be performed betore this step Fire A Connecting MINCUBE2 to Target Bem C 16 pin target cable a Target system 126 af Mania
141. tronics debugger or OB Programmers installed Download these NEC Electonics software from the folowing website ODS URL hip necelcominicraledsiong lt gt USB cable accessory 4 MINICUBE this product 166 CHAPTER 7 _SELE TESTNG 72 Selt Testing Procedure 1 Preparation and installation of software The folowing software is required to perform setftesting For detalls on preparation and instalation of software refer to the setup manual supplied with MINICUBE2 lt MINICUBE diagnostic tot USB diver 2 Switch setting The mode select switch can be set to MI or M2 Sat the power select switch to 737 or 5 Connecting the USB cable Gonnect MINICUBE to the host machine Do not connect MINICUBE2 to the target system The mode LED glows white after connection Figure 7 2 Connecting MINICUBE2 to Host Machine Ee MINICUBE2 USB cable Host machine 4 Startup of MINICUBE diagnostic tool Start the MINICUBE2 agnostic tool 1 the dagnosti tool was installed when NEC Electronics software was installed tha diagnostic ool is registered on the Start menu as flows NEC Elocttoris Vx verslon For he operation aftar this step ratar to the users manual for tha MINICUBE2 diagnostic tool 167 CHAPTER 8 FIRMWARE UPDATE Firmware is a program embedded in the device or controling MINICUBE2 Tho folowing can bo implemented by updating f
142. ts Tres a den lt a gt Select he program fle for the target device and then cick he bution Figure 6 25 Completion of Program File Selection Te ice et USERS s CHAPTER 6 HOW TO USE MINCUBEZ WITH TKOR MICROCONTROLLER Execution of Autoprocedure EPV command 164 Cickthe Device menu on the menu bar and then click Autoprocedure Tho Blank Check Erase f the Rash memory in the target device is not blank Program and Very commands are executed for the target device sequentially The mode LED on MINICUBE2 flashes yallow during execution When the command execution is completed normally the mode LED glows green and the folowing window appears Figure 6 26 Completion of Autoprocedure Command Execution CHAPTER HOW TO USE MINICUBE2 WITH TEKOR MICROCONTROLLER 535 System shutdown procedure Terminate fash programming and shutdown the system in th folowing order Ifthe folowing order is not observed the target system or MINICUBE2 may be damaged 1 Terminating the QB Programmor Terminate the QB Programmeri you are not going to perform programming to other devices Remark When the QB Programmer is terminated the setting information is saved in the q p ini fle Duo to this fle the same setting maintained when the GB Programmer is started the next time 2 Target system power shutdown Shutdown the power supplied to the target system This
143. tween run and break during debugging Debugging is possible even if this pin is left open but measurement error occurs in several units 5 The INTP pin is used for communication between MINICUBE2 and the target device during debugging When debugging is performed with MINICUBE2 therefore the INTP pin and is altemateuncion pin cannot be used For INTP pin connection refer 5 1 4 Connection of INTP pin For details on the INTP pin to be used refer to tho document indicated in 1 3 Supported Devices 9 This is for pin processing when not used as device To change this value to another resistance value see APPENDIX A EQUIVALENT CIRCUIT mm 9 105 CHAPTER 5 HOWTOUSE MINCUBE2 WITH MICROCONTROLLER 543 Connection of reset pin This section describes the connection of the rset pin for which special attention must bo paid in tha cicut connection example shown in the previous section During on chip debugging a rest signal from the target system is input to MINICUBE masked and thon output to the target device Therefore the rest signal connection varies depending on whether MINICUBE2 is connected For flash programming the circuit must be designed so that the reset signals of the target system and MINICUBE2 do not confit Select one of the following methods and connect the reset signal in the circuit The details of each method are described on the following pages connection in the previous s
144. ugger USB driver device and so Download these NEC Electonics software from the following website ODS URL hip neck comimierolodsleng USB cable accessory lt gt MINICUBE this product gt 6n target cable accessory 6 Target connector sold separately m I CHAPTER 5 HOWTO USE MINICUBE2 WITH MICROCONTROLLER 523 System startup procedure This section describes the system startup procedure Observe the folowing order 1 Preparation and installation of software The folowing software is required to perform on chip debugging For detals preparation and installation of software reter to the setup manual supplied with MINICUBE2 Debugger USB diver Device fle may be unnecessary when using a partner manufactures debugger 2 Switch setting Set he modo select switch to 1 Set he power select switch by refering to Table 5 4 Caution not change the switch setting while the USB cable is connected Table 5 4 Setting of Power Select Switch See Description 3 Vis supp sd ron MNICUBEZ V a target yan D 5 Vis supp sd rom MINICUBEZ tha target yan T Power supply he target i used MINCUBE2 detects me power or targat estem Note The maximum rating of tha curent is 100 mA do not use MINICUBEZ withthe target system with higher current rating The power is always supplied afr MINICUBE is connected to the host ma
145. ugging 63 Flash Programming 3 1 Specifications of programming function 32 System configuration 63 3 System startup procedure 34 Usage examples 3 5 System shutdown procedure 38 Cautions on flash programming CHAPTER 7 SELF TESTING 7 System Configuration 72 Selt Testing Procedure CHAPTER 8 FIRMWARE UPDATE 8 1 System Configuration 82 Firmware Update Procedure APPENDIX A EQUIVALENT CIRCUIT APPENDIX REVISION HISTORY ers Mart 9 CHAPTER 1 OVERVIEW MINICUBEZ is an on chip debug emulator wih ash programming function which is used for debugging and programming program to be embedded in on chip Rash memory microcontrollers 1 1 Features On chip debugging debug with the target microcontroler connected to the target system Flash memory programming Can write programs to the on chip lash memory of microcontrollers USB connection Can be connected to the host machin via USB interface 2 0 or 1 1 Since MINICUBE2 operates on power supplied va USB an extemal power supply is unnecessary Variety of supported devices and expandabitly MINICUBE2 supports a wide vary of NEC Electonics 8 to 3251 on chip flash memory microcontrollers More devices can be supported by upgrading firmware embedded in MINICUBE2 Solitosing function MINICUBE2 has a sefiesing funcion which is used to detect faults in MINICUBE2 and perform maintenance 10 ers Mari
146. upplied from the oscilation circuit connected to the X1 and X2 pins of the target device However or program dounload at debugger startup the clock set by tno debugger is used Theretore for example when set to 16 MHz of the System the tine required for download can be shortened me bt Fiend G System TT 9 Using a clock mounted on the target system Remove the oscilator or oscilation circuit on the 78K0 OCD board System is automatically selected as the Clock in the Configuration dialog box of the debugged Tho clock on the target system can bo used when the OCD1A and OCDIB pins aro used as the communication interlace When the X and X2 pins are used as ho communication interface no oscilation reus can be connected to the X1 and X2 pins of the device However or program dounload at debugger startup to clock set by tno debugger is used Therefore for example when set to 16 of the System the time required for download can bo shortened as when sat to 4 MHz Main Glock Oleh M Syston 4 Using an interna high speed oscillator generated in the target device only Tho target device operates by an intemal high speed oscilator regardless of the Main Clock sting in the Configuration dialog box of the debugger However or program dounload at debugger startup the clock set by tno debugger is used Therefore for example when set to 16 MHz of the Syst
147. uring fash programming use the clock mounted on the target system For debugging short the jumper and mount no clock For ash programming and the target device operation without MINICUBE2 connected leave t open and mount a clock circuit Jumper This connection i designed assuming that the RESET signal is output from the N ch open drain buffer resistance 100 less The circuit enclosed by a dashed ine ports Uso the port for inputting or outputting the high level For details rotor to 41 3 Connection of reset pin igned for fash sell programming which controls the FLMDO pin When flash self programming is not P pertormed pulldown resistance for the FLMDO pin can be within 1 to YOKE This is for pin processing when not used as device change this value to another resistance value see APPENDIX EQUIVALENT CIRCUIT CHAPTER 4 HOW TO USE MINCUBE2 WITH 78KO MICROCONTROLLER Figure44 When Both Debugging and Programming Are Performed with OCD1AOCD1B Communication Only Internal High Speed Oscillator Is Used Dane riis ES Een E m mS EX we E H RESET signal Notes 1 Connect TxD transmit side of the target device to RxD receive side of the target connector and TxD transmit side of he target connector to RxD receive
148. was used for debugging not mount a device that was used for debugging on mass produced product because the flash memory was rewiton during debugging and the number of rewrtes of the flash memory cannot bo guaranteed Moreover do not embed the debug monitor program into mass produced products 2 When breaks cannot be executed Forced breaks cannot be executed ofthe folowing conditons is satisfied Interrupts aro disabled DI Interrupts issued for tho serial interface which is used for communication between and the target device are masked lt Standby mode is entered while standby release by a maskable intemupt is prohibited Mode for communication between MINICUBE2 and the target device is UART and the main clock has been stopped 9 When pseudo realtime RAM monitor RAM function and DMM function do not operate Tho pseudo RRM funcion and DMM function do not operate if one of the folowing conditions is satisfied Interrupts are disabled D1 Interrupts issued for the serial interface which is used for communication between and the target device are masked Standby mode is entered while standby release by a maskable intorupt is prohibited Mode for communication between MINICUBE2 and the target device is UART and the main clock has been stopped Mode for communication between MINICUBE2 and to target device is UART and cock different rom the in the debugger
149. when only lash programming is performed The circuit enclosed by a dashed line is designed for fash self programming which controls tha FLMDO pin via ports Use the port for inputting or outputting the high level When flash self programming is not performed a pull down resistance for the FLMDO pin can be within 1 to 10 This is for pin processing when not used as device To change this value to another resistance value see APPENDIX A EQUIVALENT CIRCUIT 2 m CHAPTER HOWTOUSE MINCUBE2 WITH VES MICROCONTROLLER 343 Connection of reset pin connection examples shown in ho previous section During on chip debugging reset signal from the target system is input to MINICUBE2 masked and then output to the target device Therefore the reset signal connection varies depending on whether MINICUBE2 is connected For fash programming tho circuit must bo designed so that the reset signals of the target system and MINCCUBE2 do not conti Select one of the following methode and connect the reset signal in the circuit The details of each method described on the flowing pages 0 Automatically switching the reset signal via series resistor recommended described in recommended rcu connection in the previous secon 2 Manually switching the raset signal with jumper 8 Resetting the target device by power on clear POC only mm 23 CHAPTER 3 HOWTO USE MINCUBE2 WITH V50 MICROCONTROLLER 0 Aut
150. with the target system with higher curent rating The power is always supped after MINICUBE is connected to the host machine 0 board setting Tho settings of tho 78K0 OCD board vary depending on how clock is supplied to tho target device 20 MHZ oscilator is mounted on the 78KO OCD board at shipment If either of the folowing conditions apple factory seting must be changed Refer to 42 5 Clock setting and set tho clock The target device does not operate with a 20 MHz cock tha target voltage that does not operate with 20 MHz clock is used A cock frequency other than 20 MHz is needed as the high speed system clack CHAPTER 4 HOW TO USE MINICUBE2 WITH 78KO MICROCONTROLLER 4 Connecting the target system Connect MINICUBE to the target system as shown in Figure 420 Select a 10 or 16in target cable according to the target system circuit refer to Remark below Perform connection before the power to the target system Is turned on Figure 422 Connecting MINICUBEZ to Target System 10 16 target cable 7BKO0 OCD MINICUBE2 2 board Target system Remark Connect the 78K0 OCD board and ihe 10 16 pin target cable as shown below Do not connect both the 10 pin target cable and 16 pin target cable With 10 in cable Connect CN2 on the 78K0 OCD board to the 10 pin target cable Figure 4 23 With 16 pin cable Connect CN3 on the 78K0 OCD board to the 16 pin targe
151. xt box under the On Chip Debug Option Bytes go check box as shown in the figure below Example Seting 0x85 tor control value CHAPTER 6 HOW TO USE MINCUBEZ WITH TAKOR MICROCONTROLLER Figure t3 On Chip Debug Option Byte Setting Example opa oua Leas Losses crest F Gilets T Cede tee Lice Seu ial TET ttt Bese a yes Sell ee el Caution Ifbit7 OCDENSET of the on chip debug option byte area address 0C3 is set to 0 by flash programming or self programming debugging Is disabled and the debugger can no longer start unconditionally To enable debugging erase the flash memory by flash programming 9 Security ID area This is the area forthe security seting to prevent the lash memory rom being read by an unauthorized person The secu ID functions password for starting the debugger The debugger stats only when the Securty ID that is input during debugger startup and the socury ID embedded in this area match If the ID codes do not matoh the debugger manipulates the target device in accordance wit the value set to the on chip debug option area refer to Table 6 6 Howto set An ID code is generated in the security ID area by setting the securty ID when using NEC Electronics assembler RATEKOR or compiler CC7BKOR Select the Securty ID 9 check box and set an arbitrary ID code 10 bytes as shown in the igure below Uta Mia
152. y to use the X1 and X2 pins if the monitor program has already been downloaded to the target device so the X1 and X2 pine and their amate functions can be debugged by using the folowing procedures implement debugging of the X1 and X2 pin the circuit must be designed appropriately For details rafer to 51 5 Connection of X and X2 pins 0 Disconnect tho extemal parts connected to tho X1 and X2 pins in the target device If the circuit is designed shown in Figure 5 11 short jumper pins 1 and 2 2 Tum on power to the target system and MINICUBE in accordance wih 23 System startup procedure 9 Star te debugger At this time do not download the load Tho monitor program wil be downloaded automaticaly Immediately atr startup 4 Terminate the debugger 6 Tum off power to the target system and MINICUBE2 in accordance wih 524 System shutdown procedure 6 Connect the extemal parts to the X1 and X2 pins in the target device ithe circulis designed as shown in Figura 5 11 shor jumper pins 2 and 3 D Tum power to the target system and MINICUBE in accordance wit 5 2 3 System startup procedure 9 Start tho debugger Note If a project has already been created in tho project manager PME the load module wil automaticaly be downloaded In this case terminate Ph and then start the debugge Remark The next time the debugger is started perform tho procedure trom step 7 However the program is writ

Download Pdf Manuals

image

Related Search

Related Contents

La meilleure façon de créer des MIX pour vos soirées  取扱説明書 - ワイズギア  Fujitsu ESPRIMO P910 E90+    MDS Tip Sheet: ITEM M5c Turning/Repositioning Program  Philips 46677452087 Data Sheet  Manual - Pioneer  Nokia 1600 User Guide  

Copyright © All rights reserved.
Failed to retrieve file