SKP16C26A
User's Manual
w w w.renesas.com
A pplica t io n s E n gin e e r in g
Powerful Processors – Easy to Use™
Rev. 1.0June 2004
Page 1: ...SKP16C26A User s Manual w w w renesas com A pplications Engineering Powerful Processors Easy to Use Rev 1 0 June 2004 ...
Page 2: ...16C26A Board Jumper Configuration 9 5 4 1 JP1 MCU U1 Power 9 5 4 2 JP2 Xout 9 5 5 LCD Liquid Crystal Display 9 6 0 System Operation Limitations 10 6 1 Kernel ROM Monitor Introduction 10 6 2 Pin and Peripheral Limitations 10 6 3 Memory Map 11 6 4 Register Operation Limitations 11 6 5 Limitations on Interrupts 11 6 6 Stop or Wait Mode Limitations 12 6 7 User Program s Real Time Capability 12 6 8 Per...
Page 3: ...Flash over USB Programmer A real 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 USB TM FoUSB Programmer software with the ICD allows in system programming of the M16C 26A flash MCU The ICD and firmware provide a convenient USB Universal Serial Bus interface between the SKP16C26A boa...
Page 4: ...o install program HEW IDE NC30WA 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 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 in...
Page 5: ...t 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 Technology America Inc cannot be held responsible for error or omissions and reserves the righ...
Page 6: ...Microsoft Windows 98 ME 2000 or XP 4 2 SKP16C26A Board The SKP16C26A board provides an evaluation and development environment for the M16C 26A group MCUs See section 5 0 Hardware for more details 4 3 In Circuit Debugger RTA FoUSB MON The ICD provides a plug and play debugging and programming interface to the SKP16C26A board via the host computer s Universal Serial Bus USB The USB port also provide...
Page 7: ...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 the ICD KD30 provides a highly efficient evaluation environment KD30 features include Source lin...
Page 8: ...KP16C26A Board with major components identified Figure 5 1 SKP16C26A Board M16C 26A M30260F8GP Power LED User Pushbutton Switches User LED s Thermistor 10MHz 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 JP2 Xout JP1 MCU Power ...
Page 9: ... core The hardware and software manuals for the M16C 26A group of microcontrollers can be found under C MTOOL SKP16C26A Docs folder in your PC or from the Start menu Start Programs RENESAS TOOLS SKP16C26A Document Descriptions after SKP software installation U1 M30260F8GP MCU Ports J1 J2 J3 J4 Headers 8 characters x 2 lines LCD P9 XCin XCout S4 S1 S2 S3 R16 P8_3 AN1 SI0 7 To ICD MCU Power for Icc ...
Page 10: ...on 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 Settings Jumper JP1 MCU Power JP2 Xout Set...
Page 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 26A 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 26A is ready for downloading us...
Page 12: ...triction User Interrupt Stack Pointer Range 0B80H 0BFFH 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 Rec...
Page 13: ...ebugging your program 6 7 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 wind...
Page 14: ...on 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 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 SKP16C26A Board will draw 35mA max With the ICD the current draw will b...
Page 15: ...nd 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 NOTE If you are using Windows 2000 or XP you need Administrator privileges to install the drivers For cases where the Device Status states the device is not working properly pl...
Page 16: ...rmeasure are discussed below 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 section 4 on system SKP16C26A connectivity The ICD has no power Power LED on ICD is off Please ensure that the Power Mode switch on the ICD is ...
Page 17: ...mpling from the Init window Environment Init KD30 locks up cannot stop program or Communication error message is displayed Changes were made to UART1 SFR s Do NOT change UART1 SFRs in user program Ensure no limitations in Section 6 were violated Re initialize the system without closing KD30 See note below Do a hardware reset User program runaway may be corrupting the kernel RAM interrupt vectors f...
Page 18: ...C Language Programming Manual ANSI C language programming guide for the M16C 20 60 series MCUs 7 M16C 20 60 Series Assembler Language Programming Manual Assembly language programming guide for the M16C 20 60 series MCUs 8 M16C 20 60 Series Software Manual Instruction set manual for the M16C 20 60 series CPU cores 9 M16C 20 60 Series Sample Programs Sample programs and application notes for the M16...
Page 19: ...10_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 AN30 CLKout 7 P9_1 TB1in AN31 8 P9_2 TB2in AN32 8 P9_3 AN24 9 9 10 10 11 P8_0 TA4out U 11 P8_1 TA4in U 12 P8_2 INT0 12 P8_3 INT1 13 P8_4 INT2 ZP 13 P8_5 NMI SD 14 P8_6 XCout 14 P8_7 XCin 15 P7_0 TxD2 SDA TA0out 15 P7_1 RxD2 SCL TA0in CLK1 16 P7_2 CLK2 TA1out V RxD1 16 P7_3 CTS2 TA1in V TxD1 17 P7_4 TA...
Page 20: ... W 5 EN 6 DB0 7 DB1 8 DB2 9 DB3 10 DB4 11 DB5 12 DB6 13 DB7 14 J4 CON25 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 R17 100K R9 10K Contrast 1 3 2 D4 BAT54C 3 2 1 C1 2 2 uF R15 7 32K 1 D1 RED JP2 1 2 R12 10K R16 10K 1 3 2 J1 CON25 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 C4 0 1uF R25 0 ohm D5 RED TP1 TEST POINT 1 J5 103308 1 1 3 5 7 9 2 4 6 8 10 R13 0...
Page 21: ...Applications Engineering SKP16C26A User s Manual Rev 1 0 20 21 June 2004 Appendix E SKP Board Dimensions ...
Page 22: ...Applications Engineering SKP16C26A User s Manual Rev 1 0 21 21 June 2004 Appendix F RTA FoUSB MON ICD For details on how to use the ICD please see RTA FoUSB MON User s Manual ...