background image

Applications Engineering 

 

SKP16C62P User’s Manual Rev. 1.0 

12 / 22 

December 2003 

Table 6-3. Limitations on Register Operation

 

Register Name 

Restriction 

User Interrupt Stack Pointer 

Range 7B80H – 7BFFH is used by the kernel 

UART1 Transmit/Receive Mode Register 
UART1 Transmit/Receive Control Register 0 
UART1 Transmit/Receive Control Register 1 

Do not change 

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 

Address 

Kit Specification 

Undefined 

FFFDCH ~ FFFDFH 

User available 

Overflow 

FFFE0H ~ FFFE3H 

User available 

BRK Instruction 

FFFE4H ~ FFFE7H 

User inhibited 

Address Match 

FFFE8H ~ FFFEBH 

User inhibited 

Single-step 

FFFECH ~ FFFEFH 

User inhibited 

Watchdog Timer 

FFFF0H ~ FFFF3H 

User available  (Note 1) 

DBC 

FFFF4H ~ FFFF7H 

User inhibited 

NMI 

FFFF8H ~ FFFFBH 

User available 

RESET 

FFFFCH ~ FFFFFH 

Reset vector  (Note 2) 

 

NOTES: 

(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. 
 

Downloaded from 

Elcodis.com

 

electronic components distributor

 

Содержание SKP16C62P

Страница 1: ...SKP16C62P User s Manual w w w renesas com A pplications Engineering Powerful Processors Easy to Use Rev 1 0 December 2003 Downloaded from Elcodis com electronic components distributor ...

Страница 2: ...5 5 LCD Liquid Crystal Display 10 6 0 System Limitations 10 6 1 Kernel Introduction 10 6 2 Pin and Peripheral Limitations 11 6 3 Status After Reset 12 6 4 Register Operation Limitations 12 6 5 Limitations on Interrupts 12 6 6 Stop Mode or Wait Mode Limitations 13 6 7 User Program s Real Time Capability 13 6 8 Performing Debug Using Symbols 13 7 0 SKP16C62P Board Specifications 14 7 1 Hardware Spec...

Страница 3: ...al time source level debug environment is implemented using the KD30 debugging software with the RTA FoUSB MON Flash Programmer In Circuit Debugger ICD The Flash over USBTM 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 interfa...

Страница 4: ...rammer Manuals Tutorials Sample programs 2 1 1 SKP CD ROM The CD ROM contains the electronic manuals and software necessary for developing 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 ...

Страница 5: ...g 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 Technology America Inc cannot be held responsible for error or omissions and reserves the right to make changes without fur...

Страница 6: ...icrosoft 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 expan...

Страница 7: ...er 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 month 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 ...

Страница 8: ...ponents identified Figure 5 1 SKP16C62P Board M16C 62P M30626FHPGP Power LED User Pushbutton Switches User LED s Thermistor 12MHz Crystal 32KHz Crystal Analog Adjust Pot J1 Expansion Port RTA FoUSB MON ICD Connector Reset SW 8 character x 2 line LCD LCD Contrast Expansion Port JP1 MCU Power JP2 Xout Downloaded from Elcodis com electronic components distributor ...

Страница 9: ...up of microcontrollers can be found under C MTOOL SKP16C62P Docs folder of your PC after SKP software installation or from the Start menu Start Programs RENESAS TOOLS SKP16C62P Document Descriptions U1 M30626FHPFP MCU Ports J1 J2 J3 J4 Headers 8 characters x 2 lines LCD XCin XCout S4 S1 S2 S3 R16 P8_3 AN1 SiO 7 To FoUSB ICD MCU Power for Icc Measurements Vcc R9 RT1 AN0 Note An external power suppl...

Страница 10: ...st 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 MCU Power JP2 Xout Setting Shorted Shorted 5 5 LCD Liq...

Страница 11: ...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 co...

Страница 12: ...mputer 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 07F8416 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 modif...

Страница 13: ...nhibited Watchdog Timer FFFF0H FFFF3H User available Note 1 DBC FFFF4H FFFF7H User inhibited NMI FFFF8H FFFFBH User available RESET FFFFCH FFFFFH Reset vector Note 2 NOTES 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 transpa...

Страница 14: ...add the debug option 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 Downloa...

Страница 15: ...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 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 ...

Страница 16: ...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 Double click on Renesas USB Monitor...

Страница 17: ...he 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 section 4 on system SKP16C62P connectivity 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 posi...

Страница 18: ...not stop program or Communication error message is displayed Changes made to UART1 SFR s Ensure no limitations in Section 7 were violated Re initialize the system without closing KD30 See note below 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 Filename...

Страница 19: ... the Windows Explorer window and browse the C directory One of the directories is C MTOOL FoUSB USB 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 ...

Страница 20: ...0 series MCU 7 M16C 20 60 Series Assembler Language Programming Manual Assembler language programming guide for the 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 seri...

Страница 21: ..._1 WRH BHE 23 P5_2 RD 23 P5_3 BCLK 24 P5_4 HLDA 24 P5_5 HOLD 25 P5_6 ALE 25 P5_7 RDY CLKOUT J3 Pin Function J4 Pin Function 1 Vcc 1 GND 2 CNVss 2 RESET 3 P10_0 AN0 3 P10_1 AN1 4 P10_2 AN2 4 P10_3 AN3 5 P10_4 AN4 KI0 5 P10_5 AN5 KI1 6 P10_6 AN6 KI2 6 P10_7 AN7 KI3 7 P9_0 TB0in CLK3 7 P9_1 TB1in Sin3 8 P9_2 TB2in Sout3 8 P9_3 TB3in DA0 9 P9_4 TB4in DA1 9 P9_5 CLK4 ANEX0 10 P9_6 Sout4 ANEX1 10 P9_7 A...

Страница 22: ...Applications Engineering SKP16C62P User s Manual Rev 1 0 21 22 December 2003 Appendix D SKP Board Dimensions Downloaded from Elcodis com electronic components distributor ...

Страница 23: ...ering SKP16C62P User s Manual Rev 1 0 22 22 December 2003 Appendix E RTA FoUSB MON ICD For details on how to use the ICD please see RTA FoUSB MON user s manual Downloaded from Elcodis com electronic components distributor ...

Отзывы: