Home

RZB_CC16C_ZBK User Manual

image

Contents

1. 123 123 123 1 23 Figure 5 4 Jumper Configuration 5 7 1 CJ5 User Mode Settings CJ5 has no function on this board the H8 38024 device has no mode pins 5 7 2 CJ4 RS232 Receive Enable Only jumper CJ4 A is used on this board CJ4 B C and D are reserved CJ4 A Jumper position Function Comment 1 2 85232 Receive Disables 85232 receive signal to disable enable the use of the Flash Programming Header SKP38024 User s Manual Rev 1 0 14 33 April 2006 21 NESAS CJ4 A Jumper position Function Comment 2 3 default RS232 Receive Enables the RS232 receive signal enable The Flash Programming Header must not be used in this state SKP38024 User s Manual Rev 1 0 15 33 April 2006 41 NESAS 6 0 System Operation amp Limitations The SKP38024 provides sophisticated on board debugging features at a low cost The SKP38024 does have some limitations when used with the HEW software and E8 Debugger 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 For details on debugging H8 38024 MCUs see the E8 User s Manual and 8 38024 specifics for the E8 Debugger available from the Start menu Start gt Programs gt Renesas gt SKP38024 gt Manuals and Documents Table 6 1 System Limitations whe
2. 431 NESAS 9 5 2 v0 2 20 0 52 wr 3ovadisewnN 1591 104 sjuiodjso 133HS sasoding 104 ouvwauos 0 4 peeuuopre eor a11 3dOYN3 SWALSAS OY IN IHOV LIH W 3715 m 160 ved lt FSN G3 VIN LON 40 NO SLNIOdISAL TV 880 lt aee 180 1 980 Kaez 060 580 Std ge 80 0 K 99 oc 0 2 lt 4 3 coo aet 15 05 OSON del 6r VON J ef ON K 2 1 G cesi ehe 78 9v lv 280 541 921 o o or Or Ov K gz 691 9S lt 01 SS lt 121 9v cl Sv S d K oe oe ov lt 52905 as eed 599 wr zea er ee or FOr ei 09 59 mE ee lt sag lt or ner 9571 29 lt 8 91 19 5861 cea zia nt 05 lt 2 9 was zamn lt 8 91 Hac K c dE 9
3. 2006 28 33 SKP38024 User s Manual Rev 1 0 434 NESAS 3 9 E n z 20 0 lt 2 we E T aiva 8 epo 4 10 Sjueuodujo sesodund JILL 1995 10 g E Sesoding 104 29 An 99 sam 17008 anu OLLWWSHOS KY ot 6 ol lt gt oet c g WOGONDI gt Sev Lc m eurusx1eg xooJgelluM es 5 2 8e 2 6122 ir pee EE P 89 99 2 lt K YZ a11 0413
4. o 2 S3HO LIMS I S 8 3 M 4 THIO GIOHS3HHL 9 e or 8 id OND d Sua t e no a3 8 8 1 K ay 13588 goa m D pw B deoa s sno no 2 ergo 8 99A AS xou 9 4 2 P April 2006 29 33 SKP38024 User s Manual Rev 1 0 434 NESAS 0 0 00 20 10 92 wr AJY A8 421 pue sjepeeH Byuod pue SLL 133HS sesoding 104 ERN lavo USES acp SLL 6 6 ONS 0 WOGONDI gon DT mae 5 0 eJiusxeg fone ax e 92 1 y SWALSAS OSOIIN Y 22 in D EET ON ON g 5 bv 3215 z r eed er 3 uonsisue apoy M4 au
5. 10 5 3 8 38024 Group of MCU Stoere c du ea ei ad 10 5 4 SKP38024 Functional 10 5 4 1 Boot Reset 11 54 2 OWIChes adi 11 5 4 3 ete Lead quede del ainda tale edet tudo ates 11 5 4 4 RS232 Serial Interface 11 545 LOD nnd EL T 12 5 4 6 SKP38024 Ports d nentes ee eater d 13 5 5 Flash Programming 13 5 6 ETOT Debug Connector tite ede eter tee ve e re ra v ened 13 5 7 SKP38024 Board Jumper Configuration sese 13 95 21 625 User Mode Settings unde de BRE te needed demens 14 bi 2 0J4 89232 Receive Enable UR PLE Nee te b ecrit te rn 14 6 0 System Operation amp Limitations sss 16 6 1 Kernel ROM Monitor 16 6 2 Pim and Peripheral Limitations c eed tent ete ener ertt etr nene e beet ttr re aide 16 6 3 ineo Ene ptatem de qe Cete p DE edo En 17 6 47 l ow Power Modes teen e tet ette etii 17 0 5 limitations onInterrupts e RU Ie tt e Sedan et
6. 977 99 6 91 lt Hac gia 6t 205 lt 9 mas 58 Sac va 9 0 lt 22 ae 8 L o or 219 lt 0 lt cvi 69 MOSd lt lt pel 16 lt 5 5 lt CA 0 gr 8 25 6 ero 5492 2 lt Qer o gak g eer O ott 26 lt l e E ABE sfio Qu Qr 22 994 26 4 9 5 saw 9 Su 97 cag 4 az zt 58 9 E ir 99 195 raw lt 9 e gaa vc Su 9 zaa 5 lt oes KO o duo 5801 o z 08 lt 9 99 z 9 9 rer 295 9 z swa r 0 545 57 191 2 548 gt ava sig sac ssa 57 2 gt eter Ep s lt 29 1 lt 8 L 4 Qe MB 6 a GL 9 IX NOO 6 Qu lt Y m e dn Pio yosa lt 8 75 Sa s Oa e No 7 58646 ogg 9 19 oe lt 9
7. H IH indui uo jo eseo uj LOLA WOd cra cUm 3 6280 5 dii oon Wan D d D 2625 pue Jepeay ejqeue 2 1 SUId 4 z gt si Jepeay ysel azg J usiaxy AJinejep einbei ey Jo esn 0 8 esp jejeueo 0SINIA uo joeuuo2 JON jeuuou 91 Nid ypoig a 21 vi 9 4 or 2 8 enoo 7 ont 2 2 2 2 orl h d ar lt Ob Ob Wh egg lt 97 32 36 dac al 4 I art Y 9 06 MOT 8 74 amp grt lt 705 cod 6 294 vel oc 42 92 2 ios 2 5 dae az az coq amp 8 2 E jop art ON e ean 9 ve cce dar aae 9 ______598 ON SVH 92086 8 sro 5001 114 ON 310N a oa ON 2 0 Law 5 dv 3v Ov Vr J 82d NO Q3AV3TTH3INI 097 gasar lt 189 2 d 08 0 lt NIN i 99 AT OudQ 0S INIA 1981 8
8. Mini USB Cable 8 Debugger Figure 4 1 SKP38024 System Connectivity 4 1 Host Computer Requirements The minimum requirement to be able to use the software that comes with the SKP38024 is a PC with a USB port and Microsoft Windows 98 Me 2000 or XP 4 2 SKP38024 Board The SKP38024 board provides an evaluation and development environment for the H8 38024 group of MCUS See section 5 0 Hardware for more details SKP38024 User s Manual Rev 1 0 7 33 April 2006 431 NESAS 4 3 E8 Debugger The E8 provides a plug and play debugging and programming interface to the H8 38024 Evaluation Board via the host computer s Universal Serial Bus USB The USB port also provides power to the H8 38024 board and E8 thereby eliminating the need for an external power supply The E8 can be used also to debug code a user s target board see the E8 Emulator Notes for H8 38024 available from the Start menu Start gt All Programs gt Renesas gt SKP38024 gt Manuals and Documents 4 4 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 4 1 HEW High performance Embedded Workshop HEW provides a Graphical User Interface GUI that integrates the software
9. gt ovv 8 8 Ore zed Ko zoan V7 92 Sla g SS J led a3 2 2 2 9 v oni 92 Wee amp t 18d 2 15 02 6 ANNOYS gg 184 02 19 7 alp voe Ore 95d I SSAV SSAV 6L 8 Woe Ore 93 6d I gt o g F are Vit 294 PSP 8 09 0 5 wey 8 wre ead 91d 902 016 2 Vet Wi istam IS d ines ues o o Vib are 884 e zd 38 Sieg Ove WOE e lt ea ree 2 ema 952 g m iJ N A aku s are Kg 08d e e Ino Ai E C O geo l 2H ER 601 pun ZHINDOES 6 Wiese ee TD SSAV D lt C39 Jag 8 5159Av 09 __ 2 ZE D ig L e lp GOW 1 y en 8 25950 2050 ox Aiddns somod e snu E zx t 1280 5 19 54 a SE 1591 ZS 99A n 5 ES US38 28 d N a HbZ08 4 90H 52465 in 7X 1080 NO9 ZOSO 9 e
10. 1 this Your own code utilize the RS232 interface to communicate with PC or other terminal hardware Optional configuration settings on the board allow you to implement handshake signaling using standard port pins By default CTS and RTS are not connected to any MCU pins If you want to use hardware handshaking you have to place 00 resistors in positions CR19 CR22 and your code has to process the CTS and RTS signals in software See the schematics for details The SKP38024 5232 interface conforms to Data Communication Equipment DCE format allowing the use of 1 1 cables when connected to Data Terminal Equipment DTE such as a PC The cable used to connect to the SKP38024 will affect the available board options A fully wired cable can allow handshaking between the microcontroller and the host PC subject to setting the board options and the availability of suitable host software Handshaking is not supported as standard on the microcontroller so normally a minimal three wire cable can be used The minimum connections are shaded in the following table Table 5 2 RS232 Interface Connections No connection No connection T EU X Rx No connection Ground No connection No connection Figure 5 3 DB9 Connector Pinout 5 4 5 LCD The supplied LCD is a Varitronix VI 422 DPRC direct drive 4 digits The two common pins and the colon symbol of the VI 422 LCD are connected to
11. 8 V1 81 or 2 iz a 02 59 gt 721 3 284 ani ud Ws 5 8 _____684 2 Sort 0 6 8 10 1 8 2 Doan ab ar Sri gt tv daz ted 0 99 10 1 S ori gt 024 7g oz Hdg oy 0 2 10 1 2 1 544 92 Sz st i orl dd 194 gg or suonisod oj j0euuo E razl ve 9c ac a u add 0d e fe qu 299 2999 3c 0 99 gy oe Pd vej oc ae dar 942 Md 1008 Sri ay ov 8 299 gy xx 18 ve 1 28 ari gt gt lt 5 04 Oaar 9 6d 7 _ Sy art gt ccd d 8r RAE vad lt et 10 1008 195 ole ooa ara 99 Le of v 1006 que LOO Md 1008195 lt 1008 orl gt dn Ov lt 284 8 ron LE 1008 1 6 ioo 2 or oaw 1008 Or lt SN 1008 9 April 2006 30 33 SKP38024 User s Manual Rev 1 0 2006 31 33
12. Wee ed 195 642 22 94 vid z 9 gud mm a u Eid 184 18d og 18d Cat 82 19d 99d Lz 91 s 91 189 1517094 98d l 98d 9 99 52 99 8 Sad i 87 S d 7 9d 29 ez lt ap lt gz 08 18d n _ 6 Has e 9 vid m 2 pde ZZ 194 094 12 NER are Gm 809 or 589 ra A very o gt i lK 97 5 lide vy are lt td oga 4 189 9 9 gud 6 4 8 58 g 2 2 2 v4 a 2 4 ze L 08d 194 eh yy ver o TISON 255050556 27 aby are lt 20 Zi TON WE RN TETA lt r erd Mera Et Nid S31 89 6 6 gt 45 6 2 Se v 80 391430 Stud 62 dez are 5 551 04 5 Gez voy ore d 68 5948 SC Vet ore Koos 99d 41455 28 1009 jeuuou Ore Vit PS Q 8 ra ped ar wre lt 255 2 gt t9d SEd 45 UE 86 Ory Ore Vit e Z9d 10134 OXY Bic T ae e XOS eed 42
13. oor rosa 05599 7 5992 Tron IIM Sjuiodise Jopeay 22254 uonoefu jewod 121 99A 1S9 1 uoisuedx3 9 E 4 SKP38024 User s Manual Rev 1 0 434 NESAS it Board I Cul Appendix E SKP38024 Printed C Josseo2oJdoJol A sesouoM cr paaaagaaaaaad ed q 6 Ed Say HEB 1981 HSV J aa11008 O ous 2006 32 33 SKP38024 User s Manual Rev 1 0 24 NESAS Appendix F Other Resources 1 For updates and other evaluation tools and sample programs for the SKP38024 Kit see http www renesas com skp 2 Renesas microcontroller application notes and sample programs can be viewed at Renesas Technology America s website http www renesas com SKP38024 User s Manual Rev 1 0 33 33 April 2006
14. Powerful Processors Easy to Use SKP38024 StarterKit Plus User s Manual Rev 1 0 April 2006 44 NESAS Table of Contents 1O Ith OCU CON 4 2 0 Contents 5 2 1 SKP38024 QuickStart Kit Item 15 5 5 3 0 Limited Guarantee and 6 4 0 System Gonrnectvilty hero ce ede te end ke 7 4 1 Host Computer 0210020000 0 enne nem 7 4 2 SKP939024 Board ie eee eee ete etu eir e P a EP n ERU 7 4 3 ES Debugger o aret et eit teen p ate 8 4 4 Software Development 0 8 4 4 1 HEW High performance Embedded 8 4 4 2 H8S H8 300 Evaluation Version C 8 44 3 HEW Debug Interface o aea aite 8 4 4 4 Renesas ens 8 4 4 5 Documentation Sample Projects and Project Generators 8 5 0 Hardware E E et iA Eae A Ld t 9 941939024 Board utet meni Dum eme ave M n mid 9 5 2 SKP38024 Board Block
15. the countermeasures Table A 2 Problem Possible Cause s and Solution After stepping stack has over run or restricted memory areas were instructions HEW cannot accessed Check your code stop or locks up HEW locks up cannot stop Ensure no limitations as discussed in Section 6 were program or Communication violated error message is displayed Doa hardware reset User program runaway may be corrupting the kernel RAM interrupt vectors flags etc Close debug session check your code then restart e User program enables watchdog timer Close debug session remove watchdog code in source files recompile and restart the debug session 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 Note Please see the E8 user s manual for troubleshooting potential problems with the E8 Debugger SKP38024 User s Manual Rev 1 0 23 33 April 2006 434 NESAS Appendix B Reference Manuals Description SKP38024 QuickStart Guide Document that will help you get started on using the 1 SKP38024 Starter Kit 2 SKP38024 User s Manual This document 3 SKP38024 Circuit Schematic Schematic diagram for SKP board 4 H8 300L Software Manual Instruction set for the H8 3
16. 1 8 o 4 22 20 sol lt gt sesodund noke 5 Nd 16201 vor bat 10 syuiodyse L 5 8 8 4 0 55 30 0295 52 66 5 9201 cola EE UNN MS 0 5 du amp E 20 3m 0 S19 SLY Jo uraasn a T P v k E O1 LHO 9 H pue 742 ANG 031 ev Eira d EE oar l55 g 2r jeues 9907 012242 6 40 0240 19 Sui Lo S SNI 0 g 8 88 Ol 5 g EEE meom Tzu EEE FE gegen 1 RR p 2 29 09 Ol i S BRE aNnouo 2499 l fal 031 uo sindino 2970 a 8 A 7 K vr 01 1 9296 x 3 uaasn on 9 9 S K4 i s 008 83 pagio 92 lanaj thE Rom SE MS r SZ 4L QNO or n 1008 UINN MS 8 6 97 INN MS v T ds T3538 i MmaploHpzns ONnouo o b zmso 5 d J
17. 16 P53 SEG 7 17 P54 SEGs 8 18 P54JSEGs 9 19 P5g SEG 10 20 P5 SEGs 11 21 P6y SEGs 12 22 P6 SEG1o 13 23 P6 SEG4 14 24 P64 SEG 15 25 P6 SEG 3 16 26 P6JSEG 44 17 27 6 5 5 18 28 P6 SEG s 19 29 P7ySEG 1 20 30 P74 SEG ia 21 31 P7 SEGi9 22 32 P73 SEG20 23 33 7 5 24 34 5 25 35 7 5 3 26 36 P77 SEGo 4 27 37 P8 o SEGo5 28 38 8 5 29 39 P8 j SEG2 30 40 P84 SEG s 31 41 8 5 32 42 8 33 43 P8 SEG3 34 44 P8 SEG 35 45 36 46 37 47 38 48 PA COM 39 NC No connect 40 NC No connect SKP38024 User s Manual Rev 1 0 26 33 April 2006 434 NESAS Appendix D Board Schematic The circuit board schematics are available as a separate PDF document It can be viewed Start gt Programs gt Renesas gt SKP38024 gt Manuals and Documents or by browsing to the folder C Renesas SKP38024 Docs and opening the file sch SKP38024 pdf SKP38024 User s Manual Rev 1 0 27 33 2006 434 NESAS 3 S d 0 2 20 10 52 we 1 NOILdO NOILYN
18. COM1 of the LCD controller SKP38024 User s Manual Rev 1 0 12 33 April 2006 1 An alternative LCD footprint is available on the SKP38024 board for a VIM 503 DP RC LV LCD 3 way multiplexed 4 5 digit To allow the use of 4 way multiplexed LCDs that require four common pins 4 from the H8 38024F is routed to pin 16 on the VIM 503 footprint which is a no connect for this LCD The following are sample LCD controller register settings Table 5 3 LCD Register Settings OR with 08h VI 422 Static duty cycles COM1 used all ports are LCD segment I Os OR with 88h VIM 1 3 duty cycle COM1 3 used all ports are LCD segment 503 could use spares as port pins if configured accordingl LCR OR with FCh Turn on LCD supply cont driver amp display RAM data clock 7 sys 32 LCR2 AND with CKSTPR2 OR with 01h Clear LCD module standby mode in module stop register 5 4 6 SKP38024 I O Ports All of the H8 38024 MCU s pins are accessible via expansion headers J1 and J2 See Appendix Expansion Headers for details If you reconfigure the SKP38024 I O ports pull up resistors may be required for proper operation in some configurations When you connect external analog signals to the SKP38024 make sure that you also connect the MCU s analog voltage supply and reference pins to the appropriate voltage levels AGND and AVcc are by default connected to digital Vcc and GND via removable 00 resis
19. SWALSAS OY IN IHOVLIH Ezg VIE san pe Bee SON D 8 1008 7 vee S v 9 Ww 325 s AN 2 1 OXLd 5 02 89 ace ON 1 or 204 1008 oan as y ae e 0 AL z K vee 2 MOSd a C Z 1008 N32 nn Sih 5960 555 lt seyddng 25222 92899 6 5 uso 28554 vno 556 8 OO 0 9 20 siutodise 8 GWLOOg 5 64224 jeues pue Bupjeuspueu uod jenas 104 NE v ee E ui 1 404 peddemg pu w duos DE lt det D j 519 pap 2 5 erao sio mh s eubig 6 15 56 amp 9101 BET 5031 s os 9b 99A foots SL 82 Lease OOAQE99A us NOLLO3NNOO lt I 9995 MS 6 0201 a2 ED inoj 5 m gov rk ij 1 relied at INN 1008 8 ez ve Sp enia anora 5 cee ct Sel Ve v Qr e aez moos ws ze iD L008
20. development tools and includes the C compiler assembler linker debugger and editor 4 4 2 H8S H8 300 Evaluation Version C Compiler The evaluation version of the H8S H8 300 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 4 3 HEW Debug Interface HEW communicates with a kernel i e a ROM monitor program on the target MCU through the E8 Debugger This debug interface provides a highly efficient evaluation environment Features include Source level debugging for assembly and C language Source editing in debug window Single step command 2 hardware breakpoints events 1 address and 1 data breakpoint Up to 255 software breakpoints C variable watch window The number of breakpoints will vary depending on the Flash MCU used 4 4 4 Renesas AutoUpdater Included with HEW 4 0 and later is the Renesas AutoUpdater utility This utility can be configured to search our website or your server automatically for updates of the Renesas tools installed on your PC 4 4 5 Documentation Sample Projects and Project Generators The SKP includes a full set of user documentation sample projects and project generators a project generator is a template to create a project for a specifi
21. that your USB cable is not broken Check your PC s USB port is working correctly If you connect the E8 via 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 The selected MCU kernel image loaded in the E8 Debugger and the actual target MCU H8 38024 do not match Close the error message by clicking on the OK button then click on the Cancel button of the Init window Re connect to the E8 you may need to disconnect first Make sure you select H8 38024F If the MCU kernel image loaded on the 8 is different HEW will re program the 8 Debugger to match it The target MCU is damaged Try a different target board and see if HEW will connect You may have a damaged board or MCU System Seems to lock up at Connecting Occasionally HEW cannot proceed past the Connecting window This typically is due to a bad connection to the target or selecting the wrong target MCU HEW will time out eventually but if you do not wish to wait hit Ctrl Alt Del keys and cancel HEW 2 3 Issues May Arise During Debug Operations While debugging user code some issues may come up because the limitations discussed in section 6 0 SKP38024 User s Manual Rev 1 0 22 33 April 2006 431 NESAS System Operation amp Limitations were not satisfied The common issues are listed in Table A 2 including
22. to run Therefore interrupts may not be serviced properly In addition the watchdog timer will not be serviced and likely will time out if active While the kernel is in a RUN state there is no overhead on the application code unless you initiate the Refresh command in the Memory window 6 8 Watchdog Timer When the E8 Debugger is activated the watchdog timer is disabled The user program should not enable the watchdog function SKP38024 User s Manual Rev 1 0 18 33 April 2006 434 NESAS 7 0 SKP38024 Board Specifications 7 1 Hardware Specifications Table 7 1 lists the specifications of the SKP38024 Board Table 7 1 SKP38024 Board Specifications Item Specification MCU HD64F 38024 Clocks Main Clock crystal 9 8304 MHz or on chip oscillator Sub Clock 32 768 kHz crystal Memory RAM 1kB Flash ROM 32kB Connectors CJ1 Power Supply Connector optional 5V DC CJ2 9 pin Sub D RS232 connector CJ3 14 pin connector for Flash Programming J3 14 pin connector for E8 Debugger J1 J2 20 pin dual row headers for user target connection Jumpers CJ4 A RS232 Rx enable disable CJ4 B C D no function CJ5 no function Switches CSW1 NMI Switch no function as H8 38024 has no NMI pin CSW2 Reset Switch CSW3 Boot Switch LEDs CLED1 Red Boot Mode Activated CLED2 Red Power LED CLED3 Red User1 CLED4 Red User2 LCD LCD 1 Varitronix VI 422 DPRC 4 digits d
23. 00L series CPU cores 5 8 38024 Operation and Specifications for the H8 38024 MCU 6 E8 User s Manual E8 Debugger Manual 7 H8 38024 specifics for the E8 E8 Debugger information specific to the H8 38024 Debugger 8 HEW 4 0 User s Manual Document that describes installation and operation of this Integrated Development Environment for Renesas Tools NOTE The installer will copy all these manuals during installation They can be viewed using the Document Descriptions file by clicking on Start gt All Programs gt Renesas gt SKP38024 gt All Manuals and Documents SKP38024 User s Manual Rev 1 0 24 33 April 2006 434 NESAS Appendix C Expansion Headers The HD64F38024 MCU on the SKP38024 target board is housed an 80 pin package The location of Pin 1 is identified by a white arrow on the PCB s silkscreen Connectors J1 and J2 provide access to all of the MCU s pins Commonly available 2 54mm 0 100 inch pitch male double row headers with 0 635mm 0 025 inch square posts are used You can use J1 and J2 as test points to check MCU signals or to connect your own expansion board The silkscreen identifying the connectors is at the top of the SKP38024 board The PCB s silkscreen for the J1 and J2 connectors shows the corresponding pin number of the MCU The following table shows the mapping of J1 and J2 pins to MCU pins and signal names using sequential numbering for the head
24. 06 434 NESAS Appendix D Board Schematic o n itt t he ttti e ER rebua Appendix E SKP38024 Printed Circuit Appendix F Othe ResoUrGCes i uo ete otro th elitse tei SKP38024 User s Manual Rev 1 0 3 33 April 2006 434 NESAS 1 0 Introduction The SKP38024 StarterKit Plus SKP is a low cost development environment for evaluating Renesas software development tools and the H8 38024 group which is part of the H8 300L High Speed series of microcontrollers Micro controller units MCU of the H8 38024 group are equipped with a LCD Liquid Crystal Display controller driver 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 85 8 300 C compiler assembler and linker and the E8 In Circuit Debugger ICD A real time source level debug environment is implemented using the software debug interface in conjunction with the E8 ICD hardware The E8 also allows for programming H8 300 devices within HEW The E8 and firmware provide a convenient USB Universal Serial Bus interface between the SKP38024 board and the host PC This interface reduces resource requirements on the H8 38024 MCU allows faster code downloads and can be use
25. RE HU Yes dti E HR Y LN dee dre aded Ee PREDA 17 6 6 Sleep l struction Eimitatlons iii tete ettet e 18 6 7 User Program s Real Time Capability seem 18 6 8 Watchdog Time riz Dea do RECO E ER DOE TE ER EO DOE Ere 18 7 0 SKP38024 Board 19 7 1 Hardware a nennen tenen nnne 19 7 2 Power Supply Requirements 19 7 9 Operating Environment e ictor tna rd Ile ERR e d Lr ER Perte ERE REED 20 Appendix A Troubleshooting 21 AT USB Driver Problems 21 A 2 Debugging Problems gee natn een se 21 2 1 Erratic Debug Behavior t rer e 21 2 2 Cant Connect to Target b e e 22 A 2 3 Issues that Arise During Debug 22 Appendix B Reference 24 Appendix C Expansion 25 SKP38024 User s Manual Rev 1 0 April 20
26. SDISNOO S31VOIONI silva LON OG SJepeoH Buipniou 4 Aginosig 9 SLL 13865 kE Ul Sesoding 104 ca Sm m JILL g WOGSNDI GALINA MI Jar 24 0 jou feu g peeuueprejy Med Syueuiembe IYIN pesn a11 SWALSAS OMSODIIN IHOV LIH LOLA t INN 3215 AS HSV1d v lt aez di pala suid Aiddns 6 6p SUld yore lt 8 S514 zs or 527 See sy 92 7 Ci eron 2 os Zed 5 ore o Wd 9 20 Were 85 6 ee 5 87 dentes E 284 ee 98d 09 amp n Md 6S a 68 984 ved 1 raan sc 19 hee vr 9 85 Or 684 ee 6 z z zaan goc lt 98d 7 is 6d 5 Ted z 089 99 52 ved 99 pest 26d fos zeae 257 52 944 9 89 Zed ez 19 ope
27. c target After installing the CD the sample projects be found the Renesas SKP38024 sample_code folder Documentation can be browsed by using the Manual Navigator from the Start menu Start gt All Programs gt Renesas gt SKP38024 gt All Manuals and Documents SKP38024 User s Manual Rev 1 0 8 33 April 2006 241 NESAS 5 0 Hardware 5 1 SKP38024 Board Figure 5 1 shows the SKP38024 Board with major components identified 32kHz Header with MCU MCU Crystal Signals HD64F38024H Power Comer 9 Boot LED Power LED USR LEDs 4 digit direct drive LCD lt 1 DBS us jun tive Connector a mmm E8 Debugger 9 8304MHz Header with MCU Connector Crystal Signals we 054 Figure 5 1 SKP38024 Board SKP38024 User s Manual Rev 1 0 9 33 April 2006 434 NESAS 5 2 SKP38024 Board Block Diagram The SKP38024 board incorporates an HD64F38024 H8 38024 in an 80 pin QFP package from the H8 38024 group of microcontrollers designated as U1 Figure 5 2 shows the SKP38024 block diagram e RS232 Reset Boot NMI P3 1 cue 32 Control RES CU3 RS232 Transceiver HD64F 38024H MCU Red ELED LCD1 4 digit direct dive LCD VI 422 DPRC Red ELED P3 LED usn Eje 594 Voc Red r J1 J2 3 LED powe
28. d with many other Renesas Flash MCUs SKPs and user target boards SKP38024 User s Manual Rev 1 0 4 33 April 2006 434 NESAS 2 0 Contents of Product Package This section describes the contents of the SKP38024 product package When unpacking your SKP38024 please check to see that all items listed below are included 2 1 SKP38024 QuickStart Kit Item List Table 2 1 lists the items included in the SKP38024 Table 2 1 SKP38024 Item List Quantity Remarks SKP38024 Board 1 8 38024 5 E8 HEW Debugger USB Programmer Interface Device includes 14 pin ribbon cable 6 Mini USB Cable Connects E8 Debugger to Host PC SKP CD ROM Auto install program HEW IDE amp debugger H8S H8 300 C compiler assembler and linker USB drivers Manuals Tutorials Sample programs ene a for the first time with the kit 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 Microsoft Internet Explorer to view the help files and Adobe Acrobat Reader to view the manuals Insert the enclosed CD into your computer the installer should auto start The installer program will create C Renesas and C Workspace folders on your machine Documentation sample code and other SKP related files are in the folder i
29. ers Pin 1 is indicated by an arrow on the silkscreen 80 MCU MCU Function Board Function J1 80 QFP MCU Pin MCU Function Board _ Function 1 9 OSC 5 2 3 7 CON X2 5 5 P1 7 3 P1 DCTS 9 1 11 79 13 77 15 75 17 73 PBo 19 71 P4 TxD 21 69 P4 SCK 23 67 P36 25 65 P3 27 63 ULED2 29 61 31 59 95 NMI from Debug connector 33 57 P93 35 55 P9 37 53 GND 39 NC No connect 2 10 OSC CON_OSC1 4 8 AV 55 CON_AVSS 6 6 1 8 4 16 10 2 P13 DRTS 12 80 14 78 PBs 16 76 18 74 20 72 4 22 70 P4 RxD 24 68 P3 26 66 P35 28 64 P33 30 62 P3 ULED1 32 60 IRQAEC 34 58 P9 36 56 P9 38 54 PQ 40 52 Vcc these signals there is no direct connection from the header to the MCU pin Use of these signals requires the placement of a 00 resistor on the PCB and the removal of certain components on the board See the schematics for details SKP38024 User s Manual Rev 1 0 25 33 April 2006 MCU MCU Function MCU Function 1 NC No connect 2 12 RES 3 13 P5ySEG 4 14 P5 SEG 5 15 P5 SEG3 6
30. f this resolves the problem You can check the USB Driver status using the Windows Device Manager Start gt Control Panel gt System Properties gt Hardware gt Device Manager gt Universal Serial Bus controllers Expand the Renesas Emulator entry and if the Renesas E Series USB Driver appears with no red X or yellow exclamation point the driver was installed properly NOTE You will need Administrator privileges to be able to install the drivers For cases where Renesas E Series USB Driver 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 gt Universal Serial Bus controllers 2 Click on Renesas Emulator and double click on Renesas E Series USB Driver a properties dialog box appears 3 Click on the Driver tab and click the lt Update Driver gt button 4 Select Display a list and click on the lt Have Disk gt button 5 Browse to the Windows systems32 Drivers directory and install the Elusb sys driver A 2 Debugging Problems This section discusses the causes of common problems and countermeasures to resolve them The common problems encountered with debugging are Erratic debug behavior Can t connect to target Issues that may come up during debug operations Can t debug in HEW A 2 1 Erratic Debug Behavi
31. iggers the Boot Reset Controller to generate the necessary signaling to switch the microcontroller into Boot Mode In Boot Mode the MCU s Flash memory can be programmed via the serial port with the Flash Development Toolkit FDT software not included with this kit When using the included E8 Debugger to program the Flash no user intervention is required to put the MCU into Boot Mode NMI Switch The NMI switch CSW1 has no function on this board the H8 38024 MCU does not have an NMI pin 5 4 3 LEDs The SKP38024 has four red LEDs The function of each LED is marked clearly on the silkscreen of the PCB Please refer to the board layout diagram in Appendix D for position information When the board is connected to a power source the Power PWR LED will illuminate The Boot Mode indication LED will illuminate when the microcontroller has been placed into Boot Mode by pressing the Boot Mode switch Two LEDs dedicated for user control are marked USR1 and USR2 Each LED will illuminate when the port pin is in a logical high state The user LEDs are controlled by the following pins Table 5 1 LED Pin Connections USR1 P3 1 MOFL USR2 P3 2 MOFH 5 4 4 RS232 Serial Interface The serial RS232 transceiver is connected to the MCU s on chip UART It is used to program the board s on chip Flash memory via a PC s serial port using the FDT software not included with SKP38024 User s Manual Rev 1 0 11 33 April 2006
32. irect drive 7 2 Power Supply Requirements The SKP38024 board can be powered with an optional 5V DC power supply whose input voltage is converted by the board s voltage regulator down to 3 3V to supply the rest of the board Power to the board also can be supplied by the E8 Debugger which itself is powered via the USB bus In this case no external power supply is required The E8 Debugger s output voltage is user selectable to either 5V DC or 3 3V DC With the SKP38024 board in its default configuration a voltage of 3 3V must be used Using the E8 Debugger to power the board is recommended only as long as you do not connect any additional circuitry to the board The H8 38024 MCU operates over a wide voltage supply range from 2 7V to 5 5V The board can be reconfigured to run in a mixed voltage mode that allows the MCU and some components to run at 5V DC while some other board components continue to run at 3 3V DC Supply the MCU with 5V if you intend to replace crystal X1 to run at a faster clock speed than the default 9 8304 MHz Clock speeds above 10 MHz require a supply voltage gt 4 5 To configure the board for mixed voltage mode remove 00 resistor R3 and place 00 resistor in position R2 Note with that configuration the output voltage of the power supply connected to the board s power connector is applied directly to the MCU Therefore it is important that this voltage comes from a regulated and stable 5V DC
33. n Debugging Please Refer 6 2 Pin and Peripheral Limitations 6 3 Memory Map 6 4 Low Power Modes 6 5 Limitations on Interrupts 6 6 Sleep Instruction 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 User Limitations 6 1 Kernel ROM Monitor Introduction During debug a small program called a kernel is uploaded to the H8 38024 MCU The kernel communicates with HEW through the E8 Debugger regarding MCU status during user code debugging operations There are no special steps required in the user program to make use of the E8 you only need to select the Download emulator firmware option when HEW attempts to connect to the MCU 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 HEW debug session the E8 uploads the kernel to the H8 38024 if it does not already exist e g on a blank device After downloading the kernel the H8 38024 is ready to download user code Connecting the E8 Debugger without starting HEW will not affect the signal lines connected between the E8 and the H8 38024 the E8 keeps the signal lines in a high impedance state The E8 Debugger only drives the pins after HEW FDT attempts to connect After completing program debug and verification
34. or When using hardware breakpoints program execution stops after executing the assembler instruction on which the breakpoint is set As a result C watch variables may not update as expected If the break occurs on a branch instruction program execution may stop far from the location where the actual breakpoint is set If this behavior causes you problems we recommend that you use software breakpoints Software breakpoints break before executing the instruction on which the breakpoint is set SKP38024 User s Manual Rev 1 0 21 33 April 2006 41 NESAS 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 FDT Programmer software at the same time as HEW can result in erratic debug behavior also A 2 2 Can t Connect to Target If the message Can t connect with the target or Boot failed is displayed when attempting to connect there are several reasons that may have caused the message to appear Each cause and its corresponding countermeasure is discussed below The SKP38024 board is not connected correctly Check the connection between the E8 Debugger the PC and the SKP38024 board Please see section 4 0 System Connectivity The E8 Debugger has no power ACT LED of E8 is off Ensure that the Mode switch under the cover on the E8 is in the 1 position The E8 s power is supplied the USB bus Check
35. pprax 2BkBytes Debugger amp FFFh 7000h 7FFFh Note User programs must not access shaded areas ory Map with Note E8 uses a two word stack pointer for values stored on a user program break Therefore the stack area needs to be 4 bytes larger than what the user program requires 6 4 Low Power Modes During a user program break the CPU operating frequency is forced to the system clock for high speed operation It is recommended that for accurate low power evaluation you download your application code without the debug kernel use the Flash memory writing option and evaluate it without the debugger requires optional 5 Volt DC power supply 6 5 Limitations on Interrupts During full featured debugging the E8 Debugger uses the NMI interrupt and therefore this interrupt vector is unavailable Any attempts to write to the NMI interrupt vector are ignored and if you select Debug gt Verify Memory HEW will report a verify error SKP38024 User s Manual Rev 1 0 17 33 April 2006 434 NESAS 6 6 Sleep Instruction Limitations When the interrupt mask bit I in the condition code register CCR is 1 do not perform step execution of the SLEEP instruction If step execution of the SLEEP instruction is performed and not finished correctly disconnect and restart the E8 6 7 User Program s Real Time Capability While the kernel is in a STOP state the hardware peripherals will continue
36. r Headers Debug Header Figure 5 2 SKP38024 Block Diagram 5 3 H8 38024 Group of MCUs The H8 38024 group of 16 bit single chip Flash microcontrollers MCU is part of the H8 300L High Speed Family The hardware and software manuals for the H8 38024 group of microcontrollers can be found in C Renesas SKP38024 Docs folder on your PC or from Start menu Start gt All Programs gt Renesas gt SKP38024 gt All Manuals and Documents after SKP software installation 5 4 SKP38024 Functional Blocks The SKP38024 board s main components include an H8 38024 single chip microcontroller a Boot Reset controller RS232 serial port and a four digit direct drive LCD SKP38024 User s Manual Rev 1 0 10 33 April 2006 1 5 4 1 Boot Reset Controller The Boot Reset controller CU6 contains the decoding necessary to place the SKP38024 board into Boot mode and to reset the MCU with a timed pulse CU6 also acts as input for the three pushbuttons Reset Boot and NMI It controls the status of the Boot LED and inverts the pin signals P3_1 and P3_2 coming from the MCU to control the User LEDs USR1 and USR2 5 4 2 Switches The SKP38024 provides three pushbuttons to control the operation of the board Each button is marked clearly on the PCB s silkscreen Reset Switch Pressing this button CSW2 applies a timed reset pulse of at least 250ms to the microcontroller Boot Switch Pressing the Boot Switch CSW3 tr
37. s installed the C Program Files Renesas folder by default If the installer program does not start automatically browse to the CD s root folder and double click on SKP Installer exe to start the installation SKP38024 User s Manual Rev 1 0 5 33 April 2006 434 NESAS 3 0 Limited Guarantee and Support Renesas Technology America Inc warrants the SKP38024 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 SKP38024 User s Manual Rev 1 0 6 33 April 2006 21 NESAS 4 0 System Connectivity The following hardware and software products are required to use the SKP38024 QuickStart Kit Host Computer supplied by user SKP38024 Board E8 Debugger Target Cable Mini USB cable Software Tools HEW IDE Compiler Linker installed on host computer SKP38024 Board PC with Windows 9 20000r XP
38. source See the schematics for more detail SKP38024 User s Manual Rev 1 0 19 33 April 2006 434 NESAS 7 3 Operating Environment Table 7 2 lists the environmental conditions for using and storing the SKP38024 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 C 30 to 80 non condensing No corrosive gas allowed Storage 30 to 75 C 30 to 80 non condensing No corrosive gas allowed SKP38024 User s Manual Rev 1 0 20 33 April 2006 434 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 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 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 E8 Debugger is not recognized In this case Windows Device Manager may indicate that the Renesas Emulator device is not working properly Before trying the following steps try restarting your PC to see i
39. tors R10 and R13 removing R10 and R13 and installing OO resistors in locations R9 and R12 you can apply an analog supply voltage different from the digital supply via the expansion header 5 5 Flash Programming Connector The Flash Programming Header CJ3 is for use with legacy programming tools Do not connect your E8 debugger to this connector 5 6 E10T Debug Connector Connector J3 labeled E10T on PCB s silkscreen is for connecting the 8 In Circuit Debugger Programmer that is included with your Starter Kit See Figure 4 1 SKP38024 System Connectivity 5 7 SKP38024 Board Jumper Configuration The SKP38024 has a number of configuration settings set by jumpers CJ4 A B C D CJ5 A B C D 00 links Common SKP38024 functions can be set using the jumpers as described in sections 5 7 1 and 5 7 2 Zero ohm links provide additional features that may be required to interface with other systems All the Jumper link settings are three pin options There are four sets of options on each header SKP38024 User s Manual Rev 1 0 13 33 April 2006 21 NESAS The headers are numbered from 1 to 12 with pin 1 marked on the PCB by an arrow The diagram below shows the numbering of these jumper links and indicates jumpers fitted in position 1 2 for each three pin jumper BOOTLED E PowerLED E Useri LED LED Renesas Microcontroller LCD1 osc E10T J2
40. 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 H8 38024 by disconnecting the E8 then reconnecting using the Flash memory writing option This procedure erases the kernel and leaves only the user program 6 2 Pin and Peripheral Limitations Although the MCU can use the on chip oscillator while debugging a clock signal must be connected to the OSC1 pins when the E8 Debugger is connected i e do not remove X1 Pins P33 to P35 and 9 are dedicated to debugging Do not connect these pins to any other circuit For details see the H8 38024 specifics for the E8 Debugger available from the Start menu Start gt All Programs gt Renesas gt SKP38024 gt All Manuals and Documents FDT is a Renesas MCU Flash erase write program not supplied with this kit SKP38024 User s Manual Rev 1 0 16 33 April 2006 21 NESAS 6 3 Memory Map The amount and locations of memory used by the kernel on the SKP38024 board s H8 38024MCU are shown in Figure 6 1 0000h 7FFFh 80D h Unpopulated Internal VO Registers 2 FO2Ch Unpopulated F 3Fh LCD RAM 16 bytes F74Fh FF50h Unpopulated F77Fh F780h Flash work area amp Leer work area FB7Fh Internal TkByte FF7Fh FF80h Internal FFFFh VO Registers Vector Area 0028h O02 Ah User Flash a

Download Pdf Manuals

image

Related Search

Related Contents

Boletim Oficial n.º 11/2015  Samsung SV-C471 User Manual  deutsch - HSM + Co. KG  MIOLO Manual Fachesf Final.cdr  Chapter 2 System and Network Setup    ひこぼしくんの着ぐるみ貸出しについて(注意事項など) 着ぐるみを使用  Samsung M187MN คู่มือการใช้งาน  Acer AT2326ML Owner's Manual  

Copyright © All rights reserved.
Failed to retrieve file