Home
SKP16C62P Tutorial 1
Contents
1. 27 Projects El Templates Navigation 2 main tutarl c Output window AYER A pea A pnts cotra Heady Read write 1 180 1 INS NUM 13 ENESAS Workspace Window In the Projects tab source files and EE EE Tutor header files are displayed y E Assembly source file Z l E 2 tutor ast amp sectsU_tutorl inc To change how dependencies are Er C source file i 21 1 8 main tutarl c displayed e g show dependencies for each source file right click E KA bsp within the window and select El Configure View Configure View V Show standard library includes Cancel Show file paths Try the following click on Show dependencies under each file and see what happens to files displayed on the window To open a source file double click on it Projects 14 24 NE S AS 1 au Editor Source Window A 3 3 3 3E 3E 3 3 3E 3E 0 3 3E 3 3 3E 30 00 3 DISCLAIMER The software supplied by Renesas Technology America Inc intended and supplied for use on Renesas Technology products This software iz owned by Renesas Technology America Renesas Technology Corporat
2. ENESAS Ill Open a HEW Workspace 2 3 Using the Open Workspace dialog box browse until you get to C MTOOL SKP16C62P Sample Code Tutor1 folder Click on Tutor1 hws HEW workspace file and then click on Open button Workspace ki x Look in Sy Tutor amp F File name Tutor TE Files of type HEW Workspaces hw Lancel ES 12 44 NESAS Open a HEW Workspace 3 3 HEW should look like the figure below 5 Tutor High performance Embedded Workshop main lutorl c Menu bar amp a m O T a IES EIA B 2 JT LI Release DefaultSession Toolbars lg Er Ei E m m m x gt DISCLAIMER Be E E Tutorl The software supplied by Renesas Technology America E B E Assembly source file intended and supplied for use on Renesas Technology OB E nert tutari a30 This software is owned by Renesas Technology America L sect30_tutor1 inc Renesas Technology Corporation and is protected unde copyright laws All rights are reserved source file M THIS SOFTWARE IS ITIES WH Workspace window statu Editor window cz k WARRANTIES OF ME A PART 3 skp_led h
3. R3 GER B4 HA RAL AA AHHA I HHAHBH n1 2 HHHHHH R3 BDBB28 ha HH RAL 2 7 4 C 7503H28H HHHH2H R3 HDS x CER BDBB32 B4 E HH RAL 600033 2 4 HH4H2H BDBB36 75 CI BRAK N HHBAGH R3 4 k A Heady MCU STOP KD30 will disassemble the flash contents or display UND if the flash is blank 26 24 NE S AS KD30 Toolbar Go Button Step Button Break Button Executes target One step execution Sets a software breakpoint at the current program of target program cursor position Return Button Runs the program up to S W Button the higher routine Sets a software breakpoint E 2 2 tm Go Eome Step Over Hetum stop Break SAW Come Button Stop Button Executes the target program Stops execution of the from the value in the target program program counter to the position of the cursor in Reset Button the window Resets the target program Over Button Step over function subroutine call 27 ENESAS Download a Program to the SKP16C62P Board M16C 62P MCU File Edt Vie Environment Debug Upton Dplionalindows Help Load Module Reload Memory Image Symbol ROM Data Save Dizazm TOA Sample Code tubord T utar 20
4. SKP16C62P Tutorial 1 Renesas Technology America Inc Overview The following tutorial is a brief introduction on how to develop and debug programs using HEW High performance Embedded Workshop KD30 and other software and hardware tools included with the SKP16C62P To get the most out of the Starter Kit check out the references at the end of this tutorial Note This tutorial assumes the user has done the following 1 Followed the Quickstart Guide 2 Installed the SKP files examples and software tools in the default directories 2 tENESAS The Development Process SKP16C62P 1 Write programs using text editor Board 5 Correct errors amp repeat process Monitor RAM I O Connector 2 HEW automates compile amp link 4 Debugging info sent back amp forth 3 KD30 sends the machine code to the SKP16C62P during downloads and uses the symbols for source level debugging L T ee a HEW Build command 58008 x30 SKP16C62P Connectivity PC with Windows SKP16C62P 98 Me 2000 or XP Board Mini USB Target Cable E Cable i E 1 m L i z a mw la T i a WE ah T ci F E A En a 4 ENESAS Expansion Port E SKP16C62P Board ITN
5. la 10 FIAT TIT 1 i Power LED Reset 8 character x SW 2 line LCD Thermistor LCD Analog Contrast f Adjust Pot JP2 JP1 Xout MCU Power ii Pa 12MH M16C 62P Crystal M30626FHPGP User LED s FoUSB ICD Connector 32KHz Crystal Expansion Port User Pushbutton Switches ENESAS SKP16C62P Board Features M16C 62P M30626FHPGP MCU 24MHz Operating Frequency at 3 0V 5V 10MHz Operating Frequency at 2 V 5V 384kB Flash ROM 4kB x 1 Virtual EEPROM and 31kB RAM 87 GPIO and 4 Key on Wakeup Inputs 11 Timers plus a Watchdog Timer 26 channel 10 bit ADC 2 channel 8 bit DAC 2 DMAC USART s plus 2 SIO s supports I C and SPI Voltage and Oscillation Failure Detection Clock sources Main Xin Sub Xcin Internal R C ring PLL Onboard Features LED s 3 User 1 Power Removable 2 line x 8 character LCD Pushbutton Switches 3 User 1 Reset Thermistor and potentiometer on two A D inputs available on Expansion Ports 6 24 NE S AS ICD RTA FoUSB MON The ICD In Circuit Debugger provides power and a USB interface to the Host PC and communicates commands and data to and from the oKP 16C62P board via a synchronous serial interface As a debugging tool during program debug the ICD KD30 downloads small kernel or ROM Monitor program with the user program to the SKP16C62P Board This kernel provides a communication interface between th
6. maln_tutorl c E processing MTro00L 11 DATA 00004509 00102 ROMDATA 0000000 000004 CODE 0000746 00 lt E4H jan nc3 lib lib i B lt ERD rsb Eytels Byteis Byteis 2d Heady Read write 1 180 1 INS NUM E If main tutor1 c is not shown on the Editor window double click on it in the Workspace window and the file will be opened displayed on the Source window 40 234 NES AS Modifying the Program 2 2 by controlling the LED control variable void tal irg vo1d 4 I i adat Start conversion the function ta1_irq Whilefadst 1 wait for A D conversion star tal add read AD value and preload Tii routine LED switching rate 91 count increment display control va if disp count gt 4 1 D control variable exce disp count 1 Z return initial state Fs 2 this line to sta 0x3 FF ad0 Read wite 82 180 11 3 Click this to save the revised file ng amp 4 Build the project again Release ot 3 Ps Detaultbession 41 234 NES AS Load re load Modified Program In KD30 with the program stopped reload code by selecting Reload from the File menu 2 KD30 C MTOOLSSKP16C62P45 2 aple_Code Tutorl YT utori Release4 1 utorl x30 E in x x asss File Edt View Environment Deb Option Basicwindows Optonalindows Help
7. sequentially The blink rate is controlled by the Analog Adjust potentiometer connected to ANO of the M156C B52P ADC amp Any opened source file within the workspace are shown on the Editor window are displayed here 15 K K X ko k R R GR R GR K OR k OR Line total no of lines and column numbers Fiead write 1 180 INS NUM ENESAS HEW Toolbars HEW is a powerful development environment with a lot of features and functionality For this tutorial the focus will be on features i e Standard Toolbar that will help you understand the M16C development process using HEW Editor Toolbar Debug Toolbar Search Toolbar amp amp amp Yug a ma Xx Y O Y M Standard Toolbar Version UP Bookmarks Toolbar ne Templates Toolbar Notes 1 On HEW 3 0 R1 M16C is not supported by the Debug and Debug Run toolbars 2 See HEW user s manual about these toolbars 24 NES AS Standard Toolbar Build File Current Debugger Launch View Build All Current Configuration Session Slave HEW Output ds Releaze D efaultSession J E E al Build Stop View Workspace Build builds files that were modified since last build Build All builds the whole project regardless of whether there were modifications or not Stop stops a running bui
8. 32 tENESAS Stopping Program Execution Click on the Stop icon to stop the program s KD 30 CAM TUDOLXSKPT5CB2PSS ample Code 4 utori 5T utori XFieleasesTutorl x30 Ol xj E Ex xr bs i SOURCE HHH59 maint lt _ HHH62 mcu init amp eg HBB53 adc init amp eg Webbs tmr init amp af HBB55 JHHH66 uhileti Bbbb led displayt ff display A oZ La AA U Px 15371 ame tal ir Y HHH72 Parameters None k b Setting Breakpoints 1 Click on the Source to view source code only not MIX display KD30 CAMTOOLASKP7 6C62P45ample_ Code Tutori4TutorikReleazes Tutor x30 D x File Edt View Enveionmgdrnt Debug Option OUptonalindows Help f d AAA Go Come Step Y Over Return Stop Break Reset SAM E Program Window main tutorl c Dl EE view E Source By Mix V Dis mcu init adc init Z ln tmr init ind while 1 gt tal_irg 515 5 Fe None Heady MCU STOP 2 Locate and then set a breakpoint on led_display by a double click on in the BRK column that denotes an executable line A B will appear in its place after the breakpoint is set and the line is highlighted in red 3 Click on Go icon to run program 34 t
9. m Stop Break Reset 5 Lis Download k Upload Save Dizazm 1 CS A Tutor Release Tutor 30 LA UAR TSD ebugs UART 30 3 L s A Tutor Release Tutor s30 4 Cc SUSAR TA Release MUA RT 3D ileti Exil 1 ird BHAT Parameterz Mone Hone This Timer fil interrupt routine gets a ne timer Hi It also varies the by controlling the LED contra FJ T BEREMEMCBCRECREMEMCBCREREM EE EEE BEE EE E E E E E E E E E E E E E E E E E E E E E E E ME BER ABB7E void tai irqvoid54 d BBH79 Reload target program MCU STOP E Turning Analog Adjust potentiometer on SKP16C62P Board clockwise decreases the LED blink rate Turning it counter clockwise increases the blink rate 42 24 NE S AS End of Tutorial This is the end of the tutorial You can try downloading other sample programs from the Sample Code directory For a tutorial on creating a new project check Tutorial 2 for details In addition check out the references on the next page Have Fun 43 24 NE S AS References and Recommended Reading e SKP16C62P User s Manual This is a must read document It details all the things you need to know on how to use the Starter Kit e HEW User s Manual To fully understand and get the most out of HEW this is recommended reading e KD30 Version X XX Help The tutorial only covered the basics of KD30 Check out the Help m
10. ECAUSE AFTER RESET ECLK DEFAULTS TO FR DIU BY 82 h mou b unprotect CP program mou hb 08h 86H enable counter is d highlighted Now click on View to see the program source code 30 24 NE S AS Viewing Source Files in the Project 1 Click source Address Source Source File Object Source HLRTO TUTDRIT r30 LMTDODESSKPTBCBZPSS ample Code LAM TDDESSKPTBEBZPSS ample Code LAM TODLSSEKPTECB2PSS ample Code BCOPY rsd BERO r30 2 Source window Is displayed 4 Double click main to view It on the 3 Click main_tutor1 30 Program Window cava 31 tENESAS Running Downloaded Program Click on the Go icon to run the tutor1 program you just downloaded LED s D1 D2 amp D3 will blink sequentially Turning the Analog Adjust potentiometer clockwise increases the LED blink rate and turning it counter clockwise decreases the LED blink rate ioj x KD323 CAMTOOLASKP16C62PA5 ample CodeXT utorl Tutorl ReleasesT utori x30 E view Source EX eu Line BRK PAS55 Source 59 i EA nin lt gt lt Click Mix to init ff ini m adc initQ 77 ini View the source tmr init ef ini d d whileti gt coae an led_displayt ff display cur assembler code ame tal irq HH None Ready MCU STOP
11. ELA Sample Code S5 3 Mnemonic 3 L 5 ample Lade s altageDietectsaltageD etect x30 LDC HABABH FL 40 5 ample Codes deb 3L LDC 160466H SB ee LDC HBHBHFH IH E wit LDC HDBBHHH IH MOU E RAL 400015 4 MOU _ U 10466H Al Click on File then select Download Load Module Note When you download code or program in KD30 the program counter is automatically reset to the address the reset vector points to 28 RENESAS Download a Program to the SKP16C62P Board M16C 62P MCU From the c MTOOL SKP16C62P sample_code Wtutor11 tutorfirelease folder select tutor1 x30 y RENESAS Download a Program to the SKP16C62P Board M16C 62P MCU After downloading the program KD30 opens the source file where the reset vector is KD30 CAMTOOLASKP16C62PA5 ample_Code T utorl Tutorl ReleasesT utori x30 File Edit View Environment Debug Option OUptonalindows Help X mj Z Lome Step Over Return Stop Break Reset SAM EF Program Window ncrt tutor a30 xl Es Mes Source By Mix V Dis BRK PAS5 Source 34 ft art zu ldc HHBBHh F lg Clear U Flac zm ldc Hdata 5E toap sh sset sh registe ldintb HUECTOR_ADR E HOTE CHANGING ECLK SPEED HERE SETTING CLOCK SPEED TO Fi lt DIU BY 15 OM AIN of MCU B
12. ENESAS Removing Breakpoints ED30 CAMTOOLASKP16C62P45ample_CodeATutorl4TutoriiReleazexT utorl x30 File Edit View Environment Debug Option OUptonalindows Help FX Al 2 Go Come Step Over Stop Break Reset 5 w E Program Window main tutorl c EE view Source EX V Dis Line PASS HAS HHH6H maing lt mcu init int adc init ff ind tmr init ind whileti gt Program stops tai ird at breakpoint t mare highlighted in Yellow You can remove the breakpoint by double clicking on it at the BRK column 35 24 NE S AS Program Stepping CAMTOOLASKP16C62P45 ample_Code Tutorl T utori ReleasesT utori x30 O x File Edt View Environment Debug Option Optonalindows Help ur Go Come Step Over E Reset EF Program Wi wlow main tutorl c Aol xl Ej View Ej Source By Mix V Dis Lage PASS Source 1 Description Controls LED display switch amp disp caount 4 case 1 RED LED LED OFF LU LED LED OFF GRM LED LED OH break Case 2 Case 4 af 164 Heady RED_LED LED OFF MCU STOP Try stepping a few lines of code by clicking on Step icon Click on Go afterwards to run program again 36 tENESAS Basic Windo
13. Memory Window E Memory Window disp c loj xl Bein Doe abe ASCII Address LABEL HHdHdHH _dizp_ co H1 lt 400401 HH 4004402 G 4004403 45 440404 ye HBAS ZE HABA 34 HABA AE 400448 3H HABA 34 HHHdBHH B HHHAHB B 40044006 H4 HHHAdHD H2 The Memory Window displays the location and contents of variables 39 Open a C Watch window Basic Windows gt C Watch Window The C Watch Window allows you to view globals and locals An example is shown below E Global window Prog Tutorl x3l signed int disp count 2 Double click on the variable to change display format i e change char to hex to decimal etc tENESAS Modifying the Program 1 2 gma Tutor High performance Embedded Workshop main tutorl c a Edit View Project Options Build Memon Toole Window Help 8 x Dae 0 ca Na gt 83 6 7 amp ix E DISCLAIMER The software supplied by Renesas Technology Ameri Sy source file intended and supplied for use on Renesas Technolo man tutori c This software is owned by Renesas Technology Amer 12 sfib2p h Renesas Technology Corporation and is protected copyright laws All rights are reserved us B skp bsp 2 Te z skp led x CACTI OC TC AC TE Tr dl
14. ating a New Project 23 ENESAS KD30 Init Nindow 1 2 Step 3 Now click the Step 1 Click on Refer and Run Mode tab select M30626FHP MCU Step 2 Select USB KD30 Init Window 2 2 For full debugging Sampling ads features be sure E SampingPetied Fi eve Sampling Mode E Free Run Mode is is selected for real time execution of your program but debugging is limited Cancel Hep Next Hide Do NOT select for this tutorial Now click OK to open KD30 s Program window be sure hardware is connected If you get an error check all connections See SKP user s manual on Troubleshooting for details Note 1 See KD30 User s Manual or Help for the differences between Sampling Mode and Free Run Mode Also see the ICD RTA FoUSB MON User s Manual for details on how ICD works under these two modes 25 24 NE S AS KD30 Program Window File Edit View Environment Debug Option Basievindows OUptonalindows Help Fm E EE Do Go Come Step Over Stop Break Reset Sy E Program Window Ed view El Source By Mi V Dis Rad EET BRK PASS Objcode Label Hnemonic HDA EB38HHBH LDC HAAHHH 50151515 EB amp HHHBA 5 HDAC EB28HFBH HHHHFH INT BH EW EB18HHDH HDHHHH IHTBL BDBB14 F B4 Hi RAL 600015 4 I HHAHBH n1 600018 75 03HBHBH I HH
15. e M16C 62P MCU and the ICD KD30 Debugger application on MCU status While the kernel uses some resources of the M16C 62P the operation of the ICD is transparent to the user s program As a programming tool the ICD Flash over USB M FoUSB Programmer can be used to download user programs to the M16C 62P MCU on the SKP16C62P Board and many other Renesas flash MCU s the ICD will support other Renesas flash MCU s by downloading an MCU Monitor Image MMI file for a particular MCU thru KD30 or FoUSB Programmer NOTE The kernel is only downloaded with the user program when using KD30 Debugger but NOT the FoUSB Programmer 7 24 NE S AS Development Tools HEW An Integrated Development Environment IDE that invokes all necessary software for building your project KD30 PC software that communicates with the ROM Monitor Program in flash on the MCU for program debug NC30 Entry Version C compiler limited version of NC30 Conforms to ANSI C standards see release notes on limitations AS30 Relocatable Assembler oupports structured language and wide variety of macro instructions Flash over USB Programmer Flash programmer for Renesas Flash MCU s 8 QE NE S AS HEW Overview HEW is an acronym for High performance Embedded Workshop When writing a microcontroller or any computer program the program is usually split into multiple files to make it easier to read and understand While exactly how the files are organ
16. enu to find out all of KD30 s features e NC30 Version X XX User s Manual Check this manual out for features specific to the NC30 compiler e M16C 62P Datasheet and SKP16C62P Board Schematic These are required to write user application programs e RTA FoUSB MON User s Manual Read this manual to understand how the ICD works 44 ENESAS References and Recommended Reading e M16C 10 20 60 Series C Language Programming Manual This is a great document for any level of programmer The first chapter is an intro to C programming The next chapter explains the memory map of C programs on microcontrollers and the role of startup programs e M16C 10 20 60 Series Software Manual This document describes the instruction set and timing information for the M16C 20 60 series CPU cores AS30 Version X XX User s Manual Read this manual if you plan on writing A programs in Assembly or when making changes to the startup file Application Notes and Sample Programs Application notes and other sample programs can be accessed from Renesas Technology America s website http www renesas com PLATFORM 45 ENESAS
17. ion and i protected under applicable All Fights are reserved K k k KX k K K k Rk Gk K GE Gk OR ko copyright lawz TECHNOLOGY AMERICA THIS SOFTWARE IS PROVIDED IMPLIED OR STATUTORY An IS HO WAERAHTIES WHETHER EXPRESS INCLUDING NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE REHESAS TECHNOLOGY AMERICA AND RENESAS TECHNOLOGY CORPORATION RESERVE THE RIGHT WITHOUT HOTICE TO MAKE CHANGES TO THIS SOFTWARE NEITHER REHESAS INC HOR RENESAS TECHNOLOGY CORPORATION SHALL IH ANY CIRCUMSTANCES BE LIABLE FOR SPECIAL CONSEQUENTIAL DAMAGES FOR ANY REASON WHATSOEVER ARISING OUT OF THE USE OR APPLICATION OF THIS SOFTWARE 3E 3E 3E JE JE 3E 3E JE 3E JE 3E 3E 3E 3E 3C JE JE 3 JE 3E 3E 3E 3E 3E 3E 3E 3 JE 3E JE 3C 3 E 3E 3 3E 3E 3E 3E 3E JE 3E 3 JE 3 JE 3C 3E 3E 3E 3 3E QE 3E QE 3E 3E C 3 3 3E 3E 3 3E 3E 3E 3 3E 7 1z Inc or INC AND INCIDENTAL UR ICI JE JE JE JE 3 3C JE 3E 3E C 3E 3 JE 3E JE 3E IE JE 3 JE QE JE 3E JE 3E E 3E 3E JE 3 JE JE 3 3E E K K X K lt i gt main tutarl c DESCRIPTION PURPOSE main routine for tutorl AUTHOR System LSI BU Applications Engineering This program blinks the three LEDs 101 D2
18. ized is up to the programmer typically the code is split up in a logical manner into various files e g math functions in one file serial port drivers in another etc After all the files in a project are compiled and assembled a linker combines all the files into a single file These steps can be tedious and repetitive To make the process simple we use an Integrated Development Environment IDE called HEW 9 24 NE S AS Start HEW RENESAS TOOLS Sony Handheld h Sony V aln k der High pertormance Embedded Workshop Manual Navigator Location D XHew3 Startup d Utilities k From the Windows Start menu click on Programs gt Renesas High performance Embedded Workshop gt High performance Embedded Workshop 10 RENESAS Open a HEW Workspace 1 3 gma High performance Embedded Workshop N B x Edit View Project Options Build Memory Toole Window Help mm Er EL El T 3 x a 1 i Create a new project workspace p C a recent project workspace Administration E CAMTOOLSSKPI C2655 ample Code B th lect work 28520 E Projects E Templates SIN E E xj 2 Click OK button L S guia Fis A encara Ready NUM Zz 1 After HEW opens from the Welcome dialog box select Browse to another project workspace option then click OK
19. ld process Current Configuration build configuration e g for debug optimized etc Current Debugger Session debug session configuration Launch Debugger calls defined debugger Notes 1 Current Debugger Session View Workspace amp View Output are not currently supported for M16C development See HEW User s manual for details A build means running certain files e g source files under some tools e g compiler linker to produce an output file e g X30 or MOT executable files for M16C 17 24 NES AS Build re build Tutor ems free y DefaultSession A ips pal Build All re build Let s rebuild the Tutor1 project into an executable module click on the Build AIP icon This will re compile and link all the source files If any of the source files are modified click on the Build icon as this will only compile these modified files which makes generating an executable module faster Always perform a Build All when the configuration changed Status errors messages etc during a build process is displayed on the Output window 18 24 NES AS Output Window The major use of the Output window is to determine if any errors or warnings occurred and where during the build process Albrocessing C MT00L11ib304nc301ib 1ib BZERO r30 DATA 0000258 001024 Eytels ROMDATA 0000000000004 Eyte s CODE 0000746 002E4H Bytels Phase 16 Linker fini
20. points e Return to HEW modify the program rebuild and run the updated program on the SKP16C62P board 21 24 NES AS Connect Hardware Before starting KD30 connect the ICD to the SKP16C26 Board as shown Connect the USB cable to the PC On the ICD the Power LED is on and the Status Yellow LED is blinking once a second this means that the ICD USB driver was loaded correctly by Windows If not i e blinking three times a second the Windows driver has not been loaded Try disconnecting the mini USB cable wait a few seconds and then plug it back in If this does not work please check Appendix A Troubleshooting of the SKP16C62P user s manual PC with Windows 98 Me 2000 or XP II SKP16C62P Board Mini USB MM Target Cable 22 Start KD30 Launch KD30 from the Windows Start Menu Renesas High perfarmance Embedded Workshop F RENESAS TOOLS Flash Dver LISB V 2 00 Sony Handheld d 3 208 En Sony MES E D30v 3 20 Release 1E Jp Startup h MEVS BZ SEP E Utilities tIS PD38 V 5 10 Release 2 Adabe Illustrator 10 E Link Page tor RENESAS Tools HomePage Internet Explorer 8 10 Release 1 Microsoft Access E MSV30245 SKP Microsoft Excel NC30WA V 5 20 Release 1 or from HEW s Standard Toolbar L efault amp essian Releaze Note 1 To call KD30 from HEW requires some configuration that is discussed in tutorial 2 Cre
21. shed Build Finished Errors U Warnings E AE gui A FnanFpa vert contr Heady Read write 1 180 1 INS NUM E The no of errors and warnings will show up in this window You can then scroll up to find where the error s occurred If no errors or warnings were found Build Finished will be displayed Now that an executable file has been created the next step is to download and run the program on the SKP16C62P Board using the KD30 Debugger ICD Do not close HEW yet We will be returning to it later 19 24 NES AS KD30 Debugger Overview The KD30 Debugger can be used to verify that the program we developed works exactly as we intended and when it does not we can also use KD30 to find out why Breakpoints can be set in KD30 to stop the program at certain points of our program so we can verify that up to that point the program still works correctly using registers or variables in memory The number of breakpoints will vary from MCU to MCU For M16C 62P the maximum no of breakpoints with KD30 is 8 KD30 allows step execution in our program which means program execution on a per line basis whether in source level or machine code level Various windows in KD30 allow us to see register values and memory locations 20 24 NE S AS KD30 Debugger Exercise Download and run a program on the SKP16C62P board General use of the KD30 Debugger including stepping and setting break
22. ws Register Now open the Register window Sample Code Tutor T utori Releas ug Uption Basicw indaws Optionaly ine Cascade J E Tile Arrange con um Stop Values in red indicate changes since last ES Fragram Window W Dis Source Window tion Cy Memon Window Viewed Dump Window a stepping and switch ASM watch window note the C Watch Window k Call Stack Window 81800081 changes Script window The Register window displays the values of the CPU registers after executing an instruction Note Resize the Register window as needed 37 24 NES AS Basic Windows RAM Monitor Open a RAM Monitor window Basic Windows gt RAM Monitor Window The RAM Monitor displays the current value of the memory area shown on the window It is updated at a preset value which can be modified by the user Double click an address and enter 400 hex KD30 will tell you the page is going to change click OK adjust the window size as RAM Monitor Window L disp count HBHdFH BF HH HB BB 95 FC 84 BF E8 FA Hi HF 12 HH HUP 64 d Click the GO icon Note you can view the RAM as it is updating This function is not available in Free Run mode Click the STOP icon before proceeding 38 tENESAS Basic Windows Memory amp C Watch Open a Memory window Basic Windows gt
Download Pdf Manuals
Related Search
Related Contents
Multi-functional Access Box User Manual Manual de Vigil®2+ ES v 2+.0.3 junio 2015 Manuale di uso e manutenzione Convertitori di Frequenza GSC06 Manual de programação UserRPL Manual do Utilizador do PicoScope 6 Copyright © All rights reserved.
Failed to retrieve file