Home

RZB_CC16C_ZBK User Manual

image

Contents

1. 0 8d Lid 97d 924 p 13594 9 A UII LISTES 19 Annotv LOTO Old Old 0 1d ioovLZaxuo d SDILNV LOLd 2 9 9019 9 Old E S Old 198 019 9 9d 104 994 ENVEOld 2 S 9d DOEI Zold 79 L SIN IS19 9d LNV LOLd Old 9d 09 1 69 07019 2 Z 9d 179d 0 9d 0814 0510 09 SS BA gig amp HBWu 6d 64 26 269 Hyp 0 6d 10121 v January 2006 29 33 QSK26A User s Manual Rev 1 0 31 NESAS S y e 10 5002 2 EnEWy Vepseupo y 18 avona 992 50804 9 edd SSANO ss 92 Sz 2 ez zz 2 540 DS Bojouupe s gel sing lt lt a ag v 4 SSANO
2. 9799 Sed elvised S 9d Y d Ziv ved ISMO ISRI ISID od v 9d 8d Zed R MEMO gors 2018 0 ai 0 810 0519 099 0 9d soia vola eoa 1 d S vd 75 S vd 1d 089 089 089 OL OL OL V vd ezia 81 seid ezia vd Z vd ied d 3Hg H3M ISd id MMTHAVOSd gt 1 1581 2 5 5 A 8 8 5 99 99 L corn anzz anro anro anro _ sizo tizo ero SSMOd TOW eur NOW xossa 99 2006 30 33 QSK26A User s Manual Rev 1 0 431 NESAS Appendix E QSK26A Printed Circuit Board 5104 veer i N amin M TN zz 2455 160 IR133 e z Sim Y T 5 6157 2 o a 1 yi 4 EE JP103 55 e m ej Mh 5327 Sale E D103 RED YEL B D105 GRN TP102 mm z GND N N S E Figure 1 PCB Top View QSK26A User s Manual Rev 1 0 31 33 January 2006 mum 2507 R203 mmi R201 st C201 e it eoo a em
3. gR TM82ADA 6 4 8 a 9 ze 2 5 S c als 5 NM gt N m S ia 56542 9 129 4 S oj a fg 8 5 8 E g 5 5 a jao s E QSK26A User s Manual Rev 1 0 27 33 January 2006 21 NESAS January 2006 28 33 2 v s zZz 5002 7 Sny Ae pseupaA 912 42992 Jo g Jequnw 1ueuin2og 826 syno 40 gs ean e se Y 758 398 398 wa Jn aonya Ndo 4 HIN 1008 22A IQON NOW 2 gt gt 1008 WE Her oza Tr 99 o S S 5 9 S 945 5 3 Ns 8 39 089 AUR anyo 6020 7 NOW y x 089 045 i cape i gt lt now 9997 x 89 15101 4d 808 rea ski Lid iS x 224 gg 9izu yg v Ld erza 41 99 1584 gt O0 d
4. 13588 2 Led Fr 4 0 Sd 27 Zed 32 09 lt Ed SSANO SSANO 65 bed sea Le ao wed Waa Qed grea ak HOLSISSY LLZH EH or Tti La Wd3 429 ey we d wy c 944 Jonuod SAND dH83Lt9 0N L0zn vid anzz anyo y c 9020 7 9029 9 1d SE z a bee A ERES LH MdkNO Da 08202315 0 0 0d E zozn ma ea 1017 poy UO 5 031 eoeld e1oN 3 289 204 Hir g 9d 0d 54 fd og zora y 964 909 Her a 9d 9 0d H 189 8 0299 z 9 Ltd gz 299 ZYd oz 9 0 7 vvd oly 7 999 9024 9024 pr 999 298 Je gNOLLOS UO ION OLdSMS OZONW 3015634 vOZH 2 T a sozr 8 99 anzz anyo anyo ET 2020 00 T 99 v s QSK26A User s Manual Rev 1 0 41 NESAS 3 v y o Wy 9002 2 epsa upam aed et Odc99c 50 5404 9 8 jequnNiueumoog 226 55 V IAN eoueuiy se v 2920801 uox 55 Hg 9 9d 1noox ogd 5 8d IAN Sed SS ANO 2 a 0 6
5. 95905 R anro 398 3981 gt IN 0219 8 8 8 3 SU d dg 398 nog 99s 5 115 yo ee cele seld EEG _ COLA BOIS sais MIANV 2018 r ZOLA very 9 0 ObUPNV Old Sr NV 0Ld h t BE ZNV EOld T pes oNvioold 35 Ole ii ANIOd ISL 8 24 18 0 Old an Le m Or inox 98d a 9 8d gt 5 Lod 2 0 Old 90454 0d sa eod 1NISBILOV 64 Led 60459 0d sa sod PL NOS DGINV 9 6d 045 04 taod V WD OGNV S 6d 0d 0d t 2045 0d ulgaova eed 6d 10 S amp 0d La L0d ELNOS UZALZEd Zed 0709 909 ENIS UIL BL L6d Od 0 6d Lid 9 PINIA Bld _ WNISed V ld a 89 JAN ld 5 2 89 9 21 89 59 ld ted Old 80 018 Loz 1 89 xe 0 8d Led Ga 9 zd 9 4 49 G sv szd 6 4 x S d v zd va l b Ezd cai eviezd 12 4 eld Zed 24 bed ia 1705 05 49 24 00 ov ozd Inoov LIVGS QXLI4d Odd Led 1OXL9d Lod S d vivid
6. 10MHz MC16C 26A Crystal M30260F8AG MCU Power M TP 102 Xout Thermistor yino 32kHz inen User LEDs Expansion Port User Pushbutton Switches Figure 5 1 QSK26A Board QSK26A User s Manual Rev 1 0 8 33 January 2006 431 NESAS 5 2 QSK26A Board Block Diagram The QSK26A board incorporates an M30260F8AGP 48 pin QFP from the M16C 26A group of microcontrollers designated as C101 Figure 5 2 shows the 26 block diagram 6222 522 AN1 2 P81 Reset 0 Xin XCin XCout User LEDs 1C101 U103 Red Yellow Green M30260F8AGP LED LED LED peg ps P8 0 4 P7 2 Voc Vcc 102 MCU Power Red for loc LED Measurements Figure 5 2 QSK26A Block Diagram 5 3 M16C 26A Group of MCUs The M16C 26A group of 16 bit single chip Flash microcontrollers MCU is part of the M16C Tiny family and utilizes an M16C 60 series CPU core The hardware and software manuals for the M16C 26A group of microcontrollers can be found in the C Renesas QSK26A Docs folder on your PC or from the Start menu Start Programs Renesas QSK26A Document Descriptions after QSK software installation QSK26A User s Manual Rev 1 0 9 33 January 2006 24 NESAS 5 4 QSK26A Board Jumper Configuration 5 4 1 JP1 MCU U4 Power 5 4 2 Default Jumper Settings Table 5 1 Default Jumper Settings JP102 MCU Power Measurement JP103 Oscillator S
7. Powerful Processors Easy to Use QSK26A Quick Start Kit User s Manual Rev 1 0 January 2006 44 NESAS Table of Contents 1 0 IMtrOGUCTION PEE 3 2 0 Contents of Product 4 2 1 QSK26A Quick Start Kit Item LiSt ratr sunm a eene nnne nenne nerit nnn n nne 4 epe mE 4 3 0 Limited Guarantee and nnns 5 4 9 System Gonrnectlvity cte see hanes atu 6 4 1 Host Computer Requirements 7 AD Board 15 cite tem nuu tM s 7 4 3 Software Development Tools 7 4 3 1 HEW High performance Embedded Workshop sse 7 4 3 2 NC30WA Evaluation Version C Compiler 7 4 333 HEW Debug Interface eme ad RR E ERR a ERREUR ss 7 4 3 4 FoUSB Flash over USB V Programmer enne eene 7 ARBORE 8 2 n sena etnia imita 8 9 2 26 Board Block ii a ER OUR 9 5 3 MOODA Group of MG US e iet ot AO a eae o i ait ede de 9 5 4 QSK26A Board Jumper 10 5 4 1 JP1 MCU 04 retento dere rade es nid de a ev Ped v Raid 10 5 4 2 Default Jumper Settings seirinin e thee Free de race e mare d etica 10 5 5 LCD Liquid Crystal Display 10 6 0 System Operation amp L
8. 33 January 2006 431 NESAS System Operation amp Limitations were not satisfied The common issues are listed in Table A 3 including the countermeasures Table A 3 Problem Possible Cause s and Solution After stepping a few e Changes were made to the UART1 Special Function instructions HEW cannot Registers SFRs Do not change UART1 SFRs in your stop code Breakpoints do not seem to e System is in FreeRun mode Change the RUN mode to work Sampling from the Init window Emulator System icon HEW locks up cannot stop e Changes were made to the UART1 SFRs Do not change program or Communication UART1 SFRs in your code error message is displayed e Ensure that no limitations in Section 6 were violated e Re initialize the system without closing debug session See note below Doa hardware reset User program runaway may be corrupting the kernel RAM interrupt vectors flags etc Close the debug session hit the reset button on the QSK board to reset the board then restart Download problems HEW project was not set up properly 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 the HEW User s Manual To re initialize the system without closing a debug session try the following e Click the OK button on the error dialog box to close it When an Exit dial
9. If for any reason you cannot resolve the problem further assistance is available via the following support channels 1 Online User Forums at www renesasunivsersity com 2 Digikey Technical support www digikey com click the Contact Us link 3 Renesas Technical Support Center email at techsupport renesas com A 1 Manual Installation Before connecting the QSK26A to your PC the driver files inf and sys and executables must be copied to the C Renesas FoUSB directory To do this run FoUSB Vx xx exe in the Tools FoUSB directory of the CD After the FoUSB Programmer installation assuming the default directory was used you should find C Renesas FouSB folder The Windows USB drivers be found under the USB Drivers subfolder i e fousb inf fousb sys driver files to run FOUSB Programmer usbmon inf and usbmon sys driver files to run HEW A 2 USB Driver Problems This part discusses how to fix common problems that may occur with USB driver installation The most common problem is that Windows did not properly install the USB drivers so the 26 is not recognized An indication of this problem is the QSK26A s red Power LED blinking When the driver is installed properly the red Power LED will be on solid Before trying the following steps try restarting your PC to see if this resolves the problem You can check the USB Driver status using the Windows Device Manager Start gt Control Panel gt System P
10. e g on a blank device or a device that was programmed with the FoUSB Programmer After downloading the kernel the M16C 26A is ready to download user code Connecting the QSK26A board without starting HEW will not affect the signal lines connected between the ICD MCU M37641F8 and the M16C 26A the ICD MCU keeps the signal lines in high impedance state The ICD MCU only drives the pins after HEW or the FoUSB Programmer attempts to connect After completing program debug and verification with HEW you can create an image of your code in Intel hex or Motorola mot file formats This image can be programmed into the M16C 26A using the FoUSB Programmer This procedure erases the kernel and leaves only the user program 6 2 Pin and Peripheral Limitations SIO UART1 pins are used for communication between the M16C 26A kernel the QSK26A board and the board s ICD MCU M37641F8 Do not connect these pins to any other circuit as SIO UART1 cannot be used in the user program while using the Debugger QSK26A User s Manual Rev 1 0 11 33 January 2006 44 NESAS 6 3 Memory Map The amount and locations of memory used by the kernel on the QSK26A board s M16C 26A MCU are shown in Figure 6 1 00000h 00400h SFR Area Internal RAM User RAM Area Area 2kB 1920 Bytes 0B7Fh 128 Bytes Reserved OBFFh High E W 2kB data block High E W 2kB data block Reserved User Program Area 62KB Special Page Ar
11. com click the Contact Us link 3 Renesas Technical Support Center email at techsupport renesas com QSK26A User s Manual Rev 1 0 5 33 January 2006 21 NESAS 4 0 System Connectivity The following lists the hardware and software products required for using the QSK26A Quick Start Kit Host Computer supplied by user QSK26A Board Mini USB cable Software Tools HEW IDE NC30 Compiler Linker FoUSB Programmer Mini USB Cable PC with Windows 98SE 2000 Me or XP stENESAS Figure 4 1 QSK26A System Connectivity QSK26A User s Manual Rev 1 0 6 33 January 2006 434 NESAS 4 1 Host Computer Requirements The minimum requirement to be able to use the software that comes with the QSK26A is a PC with a USB port and Microsoft Windows 98 Me 2000 or XP 4 2 QSK26A Board The QSK26A board provides an evaluation and development environment for the M16C 26A group MCUS See section 5 0 Hardware for more details 4 3 Software Development Tools The installer program installs all the development tools For details on installation see the QuickStart Guide or instructions in Appendix A of this manual A brief description of all the included tools follows Please refer to the individual tool manuals for detailed information 4 3 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 lin
12. ring oscillator Sub Clock 32 768 kHz crystal Memory RAM 2kB 1920 Bytes user available due to kernel High E W Data Block 2kB x 2 Flash ROM 62kB 63 744 Bytes Connectors J101 J104 Four 25 pin single row measurement test points connected to the MCU pins Can also be used to connect your own expansion boards via 2x25 headers 0205 Mini USB connector used for in circuit debugging and programming Jumpers JP102 MCU Power for Measurements JP 103 Oscillator Stop detection Switches S101 Pushbutton connected to P8 3 S102 Pushbutton connected to P8 2 S103 Pushbutton connected to P8 1 S104 Pushbutton connected to Reset LEDs D101 Red Run LED in circuit debugging programming activity D 102 Green Power D103 Red User output connected to P8 0 D104 Yellow User output connected to P7 4 D105 Green User output connected to P7 2 LCD 2 line x 8 character LCD with KS0066 controller IC 7 2 QSK26A Power amp Run LED Status The green Power LED D102 and the red Run LED D101 indicate operating status of the QSK26A board The board s M37641F8HP MCU that controls the In Circuit Debugging and Programming functionality of the board also controls both LEDs For the LEDs to function as per the table below it is necessary that the M37641F8HP MCU is programmed with the correct MCU Monitor Image MMI for the QSK26A Boards shipped from the factory have
13. the correct MMI loaded In case your board s MMI ever gets corrupted see Appendix B Updating the QSK26A Board s In Circuit Debugger amp Programmer Firmware for help a No Power USB cable disconnected Off Off Connected USB not enumerated driver not installed Blinking Off Connected USB enumerated On Solid Off KD30 Software Debugger running On Solid On Solid 7 3 Power Supply Requirements The QSK26A Board is powered by the USB bus It will draw about 50mA with no LEDs on QSK26A User s Manual Rev 1 0 15 33 January 2006 434 NESAS 7 4 Operating Environment Table 7 2 lists the environmental conditions for using and storing the QSK26A board Store the board in a conductive bag inside the original factory packaging Table 7 2 Operating and Storage Environments Environmental Condition Ambient Temperature Ambient Humidity Operating 0 to 55 30 to 8096 non condensing No corrosive gas allowed Storage 30 to 75 30 to 8096 non condensing No corrosive gas allowed QSK26A User s Manual Rev 1 0 16 33 January 2006 41 NESAS Appendix A Troubleshooting Guide This section discusses possible problems you may encounter while installing the development tool software USB drivers or running the HEW debugger and FoUSB Programmer applications This section also discusses the countermeasures and solutions to resolve these problems
14. Connectivity e The QSK26A board has no power Power LED of the QSK26A is off The QSK26A board s power is supplied the USB bus Check that your USB cable is not broken Check that your PC s USB port is working correctly If you connect the QSK26A a USB hub check the connectivity between the hub and your PC If you use a self powered hub check the power supply of your hub e USB was not selected on the HEW Init dialog box QSK26A User s Manual Rev 1 0 18 33 January 2006 434 NESAS Please select USB from the Init dialog box that is displayed right after you start a debug session The selected MCU on the ICD board and the actual target MCU M16C 26A do not match Close the error message by clicking on the lt OK gt button then click on the Cancel button of the Init window Make sure you select M30260F8A mcu If the MCU loaded on the ICD is different HEW will re program the ICD to match it e The target MCU is damaged Try a different target board and see if HEW will connect You may have a damaged board or MCU A 3 3 Can t Debug in HEW HEW 4 0 is the first version of HEW to integrate the M16C debug interface If you have inadvertently installed an older version of HEW you will need to uninstall it and re install HEWA A 3 4 Issues that May Arise During Debug Operations While debugging user code some issues may come up because the limitations discussed in section 6 0 QSK26A User s Manual Rev 1 0 19
15. QSK26A board back to the PC the FoUSB Programmer should show the target MCU device name you selected earlier QSK26A User s Manual Rev 1 0 22 33 January 2006 434 NESAS Appendix C Reference Manuals Description QSK26A Quick Start Guide Document that will help you get started on using the 1 QSK26A Starter Kit 2 QSK26A User s Manual This document 3 QSK26A Board Schematic Schematic diagram for the RF Sniffer and QSK boards 3 QSK26A Board BOM Bill of materials for the QSK board 5 M16C 20 60 Series C Language ANSI C language programming guide for the Programming Manual M16C 20 60 series MCUs 6 M16C 20 60 Series Assembly Assembly language programming guide for the Language Programming Manual M16C 20 60 series MCUs 7 HEW User s Manual Document that describes installation and operation of this Integrated Development Environment for Renesas Tools 8 AS30 User s Manual Guide for AS30 assembler 9 NC30 User s Manual Guide for NC30WA C compiler 10 RTA FoUSB MON User s Manual Information in circuit debugging programming NOTE The installer will copy all these manuals during installation They can be viewed using the Document Descriptions file by clicking on Start gt Programs gt Renesas gt QSK26A gt Document Descriptions QSK26A User s Manual Rev 1 0 January 2006 434 NESAS Appendix D Expansion Headers The M30260F8AGP MCU on the 26 ta
16. debugger programmer You can find detailed information on the RTA FoUSB MON and its functionality in the RTA FoUSB MON user s manual The QSK26A does have some limitations when used with the HEW software debugger and the board s ICD circuit Section 6 1 introduces the kernel ROM monitor program and its purpose The limitations when this kernel is running with the user program are listed in Table 6 1 Table 6 1 System Limitations when Debugging 6 2 Pin and Peripheral Limitations 6 3 Memory Map User Limitations 6 4 Register Operation Limitations 6 5 Limitations on Interrupts Vectors that Reside in the Hardware Vector Table 6 6 Stop or Wait Mode Limitations The kernel cannot be run in STOP or WAIT modes Do not use these Debugger Limitations modes when debugging your program 6 7 User Program s Real Time Capability 6 1 Kernel ROM Monitor Introduction During debug a small program called a kernel is uploaded to the M16C 26A M30260F8AGP MCU The kernel communicates with HEW through the ICD portion of QSK26A board regarding MCU status during user code debugging operations There are no special steps required in the user program to make use of the ICD portion The operation of the kernel is transparent to the user but there are some limitations These are discussed from section 6 2 onward After starting a debug session the ICD uploads the kernel to the M16C 26A if it does not already exist
17. e Figure E 2 PCB Bottom View QSK26A User s Manual Rev 1 0 32 33 January 2006 41 NESAS Appendix F Other Resources 1 For updates and other evaluation tools and sample programs for the QSK26A Kit see www renesasuniversity com 2 Renesas microcontroller application notes and sample programs can be viewed at Renesas Technology America s website http www renesas com QSK26A User s Manual Rev 1 0 33 33 January 2006
18. ea Flash ROM Area 64KB Fixed Vector Area 00BFFh O0F000h Note User programs must not use shaded areas OF800h 10000h F0000h Figure 6 1 M30260F8AGP 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 Register Operation Limitations Table 6 2 lists the limitations on register operation The registers are inhibited from any modification If register contents are modified in any way kernel operation cannot be guaranteed Table 6 2 Limitations on Register Operation User and Interrupt Stack Pointers RAM memory range 0B80H OBFFH is used by Register Name Restriction the kernel Do not set stacks in this area UART1 Transmit Receive Mode Register Do not change UART1 Transmit Receive Control Register 0 UART1 Transmit Receive Control Register 1 UARTI 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 QSK26A User s Manual Rev 1 0 12 33 January 2006 424 NESAS 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 5 Limitations on Interr
19. elopment tool software A real time source level debug environment is implemented using the HEW4 software debug interface in conjunction with the QSK26A board The Flash over USB FoUSB Programmer software allows in system programming of the QSK26A board s M16C 26A Flash MCU QSK26A User s Manual Rev 1 0 3 33 January 2006 21 NESAS 2 0 Contents of Product Package This section describes the contents of the QSK26A product package When unpacking your QSK26A please check to see that all items listed below are included 2 1 QSK26A Quick Start Kit Item List Table 2 1 lists the items included in the QSK26A Table 2 1 QSK26A Item List a _________ 5 RENE QSK26A Board 16 26 QSK Board with integrated in circuit and programming support 6 Mini USB Cable LL Connects QSK26A board to Host PC CD ROM Auto install program HEW IDE amp debugger NC30WA C compiler assembler and linker FoUSB Programmer USB drivers Manuals Tutorials Sample programs 2 1 1 CD ROM The CD ROM contains the electronic manuals and software necessary for developing programs Your computer must have a web browser like Mozilla Firefox Netscape Browser or Microsoft Internet Explorer to view the help files and Adobe Acrobat Reader to view the manuals Insert the enclosed CD into your computer and the installer should auto start The installer program will create C Renesas and C Works
20. er Windows 98 or XP a Copy the fousb inf and usbmon inf files from the C Renesas FoUSB USB Drivers folder to the WINDOWS INF folder b Copy the fousb sys and usbmon sys files from the C Renesas FoUSB USB Drivers folder to the WINDOWS SYSTEM32 drivers folder A 3 Debugging Problems This section discusses the causes of common problems and countermeasures to resolve them The common problems encountered with debugging are e Erratic debug behavior e Cant connect to target e Issues that may come up during debug operations e Cant debug in HEW A 3 1 Erratic Debug Behavior HEW allows you to launch multiple instances of itself However if more than one instance of HEW is open during a debug session erratic behavior can result Running the FoUSB Programmer at the same time as HEW can result in erratic debug behavior also Furthermore having more than one QSK26A board or a Renesas external ICD installed can also cause erratic problems or cause HEW to crash A 3 2 Can t Connect to Target If the message Can t connect with the target is displayed when attempting to connect there are several reasons that may have caused this message to appear Each cause and its corresponding countermeasure is discussed below e The QSK26A board is not connected correctly Unplug the QSK26A board from the USB cable Then connect the QSK26A board back to your PC s USB port via the supplied mini USB cable Please see section 4 0 System
21. gt 19 51 P44 20 50 P4 CS 20 49 na P44JCS 21 48 na P4g CS 21 47 4 55 22 46 P5y WRL WR 22 45 na P5 WRH BHE 23 44 na P5 RD 23 43 na P54 BCLK 24 42 na P5 HLDA 24 41 na P54 HOLD 25 40 na P5yALE 25 39 na P5 RDY CLKOUT QSK26A User s Manual Rev 1 0 24 33 January 2006 100 48 4103 QFP QFP MCU Function MCU Function Pin MCU MCU Pin 1 16 11 47 Vcc 1 14 9 44 Gnd 62 99 64 96 2 9 4 CNVss 2 12 7 RESET 3 97 45 P10yANo 3 95 43 P10 AN 4 94 42 10 gt gt 4 93 41 P104 ANs 5 92 40 10 5 91 39 6 90 38 P40gyANJKI 6 89 37 p107 AN Kl 7 7 3 9 7 6 2 P9 TBain 8 5 1 P9 TBoin 8 4 48 P93 DAq TB3in 9 3 na P9 DA TBain 9 2 na 95 10 1 P9Q 6 ANex1 Souta 10 100 na P9 AD rig Sina 11 22 17 8 11 21 16 P84 TA4 U 12 20 15 P8 INT 12 19 14 P8j INT 14 na 6 P86 Xcout 14 na 5 P87 Xcin 15 30 25 P7 TxD2 SDA TAoout 15 29 24 P7 RxD2 SCL TAoin TBsin 16 28 23 P72 CLKa TAtou V 16 27 22 P7 CTS RTS IN 17 26 21 P74 T A204 W 17 25 20 7 W 18 24 19 75 18 23 18 P77 TAsin 19 38 33 P6 CTS RTS 19 37 32 P64CLKo 20 36 31 P62 RxDo 20 35 30 P63 TxDo 21 34 29 P6 CTS RTS 21 33 28 P65 CLK ICLKS 22 32 27 P6 RxD 22 31 26 P67 T
22. imitations sse nennen nemen nemen 11 6 1 Kernel ROM Monitor 11 6 2 Pin and Peripheral nnns 11 6 3 Memory Map idee eet eee ele qe dee i ra ed 12 6 4 Register Operation Limitations 12 6 5 Limitations on Interrupts Vectors that Reside the Hardware Vector Table 13 6 6 Stop or Wait Mode 13 6 7 User Program s Real Time Capability Very Important Please 13 6 8 Performing Debug Using Symbols 13 QSK26A Board Specifications tete tede n ee i 15 Fi Hardware Spec fca ONS er decree i e n E Ln e 15 7 2 QSK26A Power EED Status eee tenet et eae Ge 15 7 3 Power Supply Requirements Lie ette PRI dre o Er cds pe ee 15 Operating e Mice dore 16 Appendix A Troubleshooting 17 Manual Installation tct Rn te eee ted ER EN eet 17 A2 USB Driver Problems erento D RE EY REDE el eR ree alate ae 17 Dee EE pede ppp e eret abus 18 AST Erratic Debug Behavior Renier REO uc eto e ti d e Pr eb Diane dee Eee c ERROR 18 A3 2Cant Connect to Ta
23. ker debugger and editor 4 3 2 NC30WA Evaluation Version C Compiler The evaluation version of the M3T NC30WA C compiler is provided with the same functionality as the commercial version except that link size will be restricted to 64 kBytes after 60 days from when you begin using the compiler Contact your local sales representative if you wish to purchase a full license 4 3 3 HEW Debug Interface HEW communicates with a kernel i e a ROM monitor program on the target MCU through the ICD This debug interface provides a highly efficient evaluation environment Features include Source level debugging for assembly C language Single step command unlimited breakpoints Run command with 6 breakpoints for the M16C 26A RAM monitor function C variable watch window Note The number of breakpoints will vary depending on the M16C Flash MCU used 4 3 4 FoUSB Flash over USB Programmer The Flash over USB Programmer application provides In System Programming capability for the starter kit or any target board using an M16C family Flash MCU e g R8C M16C M32C Please see the RTA FoUSB MON User s Manual for more details QSK26A User s Manual Rev 1 0 7 33 January 2006 241 NESAS 5 0 Hardware 5 1 QSK26A Board Figure 5 1 shows the QSK26A Board with major components identified Expansion Port Activity LED 8 character x Power 2 line LCD LED mum Reset Analog DENN Switch Adjust Pot
24. le the kernel is in a RUN state there is no overhead on the application code unless a RAM monitor window is open 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 this behavior is acceptable 6 8 Performing Debug Using Symbols Normally when a new project is created using HEW debugging symbols are enabled If you are unable to view the source properly during debug add the debug option 9 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 the Options pull down menu Click on the Link tab Select Output under the Category list box QSK26A User s Manual Rev 1 0 13 33 January 2006 4341 NESAS e Click on the checkbox for g Outputs source debug information e Click on the button For more information see the HEW user s manual QSK26A User s Manual Rev 1 0 14 33 January 2006 434 NESAS 7 0 QSK26A Board Specifications 7 1 Hardware Specifications Table 7 1 lists the specifications of the QSK26A Board Table 7 1 QSK26A Board Specifications Item Specification MCU M30260F8AGP Clocks Main Clock crystal 10 MHz PLL or
25. og box appears click the Cancel button to close it e Press the reset button on the QSK26A board e Click the HEW Reset icon After initialization debugging can resume However it is recommended that you download your program again before debugging QSK26A User s Manual Rev 1 0 20 33 January 2006 41 NESAS Appendix B Updating the QSK26A Board s In Circuit Debugger amp Programmer Firmware This section discusses how to update the firmware of the QSK26A board s M37641F8 MCU which is used to implement the board s in circuit debugging ICD and programming functionality Under normal circumstances you should never have to perform this update unless the ICD MCU s memory becomes accidentally corrupted The M37641F8 MCU has a boot mode that can be used to program the MCU s user Flash area The procedure to activate the boot mode to re program the Flash firmware is described in the following steps 1 Unplug the QSK26A board unit from the USB cable Locate the contact labeled BOOT on connector J103 and if not done already solder a 2 pin 2 54mm 0 100 mil jumper header into the BOOT and the adjacent VCC contact hole to the right 3 Shunt the jumper header with a 2 54mm 0 100 mil jumper thus connecting the BOOT signal to Vcc This will force the M37641F8 MCU to run in boot mode when it is powered up Figure 7 1 Boot Jumper Location 4 Plug the USB cable back in The M37641F8 MCU will now be in bo
26. ot mode and will communicate as a USB device to the PC In boot mode the M37641F8 MCU uses a different USB Driver than the In Circuit Debugger Programmer application so you will need to load another USB Driver when doing this procedure for the first time The Windows New Hardware Wizard should automatically start and guide you through the installation of the required USB driver The driver is located in C Renesas FOUSB USB Drivers 5 Open the Flash over USB program Note that the MCU device name displayed in green on the front screen will change automatically to M37641F8 without having to select that device 6 Click on the Load gt button on the right This opens a chip selection window QSK26A User s Manual Rev 1 0 21 33 January 2006 Unlocked Load Figure 7 2 Load MMI Button 7 Select the M16C Tiny Series gt M16C 26A Group gt M30260F8A part and click the button to load the selected MCU Monitor Image MMI to the ICD MCU Chip Selection x 2 24K AK 1K 8 00 30260F 44 32K 4K 1K 8 00 48K 4K 2K 4K 24K 4K TK M30263F4A 32K 4K 1K 8 00 M30263F6A 48K 4K 2K 8 00 JL 2 4K 2K 8 00 OK Help Cancel Figure 7 3 Chip Selection Window 8 Unplug the USB Cable and remove the jumper connecting the BOOT signal to Vcc Reconnect the QSK26A board to your PC with the USB cable 9 After you connect the
27. pace folders on your machine NC30WA FoUSB Programmer Documentation sample code and other QSK related files are in the C folder HEW is installed in the C Program Files NRenesas folder by default If the installer program does not start browse to the CD s root folder and double click on QSK installer exe to start the installation QSK26A User s Manual Rev 1 0 4 33 January 2006 41 NESAS 3 0 Limited Guarantee and Support Renesas Technology America Inc warrants the QSK26A to be free from component or assembly defects 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 applies 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 errors or omissions and reserves the right to make changes without prior notice Flash over USB is a trademark of Renesas Technology America Inc All other trademarks are the properties of their respective owners Support for the QSK26A kit is provided via the following channels only 1 Online User Forums at www renesasunivsersity com 2 Digikey Technical Support www digikey
28. rget Pe e ER Pe d eee ER Pe PO 18 Ago Cant Debug IMHE W em o rr E tte reped et ER OU RU o er d EM rie Md deed 19 A 3 4 Issues that May Arise During Debug Operations 19 Appendix B Updating the QSK26A Board s In Circuit Debugger amp Programmer Firmware 21 Appendix C Reference 23 Appendix D Expansion 24 Appendix E QSK26A Printed Circuit 31 Appendix Other Resources oor CI e Pep o HE erede o ende estesa Pepe fs 33 QSK26A User s Manual Rev 1 0 January 2006 434 NESAS 1 0 Introduction The QSK26A Quick Start Kit QSK is a low cost development environment for evaluating M16C 26A group microcontrollers MCU and Renesas software development tools The kit comes with a complete software development tool chain for Renesas MCUs including High performance Embedded Workshop HEW which includes Integrated Development Environment IDE Graphical User Interface GUI and Software Debugger NC30WA C compiler assembler and linker and Flash over USB FoUSB Programming software The QSK26A board features on board in circuit debugging and programming support ICD eliminating the need for an external ICD unit All that is required for in circuit debugging and programming with the QSK26A is a USB connection to a PC and the included dev
29. rget board is housed in a 48 QFP package Pin 1 of the package is identified by the number 1 on the board s top silkscreen Connectors J101 to J104 located on the long sides of the board provide access to almost all of the MCU s pins You can use J101 to J104 as test points to check MCU signals or by mounting your own headers to connect your own expansion board The silkscreen identifying the connectors is at the top of the QSK26A board The following table shows the mapping of J101 to J104 pins to MCU pins and signal names 48 100 48 9102 QFP MCU Function MCU Function Pin MCU Pin MCU 1 16 11 47 1 14 9 44 62 99 64 96 2 88 2 87 P04 Dj 3 86 na D 3 85 na P03 4 84 na 0 4 83 POs Ds 5 82 na 5 81 na D 6 80 na 1 6 79 P14 7 78 P12 7 77 13 D14 8 76 P14 D12 8 75 36 15 D INT 9 74 85 P1g 9 73 34 P1j4 D4JINTs 10 72 2 Do 10 71 2 AJ D 11 70 P2 Ao D 11 69 na P24 D3 12 68 P24 D4 12 67 na P24 Ad D 13 66 na 2 Ad B 13 65 na 2 Al D 14 63 na P3y Ay Dg 14 61 na P34 Ag 15 60 na P3 15 59 P34 A11 16 58 na P34 A12 16 57 na P35 A13 17 56 na P3g 17 55 18 54 P4o 18 53 na P44 A17 19 52 na 4
30. roperties gt Hardware gt Device Manager gt Universal Serial Bus controllers If the Renesas FoUSB 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 will need Administrator privileges to be able to install the drivers For cases where Renesas FoUSB ICD appears with a red X or yellow exclamation point in the Windows Device Manager please try the following 1 Open the Windows Device Manager Start gt Control Panel gt System Properties gt Hardware gt Device Manager Universal Serial Bus controllers Double click on Renesas FoUSB ICD A Renesas FoUSB ICD Properties dialog box appears Click on the Driver tab and click the Update Driver button Select Display a list and click the Have Disk button Browse to the C Renesas FoUSB USB Drivers directory and install the usbmon sys driver If this process does not work please follow the instructions below RON D QSK26A User s Manual Rev 1 0 17 33 January 2006 434 NESAS If you encounter problems on installing the drivers you can try the following Windows 2000 a Copy the fousb inf and usbmon inf files from the C Renesas FoUSB USB Drivers folder to the WINNT INF folder b Copy the fousb sys and usbmon sys files from the C Renesas FoUSB USB Drivers folder to the WINNT SYSTEM32 drivers fold
31. top Detection Both JP102 and JP103 are unpopulated and bypassed 00 resistors If the 00 resistors are removed and jumpers installed the default setting for both jumpers would be closed Referring to the schematics in Appendix E you can see that jumper JP102 is bypassed by R122 a 00 resistor To measure the current you need to remove R122 install a jumper header in location JP102 and measure the current into the MCU by hooking up a multi meter in DC current mode between the two header contacts After measurement place a jumper over the two contacts JP103 is bypassed also by a 00 resistor R131 By removing R131 then installing a jumper header in location JP103 and placing a jumper over the header the MCU oscillator works normally Removing the jumper will stop the oscillator This can be used to test the MCU s integrated Oscillator Stop Detection feature 5 5 LCD Liquid Crystal Display The LCD is a 2 line by 8 character display with a 50066 controller IC QSK26A User s Manual Rev 1 0 10 33 January 2006 434 NESAS 6 0 System Operation amp Limitations The QSK26A provides sophisticated on board debugging features at a low cost The QSK26A s in circuit debugging and programming circuitry ICD cannot be disconnected for use with other M16C based boards For M16C boards without on board debugging programming circuitry Renesas offers the functionally equivalent standalone RTA FoUSB MON in circuit
32. upts Vectors that Reside in the Hardware Vector Table Table 6 3 lists the limitations on hardware interrupt i e fixed vector addresses Table 6 3 Interrupt Vector Addresses Interrupt Cause 16 26 Vector Address Kit Specification 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 NOTES 1 The Watchdog Timer vector is shared with the oscillation stop and voltage detection interrupts The vector is available for oscillation stop and voltage detection interrupts but you must avoid using the vector for watchdog timer interrupts 2 The kernel transparently relocates the Reset vector to FFFD8h 6 6 Stop or Wait Mode Limitations The kernel cannot be run in STOP or WAIT modes Do not use these modes when debugging your program 6 7 User Program s Real Time Capability Very Important Please Read 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 In addition the watchdog timer will not be serviced and will likely time out if active Whi
33. xD 23 na na BOOT 23 8 na BYTE 24 16 11 47 Vcc 24 14 9 44 Gnd 62 99 64 96 25 16 11 47 Vcc 25 14 9 44 Gnd 62 99 64 96 The BOOT pin on J103 is connected to the M37641F8HP MCU that controls In Circuit Debugging and Programming If connected to the adjacent Vcc pin it forces the M37641F8HP MCU into Boot Mode to enable firmware updates QSK26A User s Manual Rev 1 0 25 33 January 2006 5 5 e Board Schematic amp Note The QSK26A board is referred to as RDECEUDK26A on the board s silkscreen The circuit board schematic and Bill Of Materials BOM are available as separate PDF documents They can be viewed via Start gt Programs gt Renesas gt QSK26A gt Board Hardware or by browsing to the folder Renesas QSK26A Docs and opening the files QSK26A RevB pdf QSK26A BOM RevB pdf QSK26A User s Manual Rev 1 0 26 33 January 2006 a oso 94 SITES on FOC eo oo5 22222 go 8 RERRLRRRRRECERETRGGGR RO 2 8 m 5 9 RERRIRRRRRECERPPRG RGRORO 5 5 B LCD101 90 Po P6 0 57 R2022 R203 10K 10K

Download Pdf Manuals

image

Related Search

Related Contents

Dataflex Combo M5 Monitor Keyboard Mount 422  EK Water Blocks EK-UNI  Velodyne Acoustics CHT-15R User's Manual      betriebsanleitung keilriemenbetriebene kompressoren  White-Westinghouse WD238B User's Manual  User`s Manual  Manual de Segurança em Laboratórios  取扱説明書  

Copyright © All rights reserved.
Failed to retrieve file