Home
        SKP16C62P User`s Manual
         Contents
1.    g  in HEW before  compiling the programs  To enable the   g  option  perform the following     Open the workspace and project in HEW    Select  Renesas M16C Standard Toolchain  from Options pull down menu   Click on Link tab    Select  Output  under the  Category  list box    Click on checkbox for   g     Outputs source debug information          Click on  OK  button    For more information  see the HEW user   s manual     SKP16C62P User   s Manual Rev  1 0 13 22 December 2003    RENESAS    Applications Engineerin       7 0 SKP16C62P Board Specifications    7 1 Hardware Specifications  Table 7 1 lists the specifications of the SKP16C62P Board     Table 7 1  SKP16C62P Board Specifications         Item   Specification    MCU M30626FHPGP  Clocks Main Clock  12MHz crystal  16MHz max   ceramic resonator  ring    oscillator  or PLL  24MHz max   Sub Clock  32 768KHz crystal  Memory  Internal RAM  31kB  31616 Bytes   with KD30   ICD    High E W Data Block  4kB  Flash ROM  382kB  391 423 Bytes                 Connectors  J5   Serial interface connector  UART1 for KD30   ICD     J1 J4   50 pin  user supplied  header  for user target connection   Jumpers  JP1   MCU Power for Icc Measurements    JP2   Xout to main crystal Y2  Switches  S1   pushbutton  connected to P8_ 3      S2   pushbutton  connected to P8_2     S3   pushbutton  connected to P8_1     S4   pushbutton  connected to Reset    LED   s  D1   Red   User output  connected to P8_0     D2   Yellow   User output  connected to 
2.   While using KD30 to debug user code  some issues may come up because the limitations  discussed in section 6 were not satisfied  These common issues are listed on table A 2  including  the countermeasures     Table A 2  Problems while using KD30   Problem   Possible Cause s and Solution    After stepping a few e Changes made to UART1 SFR   s   instructions  KD30 hangs       Breakpoints do not seem to   e KD30 is in    FreeRun    mode  Change the RUN mode to       work    Sampling    from the    Init    window  Environment  gt  Init    KD30 locks up  cannot stop   e Changes made to UART1 SFR   s    program  or e Ensure no limitations in Section 7 were violated   Communication error e Re initialize the system without closing KD30  See note  message is displayed  below     e Do a hardware reset  User program runaway may be  corrupting kernel RAM or interrupt vectors  flags  etc  Close  KD30  hit S1 on the SKP16C62P to reset the board  and  then restart KD30        Download Issues e Filenames or directory names contain spaces or special  characters    e HEW project not properly set up  startup files missing or out  of order  files added to wrong member  etc   Try creating a  new project and adding your source files to it  For details   please see HEW user   s manual                 To re initialize the system without closing KD30  try the following     e Press the  OK  button in the error dialog box to close it    e When an Exit dialog box appears  press the  Cancel  button to 
3.  ADTRIG  Sin4  11 P8 1  TA4in   U  12 P8 3  INT1  13 P8 5  NMI  14 P8 7  XCin  15 P7 1  RxD2  SCL2  TB5in  16 P7 3  CTS2  TA1in  MV  17 P7 5  TA2in   W  18 P7 7  TA3in  19 P6 1  CLKO  20 P6 3  TxDO  SDAO  21 P6 5  CLK1  22 P6 7  TxD1  SDA1  23 BYTE  24 GND  25 GND             December 2003       RENESAS    Applications Engineering    Appendix D  SKP Board Dimensions    3 300  3 750            Merete         H  dod000000000000000000000  me  eXe O0OO0O0O00000000000000000    FET Ge TT Te TT     SKP16C62P User s Manual Rev  1 0 21 22 December 2003    RENESAS    Applications Engineerin       Appendix E  RTA FoUSB MON  ICD     For details on how to use the ICD  please see RTA FoUSB MON user s manual     SKP16C62P User s Manual Rev  1 0 22 22 December 2003    
4.  operation     For normal operations  JP1 must be shorted     JP1 is shorted by default     5 4 2 JP2  Xout    JP2 is used to connect the output of the MCU   s internal amplifier to the crystal for oscillation  It  can be used to disconnect Xout when an externally driven clock is connected to Xin  For normal  operations  JP2 must be shorted     JP2 is shorted by default     5 4 3 Default Jumper Setting                   Jumper   JP1 JP2  MCU Power   Xout  Setting Shorted Shorted          5 5 LCD  Liquid Crystal Display     The LCD is a 2 line by 8 character display with a KS0066 controller IC     SKP16C62P User   s Manual Rev  1 0    9 22    December 2003       6 0 System Operation  amp  Limitations    The SKP16C62P provides sophisticated debugging features at a low cost but it does have some  limitations when used with the KD30 Debugger and ICD  Section 6 1 introduces the kernel  ROM  monitor  program and what it is for  The limitations when this kernel is running with the user  program are listed in table 6 1     Table 6 1 Systems Limitations  when used with KD30   Item Please Refer To  6 2 Pin and Peripheral Limitations       6 3 Memory Map       User Limitations 6 4 Status After Reset       6 5 Register Operation Limitations       6 6 Limitations on Interrupts       6 7 Stop or Wait Mode Limitations       Debugger Limitations          6 8 User Program   s Real time Capability          6 1 Kernel  ROM Monitor  Introduction    During debug  used with the KD30 debugger   a s
5. 10  8 P1 4 D12  9 P1 6  INT4  D14  10 P2 0  AN20  AO  11 P2 2  AN22  A2  12 P2 4  AN24  A4  13 P2 6  AN26  A6  14 P3 0  A8  15 P3 2  A10  16 P3 4  A12  17 P3 6  A14  18 P4 0  A16  19 P4 2  A18  20 P4 4  CSO  21 P4 6  CS2  22 P5 0  WRL  WR  23 P5 2  RD  24 P5 4  HLDA  25 P5 6  ALE  1 Vcc  2 CNVss  3 P10_0  ANO  4 P10_2  AN2  5 P10 4  AN4  KIO  6 P10 6  ANS  KI2  7 P9 0  TBOin  CLK3  8 P9 2  TB2in  Sout3  9 P9 4  TB4in  DA1  10 P9 6  Sout4  ANEX1  11 P8 0  TA4out  U  12 P8 2  INTO  13 P8 4  INT2  14 P8 6  XCout  15 P7 0  TxD2  SDA2  TAOQout  16 P7 2  CLK2  TA1out  V  17 P7 4  TA2out  W  18 P7 6  TA3out  19 P6 0  CTSO  20 P6 2  RxDO  SCLO  21 P6 4  CTS1  CLKS1  22 P6 6  RxD1  SCL1  23 Vref  24 Vcc  25 Vcc                SKP16C62P User   s Manual Rev  1 0    20   22                                                                                                                                                             J2 Pin   Function  1 GND  2 PO 1  ANO1  D1  3 PO 3  ANO3  D3  4 PO 5  ANOS  D5  5 PO 7  ANO7  D7  6 P1 1  D9  7 P1 3  D11  8 P1 5  INT3  D13  9 P1 7  INT5  D15  10 P2 1  AN21  A1  11 P2 3  AN23  A3  12 P2 5  AN25  A5  13 P2 7  AN27  A7  14 P3 1  A9  15 P3 3  A11  16 P3 5  A13  17 P3 7  A15  18 P4 1  A17  19 P4 3  A19  20 P4 5  CS1  21 P4 7  CS3  22 P5 1  WRH  BHE  23 P5 3  BCLK  24 P5 5  HOLD  25 P5 7  RDY  CLKOUT  1 GND  2 RESET  3 P10 1  AN1  4 P10 3  AN3  5 P10 5  AN5  KI1  6 P10 7  AN7  KI3  7 P9 1  TB1in  Sin3  8 P9 3  TB3in  DAO  9 P9 5  CLK4  ANEXO  10 P9 7 
6. Applications Engineering    stENESAS       Everywhere you imagine     Powerful Processors   Easy to Use       SKP16C62P       User s M anual    Rev  1 0  December 2003       www renesas com    RENESAS    Applications Engineerin       Table of Contents    10 IAtroduetion moriria E A AE ARE a AMT Aden   P eens 2  2 0 Contents of Product Package essicccicsssectatienatiasatcatand satus ncectchbarsnueensueel banda dienes 3  3 0 Limited Guarantee and Support           ronnrnnnrrrnrrrnnrrnnrrnnrrnnnrnnnnnnnnnnnsnnnsnnnsnnnnnnnnrnnnennnsnnne 4  40  System COMMGCUV ITY eners eree eie er e eles aeiaai mnterharaesh  ude 5  4 1 Host Computer Requirements                   ccccccceccceeceeeeeeaeeeaeeaaeeaaeeaaeeaaaeaaaeeaaeaaaeeaaaeaes 5  4 2 SKP16C62P Board PEA E EE 6  EE ene AN 6  4 4 Software Development TOols               cccccccccccceecceeeceeeeeeceeeceeeeceeeeeeceeseceseceaeeeaeeesaeeaas 6  JAT HEN fara SSE E 6  4 4 2 NC30WA C compiler        errvrrrvrrvvvrvrvrrrvnrrnnrernrerrrrrnsrensernsernserensenssenssenssenssensssenssenn 6  44 3 KD30 Debugger m  te unnpetunmedere funne SANU LACA A arken ATEKA NANNE aay eceteccunpecaue ie 6  4 4 4 FoUSB  Flash over USB     Programmer       rrvnnnnnnnnnnnnnvrrrnnnnnnvnnnnrrrnnnrnnnnnnnrrrrnnnnnn 6  5 0 mfo KONES R AE AE E used 7  521 SKP16C62P Board enera kara er E 7  5 2 SKP16C62P Board Block D  gramuuam sanke evas durin 8  5 3 M16C 62P Group of Microcontrollers              ccccccccceccceeccececcececeeeceeceeeeeeeeeeeesseeeeeesees 8  5 4 SKP16
7. C62P Board Jumper Configuration              cece eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeenaaeees 9  5 4 1 JP1  MCU  U1  POWer       mrrnrnnornovorovrrrrerrrrrrrrrrererrrrreverrrrrerensrrnrererererererernnrenneenn 9  5 42 IPZ KOM ne See 9   5 5 LCD  Liquid Crystal Displ  ysasr sa sadase stuss hebr ee 10  6 0 System Limit  tions manus daden iasi Seaay Mee skiene dei NAKER rsuke dene 10  6 1 Kernel Introduction            cccccccccccceccccecceecceeeeeeeeeeeeeeeeeeeeeeeeeeeeceeeeeeeeeeeeeeseeeeeseeeeeeenaess 10  6 2 Pin and Peripheral Limitations               cccccccccccccceceeceeceeeeeeeeeeeeeeeeeeeeeeeeseeeeeeeeeeeeeeees 11  6 3 Status After Resetususeinuava tise Mudie a a aaa a 12  6 4 Register Operation Limitations            rrrrrnnnnnnnvevvnnevrnnnnnnnnvkvnnnvvnnvvrnnnnvenvnnennevennnnnnnnn 12  6 5 Limitations On Interrupts           ec  ceccccccccccceecceecceeceeeeeceeeceeceeeeeeeeceeeceeeceeeseeeeeeeesaeenaes 12  6 6 Stop Mode or Wait Mode Limitations               cccccccccceccccccceeccececeeceeeeeeeeeeeeeeeeseneeeeees 13  6 7 User Program   s Real Time Capability           rrrrnnnnnnnnnnnrrrrnnnnnnnnnnnnrnnnnrrnnnnnnenrrrnnnnrnnn 13  6 8 Performing Debug Using SyMbolS nica skassscst acct reccaee elie eee vaiean nea ead 13  7 0 SKP16C62P Board Specifications               srnnnnnnnrnnnrnnnrnnnnnnnnnnnnnnnnnnnnnnnnrnnnrnnn annann 14  7 1 Hardware Specifications            ccccccccccccccccccecccceeeceeeceeceeeeeceeeeeeeeeeceeeeeeeeeeeeeeeeseneeeees 14  7 2 External Power S
8. Drivers  which contains the driver files necessary to use the ICD  Plug  the ICD board to your PC using the enclosed mini USB cable     Follow the instructions on installing new hardware and when Windows asks for the drivers or  location of the drivers  select browse or specify C  MTOOL FoUSB USB Drivers  and then  continue with the new hardware installation     NOTE  If you are using Windows 2000  you need Administrator privileges to install the  drivers     If you still encountering problems on installing the drivers  you can try the following    1  Windows 2000  i  Copy the fousb inf and usbmon inf files from  USB Drivers folder to   WINNT INF folder   ii  Copy the fousb sys and usbmon sys files from  USB Drivers folder to   WINNT SYSTEM32 drivers folder    2  Windows 98  i  Copy the fousb inf and usbmon inf files from C  MTOOL FoUSB USB Drivers  folder to  WINDOWSIINF folder     ii  Copy the fousb sys and usbmon sys files from C  MTOOL FoUSB USB  Drivers folder to WINDOWS SYSTEM32 drivers folder     SKP16C62P User   s Manual Rev  1 0 18 22 December 2003    RENESAS    Applications Engineerin       Appendix B  Reference Manuals                                           Item _ Title Description   1  SKP16C62P Quick Start Guide Document that will help you get started on using the  SKP16C62P    2  SKP16C62P User s Manual Installation and operation guide for the SKP16C62P    3  SKP16C62P Board Schematic Schematic diagram for the SKP16C62P Starter Kit  board    4  SKP16C62P Boar
9. ES      1  The Watchdog Timer vector is shared with the oscillation stop and voltage detection  interrupt  The vector is available for oscillation stop and voltage detection interrupts  but  not Watchdog Timer interrupts     2  The kernel transparently relocates the Reset vector to FFFD8H     6 7 Stop or Wait Mode Limitations    The kernel cannot be run in STOP or WAIT modes  Do not use the STOP or WAIT instructions in  your program     6 8 User Program   s Real Time Capability    Please be aware that while the kernel is in a    STOP    state  the hardware peripherals will continue  to run  Therefore  interrupts may not be serviced properly  Also  the watchdog timer will not be  serviced and will likely time out if active     While the kernel is in a    RUN    state  there is no overhead on the application code  UNLESS a  RAM monitor window is open in KD30  This window requires periodic communication with the  MCU  This communication suspends normal application operation while servicing the request   approximately 2000 BCLK cycles for each 16 bytes of data displayed in the window are used per  window update   The user must determine whether or not this behavior is acceptable     SKP16C62P User   s Manual Rev  1 0 12 22 December 2003    RENESAS       Applications Engineerin    6 9 Performing Debug Using Symbols    Normally when a new project is started using HEW  debugging symbols are enabled  If you are  unable to debug your program using symbols in KD30  add the debug option
10. P board incorporates an M30626FHPGP  100 pin QFP  from the M16C 62P  group of microcontrollers designated as U1  Figure 5 2 shows the SKP16C62P block diagram     Analog  Adjust POT    RT1   Fa  EI EA ese  LCD  Contrast POT  for Oscillation JP2  Detection RESET   P8 3   P8 2 AN1   ANO  Evaluation          Xin   Xout XCin XCout    Thermistor             8 characters P9  x 2 lines LCD          U1 RED YELLOW GREEN  To Si0 7 M30626FHPFP LED LED EE  FoUSB ICD MCU  D3 D4 D5  Vcc  P80  P74   P72  Vcc  JP1    MCU Power  for Icc  Measurements    J1  J2  J3  J4 Note  An external power supply is required if the  Headers SKP16C62P Board is not connected to the ICD        Figure 5 2  SKP16C62P Block Diagram    5 3 M16C 62P Group of MCUs    M3062x group of 16 bit single chip  flash microcontroller  MCU  is built using high performance  silicon gate CMOS process with an M16C 60 series CPU core  The datasheet for the M16C 62P  group of microcontrollers can be found under C  MTOOL  SKP16C62P Docs folder of your PC  after SKP software installation or from the Start menu  Start  gt  Programs  gt  RENESAS TOOLS  gt   SKP16C62P  gt  Document Descriptions     SKP16C62P User   s Manual Rev  1 0 8 22 December 2003    RENESAS    Applications Engineerin       5 4 SKP16C62P Board Jumper Configuration    5 4 1 JP1  MCU  U1  Power    JP1 is used to connect the power Vcc pins of the M16C 62P MCU to the Vcc of the board  It can  be used to measure current power consumption of the MCU during various modes of
11. P7_4    D3   Green   User output  connected to P7 2   LCD 2 line x 8 character LCD with KS0066 controller IC                      7 2 Power Supply Requirements    The SKP16C62P Board will draw 35mA  max   With the ICD  the current draw will be about  75mA     7 3 Operating Environment  Table 7 3 lists the environmental conditions for using and storing the SKP16C62P board  When    storing the board  place it in a conductive bag and then in the packing box your product was  shipped in from the factory     Table 7 2  Operating Environment            Environmental Condition     Ambient Temperature   Ambient Humidity  Operating 0   55  C 30 to 80   non condensing    No corrosive gas allowed   Storage  30 to 75 C 30 to 80   non condensing    No corrosive gas allowed                    SKP16C62P User s Manual Rev  1 0 14 22 December 2003    RENESAS    Applications Engineerin       Appendix A  Troubleshooting Guide    This section discusses possible problems you may encounter while installing the software  and  drivers  and while running the KD30 or FoUSB Programmer applications  This section also  discusses the countermeasures and solutions to resolve these problems     If  for any reason  you cannot resolve the problem  please contact your Renesas representative  for assistance     A 1 USB Driver Problems    This section discusses the usual problems with the driver installation and how to fix it  The most  common problem encountered is that Windows did not properly install the driv
12. anual Rev  1 0 10 22 December 2003    RENESAS    Applications Engineerin       6 3 Memory Map    The amount and memory locations of the kernel program  to communicate with the KD30 and  ICD  are using on the M16 62P on the SKP16C62P board is shown on Figure 6 2     00000h    SFR Area  00400h  Internal RAM  Area   31kB  07FFFh    AKB data Note  User programs must  not use shaded areas         User RAM Area    31616 Bytes    Kernel RAM OrETEN     128 Bytes        O7FFFh    Reserved    User    A0000h Program  Area   382kB    Special Page    Flash ROM  Area   384kB    Fixed Vector  Area  FFFFFh         Figure 6 2 M30626FHPGP Memory Map with the Kernel Program  Note  The kernel occupies memory associated with special page vector numbers 18 19 and 192   255  The user reset vector is re mapped to address FFFD8h by the kernel   6 4 Status After Reset  Table 6 2 lists the values of the registers initialized by the kernel program when the SKP16C62P  starter board is reset  The register status depends on the microcomputer   s internal operation    performed after a reset     Table 6 2  Initial Register Values After Reset          Register Name   Initial Value After Reset  Interrupt Stack Pointer Initialized to 07F8415  UART1 Set for external clock synchronous mode                6 5 Register Operation Limitations    Table 6 3 lists the limitations on register operation  The registers are inhibited from any  modification  If register contents are modified in any way  kernel operation can
13. close it    e Hit reset button on the SKP16C62P board    e Press KD30 reset button    After initialization  debugging can resume  However  it is recommended that you download your  program again before debugging     Note  If it has been identified that there are problems with the ICD  please see the ICD   s  RTA   FoUSB MON  user   s manual and troubleshooting     SKP16C62P User   s Manual Rev  1 0 17 22 December 2003    RENESAS    Applications Engineerin       A 3 Installing Required Files Manually    This section discusses how to install the SKP16C62P software and development tools manually   i e  when not using the SKP16C62P installer       1  Run the KD30 installer     KD30V320R1b_e exe     from the  Too s KD30 folder on the SKP  CD     2  Run the FoUSB installer     fousb_V2 00 exe     from the  Too s FoUSB folder on the SKP  CD     3  Run the HEW installer     setup exe     from the  Tools HEW folder on the SKP CD     4  Run the NC30 installer     nc30wa_entry exe     from the  Too s NC30WA folder on the SKP  CD     5  Create an SKP16C62P folder under C  MTOOL on your PC and then copy the directories  from the  SKP16C62P files folder on the SKP CD to this folder     This completes the software installation but the drivers for the ICD also needs to be installed  We  need to copy driver files  inf and sys  files and executables to certain Windows directories     Open up the Windows Explorer window and browse the C  directory  One of the directories is  C  MTOOL FoUSB USB 
14. ction 4 on system  SKP16C62P  connectivity   e The ICD has no power  Power LED on ICD is off      Please ensure that the Power Mode switch on the ICD is on the    USB    side  In    Target     position  the ICD is powered from the target side     e USB was not selected on the Init dialog box   Please select    USB    from the Init dialog box that is displayed right after you start KD30     e The selected MCU on the ICD board and the actual target MCU  M16C 62P  do not  match     Close the error message by clicking on    OK    button  and then click on the    Cancel    button of  the KD30 Init window to close KD30  Make sure you select    M30626FHP mcu     If the MCU  loaded on the ICD is different  KD30 will re program the ICD to match it    e The target MCU is damaged     Try a different target board and see if KD30 will come up as you may have a damaged board  or MCU     SKP16C62P User   s Manual Rev  1 0 16   22 December 2003    RENESAS    Applications Engineerin       A 2 3 KD30 Already Exist    When a message    KD30 already exists    is displayed  the usual cause of this problem is that the  KD30 application was not properly closed  Please check if KD30 is already running by looking at  your task bar  If KD30 cannot be found there  bring up Task Manager  press CTRL ALT DEL  once and click on    Task Manager    button   Select KD30 exe on the    Processes    list and click on     End Process    to terminate KD30     A 2 4 Issues that may come up During Debug Operations  
15. d BOM Bill of materials for the SKP16C62P Starter Kit board    5  M16C 62P Group Data Sheet Operation and Specifications for the M16C 62P  MCU s    6  M16C 20 60 Series C Language ANSI C language programming guide for the   Programming Manual M16C 20 60 series MCU   7  M16C 20 60 Series Assembler Assembler language programming guide for the  Language Programming Manual M16C 20 60 series MCUs    8  M16C 20 60 Series Software Manual This document details the instruction set and timing  information for the M16C 20 60 series CPU cores    9  M16C 20 60 Series Sample Programs   This document details some sample programs and  application notes for the M16C 20 60 series MCUs    10  HEW User s Manual Integrated Development Environment for Renesas     Tools    11  KD30 User s Manual Easy to use source and assembly debugger    12  AS30 User s Manual Assembler Language Guide for AS30 assembly  language compiler    13  NC30 User s Manual ANSI C Compiler Guide for KNC30WA C language  compiler    14  RTA FoUSB MON User s Manual User guide and operation manual for the ICD                 SKP16C62P User   s Manual Rev  1 0    19 22    December 2003       RENESAS    Applications Engineerin       Appendix C  Expansion Headers                                                                                                                                                             J1 Pin Function  1 Vcc  2 PO 0  ANOO  DO  3 PO 2  ANO2  D2  4 PO 4  AN04  D4  5 PO 6  ANO6  D6  6 P1 0  D8  7 P1 2  D
16. er and so the ICD  is not recognized  This may also cause the device status to indicate that the device is not working  properly  An indication of this problem is the ICD status yellow LED   it blinks about 2 3 times a  second  When the driver is installed properly  the yellow LED should only blink every second     Before trying the following steps  try restarting your PC and see if this resolves the problem  You  can check the status using the Device Manager  If the ICD appears under the Universal Serial  Bus Controllers with NO red X or yellow exclamation point  the driver was installed properly     If you are using Windows 2000 or Windows XP  you need Administrator privileges to install the  drivers     For cases where the    Device Status    states the device is not working properly  please try the  following     e Double click on    Renesas USB Monitor and a Renesas USB Monitor Properties dialog  box appears    e Click on    Driver    tab and click on    Update Driver    button    e Select    Display a list       and click on    Have Disk    button    e Specify and locate the C MTOOL FoUSB USB Drivers folder on your PC and install     usbmon sys    driver    e If this process does not work  please try the instructions below     For cases where in the driver was not installed properly by Windows  Windows 98  Windows  2000  or not listed in the Device Manager  gt  Universal Serial Bus Controllers  please try the  following     e Unplug the USB Cable so Windows removes driv
17. er from memory    e Delete the driver    usbmon sys    from     WINNT SYSTEM32 DRIVERS  folder in Windows  2000 or  WINDOWS SYSTEM32 DRIVERS folder in Windows 98    e Plug in ICD and try installing the driver as written above  but use the driver from the CD   The folder is C  MTOOL FoUSB USB Drivers     SKP16C62P User   s Manual Rev  1 0 15 22 December 2003    RENESAS    Applications Engineerin       A 2 KD30 Problems    This section discusses the cause of the problem and countermeasures to resolve it  The common  problems encountered with KD30 are    e USB option cannot be selected from the initialization screen   e Cannot connect to target   e KD30 already exists   e Issues that may come up during debug operations    A 2 1 USB Option Unavailable  When USB cannot be selected from KD30   s Init dialog box  you might be using an old version of  KD30 that does not support USB  Uninstall this version of KD30 and install latest version of KD30  from the  Tools KD30 directory of the SKP CD   A 2 2 Cannot Connect to Target  When the message    Can   t connect with the target    is displayed after KD30 startup  there are  several reasons that may cause this message to appear  Each cause and the corresponding  countermeasure are discussed below   e The SKP is not connected correctly   Please connect the ICD to your PC  Note  Regardless of whether the ICD is bus or target   powered  please connect target board to ICD board first before plugging the USB cable to  your PC  Please see se
18. eveloping programs   Your computer must have Netscape Navigator   or Microsoft     s Internet Explorer to view the  help files and Acrobat Reader to view the manuals     Insert the enclosed CD into your computer and SKP installer will auto start  The SKP installer  program will create a C  MTOOL and C  MTOOL SKP16C62P folder on your machine  All  development tools  HEW  KD30 Debugger  and FoUSB Programmer  can be found under  C  MTOOL  Documentation  sample code  and other SKP related files would be under  C AMTOOL  SKP16C62P folder     If the SKP installer program does not start up  browse the CD   s root folder and double click on       skp_installer exe    to start installation  If you continue having problems on the install  please read  the    Install FAQ txt file on the root folder of the CD     SKP16C62P User   s Manual Rev  1 0 3 22 December 2003       3 0 Limited Guarantee and Support    Renesas Technology America  Inc   warrants the SKP16C62P to be free from component or  assembly defect for a period of 180 days from the date of purchase  Settlement is limited to repair  or replacement of the product only  Renesas Technology America  Inc   does not assume any  liability arising out of the application or use of any product  circuit or procedure described herein   No other liability or warranty apply  expressed or implied  Software warranty is limited to  replacement of the CD only  While every attempt has been made to ensure accurate  documentation  Renesas Technolog
19. f expansion boards  etc     4 3 ICD  RTA FoUSB MON   The ICD provides a plug and play debugging and programming interface to the SKP16C62P    board by using the host computer s Universal Serial Bus  USB   The USB port also provides  power to the SKP16C62P board and ICD thereby eliminating the need for an external power    supply     SKP16C62P User   s Manual Rev  1 0 5 22 December 2003    RENESAS    Applications Engineerin       4 4 Software Development Tools    Aside from SKP documentation and sample code  the SKP installer program also installs the  development tools  For details  please see the quick start guide on how to run the SKP installer     4 4 1 HEW  High performance Embedded Workshop     HEW provides a Graphical User Interface  GUI  that integrates the software development tools  and includes the C compiler  assembler  linker  and editor     4 4 2 NC30WA Entry Version    The NC30WA Entry version C compiler included in the SKP has no time expiration  but has the  following limits    1  The software comes without warranty    2  The compiler always compile with     fansi    option    3  The compiler optimization settings is fixed and cannot be changed   4  The     finfo    option for other software tools such as stack viewer  etc  is not supported     If your development needs exceed the above limitations  please go to the following web site    http   www renesas com eng products mpumcu toolhp datsheet m16c_e nc30wa htm and  download the full version  4 calendar mont
20. h trial      4 4 3 KD30 Debugger    KD30 is a remote debugger that runs on the host PC  While communicating with a kernel  i e  a  ROM monitor program  on the target MCU through the ICD  KD30 provides a highly efficient  evaluation environment  KD30 features include     Source line debug for assembly language  structured assembly language  C language  Run command with 8 breakpoints for M16C 62P  will depend on the M16C MCU   RAM monitor function   C variable    watch    window    4 4 4 FOUSB  Flash over USB     Programmer    User programs can run on the SKP16C62P board without the host computer running KD30 by  programming the on board M16C 62P flash MCU with firmware using FoUSB Programmer  It can  also be used to program other Renesas    M16C Flash MCU   s and 740 series MCU s     SKP16C62P User   s Manual Rev  1 0 6 22 December 2003    RENESAS       Applications Engineerin    5 0 Hardware  5 1 SKP16C62P Board    Figure 5 1 shows the SKP16C62P Board with major components identified     Expansion        og panies    Port t2    bis Sath  EE ONN ar a      0900000  5 2 2 23   3       Power  LED  Reset  8 character x SW  2 line LCD Thermistor  LCD Analog  Contrast Adjust Pot  JP1 JP2  MCU Power Xout  M16C 62P 12MHz  M30626FHPGP Crystal  RTA FOUSB  g veer Leys  MON  ICD   Connector  32KHz  Crystal  Expansion  Port  User Pushbutton Switches  Figure 5 1  SKP16C62P Board  SKP16C62P User   s Manual Rev  1 0 7 22    December 2003    5 2 SKP16C62P Board Block Diagram       The SKP16C62
21. mall program  called a kernel  is downloaded to  the M16C 62P  The kernel communicates with the KD30 Debugger through the ICD about MCU  status during user code debugging operations     There are no special steps required in the user program to make use of the ICD  The operation of  the kernel is transparent to the user but there are some limitations and these are discussed from  section 6 2     After starting KD30  the ICD downloads the kernel to the M16C 62P if it does not exist  e g  blank  device or programmed with FoUSB Programmer   After downloading the kernel  KD30 opens the  Program Window and the M16C 62P is ready for downloading code     Connecting the ICD without starting KD30 will not affect the lines connected between the ICD and  the M16C 62P     the ICD keeps the lines in high impedance state  The ICD only drives the pins  after KD30 or FoUSB Programmer is started     After program debug and verification  you can then create and download a binary  Intel   hex  or  Motorola   mot   file to the M16C 62P  This operation erases the kernel and only leaves the user  program     6 2 Pin and Peripheral Limitations    SIO UART1 pins are used for communication between the SKP16C62P board kernel and KD30  Debugger through the ICD  Do not connect these pins to any other circuit  as UART1 cannot be  used in the user program  For details  please see ICD  RTA FOUSB MON  User Manual on  Target M16C ROM Monitor Resources or related ICD application notes     SKP16C62P User   s M
22. not be guaranteed     SKP16C62P User   s Manual Rev  1 0 11 22 December 2003       Table 6 3  Limitations on Register Operation      Register Name ij Restriction  User Interrupt Stack Pointer Range 7B80H     7BFFH is used by the kernel           UART1 Transmit Receive Mode Register Do not change  UART1 Transmit Receive Control Register 0  UART1 Transmit Receive Control Register 1                   UART1 Interrupt Control Register 0 Do not change   UART Transmit Receive Control Register 2 Do not change bits 0 and 2   UART1 Transmit Buffer Register Do not write to this register   UART1 Receive Buffer Register Do not read this register   Port 6 and Port 6 DDR To prevent changes on P6_4 data and direction     use read modify write only instructions  BSET   BCLR  AND  OR  etc                 6 6 Limitations on Interrupts   Vectors that Reside in the Hardware Vector Table  Table 6 4 lists the limitations on hardware interrupt vector addresses     Table 6 4  Interrupt Vector Addresses                                                 Interrupt Cause   M16C 62P Vector Kit Specification  Address  Undefined FFFDCH   FFFDFH User available  Overflow FFFEOH   FFFE3H User available  BRK Instruction FFFE4H   FFFE7H User inhibited  Address Match FFFE8H   FFFEBH User inhibited  Single step FFFECH   FFFEFH User inhibited  Watchdog Timer FFFFOH   FFFF3H User available  Note 1   DBC FFFF4H   FFFF7H User inhibited  NMI FFFF8H   FFFFBH User available  RESET FFFFCH   FFFFFH Reset vector  Note 2   NOT
23. the RTA FoUSB MON Flash Programmer In Circuit Debugger  ICD   The Flash over USB      FoUSB  Programmer software  with the ICD  allows in system programming of the M16C 62P  flash MCU     The ICD and firmware provide a convenient USB  Universal Serial Bus  interface between the  SKP16C62P board and the host PC  This interface reduces resource requirements on the  M16C 62P MCU  allows faster code downloads and  can also be used with many other Renesas  Flash MCU   s  SKP   s  and user   s target board     SKP16C62P User   s Manual Rev  1 0 21 122 December 2003    RENESAS    Applications Engineerin       2 0 Contents of Product Package    This section describes the contents of the SKP16C62P product package  When unpacking your  SKP16C62P  please check to see that all products listed below are included     2 1 SKP16C62P StarterKit Plus Product List  Table 2 1 lists the products included in the SKP16C62P     Table 2 1 SKP16C62P Product List                Product Name     Quantity   Remark  SKP16C62P Board 1 M16C 62P SKP Board  RTA FoUSB MON  ICD  1 KD30 Debugger  FoUSB   Programmer Interface Device  6    10 Pin Target Cable 1 Connects SKP16C62P Board   J5  and the ICD  6    Mini USB Cable 1 Connects ICD to the Host PC  SKP CD ROM 1 Auto install program    HEW  IDE  C compiler   assembler  and linker   KD30 Debugger  FoUSB Programmer  Manuals   Tutorials   Sample programs                   2 1 1 SKP CD ROM    The CD ROM contains the electronic manuals and software necessary for d
24. upply Requirements               ccccccccecccecccceecceeececeeeeeceeeeeeeseeeeeeeenees 14  2 3 Operang Enrvroimenn  sanset tam se A a i aaa 14  Appendix A  Troubleshooting Guide                 cccccceccecccceccceeececeeeeeeeeeeeececececeeeeseeeeeeeeaeenas 15  A 1 USB Driver Problems iscriere ierre A e EE E 15  A 2  KD30 Problem   a EEN 16  A 3 Installing Required Files Manually          rrrnrnnnnnnnnrnnnnnnnnnnnonnnnrrrrrnnnnnnnrrnnnnrrrrnnnnnntnnnn 18  Appendix B  Reference Manuals               cccccccccecccececcececeeeeeeececeeeeeceeeeeeeeeeeeceseseeeeseeeeeeneass 19  Appendix C  Expansion Headers              ccccccccceccccecccececececeeeceeeeeeceeeeceeceeeseeeeeeeeeneeeseneneass 20  Appendix D  SKP Board Dimensions                 cccccccccecccececeeeeeeeeeeceeeeeeecececeseeceeeeeeeeseeeneass 21  Appendix E  RTA FoUSB MON  ICD              cccccccccceccccececeeeceeeeeeeeeeeeeeeeeeeeeeeeeeeeseeeeeeenenes 22    SKP16C62P User   s Manual Rev  1 0 December 2003    RENESAS    Applications Engineerin       1 0 Introduction    The SKP16C62P StarterKit Plus  SKP  is a low cost environment for evaluating M16C 62P group  of microcontrollers  MCU  and Renesas Technology America  Inc  software development tools   The kit comes with an integrated software development environment  HEW  IDE  C compiler   assembler  and linker   KD30 Debugger  and FoUSB  Flash over USB     Programmer     A real time  source level debug environment is implemented using the KD30 debugging software  with 
25. y America  Inc   cannot be held responsible for error or  omissions and reserves the right to make changes without further notice      Flash Over USB    is a trademark of Renesas Technology America  Inc  All trademarks are the  property of their respective owners     SKP16C62P User   s Manual Rev  1 0 4 22 December 2003    RENESAS    Applications Engineerin       4 0 System Connectivity    The following lists the hardware and software products required for using the SKP16C62P  StarterKit Plus     Host Computer  supplied by user    SKP16C62P Board   RTA FoUSB MON  ICD    Mini USB Cable   Target Cable   Software Tools  HEW IDE  NC30 Compiler Linker  KD30 Debugger  FoUSB  Programmer     Figure 4 1 shows the system connectivity for the SKP16C62P     PC with Windows SKP16C62P  98  Me  2000  or XP Board  Mini USB Target  Cable       Figure 4 1 SKP16C62P System Connectivity  4 1 Host Computer Requirements    The minimum requirement to be able to use the software that comes with the SKP16C62P is a  PC with a USB port and Microsoft Windows 98  ME  2000  or XP     Note  For Windows 95 and NT  that do not support USB  please contact Renesas representative  or email techsupport rta renesas com for options    4 2 SKP16C62P Board   The SKP16C62P board provides an evaluation and development environment for the M16C 62P    group of MCU  It has pushbutton switches  LED   s and LCD for user interface  Standard connector  ports are available to expand the range of applications through the use o
    
Download Pdf Manuals
 
 
    
Related Search
    
Related Contents
ALLEVYN™ LIFE  ナノキャリア(4571)  詳細(PDF):成分・取扱い書等  Audio Authority 1547 User's Manual  Manuel d`utilisation  Cámara domo presurizada - Bosch Security Systems  user manual - Altehandys.de  ESL-GH200ST  klpmrg012    Copyright © All rights reserved. 
   Failed to retrieve file