| The Datasheet Archive - 100 Million Datasheets from 7500 Manufacturers. |
Cautions Keep safety first your circuit designs! Renesas Technolo
Top Searches for this datasheetCautions Keep safety first your circuit designs! Renesas Technology Corporation puts maximum effort into making semiconductor products better more reliable, there always possibility that trouble occur with them. Trouble with semiconductors lead personal injury, fire property damage. Remember give consideration safety when making your circuit designs, with appropriate measures such placement substitutive, auxiliary circuits, (ii) nonflammable material (iii) prevention against malfunction mishap. Notes regarding these materials These materials intended reference assist customers selection Renesas Technology Corporation product best suited customer's application; they convey license under intellectual property rights, other rights, belonging Renesas Technology Corporation third party. Renesas Technology Corporation assumes responsibility damage, infringement third-party's rights, originating product data, diagrams, charts, programs, algorithms, circuit application examples contained these materials. information contained these materials, including product data, diagrams, charts, programs algorithms represents information products time publication these materials, subject change Renesas Technology Corporation without notice product improvements other reasons. therefore recommended that customers contact Renesas Technology Corporation authorized Renesas Technology Corporation product distributor latest product information before purchasing product listed herein. information described here contain technical inaccuracies typographical errors. Renesas Technology Corporation assumes responsibility damage, liability, other loss rising from these inaccuracies errors. Please also attention information published Renesas Technology Corporation various means, including Renesas Technology Corporation Semiconductor home page (http://www.renesas.com). When using information contained these materials, including product data, diagrams, charts, programs, algorithms, please sure evaluate information total system before making final decision applicability information products. Renesas Technology Corporation assumes responsibility damage, liability other loss resulting from information contained herein. Renesas Technology Corporation semiconductors designed manufactured device system that used under circumstances which human life potentially stake. Please contact Renesas Technology Corporation authorized Renesas Technology Corporation product distributor when considering product contained herein specific purposes, such apparatus systems transportation, vehicular, medical, aerospace, nuclear, undersea repeater use. prior written approval Renesas Technology Corporation necessary reprint reproduce whole part these materials. these products technologies subject Japanese export control restrictions, they must exported under license from Japanese government cannot imported into country other than approved destination. diversion reexport contrary export control laws regulations Japan and/or country destination prohibited. Please contact Renesas Technology Corporation further details these materials products contained therein. SH7729R Board HS7729RSTC01H User's Manual ADE-702-263 Rev. 08/20/01 Hitachi, Ltd. HS7729RSTC01HE(B) Cautions Hitachi neither warrants grants licenses rights Hitachi's third party's patent, copyright, trademark, other intellectual property rights information contained this document. Hitachi bears responsibility problems that arise with third party's rights, including intellectual property rights, connection with information contained this document. Products product specifications subject change without notice. Confirm that have received latest product standards specifications before final design, purchase use. Hitachi makes every attempt ensure that products high quality reliability. However, contact Hitachi's sales office before using product application that demands especially high quality reliability where failure malfunction directly threaten human life cause risk bodily injury, such aerospace, aeronautics, nuclear power, combustion control, transportation, traffic, safety equipment medical equipment life support. Design your application that product used within ranges guaranteed Hitachi particularly maximum rating, operating supply voltage range, heat radiation characteristics, installation conditions other characteristics. Hitachi bears responsibility failure damage when used beyond guaranteed ranges. Even within guaranteed ranges, consider normally foreseeable failure rates failure modes semiconductor devices employ systemic measures such fail-safes, that equipment incorporating Hitachi product does cause bodily injury, fire other consequential damage operation Hitachi product. This product designed radiation resistant. permitted reproduce duplicate, form, whole part this document without written approval from Hitachi. Contact Hitachi's sales office questions regarding this document Hitachi semiconductor products. IMPORTANT INFORMATION READ FIRST READ this user's manual before using this board. KEEP user's manual handy future reference. attempt board until fully understand mechanism. Board: Throughout this document, term "CPU board" shall defined following products produced only Hitachi, Ltd. excluding subsidiary products. board Serial cable power adapter power cable user system host computer included this definition. Purpose Board: This board software hardware development tool systems employing Hitachi microcomputer SH7729R. Simple debugging functions such debugging, performance evaluation, development user system including SH7729R enabled connecting board host computer. addition, expansion boards installed slots; therefore, memory expanded. However, this board must installed user products used part user products; limited debugging evaluation user systems. This board must only used above purpose. Limited Applications: This board authorized MEDICAL, atomic energy, aeronautical space technology applications without consent appropriate officer Hitachi sales company. Such includes, limited life support systems. Buyers this board must notify relevant Hitachi sales offices before planning product such applications. Improvement Policy: Hitachi, Ltd. (including subsidiaries, hereafter collectively referred Hitachi) pursues policy continuing improvement design, performance, safety board. Hitachi reserves right change, wholly partially, specifications, design, user's manual, other documentation time without notice. Target User Board: This board should only used those have carefully read thoroughly understood information restrictions contained user's manual. attempt board until fully understand mechanism. highly recommended that first-time users instructed users that well versed operation board. LIMITED WARRANTY Hitachi warrants boards manufactured accordance with published specifications free from defects material and/or workmanship. Hitachi, option, will repair replace boards returned intact factory, transportation charges prepaid, which Hitachi, upon inspection, determine defective material and/or workmanship. foregoing shall constitute sole remedy breach Hitachi's warranty. Hitachi warranty booklet details warranty period. This warranty extends only you, original Purchaser. transferable anyone subsequently purchases board from you. Hitachi liable claim made third party made third party. DISCLAIMER HITACHI MAKES WARRANTIES, EITHER EXPRESS IMPLIED, ORAL WRITTEN, EXCEPT PROVIDED HEREIN, INCLUDING WITHOUT LIMITATION THEREOF, WARRANTIES MARKETABILITY, MERCHANTABILITY, FITNESS PARTICULAR PURPOSE USE, AGAINST INFRINGEMENT PATENT. EVENT SHALL HITACHI LIABLE DIRECT, INCIDENTAL CONSEQUENTIAL DAMAGES NATURE, LOSSES EXPENSES RESULTING FROM DEFECTIVE BOARD, BOARD, DOCUMENTATION, EVEN ADVISED POSSIBILITY SUCH DAMAGES. EXCEPT EXPRESSLY STATED OTHERWISE THIS WARRANTY, THIS BOARD SOLD MUST ASSUME RISK RESULTS OBTAINED FROM BOARD. State Law: Some states allow exclusion limitation implied warranties liability incidental consequential damages, above limitation exclusion apply you. This warranty gives specific legal rights, have other rights which vary from state state. Warranty Void Following Cases: Hitachi shall have liability legal responsibility problems caused misuse, abuse, misapplication, neglect, improper handling, installation, repair modifications board without Hitachi's prior written consent problems caused user system. Rights Reserved: This user's manual board copyrighted rights reserved Hitachi. part this user's manual, part, reproduced duplicated form, hard-copy machinereadable form, means available without Hitachi's prior written consent. Other Important Things Keep Mind: Circuitry other examples described herein meant merely indicate characteristics performance Hitachi's semiconductor products. Hitachi assumes responsibility intellectual property claims other problems that result from applications based examples described herein. license granted implication otherwise under patents other rights third party Hitachi. Figures: Some figures this user's manual show items different from your actual system. Limited Anticipation Danger: Hitachi cannot anticipate every possible circumstance that might involve potential hazard. warnings this user's manual board therefore inclusive. Therefore, must board safely your risk. SAFETY PAGE READ FIRST READ this user's manual before using this board. KEEP user's manual handy future reference. attempt board until fully understand mechanism. DEFINITION SIGNAL WORDS This safety alert symbol. used alert potential personal injury hazards. Obey safety messages that follow this symbol avoid possible injury death. DANGER DANGER indicates imminently hazardous situation which, avoided, will result death serious injury. WARNING indicates potentially hazardous situation which, avoided, could result death serious injury. CAUTION indicates potentially hazardous situation which, avoided, result minor moderate injury. WARNING CAUTION CAUTION CAUTION used without safety alert symbol indicates potentially hazardous situation which, avoided, result property damage. NOTE emphasizes essential information. WARNING Observe precautions listed below. Failure will result FIRE HAZARD will damage user system board will result PERSONAL INJURY. USER PROGRAM will LOST. Always satisfy power supply conditions which described manual. Ensure that there short circuits between GND. apply voltage that outside guaranteed range. Always switch board user system before connecting disconnecting CABLES, CONNECTORS, JUMPERS. When turning board user system, take care that conductive material does touch board user system. Check that numbers connectors board those user system correctly aligned before connecting board user system. Preface Thank purchasing board Hitachi's SH7729R microcomputer. board efficient development tool software hardware systems based Hitachi's SH7729R microcomputer. This manual describes SH7729R board (model number HS7729RSTC01H). Hereafter, this product will referred "the board." This manual explains functions method operation these boards. Section Overview, describes hardware system configuration explains environment settings enable board use. Section Preparation before Use, explains procedures using boards, installation, various connections, power supply specifications. Section Tutorial, introduces major features while demonstrating methods loading debugging language program. Section Descriptions Windows, describes each windows used HDI. Section Board Specifications, explains specifications boards, memory map, interfaces with external equipment, board initialization. Section Notes Troubleshooting, explains important information regarding gives suggestions troubleshooting. Section Creation User Interrupt Handlers, explains create original interrupt handler routine. Please read this manual completely order gain thorough understanding this product's functions performance. text appearing various windows differ from those appearing this manual depending language being used. figures appearing this manual English version Microsoft® Windows® Related Manuals SH7729R Hardware Manual SH3, SH3E, SH3-DSP Programming Manual Series Cross Assembler User's Manual Series Linkage Editor User's Manual Series Librarian User's Manual SuperH RISC Engine C/C++ Compiler User's Manual Series Simulator/Debugger User's Manual Hitachi Debugging Interface User's Manual (available CD-ROM supplied with this board) Hitachi Embedded Workshop User's Manual When connecting E10A emulator board, following manual should also read. SH7729R E10A Emulator User's Manual Note: Microsoft® Windows® registered trademarks Microsoft Corporation United States and/or other countries. Contents Preface Section Overview. Features System Configuration Warnings Components CD-R Contents. Environmental Conditions Section Preparation before Use. Board Preparation.7 Installation. Uninstallation Connecting Cables Connecting User Expansion Board Connecting PCMCIA Card Switches Jumpers Power Supply 2.9.1 Power-Supply Specifications 2.9.2 Connecting Power Supply Cable Section Tutorial. 3.10 3.11 3.12 3.13 Introduction.23 Running HDI.24 [HDI] Window Setting Board Setting [Monitor Setup] Dialog Downloading Tutorial Program 3.6.1 Downloading Tutorial Program 3.6.2 Displaying Source Program Setting Software Breakpoint Setting Registers Executing Program. Reviewing Breakpoints Viewing Memory Watching Variables.40 Stepping Through Program 3.13.1 Executing [Step Command. 3.13.2 Executing [Step Out] Command 3.14 3.15 3.16 3.17 3.18 3.13.3 Executing [Step Over] Command. Displaying Local Variables. Software Break Function Time Count Function Saving Session What Next? Section Descriptions Windows Windows Descriptions Each Window 4.2.1 [Monitor Setup] Dialog 4.2.3 [Add/Edit Breakpoint] Dialog 4.2.4 [System Status] Window. 4.2.5 [Run Time Count Condition] Dialog Box. 4.2.6 [Cache Control] Dialog 4.2.7 [Simulated Window] Window. 4.2.8 [Command Line] Window Section Board Specifications Block Diagram Specifications. Memory External Interface. 5.4.1 Serial Interface. 5.4.2 User Expansion Board Interface 5.4.3 PCMCIA Interface 5.4.4 E10A Emulator Interface Parts Layout Initialization 5.6.1 Initializing Resources. 5.6.2 Procedure Making Initial Settings State Controller (BSC) 5.6.3 Initial Settings State Controller (BSC). Section Notes Troubleshooting.125 Notes Troubleshooting Section Creation User Interrupt Handlers .135 Creation User Interrupt Handlers. User Program Using SCI. 7.2.1 Creation Driver. 7.2.2 SCI-Related Register Settings. Sample Program. Section Overview Features SH7729R board (hereafter, referred board) supports evaluation functions performance Hitachi SH7729R microcomputer, development evaluation systems that incorporate SH7729R. features this board follows: Supports user expansion boards expansion connector signals conforming SH7729R external specifications, which expansion boards developed user increase memory connected evaluated. Supports maximum operating frequency Allows evaluation (internal operating frequency), which maximum frequency SH7729R. Interface interfacing with compatible host computer, serial interface (that conforms RS-232C) (one channel) provided. Hitachi Debugging Interface (HDI) also provided host interface software. Enables user-program evaluation 15.5 Mbytes user program loaded serial interface into user memory evaluated. Support PCMCIA PCMCIA interface hardware provided standard equipment, that user programs employed PCMCIA evaluations. Figure Board, External View Note: registered trademark International Business Machines Corporation United States. System Configuration system configuration board shown figure 1.2. following items required board. compatible machine: monitor command input output. serial interface cable: provided cable. power supply adapter: provided adapter. power supply cable: provided power cable. power cable Serial cable power adapter board compatible User expansion board User expansion cable Figure Board System Configuration Warnings CAUTION READ following warnings before using board. Incorrect operation will damage user system board. USER PROGRAM will LOST. Check components against component list after unpacking board. Never place heavy objects board. Protect board from excessive impacts stresses. details, refer section 1.6, Environmental Conditions. connect cable connector other than specified ones board. When moving host computer user expansion board, take care vibrate damage board. After connecting cable, check that connected correctly. details, refer section Preparation before Use. Supply power connected equipment after connecting cables. Cables must connected removed while power Components Table lists components board. Check components after unpacking. Table Item board Board Component List View Quantity Remarks printed circuit board power supply adapter power supply cable Serial communication cable Jumper CD-R CD-R; Model number HS7729RSTC01SR Notes Usage SH7729R Board Notes Usage Japanese version English version; Japanese: HS7729RSTC01HJ-P, English: HS7729RSTC01HE-P Note: Refer section 1.5, CD-R Contents. CD-R Contents supplied CD-R includes software user's manuals SH7729R board listed table 1.2. Table Directory \setup \Manuals\Japanese CD-R Contents File Name setup.exe HS7729RSTC01HJ.pdf Contents installer SH7729R Board User's Manual document Japanese Type No.: HS7729RSTC01HJ document Japanese Type No.: HS6400DIIW5SJ document English Type No.: HS7729RSTC01HE document English Type No.: HS6400DIIW5SE Japanese version English version Remarks \Manuals\Japanese HS6400DIIW5SJ.pdf Hitachi Debugging Interface User's Manual SH7729R Board User's Manual \Manuals\English HS7729RSTC01HE.pdf \Manuals\English HS6400DIIW5SE.pdf Hitachi Debugging Interface User's Manual Acrobat Reader installer Acrobat Reader installer \Pdf_read\Japanese \Pdf_read\Englsih Ar40jpn.exe Ar40eng.exe Note: read document, Acrobat Reader. Environmental Conditions CAUTION Observe conditions listed tables when using board. Failure will damage user system board. USER PROGRAM will LOST. Table Item Temperature Humidity Vibration Environmental Conditions Specifications Operating: +10°C +35°C Storage: -10°C +50°C Operating: condensation Storage: condensation Operating: 2.45 max. Storage: max. Transportation: 14.7 max. There must corrosive gases present Ambient gases Table Item Operating Environments Description Built-in Pentium higher-performance (200 higher recommended); compatible machine. Windows Windows Windows Host computer Minimum memory capacity Hard-disk capacity Mbytes more (double load module size recommended) Installation disk capacity: Mbytes more. (Prepare area least double memory capacity (four-times more recommended) swap area.) Required install HDI. Connectable host computer; compatible with Windows Windows Windows Input: VAC, 50/60 max. Output: +5.0 VDC, max. CD-ROM drive Pointing device such mouse Power supply (for power supply adapter) Section Preparation before Board Preparation WARNING READ reference sections shaded figure before using board product. Incorrect operation will damage user system board. USER PROGRAM will LOST. Unpack board prepare shown figure 2.1: Reference Unpack board. Check components against component list. Component list Turn host computer. Install HDI. Section Procedure when board used first. Turn host computer. Connect board host computer power supply adapter, when necessary PCMCIA card user expansion board. Also sure jumper board. Sections Turn host computer. Turn board. Start HDI. Section Procedure when board used second time later. Figure Board Preparation Flow Chart Installation example installing compatible machine described this section. Start [setup.EXE] \SETUP directory CD-R. other application running, close before starting installer. Figure [setup.EXE] Icon This runs installer. dialog will first prompt select language installation process. Select language then continue according instructions displayed installer. Note: Under Windows 4.0, install administrator mode. Installation Directory: default directory installing depends whether Hitachi Embedded Workshop (HEW) been installed host computer, shown table Table Default Installation Directory Default Installation Directory C:\HDI5_CB\7729R C:\HEW\HDI5\CB\7729R Program been installed been installed this example, C:\HEW) Backup File: another version already been installed, message "The HDI.INI file already existed. overwritten?" will displayed. Clicking [Yes] will make backup existing file Backup directory installation directory. When installation complete, [HDI SH7729R board] selected from start menu. Figure Start Menu Uninstallation Uninstall SH7729R board follows: Select [Settings] from Start menu, then select [Control Panel]. Select [Add/Remove Programs]. Select [HDI SH7729R board] from application list, then click [Add/Remove]. confirmation message will displayed, uninstallation procedure will start. Connecting Cables This section shows connect interface cables board. WARNING Always switch board user system before connecting disconnecting CABLES, CONNECTORS, JUMPERS. Failure will result FIRE HAZARD will damage user system board will result PERSONAL INJURY. USER PROGRAM will LOST. board E10A emulator interface cable Connected Figure E10A Emulator Interface Cable Connection board Connected Serial interface cable Figure Serial Interface Cable Connection expansion interface cable Connected board Figure Expansion Interface Cable Connection expansion interface cable board expansion connector Connected board expansion interface cable Figure Expansion Interface Cable Connection Always switch board user system before connecting disconnecting CABLES. Failure will result FIRE HAZARD will damage expansion board board will result PERSONAL INJURY. USER PROGRAM will LOST. WARNING Connected Figure Power Supply Cable Connection Align connectors power cable Connecting User Expansion Board Figure shows connect user expansion board. WARNING Always switch board user system before connecting disconnecting CABLES, CONNECTORS, JUMPERS. Failure will result FIRE HAZARD will damage user system board will result PERSONAL INJURY. USER PROGRAM will LOST. Connected User expansion board board Figure User Expansion Board Connection Connecting PCMCIA Card Figure 2.10 shows connect PCMCIA card. Press Release button Slot Slot PCMCIA card (Memory card, card) Insert into PCMCIA slot board Figure 2.10 PCMCIA Card Connection PCMCIA card (memory card, card), insert PCMCIA card into slot slot remove PCMCIA card, press release button direction arrow. Switches Table lists switches used board figure 2.11 shows where three switches located board). Table Switch Manual reset switch Abort switch Switch Specifications Symbol Type Push button (Red) Push button (Black) Function Forcibly initializes system. this switch when system does operate correctly, example, when user program goes control. Forcibly terminates command execution. Aborts user program execution returns system firmware command input wait state. Turns power supplied board. Power supply switch Note Rocker switch power supply turned while pressing manual reset switch, board will started. Please operate manual reset switch while turning power. board Power switch Abort switch Manual reset switch Figure 2.11 Switch Location Jumpers WARNING Always switch board user system before connecting disconnecting CABLES, CONNECTORS, JUMPERS. Failure will result FIRE HAZARD will damage user system board will result PERSONAL INJURY. USER PROGRAM will LOST. Table lists jumpers board figure 2.12 shows insert jumper pin. Table Symbol Jumper Settings Function Selects endian test Selects timer clock Setting Closed Open Open closed closed Description endian Little endian sure open this jumper.* (default shipment) External clock TCLK (CN3-158 pin) On-board clock (1.8432 MHz) (default shipment) mounted mounted mounted Selects host computer interface baud rate mounted Selects frequency*1 Closed Closed Open Open Closed Open Closed Open 66.7 33.3 Forbidden Forbidden emulator Emulator used (default shipment) (default shipment) Closed Open 115200 bit/s* 57600 bit/s (default shipment) Enables E10A emulator Closed Open mounted mounted Notes: same frequency supplied CPU, clock, expansion connectors, internal operating clock always operates MHz. jumper closed, monitor program will corrupted. sure open When frequency 33.3 MHz, board cannot interfaced with host computer 115200 bit/s; baud rate 57600 bit/s. Jumper Figure 2.12 Jumper Insertion board 2.9.1 Power Supply Power-Supply Specifications Figure 2.13 shows power-supply specifications. (Vin) (Vout) (CPU) 5.0V Power-on reset_N Figure 2.13 Power-Supply Specifications 2.9.2 Connecting Power Supply Cable Power should always supplied board using provided power supply adapter power supply cable. method connection shown figure 2.14. WARNING Observe precautions listed below. Failure will result FIRE HAZARD will damage user system board will result PERSONAL INJURY. USER PROGRAM will LOST. Always provided power supply adapter. Always switch board user system before connecting disconnecting CABLES, CONNECTORS, JUMPERS. (5V) Figure 2.14 Front View Power Supply Connector board view Figure 2.15 Power Supply Cable Connection Section Tutorial Introduction following describes main functions using tutorial program. tutorial program based program that sorts random data items ascending descending order. tutorial program included sort.c file. compiled load module provided SYSROF format included sort.abs file. tutorial program automatically installed when installed. Table lists tutorial program configuration. Table Item Tutorial file (load module) Tutorial file (source file) Tutorial Program Configuration Contents (install directory)\tutorial\sort.abs (install directory)\tutorial\sort.c operating environment, area starting from address H'AC000000. function used. Notes: sort.abs operates endian. sort.abs must recompiled operate little endian. work space this tutorial program created using Version (Release Hitachi Embedded Workshop (HEW). Hitachi C/C++ compiler version 5.1B Hitachi OptLinker version 1.1B Running HDI, select [HDI SH7729R board] from [Start] menu. Figure [Start] Menu [HDI] window will open, then [Select Session] dialog will appear. Check that setting shown figure complete, click [OK] button. Figure [Select Session] Dialog message shown figure will appear. Check that board power turned click [OK] button. Figure Power Supply Confirmation Message When Link appears status bar, startup completed. Link does appear, check items listed table 3.2. Table Check Item Check that power monitoring (LED1) board turned Check that host computer board correctly connected through serial cable. Check that port baud rate correctly [Monitor Setup] dialog box. Check that jumper pins correctly inserted into jumpers board. Check Items When Cannot Initiated Reference this Manual Section Sections 5.4.1 Sections 4.2.1 Section [HDI] Window Figure [HDI] Window functions described section Descriptions Windows. Numbers figure indicate following: Menu bar: Gives user access commands using debugger. Toolbar: Provides convenient buttons shortcuts most frequently used menu commands. Program window: Displays source program being debugged. Status bar: Displays status board, progress information about downloading. [Help] button: Activates on-line help about features user interface. Setting Board following conditions board before downloading program: Connection method definition file Options program load following describes board tutorial programs. Setting [Monitor Setup] Dialog Select [Configure Platform.] from [Setup] menu configuration. [Monitor Setup] dialog displayed. Figure [Monitor Setup] Dialog options follows: Table Option Comms Port: Baud Rate: Setting [Monitor Setup] Dialog Default COM1: 115200 Value Select from among COM1, COM2, COM3, COM4 host computer serial port. Sets serial baud rate. Select either 57600 bit/s 115200 bit/s, match setting jumper Connection possible other setting. Sets register definition file. SH7729R definition file default. selecting file, [I/O Registers] window (accessed from [View] menu) used display register information. board does support this function (this cannot selected). definition file SH7729R Download with verify Delete breakpoints when program reloaded Reset when program been downloaded Unchecked When this checked, breakpoints deleted when program reloaded. Unchecked When this checked, registers initialized* when program loaded. reset signal input board. Note: Only program counter status register initialized H'AC000000 H'600010E0 value depends endian). Click [OK] button. Notes: register definition file selected this dialog box. sure select file within installation directory. Otherwise, register window will operate correctly. name register definition file consist nine characters. This number does include file name's extension. 3.6.1 Downloading Tutorial Program Downloading Tutorial Program Download object program debugged. Select [Load Program.] from [File] menu. [Load Program] dialog displayed. Enter offset file name [Offset] edit [File name] list shown figure click [Open] button. Figure [Load Program] Dialog When file been loaded, following message displays information about memory areas that have been filled with program code. Figure [HDI] Message Click [OK] button continue. 3.6.2 Displaying Source Program allows user debug program source level. Select [Source.] from [View] menu. [Open] dialog displayed. Select source file that corresponds object file user loaded. Figure [Open] Dialog Select [sort.c] click [Open] button. [Program] window displayed. Figure [Program] Window (Displaying Source Program) necessary, select [Font] option from [Customize] submenu [Setup] menu select clear font size. Initially [Program] window shows start main program, user scroll scroll through program other statements. Setting Software Breakpoint breakpoint easy debugging functions. [Program] window provides very simple setting software breakpoint program. example, breakpoint sort function call: Select double-clicking [BP] column line containing sort function call. Figure 3.10 [Program] Window (Setting Software Breakpoint) Break will displayed line containing sort function show that software breakpoint set. Note: software breakpoint cannot area delay slots program. Setting Registers values program counter stack pointer before executing program. Select [Registers] from [View] menu. [Registers] window displayed. Figure 3.11 [Registers] Window change value program counter, double-click value area [Registers] window with mouse. following dialog then displayed, value changed. Figure 3.12 [Register] Dialog (PC) Enter H'AC000000 [Value] edit box, click [OK] button. change value stack pointer, move mouse pointer value area [R15] [Registers] window enter value directly, double-click value area with mouse open following dialog box. Figure 3.13 [Register] Dialog (SP) Enter H'ACF80000 [Value] edit box, click [OK] button. Executing Program Execute program described following: execute program, select [Go] from [Run] menu, click [Go] button toolbar. Figure 3.14 [Go] Button program will executed breakpoint that been inserted, statement will highlighted [Program] window show position that program halted. [Break Breakpoint] will appear status bar. Figure 3.15 [Program] Window (Break Status) user cause break that occurred last time [System Status] window. Select [Status] from [View] menu. [System Status] window will appear. Open [Platform] page check status Break Cause. Figure 3.16 [System Status] Window [System Status] window displays following items each page. Table Page [Session] Contents [System Status] Window Item Target system Session Name Program Name Description Indicates whether board connected not. Displays session file name. Displays load module file name. Displays name connected board monitor program. Displays target endian setting. Displays processor mode (privileged mode user mode). Shows whether cache enabled disabled. Shows whether enabled disabled. Displays selected register definition file. Displays clock frequency (CPU operating frequency external frequency) being used. Indicates version target connection board. Displays monitor program version. Displays user program execution status: Run: Being executed Break: Stopped Displays cause program stopping break. Shows time from start user program break. When time count function disabled, 0min 0.0us" displayed. Indicates data baud rate serial interface. supported this board. supported this board. Shows area where load module loaded. Shows number breakpoints set. [Platform] Connected Mode Cache Status Status definition Clock Target Version Monitor Version Status Break Cause Time Count Comm port baudrate [Memory] Target Device Configuration System Memory Resources Loaded Memory Areas [Events] Resources 3.10 Reviewing Breakpoints user breakpoints program [Breakpoints] window. Select [Breakpoints] from [View] menu. Figure 3.17 [Breakpoints] Window Right-clicking [Breakpoints] window will open pop-up menu, through which breakpoints set, changed, deleted, enabled, disabled. 3.11 Viewing Memory user view contents memory block [Memory] window. example, view memory contents corresponding main word size: Select [Memory from [View] menu, enter main [Address] edit box, Word [Format] combo box. Figure 3.18 [Open Memory Window] Dialog Click [OK] button. [Memory] window showing specified area memory displayed. Figure 3.19 [Word Memory] Window 3.12 Watching Variables user steps through program, possible watch that values variables used user program changed. example, watch long-type array declared beginning program, using following procedure: Click left displayed array [Program] window position cursor. Click [Program] window with right mouse button select [Instant Watch.] from popup menu. following dialog will displayed. Figure 3.20 [Instant Watch] Dialog Click [Add Watch] button variable [Watch Window] window. Figure 3.21 [Watch Window] Window (Displaying Array) user also variable [Watch Window] window specifying name. Click [Watch Window] window with right mouse button select [Add Watch.] from pop-up menu. following dialog will displayed. Figure 3.22 [Add Watch] Dialog Input variable click [OK] button. [Watch Window] window will also show long-type variable max. Figure 3.23 [Watch Window] Window (Displaying Variable) user double-click symbol left array watch window elements array Figure 3.24 [Watch Window] Window (Displaying Array Elements) 3.13 Stepping Through Program provides range step menu commands that allow efficient program debugging. Table Menu Command Step Step Over Step Step. Step Option Description Executes each statement, including statements within functions. Executes function call single step. Steps function, stops statement following statement program that called function. Steps specified times repeatedly specified rate. [Go] described section 3.9, Executing Program, confirm that program executed sort function statement address H'AC000038. Figure 3.25 [Program] Window (Step Execution) 3.13.1 Executing [Step Command [Step steps into called function stops first statement called function. step through sort function, select [Step from [Run] menu, click [Step button toolbar. Figure 3.26 [Step Button Figure 3.27 [Program] Window (Step highlighted line moves first statement sort function [Program] window. 3.13.2 Executing [Step Out] Command [Step Out] steps called function stops next statement calling statement main function. step sort function, select [Step Out] from [Run] menu, click [Step Out] button toolbar. Figure 3.28 [Step Out] Button Figure 3.29 [Program] Window (Step Out) values array sorted ascending order. execute steps, [Step twice. value displayed [Watch Window] window changed maximum data value. Figure 3.30 [Program] Window (Step Step 3.13.3 Executing [Step Over] Command [Step Over] executes function call single step stops next statement main program. Using [Step In], execute steps reach change function statement. step through statements change function single step, select [Step Over] from [Run] menu, click [Step Over] button toolbar. Figure 3.31 [Step Over] Button Figure 3.32 [Program] Window (Before Step Over Execution) Figure 3.33 [Program] Window (Step Over) When last statement change function executed, data variable which displayed [Watch Window] window, sorted descending order. 3.14 Displaying Local Variables user display local variables function using [Locals] window. example, will examine local variables main function, which declares five local variables: min, max. Select [Locals] from [View] menu. [Locals] window displayed. local variable exists, none displayed [Locals] window. Select [Step from [Run] menu execute another step. local variables corresponding values displayed [Locals] window. Figure 3.34 [Locals] Window Double-click symbol front array [Locals] window display elements array When elements array referenced before after executing sort function program, random data should sorted descending order. This confirms that program operating normally. 3.15 Software Break Function board software break function. With HDI, software breakpoint using [Breakpoints] window. board software breakpoints. Setting software breakpoint described below. Select [Breakpoints] from [View] menu. [Breakpoints] window displayed. Right-click [Breakpoints] window open pop-up menu, select [Delete All] button cancel breakpoints that have been set. dialog will prompt confirm deletion breakpoints. Click [Yes] delete breakpoints. Figure 3.35 [Breakpoints] Window (Before setting software break) Right-click [Breakpoints] window open pop-up menu, select [Add]. [Add/Edit Breakpoint] dialog displayed. Either address symbol entered. Enter change check [Enable] checkbox. Figure 3.36 [Add/Edit Breakpoint] Dialog Click [OK] button. software breakpoint that been displayed [Breakpoints] window. Figure 3.37 [Breakpoints] Window (Software Breakpoint Setting) stop tutorial program breakpoint, following procedure must executed: Close [Breakpoints] window. program counter stack pointer values that have been section 3.8, Setting Registers, H'AC000000, H'ACF80000) [Registers] window. Click [Go] button. program runs, stops breakpoint. Figure 3.38 [Program] Window Execution Stop (Software Break) Select [Status] from [View] menu. [System Status] window displays following contents. window confirms that execution stopped breakpoint. Figure 3.39 Displayed Contents [System Status] Window (Software Break) 3.16 Time Count Function enabling time count function executing user program, user program time measured. following example, time sort function measured. Select [Delete All] from pop-up menu [Breakpoints] window, double-click [BP] column 21st 22nd lines [Program] window breakpoints. program counter stack pointer values that have been section 3.8, Setting Registers, H'AC000000, H'ACF80000) [Registers] window. Click [Go] button. program runs stops breakpoint. Figure 3.40 [Program] Window (Break before Time Count) Select [Status] from [View] menu. [System Status] window will appear. Figure 3.41 [System Status] Window (Run Time Count Disabled) time taken from start program break shown Time Count [Platform] sheet [System Status] window. this example, time count function been enabled, 0min 0.0us" displayed. Select [Run Time.] from [View] menu. [Run Time Count Condition] dialog will appear. Check [Enable] check button, select measurement unit from [Measurement Mode], click [OK] button. this example, 0.12us (Max 9min) selected. Figure 3.42 [Run Time Count Condition] Dialog items listed table [Run Time Count Condition] dialog box. time checked [System Status] window. Table Item Enable Measurement Mode Items [Run Time Count Condition] Dialog Description Check this enable time count function. default setting "disable". Select measurement unit here. selectable measurement units shown table 3.7. Table Selectable Measurement Units Maximum Measurable Time Approximately minutes Approximately minutes Approximately hours minutes Approximately hours Measurement Unit 0.12 0.48 1.92 7.68 Click [OK] button enable time count function. Click [Go] button. Execution will stop line following sort function, time will displayed message box. Figure 3.43 [Program] Window (Stopped Breakpoint after Time Count) time from sort function call return caller checked Time Count [Platform] sheet [System Status] window. Figure 3.44 [System Status] Window (Run Time Count Result) Notes: time will vary depending execution environment. time measured executing with [Go] cannot measured [Step In], [Step Out], [Step Over]. 3.17 Saving Session program been downloaded, corresponding source file displayed, numerous windows opened, take some time restore this setup next time program downloaded. able save current settings retrieval next time program loaded, order reduce setup time. order save session which already been named, save session with same name current object file, select [Save Session] from [File] menu. save current settings session with name, select [Save Session As.] command from [File] menu. dialog displayed; enter name session. Three files saved: session file (*.hds), target session file (*.hdt), watch session file (*.hdw). target session file stores following information: Software breakpoint information definition file information time count function information Note: symbol memory information saved session files. changes used again future, they must saved separately. details, refer Hitachi Debugging Interface User's Manual. 3.18 What Next? this tutorial, have introduced examples program debugging using board HDI. Further details found Hitachi Debugging Interface User's Manual available supplied CD-R. Section Descriptions Windows Windows window menu bars corresponding pull-down menus listed table 4.1. mark and/or relevant section number shown table when menu description included Hitachi Debugging Interface User's Manual this manual. Menu items shown gray screen available. Table Window Menus Related Manual Entries Hitachi Debugging Interface User's Manual Menu File Menu Pull-Down Menu Session. Load Session. Save Session Save Session Load Program. Initialize Exit This Manual 3.17 3.6.1 Edit Menu Copy Paste Find. Evaluate. Table Window Menus Related Manual Entries (cont) Hitachi Debugging Interface User's Manual Menu View Menu Pull-Down Menu Breakpoints Command Line Disassembly. Area Labels Locals Memory. Performance Analysis Profile-List Registers Source. Status Trace This Manual 3.10, 3.15, 4.2.2 3.14 3.11 3.6.2 3.9, 4.2.4 4.2.6 3.16, 4.2.5 4.2.7 3.13.1 3.13.3 3.13.2 Profile-Tree Watch Cache Control. Time. Simulated Window Menu Reset Reset Cursor Cursor Run. Step Step Over Step Step. Halt Table Window Menus Related Manual Entries (cont) Hitachi Debugging Interface User's Manual Menu Pull-Down Menu This Manual 3.5, 4.2.1 Memory Menu Refresh Load. Save. Verify. Test. Fill. Copy. Compare. Configure Map. Setup Menu Status Options. Radix Customize Configure Platform. Window Menu Cascade Tile Arrange Icons Close Help Menu Index Using Help Search Help About Notes: Configure Overlay. Function supported. Only board information display supported. User program executed after setting H'AC000000. Function test use. Correct operation cannot guaranteed. ,and initialized. reset signal sent CPU. Descriptions Each Window This section describes each window. 4.2.1 [Monitor Setup] Dialog Function: Specifies setup conditions board. This dialog displayed selecting [Configure Platform.] from [Setup] menu. Window: Figure [Monitor Setup] Dialog Notes: register definition file selected this dialog box. sure select file within installation directory. Otherwise, register window will operate correctly. name register definition file consist nine characters. This number does include file name's extension. Description: settings [Monitor Setup] dialog indicated below. Table Option Comms Port: Baud Rate: [Monitor Setup] Dialog Page Setting COM1, COM2, COM3, COM4 selected host computer serial port. Sets serial baud rate. Select either 57600 bit/s 115200 bit/s, match setting jumper Connection possible other setting. Sets register definition file. Click [Browse] button select SH7729R definition file. When selecting file, [I/O Registers] window (accessed from [View] menu) used display register information. board does support this function (this cannot selected). When this checked, breakpoints deleted when program reloaded. definition file: Download with verify Delete breakpoints when program reloaded Reset when program When this checked, registers initialized* when program been downloaded loaded. reset signal input board. Note: Only program counter ,status register initialized H'AC000000 H'600010E0 value depends endian.). Clicking [OK] button sets setup conditions. [Cancel] button clicked, this dialog closed without setting conditions. 4.2.2 [Breakpoints] Window Function: This window lists break conditions that have been set. This window displayed selecting [Breakpoints] [View] menu. Window: Figure [Breakpoints] Window Description: [Breakpoints] window displays breakpoint setting information. items listed table displayed. Table Item [Enable] [File/Line] [Symbol] [Address] [Type] [Breakpoints] Window Display Items Description Displays whether break condition enabled disabled. indicates that breakpoint enabled. Displays file name line number where breakpoint set. Displays symbol corresponding breakpoint address. symbol been defined address, blank displayed. Displays address where breakpoint set. Displays breakpoint" Right-clicking [Breakpoints] window will open pop-up menu, through which breakpoints set, changed, deleted, enabled, disabled. pop-up menu functions described table 4.4. Table Name [Add] [Edit] [Breakpoints] Window Pop-up Menu Operation Description Sets break conditions. Clicking this button will display [Add/Edit Breakpoint] dialog box, enabling break conditions set. Changes break conditions. Select break conditions changed click this button. [Add/Edit Breakpoint] dialog will displayed, enabling break condition changed. Enables disables break conditions. Select break conditions enabled disabled click this button. Clears break conditions. Select break conditions cleared click this button. Clears break conditions. Jumps break address [Source] window. [Disable] ([Enable]) [Delete] [Del All] Source] 4.2.3 [Add/Edit Breakpoint] Dialog Function: Sets breakpoint. This dialog displayed when [Add] [Edit] selected pop-up menu [Breakpoints] window, which displayed selecting [Breakpoints] item [View] menu. Window: Figure [Add/Edit Breakpoint] Dialog Description: [Add/Edit Breakpoint] dialog made components listed table below. Table Page Name [Breakpoint address] [Enable] [Add/Edit Breakpoint] Dialog Items Description Enter address symbol which breakpoint set. breakpoint enabled when this checked. After clicking [OK], breakpoint set. 4.2.4 [System Status] Window Function: This window lists information, such conditions that have been board execution results. displayed selecting [Status] item [View] menu. Window: Figure [System Status] Window Description: items listed following table displayed [System Status] window. Table Page [Session] [System Status] Window Display Items Item Target system Session Name Program Name Description Indicates whether board connected not. Displays session file name. Displays load module file name. Displays name connected board monitor program. Displays target endian setting. Displays processor mode (privileged mode user mode). Shows whether cache enabled disabled. Shows whether enabled disabled. Displays selected register definition file. Displays clock frequency (CPU operating frequency external frequency) being used. Indicates version target connection board. Displays monitor program version. Displays user program execution status: Run: Being executed Break: Stopped Displays cause program stopping break. Shows time from start user program break. When time count function disabled, 0min 0.0us" displayed. Indicates data baud rate serial interface. supported this board. supported this board. Shows area where load module loaded. Shows number breakpoints set. [Platform] Connected Mode Cache Status Status definition Clock Target Version Monitor Version Status Break Cause Time Count Comm port baudrate [Memory] Target Device Configuration System Memory Resources Loaded Memory Areas [Events] Resources 4.2.5 [Run Time Count Condition] Dialog Function: Specifies condition measuring time. displayed selecting [Run Time.] from [View] menu. Window: Figure [Run Time Count Condition] Window Description: items listed table [Run Time Count Condition] dialog box. time checked message displayed break [System Status] window. Table Item Enable Measurement Mode Items [Run Time Count Condition] Dialog Description Check this enable time count function. default setting "disable". Select measurement unit here. setting stored when [OK] button pressed. selectable measurement units shown table 4.8. Table Selectable Measurement Units Maximum Measurable Time Approximately minutes Approximately minutes Approximately hours minutes Approximately hours Measurement Unit 0.12 0.48 1.92 7.68 Note: When maximum measurable time shown table exceeded, measured value will invalid. 4.2.6 [Cache Control] Dialog Function: Specifies cache functions. This dialog displayed selecting [Cache Control.] from [View] menu. Window: Figure [Cache Control] Dialog Description: items listed table displayed [Cache Control] dialog box. cache control register settings displayed when dialog opened. When [OK] button clicked, settings stored. Table Item Cache Flush Enable [Cache Control] Dialog Items Description Check this click [OK] button flush entries cache. Check this enable cache. Specifies operating mode (write-through write-back) area. Specifies operating mode (write-through write-back) areas. Area write mode P0,U0,P3 Area write mode 4.2.7 [Simulated Window] Window Function: This window displays data input output from serial line during user program execution. valid only during execution user program. Serial data output user program displayed this window. Data input from keyboard host computer displayed this window addition being sent board. This window displayed selecting [Simulated Window] item from [View] menu. Right-clicking mouse this window displays following pop-up menu. [Copy] Copies text appearing highlighted Windows® clipboard. [Paste] Pastes contents Windows® clipboard [Simulated Window], sends same contents board. [Clear Window] Clears contents [Simulated Window] window. Window: Figure [Simulated Window] Window above window displayed when sample program supplied with this board used. details sample program, refer section 7.3, Sample Program. Note: When using [Simulated Window] window, interrupt handler must prepared user program. details interrupt handler, refer section Creation User Interrupt Handler. 4.2.8 [Command Line] Window SH7729R board does guarantee [Command Line] window operation; [Command Line] window. Section Board Specifications Block Diagram block diagram board shown figure 5.1. Power switch power supply adapter Abort Manual reset switch switch Flash memory monitor kbytes Jumpers Power-on reset Oscillator 55.5 Clock divider Wait state controller Reset/interrupt controller FPGA Address decoder Port signals SH7729R (200 MHz) Serial RS-232C 9-pin D-sub connector Hitachi-UDI port connector Connected E10A emulator Figure Block Diagram board Connected host system serial interface PCMCIA Memory card slot Expansion connector Clock driver driver 3.3-/ 2.0-V voltage regulator SDRAM Mbytes Monitor: Mbytes User: 15.5 Mbytes Address driver Data switch Specifications Table lists components board. Table Item Microcomputer Operating frequency Endian Memory Specifications Specifications SH7729R Type name: HD6417729RHF200 Package: 208-pin HQFP internal clock: (fixed) clock: 66.7 33.3 (switchover jumpers) Little endian (switchover jumpers) SDRAM Capacity: Mbytes width: bits Type number: HM5264165FTT-B60 Flash memory (monitor program) Capacity: kbytes width: bits Type number: PA28F400B5-B60 Serial interface channel: Conforms RS-232C Transfer rate: 57,600 115,200 bit/s (switchover jumpers) Connector: 9-pin D-sub connector board connector: DELC-J9PAF-20L9 manufactured Japan Aviation Electronics Industry, Ltd. Maximum cable length: Table Item Specifications (cont) Specifications Three expansion connectors board: 8817-180-170L manufactured CORPORATION User side: 8807-180-170L* manufactured CORPORATION Note: Gold-plated thickness mark: Flush, 0.25 more) board: 8931E-100-178S manufactured CORPORATION User side: 8925*-100-179 manufactured CORPORATION Note: Strain-relief Yes, board 7620-6002SC manufactured Company. User side: 7920-7500SC manufactured Company. Expansion board interface PCMCIA E10A emulator interface Switches Memory card card slots board type number: 10236-5202JL manufactured Company. SW1: Manual reset switch SW2: Abort switch SW3: Power supply switch External dimensions Board Product Width: Length: Width: Length: Height: Memory Memory board shown figure 5.2. Each area allocated follows: Area Monitor program area. Allocated flash memory, on-board registers, monitor input/output. width bits fixed. reserved area. Expansion area. Mbytes SDRAM allocated. first 15.5-Mbyte area assigned user area remaining 0.5-Mbyte area assigned monitor program work area. width bits fixed. Expansion area. Expansion area. PCMCIA area. Area Area Area Area Area Area Physical area 00000000 Area 04000000 Area 08000000 Area 0C000000 Area 10000000 Area 14000000 Area 18000000 Area 1C000000 Reserved 1FFFFFFF PCMCIA expansion expansion expansion SDRAM (32-bit width) Reserved (Internal area) Flash memory on-board register (16-bit width) 00000000 Monitor program area kbytes 0007FFFC 00080000 Shadow area monitor program 00FFFFFE 01000000 01000000 On-board register 01FFFFFE 02000000 Expansion 03FFFFFE 01800000 PCMCIA Register 01800012 Reserved (Unusable) 01FFFFFE 01800000 01800002 01800004 01800006 01800008 0180000A 0180000C 0180000E 01800010 PCC01SR PCC0GCR PCCOCSCR PCC0CSCIER PCC1ISR PCC1GCR PCC1CSCR PCC1CSCIER PCCVCR Register area monitor program 0C000000 User program area 15.5 Mbytes (32-bit width) 0CF7FFFF 0CFFFFFF 0FFFFFFC 18000000 18800000 19000000 19800000 1A000000 1A800000 1B000000 1BFFFFFF Reserved Firmware work area (0.5 Mbytes) Shadow area SDRAM Slot0 attribute memory Slot1 attribute memory Slot common memory Slot common memory Slot area Slot area used Figure Board Memory 5.4.1 External Interface Serial Interface WARNING Always switch board user system before connecting disconnecting CABLES CONNECTORS. Failure will result FIRE HAZARD will damage user system board will result PERSONAL INJURY. USER PROGRAM will LOST. board serial interface channel) that conforms RS-232C interface with host computer. on-chip serial communication interface (SCI0) used interface between host computer board. Therefore, users cannot SCI0. connector, 9-pin D-sub connector used. baud rate 57,600 bit/s 115,200 bit/s selected. baud rate, refer section 2.8, Jumpers. Table lists assignment serial interface connector. Table shows serial interface specifications. details serial interface cable connection, refer section 2.4, Connecting Cables. Table Assignment Serial Interface Connector Signal Name Reserved Reserved Description connection Received serial data Transmitted serial data Data terminal ready Signal ground Data ready Request send Clear send connection Table Item Serial Interface Specifications Specifications Synchronization method Asynchronous method Transfer rate configuration Controller Driver Connectors 57,600 115,200 bit/s (can switched with jumpers) Start bit: bit, Stop bit: bit, Parity: none, Data length: bits On-chip (serial communication interface) SH7729R LT1181ACSW (manufactured LINEAR TECHNOLOGY CORP.) board connector: DELC-J9PAF-20L9 manufactured Japan Aviation Electronics Industry, Ltd. Figure shows wiring connection between host computer (IBM compatible machine) serial interface connector board interface connector. Figure shows serial interface connector arrangement. serial cable that matches specifications shown figures must used. details serial interface cable connection, refer section 2.4, Connecting Cables. compatible machine Serial interface connector board Serial interface connector RING N.C. N.C. directly connected board. directly connected board. Figure Connection Host Computer arrangement serial interface connector Figure Serial Interface Connector Arrangement 5.4.2 User Expansion Board Interface board connector user expansion board interface. WARNING Always switch board user system before connecting disconnecting CABLES CONNECTORS. Failure will result FIRE HAZARD will damage user system board will result PERSONAL INJURY. USER PROGRAM will LOST. Figures show arrangement expansion connectors CN3, CN6, CN7. Tables list assignment expansion connectors CN3, CN6, CN7, respectively. Refer hardware manual those pins that have numbers function column. signal level which equivalent that SH7729R CPU. details expansion board connection, refer section 2.5, Connecting User Expansion Board. Pin179 Pin1 Pin180 Expansion connector Pin2 Figure Expansion Arrangement Pin99 Pin1 Pin100 Expansion connector Pin2 Figure Expansion Arrangement Expansion connector Figure Expansion Arrangement Table Name CASL Assignment Expansion Connector Function Name (10) (10) (10) Function Name Function CASU/PTJ[3] PTJ[4] PTJ[5] Notes: connect Reserve pins. Some signals converted input output expansion connector follows: D[31:0]: figure 5.11. A[25:0]: figure 5.11. (10) When used port, signals limited output direction. Table Name Assignment Expansion Connector (cont) Function Name RAS3L Reserve Reserve _RSTOUT _RESETP _WE0/DQMLL _WE1/DQMLU _WE2/DQMUL _WE3/DQMU Function Name Reserve _CS2 _CS4 _CS5/_CE1A _CS6/_CE1B Reserve Reserve RD/_WR _IRQOUT _BACK _CS3 STATUS1 Function Notes: connect Reserve pins. Some signals converted input output expansion connector follows: A[25:0]: figure 5.11. RSTOUT: low-level pulse output when reset power when manual reset switch pressed, when reset signal input from expansion connector). BACK: figures 5.8, 5.9, 5.11 5.12. Table Assignment Expansion Connector (cont) Function (10) Name _WAIT Reserve Reserve Reserve Reserve Function Name Reserve Reserve Reserve CKIO Function Name STATUS0 PTJ[1] _BREQ TCLK _NMI Notes: connect Reserve pins. Some signals converted input output expansion connector follows: BREQ: figures 5.8, 5.9, 5.11 5.12. TCLK: Clock input timer. Jumper selects either board clock clock input from expansion connector. NMI: Invalid reserved during monitor program execution. WAIT: result ORing WAIT signals from board resource area area (PCMCIA space) access input CPU. CKIO: Output only. Provides same frequency that jumpers J10. recommended that terminal resistor connected expansion board. figure 5.10. (10) When used port, signals limited output direction. Table Name PTE[7] Assignment Expansion Connector Function Name _CE2A/PTE[4] _RAS2U/PTE[1] ADTRG/PTH[5] PINT[15]/PTF[7] PINT[14]/PTF[6] PINT[13]/PTF[5] PINT[12]/PTF[4] _iRLS[3]/ PINT[11]/PTF[3] _iRLS[2]/ PINT[10]/PTF[2] _iRLS[1]/ PINT[9]/PTF[1] _iRLS[0]/ PINT[8]/PTF[0] PTE[0] _DREQ0/ PTD[4] Function Name _DREQ1/PTD[6] DACK0/PTD[5] DACK1/PTD[7] DRAK0/PTD[1] DRAK1/PTD[0] MCS[4]/PINT[O KI]/ PTC[OKI] MCS[5]/PINT[5]/ PTC[5] MCS[6]/PINT[6]/ PTC[6] MCS[7]/PINT[7]/ PTC[7] Function _CAS2L/ PTE[6] _CE2B/PTE[5] _CAS2H/ PTE[3] _RESEGND IOIS16/PTG[7] PTG[6] PTG[5] PTG[4] Note: PTG[3] PTG[2] PTG[1] PTG[0] _RAS3U/ PTE[2] Some signals converted input output expansion connector follows: With E10A emulator connected, these signal pins cannot used. Table Name Assignment Expansion Connector (cont) Function Name TXD1/SCPT[2] SCK1/SCPT[3] RXD2/SCPT[4] TXD2/SCPT[4] SCK2/SCPT[5] RTS2/SCPT[6] CTS2/SCPT[7] PTH[6] Function Name IRQ0 IRQ1 IRQ2 IRQ3 IRQ4 Reserve Function MCS[0]/PINT[0]/ PTC[0] MCS[1]/PINT[1]/ PTC[1] MCS[2]/PINT[2]/ PTC[2] MCS[3]/PINT[3]/ PTC[3] _Wakeup/ PTD[3] RESETOUT/ PTD[2] RXD1/SCPT[2] Notes: connect Reserve pin. Some signals converted input output expansion connector follows: IRQ[4:0]: Invalid reserved during monitor program execution. Table Assignment Expansion Connector Function Name AN[4]/PTL[4] AVss AN[5]/PTL[5] AVss AN[6]/DA[1]/PTL[6] AVss AN[7]/DA[0]/PTL[7] AVss Reserve AVss Function Name Reserve AVss AN[0]/PTL[0] AVss AN[1]/PTL[1] AVss AN[2]/PTL[2] AVss AN[3]/PTL[3] AVss Note: connect Reserve pins. CKIO (expansion connector) BREQ tBREQH tBREQS (expansion connector) BACK (CPU) BACK (expansion connector) CSn, RD/WR, CAS, RAS, (expansion connector) (expansion connector) tBACKD tCBACKD tCOFF1 tCOFF2 Figure Release Timing CKIO (expansion connector) BREQ (expansion connector) tBREQH BACK (CPU) BACK (expansion connector) CSn, RD/WR, CAS, RAS, (expansion connector) (expansion connector) tBREQS tBACKD tCON1 tCON2 Figure Release Timing Table Parameter tBREQH tBREQS tBACKD tCBACKD tCOFF1 tCOFF2 tCON1 tCON2 Specifications Minimum =tBREQH =tBREQS =tBACKD Maximum =tBREQH =tBREQS =tBACKD 25.5 29.7 30.1 29.7 30.1 Note: Equivalent specifications board Expansion connector User expansion board Characteristic impedance IDT49FCT3805 Make line between expansion connector receiver short possible. series, series, etc. When characteristic impedance user expansion board same that board, terminal resister Figure 5.10 Example CKIO Terminal Resistor Connection SH7729R A[25.0] WE[3.0] U4-7 QS3384 3.3V IRQOUT, STATUS1,0 VHC244 U8-11 VHC244 4.7k9 U123-15 VHC244 Expansion connector A[25.0] WE[3.0] D[31.0] D[31.0] IRQOUT, STATUS1,0 BREQ,NMI, WAIT FPGA BREQ,NMI, WAIT BACK IRQL[4.0], RESETP Control circuit VHC244 BACK,RSTout RESETP LS279 SW1,2 CKIO CKIO Clock Driver Divider selector OSC1 [66.7MHz] CKIN OSC2 [14.7456MHz] Divider (x1/8) TCLK RD,CS0,CS2, CS3,CS4, CS5/CE1A, CS6/CE1B RD/WR RAS2L,BS, CASLL,CASLH, CASHL,CASHH, RAS3L VHC244 TCLK RD,CS0,CS2, CS3,CS4, CS5/CE1A, CS6/CE1B, RD/WR RAS2L,BS, CASLL,CASLH, CASHL,CASHH, RAS3L VHC244 Figure 5.11 Configuration User Expansion Board Interface Circuit (CN3) SH7729R IRL[3.0],IRQ[3.0] IRQ4 FPGA VHC244 Control circuit RESECTS2 RTS2 RXD1/2 TXD1/2 SCK1/2 CE2A/2B DACK0/1,DRAK0/1 WAKEUP,BACK CAS2L/2H, RAS2U/3U Expansion connector IRQ[3.0] IRQ4 EMRST CTS2 RTS2 RXD1/2 TXD1/2 SCK1/2 DREQ0/1,IOIS16, CA,ADTRG PTC[7.0],PTD[2], PTE[7/0],PTF[7.0], PTG[6.0],PTH[6] 4.7k CE2A/2B DACK0/1,DRAK0/1, WAKEUP,BACK, CAS2L/2H, RAS2U/3U DREQ0/1,IOIS16, CA,ADTRG PTC[7.0],PTD[2], PTE[7/0],PTF[7.0], PTG[6.0],PTH[6] AN[7.0]/PTL[7.0] AN[7.0]/PTL[7.0] Figure 5.12 Configuration User Expansion Board Interface Circuits (CN6, CN7) 5.08 2.54 7.62 8.96 board 8807-180-170L* 8817-180-170L Figure 5.13 Connection-Dimension Specifications User Expansion Board (CN3) 30.0 User expansion board 3.175 hole Adjust height using spacers. Unit: Dimension tolerance: ±0.1mm 5.4.3 PCMCIA Interface WARNING Install PCMCIA driver board before inserting removing card while power Failure will damage card. Overview: This board provided with slots PCMCIA type type cards. Both slots used with either cards with memory cards. Card voltages supported. This board provided with PCMCIA drivers. When using PCMCIA slots, must provide your driver software. Figure 5.14 shows arrangements PCMCIA slot slot assignments slot slot listed tables respectively. Slot Slot PCMCIA slot Figure 5.14 PCMCIA Slot Slot Arrangements Table PCMCIA Card Slot (CN9) Assignments Signal Name Signal Name P0CD1 PCC0DA11 PCC0DA12 PCC0DA13 PCC0DA14 PCC0DA15 P0CE2 P0VS1 P0WE2 P0WE3 PCC0AD17 PCC0AD18 PCC0AD19 PCC0AD20 PCC0AD21 VCCA VPPA PCC0AD22 PCC0AD23 PCC0AD24 PCC0AD25 P0VS2 P0RESET P0WAIT P0REG P0BVD2 P0BVD1 PCC0DA8 PCC0DA9 PCC0DA10 P0CD2 Signal Name Signal Name PCC0DA3 PCC0DA4 PCC0DA5 PCC0DA6 PCC0DA7 P0CE1 PCC0AD10 P0RD PCC0AD11 PCC0AD9 PCC0AD8 PCC0AD13 PCC0AD14 P0WE1 P0RDY VCCA VPPA PCC0AD16 PCC0AD15 PCC0AD12 PCC0AD7 PCC0AD6 PCC0AD5 PCC0AD4 PCC0AD3 PCC0AD2 PCC0AD1 PCC0AD0 PCC0DA0 PCC0DA1 PCC0DA2 P0WP Table PCMCIA Card Slot (CN9) Assignments Signal Name Signal Name Signal Name Signal Name PCC1DA3 PCC1DA4 PCC1DA5 PCC1DA6 PCC1DA7 P1CE1 PCC1AD10 P1RD PCC1AD11 PCC1AD9 PCC1AD8 PCC1AD13 PCC1AD14 P1WE1 P1RDY VCCB VPPB PCC1AD16 PCC1AD15 PCC1AD12 PCC1AD7 PCC1AD6 PCC1AD5 PCC1AD4 PCC1AD3 PCC1AD2 PCC1AD1 PCC1AD0 PCC1DA0 PCC1DA1 PCC1DA2 P1WP P1CD1 PCC1DA11 PCC1DA12 PCC1DA13 PCC1DA14 PCC1DA15 P1CE2 P1VS1 P1WE2 P1WE3 PCC1AD17 PCC1AD18 PCC1AD19 PCC1AD20 PCC1AD21 VCCB VPPB PCC1AD22 PCC1AD23 PCC1AD24 PCC1AD25 P1VS2 P1RESET P1WAIT P1REG P1BVD2 P1BVD1 PCC1DA8 PCC1DA9 PCC1DA10 P1CD2 board PCMCIA interface following features. control: PCMCIA interrupts input IRQ1. PCMCIA control: PCMCIA slots supported. cards memory cards used both slots. Card voltage: Both supported. PCMCIA area: Both slots area Because area further subdivided into eight areas, each area allocated Mbytes. PCMCIA supports Mbytes each area, board provided with bank-switching register corresponding upper addresses A23. Access procedure follows. Upper addresses written (General Control Register) bits slot accessed (0/1). area window accessed according card type inserted. Allocation area space shown figure. 5.15. 18000000 18800000 19000000 19800000 1A000000 Slot attribute memory Slot attribute memory Slot common memory Slot common memory Slot area 1A800000 Slot area 1B000000 1BFFFFFF used Figure 5.15 Area Allocation Explanation Registers: Table 5.10 lists addresses gives explanations registers related PCMCIA interface. Table 5.10 PCMCIA Registers Addresses Register Name PCC0ISR PCC0GCR PCC0CSCR PCC0CSCIER PCC1ISR PCC1GCR PCC1CSCR PCC1CSCIER PCCVCR Formal Name PCC0 interface status register PCC0 general control register PCC0 card status change register PCC0 card status change interrupt enable register PCC1 interface status register PCC1 general control register PCC1 card status change register PCC1 card status change interrupt enable register voltage control register Address H'01800000 H'01800002 H'01800004 H'01800006 H'01800008 H'0180000A H'0180000C H'0180000E H'01800010 PCC0 interface status register (PCC0ISR) Name P0RDY P0WP P0VS2 P0VS1 P0CD2 P0CD1 P0BVD2 P0BVD1 Initial value This register monitors values each input signal channel Here 1=High 0=Low. PCC0 general control register (PCC0GCR) Name P0DRVE P0RES P0PCCT used used P0PA25 P0PA24 P0PA23 Initial value This register controls buffer, reset other operations channel also controls uppermost three bits channel address used access Mbytes from 8-Mbyte window. P0DRVE (external buffer control) PCC0DRV signal driven high (buffer disabled) PCC0DRV signal driven (buffer enabled) P0RES (reset control) PCC0RES signal driven (normal operation) PCC0RES signal driven high (reset) P0PCCT (PCMCIA card type) Slot card handled memory card Slot card handled card Bits 4-3: used Always read Bits 2-0: P0PA25-23 (used upper address control, window switching) Corresponding address line driven Corresponding address line driven high PCC0 card status change register (PCC0CSCR) Name P0CDC P0RC P0BW P0BD P0SCDI used P0IREQ P0SC Initial value This register contains flags used monitor changes status channel reading this register after interrupt (IRQ1) received, cause interrupt identified. P0SCDI (software card detection interrupt) When writing data software, interrupt generated. This freely, case card detection interrupt, interrupt itself masked PCC0CSCIER (P0CDE). Interrupt generated Slot card detection interrupt generated used Always read P0IREQ (IREQ interrupt) cases where card slot card, when interrupt generated PCC0RDY/IREQ, this case memory card, this always Conditions setting this conform settings bits PCC0CSCIER (IREQE10) (interrupt disabled, level mode, rising-edge mode, falling-edge mode). case edge mode, interrupt cleared writing this bit. IREQ interrupt request IREQ interrupt request generated slot card P0SC (STSCHG interrupt) cases where slot card card, when interrupt generated PCC0BVD1/STSCHG, this case memory card, always condition setting transition STSCHG from high level. cleared writing interrupt masked PCC0CSCIER STSCHG interrupt request STSCHG interrupt request slot card P0CDC (card detection interrupt) This indicates that either PCC0CD2 PCC0CD1 changed card been inserted removed). condition setting change signal level; cleared writing interrupt masked PCC0CSCIER change PCC0CD2/PCC0CD1 Either PCC0CD2 PCC0CD1 changed P0RC (ready change interrupt) cases where card slot memory card, this when PCC0RDY signal changes cases where card card, this always condition setting when RDY/BSY changes from high (there transition from busy state ready state); cleared writing interrupt masked PCC0CSCIER change RDY/BSY RDY/BSY changed from high level P0BW (battery voltage interrupt; data preserved, battery must replaced) cases where card slot memory card, this when PCC0BVD2/BVD1 signal indicates drop battery voltage case card, this always condition setting this when PCC0BVD2=Low addition PCC0BVD1=High; cleared writing interrupt masked PCC0CSCIER Memory card slot does indicate battery voltage Memory card slot indicates battery voltage P0BD (battery replacement interrupt) cases where card slot memory card, this when PCC0BVD2/BVD1 signal indicates battery needs replaced case card, this always conditions setting this either that PCC0BVD2=High PCC0BVD1=Low, else that PCC0BVD2=Low PCC0BVD1=Low. This cleared writing interrupt masked PCC0CSCIER Battery slot memory card does need replacement Battery slot memory card needs replacement; integrity data memory card guaranteed PCC0 card status change interrupt enable register (PCC0CSCIER) Name Initial value P0CRE P0CDE P0RE P0IREQE1 P0IREQE0 P0SCE P0BWE P0BDE This register masks status change interrupts channel interrupt request generated when corresponding bits PCC0CSCR this register both P0CRE (PCC0GCR reset enable) When insertion card into slot detected (CD1 changes from high low, changes from high low), this determines whether PCC0GCR initialized. initialized even when card insertion detected initialized when card insertion detected Bits 6-5: P0IREQE1-0 (IREQ interrupt enable) cases where card slot card, these bits enable disable IREQ interrupts interrupt mode. Before changing these bits, PCC0CSCR (P0IREQ) should first cleared. case memory card, operations these bits invalid. IREQ1 IREQ0 Settings Interrupt disabled. P0IREQ does change, regardless IREQ signal level. Level mode interrupt. P0IREQ when IREQ signal level, interrupt request generated. Edge mode interrupt. P0IREQ IREQ signal falling edge, interrupt request generated. Edge mode interrupt. P0IREQ IREQ signal rising edge, interrupt request generated. P0SCE (STSCHG interrupt enable) cases where card slot card, this enables disables PCC0BVD1/STSCHG interrupts. interrupt request generated when PCC0CSCR this When card memory card, operations this invalid. STSCHG interrupt disabled STSCHG interrupt enabled P0CDE (card detection interrupt enable) Enables disables PCC0CD2 PCC0CD1 interrupts. interrupt request generated when PCC0CSCR this PCC0CD2/PCC0CD1 interrupt disabled PCC0CD2/PCC0CD1 interrupt enabled P0RE (ready change interrupt enable) cases where card slot memory card, this enables disables PCC0RDY interrupts. interrupt request generated when PCC0CSCR this case card, operations this invalid. RDY/BSY interrupt disabled RDY/BSY interrupt enabled P0BWE (battery voltage interrupt enable) cases where card slot memory card, this enables disables battery voltagelow interrupts. interrupt request generated when PCC0CSCR this case card, operations this invalid. Battery voltage-low interrupt disabled Battery voltage-low interrupt enabled P0BDE (battery replacement interrupt enable) cases where card slot memory card, this enables disables battery replacement interrupts. interrupt request generated when PCC0CSCR this case card, operations this invalid. Battery replacement interrupt disabled Battery replacement interrupt enabled PCC1 interface status register (PCC1ISR) Name Initial value P1RDY P1WP P1VS2 P1VS1 P1CD2 P1CD1 P1BVD2 P1BVD1 This register monitors values channel input signals. Here 1=high 0=low level. PCC1 general control register (PCC1GCR) Name Initial value P1PCCT P1PA23 P1DRVE P1RES used used P1PA25 P1PA24 This register controls buffer, reset other operations channel also controls uppermost three bits channel address used access Mbytes from 8-Mbyte window. P1DRVE (external buffer control) PCC1DRV signal driven high (buffer disabled) PCC1DRV signal driven (buffer enabled) P1RES (reset control) PCC1RES signal driven (normal operation) PCC1RES signal driven high (reset) P1PCCT (PCMCIA card type; interrupt processing varies depending whether memory card card) Slot card handled memory card Slot card handled card Bits 4-3: used Always read Bits 2-0: P1PA25-23 (used upper address control, window switching) Corresponding address line driven Corresponding address line driven high PCC1 card status change register (PCC1CSCR) Name Initial value P1CDC P1RC P1BW P1BD P1SCDI used P1IREQ P1SC This register contains flags used monitor changes status channel reading this register after interrupt (IRQ1) received, cause interrupt identified. P1SCDI (software card detection interrupt) When writing data software, interrupt generated. This freely, case card detection interrupt, interrupt itself masked PCC1CSCIER (P1CDE). Interrupt generated Slot card detection interrupt generated used Always read P1IREQ (IREQ interrupt) cases where card slot card, when interrupt generated PCC1RDY/IREQ, this case memory card, this always Conditions setting this conform settings bits PCC1CSCIER (IREQE10) (interrupt disabled, level mode, rising-edge mode, falling-edge mode). case edge mode, interrupt cleared writing this bit. IREQ interrupt request IREQ interrupt request generated slot card P1SC (STSCHG interrupt) cases where slot card card, when interrupt generated PCC1BVD1/STSCHG, this case memory card, always condition setting transition STSCHG from high level. cleared writing interrupt masked PCC1CSCIER STSCHG interrupt request STSCHG interrupt request slot card P1CDC (card detection interrupt) This indicates that either PCC1CD2 PCC1CD1 changed card been inserted removed). condition setting change signal level; cleared writing interrupt masked PCC1CSCIER change PCC1CD2/PCC1CD1 Either PCC1CD2 PCC1CD1 changed P1RC (ready change interrupt) cases where card slot memory card, this when PCC1RDY signal changes cases where card card, this always condition setting when RDY/BSY changes from high (there transition from busy state ready state); cleared writing interrupt masked PCC1CSCIER change RDY/BSY RDY/BSY changed from high level P1BW (battery voltage interrupt; data preserved, battery must replaced) cases where card slot memory card, this when PCC1BVD2/BVD1 signal indicates drop battery voltage case card, this always condition setting this when PCC1BVD2=Low addition PCC1BVD1=High; cleared writing interrupt masked PCC1CSCIER Memory card slot does indicate battery voltage Memory card slot indicates battery voltage P1BD (battery replacement interrupt) cases where card slot memory card, this when PCC1BVD2/BVD1 signal indicates battery needs replaced case card, this always conditions setting this either that PCC1BVD2=High PCC1BVD1=Low, else that PCC1BVD2=Low PCC1BVD1=Low. This cleared writing interrupt masked PCC1CSCIER Battery slot memory card does need replacement Battery slot memory card needs replacement; integrity data memory card guaranteed PCC1 interrupt enable register (PCC1CSCIER) Name Initial value P1SCE P1CDE P1RE P1BWE P1BDE P1CRE P1IREQE1 P1IREQE0 This register masks status change interrupts channel interrupt request generated when corresponding bits PCC1CSCR this register both P1CRE (PCC1GCR reset enable) When insertion card into slot detected (CD1 changes from high low, changes from high low), this determines whether PCC1GCR initialized. initialized even when card insertion detected initialized when card insertion detected Bits 6-5: P1IREQE1-0 (IREQ interrupt enable) cases where card slot card, these bits enable disable IREQ interrupts interrupt mode. Before changing these bits, PCC1CSCR (P1IREQ) should first cleared. case memory card, operations these bits invalid. IREQ1 IREQ0 Settings Interrupt disabled. P1IREQ does change, regardless IREQ signal level. Level mode interrupt. P1IREQ when IREQ signal level, interrupt request generated. Edge mode interrupt. P1IREQ IREQ signal falling edge, interrupt request generated. Edge mode interrupt. P1IREQ IREQ signal rising edge, interrupt request generated. P1SCE (STSCHG interrupt enable) cases where card slot card, this enables disables PCC1BVD1/STSCHG interrupts. interrupt request generated when PCC1CSCR this When card memory card, operations this invalid. STSCHG interrupt disabled STSCHG interrupt enabled P1CDE (card detection interrupt enable) Enables disables PCC1CD2 PCC1CD1 interrupts. interrupt request generated when PCC1CSCR this PCC1CD2/PCC1CD1 interrupt disabled PCC1CD2/PCC1CD1 interrupt enabled P1RE (ready change interrupt enable) cases where card slot memory card, this enables disables PCC1RDY interrupts. interrupt request generated when PCC1CSCR this case card, operations this invalid. RDY/BSY interrupt disabled RDY/BSY interrupt enabled P1BWE (battery voltage interrupt enable) cases where card slot memory card, this enables disables battery voltagelow interrupts. interrupt request generated when PCC1CSCR this case card, operations this invalid. Battery voltage-low interrupt disabled Battery voltage-low interrupt enabled P1BDE (battery replacement interrupt enable) cases where card slot memory card, this enables disables battery replacement interrupts. interrupt request generated when PCC1CSCR this case card, operations this invalid. Battery replacement interrupt disabled Battery replacement interrupt enabled voltage control register (PCCVCR) SEL1 VCC0 SEL0 VPP0 SEL1 VPP0 SEL0 VCC1 SEL1 VCC1 SEL0 VPP1 SEL1 VPP1 SEL0 Name VCC0 Initial value This register used control power supply slots Four control signals each slot directly driven either high low. Bits 7-0: Corresponding signal driven Corresponding signal driven high Power Supply Correspondence VCCXSEL1 VCCXSEL0 Settings Output VPPXSEL1 VPPXSEL0 Output 3.3V Hi-Z 5.4.4 E10A Emulator Interface board equipped with Hitachi-UDI port connector (CN8) which SH7729R E10A emulator connected. SH7729R H-UDI signals connected directly this connector. When connecting E10A emulator, always sure turn jumper board. Figure 5.16 shows arrangement Hitachi-UDI port connector (CN8). Table 5.11 shows assignment Hitachi-UDI port connector (CN8). Hitachi-UDI Port connector Figure 5.16 Hitachi-UDI Port Connector (CN8) Arrangement Table 5.11 Hitachi-UDI Port Connector (CN8) Assignment SH7729R Signal Name AUDDATA[0] AUDDATA[1] AUDDATA[2] AUDDATA[3] _AUDSYNC Input/Output Input/output Input/output Input/output Input/output Input/output Input SH7729R Signal Name _TRST _ASEBRKAK Reserve _RESET AUDCK Input/Output Input Input Input Input Output Output Output Input Parts Layout parts layout board shown figure 5.17. Uninstalled parts listed table 5.12. Table 5.12 List Uninstalled Parts Part Number OSC3 OSC4 CN4* J12, TP12 CKIN TEST R12, R149, R151 Part Name TCO-711S4 CXO-105D FFC-10 310-93-103 410-93-202 ST-1-3 ST-1-3 ST-1-3 MCR10EZHJ472 MCR10EZHJ103 MCR10EZHJ000 281E6801-337M 281E1002-157M 281E1002-107M Quantity Note: connector testing. Should connected cables even connector installed. 8817-180-170L 3.3V-GND HD151015 HD151015 TSSOP-24 3.3µF 5V-GND 1BAU 1CK2 3.3µF 3.3µF HD151015 HD151015 VHC244 3.3V-GND 1END 1MRB TSSOP-24 TSSOP-24 HD151015 HD151015 TSSOP-24 HD151015 TSSOP-24 TSSOP-24 538061604 HD151015 VHC244 VHC244 VHC244 53553-1609 TSSOP20 TSSOP20 TSSOP20 TSSOP-24 8931E-100178S HD151015 TSSOP-24 HD151015 TSSOP-24 HD151015 TSSOP-24 TSSOP-24 TSSOP20 HD151015 HD151015 TSSOP-24 TSSOP-24 VHC244 TSSOP20 VHC244 VHC244 VHC244 TSSOP20 LT1301 HD151015 TSSOP-24 TSSOP20 TSSOP20 VHC244 TSSOP20 VHC244 VHC244 VHC244 TSSOP20 HRF22 LTC1472CS TSSOP20 TSSOP20 LTC1472CS QS3384 QS3384 PSS-24A PSS-24A CDRH62B-330M LVTH16543 SSOL056 MB3771 FP-8D QS3384 QS3384 PSS-24A PSS-24A HM5264165 TTP-54D HM5264165 TTP-54D 5V-GND 3.3µF 1.8V-GND DT-26SH 3.3µF PA28F400B5-B60 SOP-44 EMP7160S TQFP-100 3.3V-GND 3.3V-GND 3.3µF XTAL1 LS279 FP-16DA 3.3µF 49FCT3805 PL-SKT/Q160 3.3V-GND SSOP20 LED1 V03C TP10 TP11 TP12 HEC0470-01-630 M2T-12AKH1-G5E LT1084 7620-6002SC FFC-10 LT1084 Figure 5.17 Parts Layout (Mounting Side) D-sub9 10236-5202JL ABORT 66.7Mz EPM7192 PQFP-160 CKIN MRESET SH7729R LQFP-208 3.3µF 3.3V-GND SG-8002JA OSC1/3/4 EXO-3C 14.7456M OSC2 LT1181ACS SOL-28 5500707 5.6.1 Initialization Initializing Resources Table 5.13 shows which board resources initialized. Table 5.13 Resource Initialization Interrupt Source Causing Initialization Power-On Reset Resource SH7729R CACHE INTC DMAC IRDA SCIF PORT Notes: Initialized Monitor Hardware Program Manual Reset Switch Monitor Hardware Program Remarks initialized When, during board operation, power-on reset occurs power supply voltage drop other reasons, "Power reset detected." message displayed. However, this case general-use registers control registers initialized. Change settings necessary restart HDI. Table 5.13 Resource Initialization (cont) Interrupt Source Causing Initialization Power-On Reset Resource SH7729R H-UDI ASERAM XYCNT XYMEM Interrupt controller PCMCIA SDRAM (Monitor program work area) Monitor Hardware Program Manual Reset Switch Monitor Hardware Program Initialized TRST Initialized TRST Initialized TRST Remarks SDRAM (User program area) Notes: Initialized initialized When, during board operation, power-on reset occurs power supply voltage drop other reasons, "Power reset detected." message displayed. However, this case general-use registers control registers initialized. Change settings necessary restart HDI. 5.6.2 Procedure Making Initial Settings State Controller (BSC) Figure 5.18 flowchart procedure setting initial settings state controller (BSC). information settings each register, please refer section 5.6.3, Initial Settings State Controller (BSC). Software timer 1.5µs more >Automatic refresh times (180 ns/once) START WCR2 RTCNT WTCNT =A5A6 RTCOR=Normal value =A553 WTCSR RTCNT RFCR BCR1 RTCOR=A503 RTCSR BCR2 RFCR SDMR WCR1 RTCSR FRQCR Figure 5.18 Procedure Setting Settings 5.6.3 Initial Settings State Controller (BSC) clock mode board. state controller (BSC) registers, bits corresponding areas must modified because these areas assigned resources board. these bits modified, board will operate. following shows initial register values monitor program. figures, shaded bits must modified. Separate figures used show register values that depend operating frequency (CKIO). Registers Whose Values Same 66.7 33.3 MHz: BCR1 (H'FFFFFF60) H'0009 name Initial value BST1 BST0 BST1 BST0 BST1 BST0 BCR2 (H'FFFFFF62) H'2FF0 name Initial value WCR1 (H'FFFFFF64) H'9F71 WAIT name Initial value WTCNT (H'FFFFFF84) H'5A00 name Initial value bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 WTCSR (H'FFFFFF86) H'A547 name Initial value WT/I IOVF CSK2 CSK1 CSK0 (H'FFFFFF68) H'5724 TPC1 TPC0 name Initial value RTCNT (H'FFFFFF70) H'A500 name Initial value Register Values 66.7 MHz: FRQCR (H'FFFFFF80) H'A101 STC2 IFC2 PFC2 name Initial value STC1 STC0 IFC1 IFC0 PFC1 PFC0 SDMR (H'FFFFE088) H'00 name Initial value RTCSR (H'FFFFFF6E) H'A508 name Initial value CMIE CKS2 CKS1 CKS0 OVIE RTCOR (H'FFFFFF72) H'A5A6 name Initial value bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 RFCR (H'FFFFFF74) H'A400 name Initial value WCR2 (H'FFFFFF66) H'FFDB name Initial value Register Values 33.3 MHz: FRQCR (H'FFFFFF80) H'A111 STC2 IFC2 PFC2 name Initial value STC1 STC0 IFC1 IFC0 PFC1 PFC0 SDMR (H'FFFFE088) H'00 name Initial value RTCSR (H'FFFFFF6E) H'A508 name Initial value CMIE CKS2 CKS1 CKS0 OVIE RTCOR (H'FFFFFF72) H'A553 name Initial value bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 RFCR (H'FFFFFF74) H'A400 name Initial value WCR2 (H'FFFFFF66) H'FFDA name Initial value Section Notes Troubleshooting Notes When executing user program, following interrupts cannot used. This because monitor program using following functions debugging purposes. User Break Controller (UBC) Serial Communication Interface (SCI) TRAPA#255 Trap instruction monitor program uses interrupts, user interrupts mask level lower. interrupt mask level correct operation cannot guaranteed. default mask level Interrupt Exception Display following interrupts exceptions displayed status during user program execution. Address error Illegal general instruction Illegal slot instruction When exception occurs board while user program being executed, will display EXPEVT code that corresponds cause exception, monitor program will enter reset-input wait state. this case, turn power board input reset, start initiate link-up processing. Figure Error Message Displayed Exception (Instruction Miss Exception) Breakpoints cannot delay slot user program. attempt made such breakpoint, following message appears. Figure Message Indicating Breakpoint Cannot above reason, breakpoint initial data invalid when user program loaded specifying session file. this case, reload program respecifying session file. breakpoint within interrupt exception handler user program, will cause break when program executed. When power-on reset manual reset input, message shown figure. figure. respectively shown. this time, general-purpose registers control registers reset. Either settings should changed necessary, should restarted. time count function must enabled again Time Count Condition dialog box. Figure Power-on Reset Input Message Figure Manual Reset Input Message power turned while pressing holding manual reset switch, board will started. When turning power, operate manual reset switch. this case, power-on reset input when power turned register initialized. However, manual reset code event code flags within CPU, monitor program performs manual reset processing (registers initialized). Consequently initial values monitoring written CPU, access various resources possible. some cases register values correctly displayed memory window. This because reads areas byte units. order display correct register values, select [I/O Registers] from [View] menu. monitor program sets uses some registers. When rewriting these registers, refer section 5.6.3, Initial Settings State Controller (BSC). Ports Some port terminals this board also used pins other functions, some pins cannot used port functions. functions that used included signal names names expansion connector assignments tables 5.4, section 5.4, Interface. signal name functions included name used, correct operation guaranteed. 11.CPU Operating Mode operating mode this clock mode area width bits. endian configuration changed using jumper (See section 2.8, Jumpers, details settings.) Expansion Areas available with expansion expansion areas cannot area Monitor FLASH memory monitor connected area SDRAM connected area PCMCIA slots connected area (2)Devices which cannot connected expansion DRAM cannot connected expansion bus. (This because SDRAM board allocated area Interrupts NMI, external interrupts, port interrupts should processed interrupt handlers user program. details refer section Creation User Interrupt Handlers. IRQ5 assigned CTS2/SCPT[7] with other functions. this reason, user cannot IRQ5 external interrupt. other external interrupts instead. Refresh Timer refresh timer used SDRAM refresh timer, cannot used interval timer. time count function uses TMU0, user cannot TMU0. TMU0 register accidentally overwritten, correct operation guaranteed. serial interface with host uses SCI0 (SCI) CPU. this reason, user cannot CPU's internal SCI0 except standard processing using [Simulated Window]. details, refer section 7.2, User Program Using SCI. SCI1 (IrDA) SCI2 (SCIF) purpose other than standard processing. SCI0 interface register accidentally overwritten, board will become inoperable. PCMCIA Interface This board provided with PCMCIA driver. When using PCMCIA card, please provide your PCMCIA driver. When using PCMCIA card, always sure that after detecting card detection signal CD0/CD1, PCMCIA driver enables PCMCIA external buffer control (the P0DRVE P1DRVE bit). buffer enabled prior card detection, correct operation guaranteed. E10A Emulator Interface monitor used with E10A emulator connected, correct operation guaranteed. Moreover, with E10A emulator connected port functions Hitachi-UDI interface signal pins cannot used. Host Interface Software When using this board, always included Hitachi Debugging Interface (HDI). other host interface software used, operation board user programs guaranteed. User Program Execution Abort switch (SW2) connected CPU. Therefore, change settings about function register without preparing handling routine. register accidentally overwritten, correct operation cannot guaranteed including abort switch operation. When modifying register value, sure prepare handling routine abort switch. single-step execution performed illegal instruction, program counter will increment count; perform single-step executions illegal instructions. When multiple step execution performed program that contains SLEEP instruction (from [Step.] menu), execution speed ([RATE]) must Otherwise error ([Command ready] error) will occur when SLEEP instruction executed, execution from then cannot accepted. such case, press abort switch start execution again. During step execution, standard libraries also executed. return higher-level function, Step Out. statement while statement, executing single step does move execution next line. move next line, execute steps. user program halted break step execution breakpoint, Halt button, abort switch (SW2), handled same exception user program. these causes generated, bytes user stack area will used. Reserve sufficient stack areas, allocate user program data. Halt button pressed sleep mode, operation cannot guaranteed. When mode should returned from sleep, press abort switch board enter other interrupts. breakpoint sleep instruction, execution time during sleep mode cannot measured. When user wants measure execution time including sleep instruction, breakpoint sleep instruction. Breakpoints During single-step execution, settings breakpoints ignored. total breakpoints (including temporary breakpoints) set. temporary breakpoint cannot same address enabled breakpoint. temporary breakpoint same address disabled breakpoint, breakpoint will deleted from breakpoints list after program execution have been completed. After setting breakpoints, board must manually reset while user program being executed. Otherwise, illegal instructions will remain addresses where breakpoints have been specified. continue debugging user program, download user program again. board, TRAPA instruction used breakpoint functions. When using repeat loops board, note that some repeat loops, branch instructions cannot used, breakpoints cannot such loops. details, refer SH7729R Hardware Manual Programming Manual. After breakpoints (the maximum number) have been specified, Add/Edit Breakpoint selected Breakpoints window, error will occur. this case, delete unnecessary breakpoints, then edit breakpoints. When contents software breakpoint address modified during user program execution, breakpoint disabled. user program will stop this address. When program stops with other reason, modified contents will discarded returned original value (set before program execution). Watch Local variables optimization Depending generated object code, local variables source file that compiled with optimization option enabled will displayed correctly. Check generated object code mixed display Program window. allocation area specified local variable does exist, displays follows. Example: variable name asc. target error 2010 (xxxx) Variable name specification When name other than variable name, such symbol name function name, specified, data displayed. Example: Array display When number array elements exceeds 1000, number exceeding 1001 will displayed. Serial Interface When frequency 33.3 jumpers J10, serial interface baud rate must 115,200 bit/s; baud rate 57,600 bit/s. board does control data flow. Therefore, when transferring large amount data from board host computer, overrun error occur. error occurs after performing following corrective actions, repeat action. control panel host computer, serial port 115,200 bit/s FIFO initial state. Table Operations that Generate Errors Executing Environment Menu Conditions Error Generation more than hundred steps specified. Error Message Recover from Error When error occurs, press manual reset button initialize HDI. Then execute multiple steps. Click button message execute Save memory again. function name main. main Operation Multiple step execution Unable fetch register (displayed message box) Save memory Menu more than hundred kbytes specified. Command ready (displayed message box) Note: Conditions Error Generation reference. error still occurs after action executed again, mean that large amount load applied host computer, making access speed serial port slower than transfer speed. such case, close other applications opened host computer reduce load. serial interface disconnected while program being down loaded through serial interface, will stop abnormally. this case, connect serial interface cable correctly, restart board HDI. does support Motorola S-type files with only code (H'0D) each record. Load Motorola S-type files with codes (H'0D0A) each record. board limit address range downloading. sure download program areas. Otherwise operation cannot guaranteed. When Motorola S-type file downloaded, menus, Load Program Load Memory, used, Load Program recommended because transfer data faster. this HDI, [Command Line] menu selected, operation command entered from command line cannot guaranteed. command line. This does support software breakpoint setting [Select Function] dialog (described section Selecting Functions, Hitachi Debugging Interface User's Manual). following memory contents displayed [Memory] window, they will incorrect. Word access from address Longword access from address font size used memory window must larger. window, 32768bytes displayed. each Watchdog Timer register, there registers separately used write read. Table Watchdog Timer Register Usage Write Write Read Read Register Watchdog timer control/status register Watchdog timer counter Watchdog timer control/status register Watchdog timer counter Register Name WTCSR(W) WTCNT(W) WTCSR(R) WTCNT(R) Since different versions cannot used same time, re-install this whenever another previously installed used. another been used, initiate this with "Run" follows, without using session files. <Directory path name which installed>\hdi (RET) initiates without loading recently used session files. there another session file different debug platform, following error message displayed: invalid target system: <recently used debug platform name> When another uninstalled after installation this HDI, some functions work correctly. this case, re-install this HDI. operations such [Fill Memory] [Test Memory], take minutes complete operation. This depends size data specified. Since only seconds specified timeout time board, "Command ready" error occur. such cases, results operation will guaranteed; therefore, specify smaller size execute operation again. access size target start addresses specified [Fill Memory] dialog box. access size does match specified start address, will treat them follows: Fill size address start address fill size decreased nearest integer multiple access size. start address decreased nearest integer multiple access size. fill size smaller than access size, fill size increased nearest integer multiple access size. After above processing, performs memory-fill operation. values displayed Cache Status Status Status window values last break that occurred during user program execution. Values updated Registers window displayed Status window. (10) overhead time measurement about 66.7MHz, about 33.3MHz execution. default register definition file does include bit-level information. bit-level information, create definition file modify default register definition file. details format register definition files, refer appendix Register File Format, Hitachi Debugging Interface User's Manual. When menu selected from display during user program execution, some commands activated; however, board, only Labels,Status,Simulated Window,Halt Help commands used. Troubleshooting "Illegal general instruction" appears status bar, program execution halted. This displayed when general exception occurs. This message appears when EXPEVT register value H'180. caused privileged instruction user mode, undefined instruction, similar reasons. further information refer SH7729R Hardware Manual. When privileged instruction been used user mode, please take following steps. register window, change (status register) (privileged mode). execute [Reset CPU] [Run] menu, register values following initial values. Register Initial Value Settings Initial Value H'AC000000 H'600010E0 H'ACF80000 H'A0008000 (big endian) H'A0048000 (little endian) Description User program area start address Privileged mode, mask level Final address user program area Monitor (different from actual chip) Table Register (SP) Step execution slow. When [Watch Window] window [I/O Registers] window open, data these windows must rewritten each time step executed, execution speed will reduced. Decrease sizes these windows speed execution. Section Creation User Interrupt Handlers Creation User Interrupt Handlers Cases where exceptions interrupts used user program user interrupt handlers created): value initial value (big-endian: H'A0008000, little-endian: H'A0048000). doing step execution, breaks, other debugging functions used when exception interrupt occurs. Cases where exceptions interrupts used user program (user interrupt handlers created): value start address user interrupt handler. doing execution will branch user interrupt handler when exception interrupt occurs. routine branch following addresses user interrupt handler; this will enable step execution, breaks other debugging functions when exception interrupt occurs. Table lists branch addresses different interrupt causes. Table Interrupt Causes Branch Addresses User Interrupt Handlers Code EXPEVT=1E0 EXPEVT=160 EXPEVT=180 EXPEVT=1A0 EXPEVT=0E0 EXPEVT=100 EXPEVT=5C0 INTEVT=1C0 INTEVT=500 Branch Address (Big-Endian) H'A0009000 H'A0009020 H'A0009040 H'A0009060 H'A0009080 H'A0009080 H'A00090A0 H'A00090C0 H'A00090E0 Branch Address (Little-Endian) H'A0049000 H'A0049020 H'A0049040 H'A0049060 H'A0049080 H'A0049080 H'A00490A0 H'A00490C0 H'A00490E0 Interrupt Cause trap Unconditional trap (FF) Reserved instruction code exception Slot illegal instruction exception address error (load) address error (store) address error SCI-RXI* Note: When used, program branch SCI-RXI destination address must prepared. Attention should paid following when creating interrupt handler. When branching branch address from user interrupt handler, values (BANK1) must saved stack. other words, @(R15-8) time exception (BANK1) @(R15-4) time exception (BANK1) following example code which achieves this. MOV.L MOV.L @-R15; save R0_BANK1 @-R15; save R1_BANK1 this means, register values displayed during debugging when exception interrupt occurs. values general-purpose registers other than should saved time occurrence exception interrupt. register should kept from occurrence exception until branching branch address. values SSR, SPC, EXPEVT, INTEVT, INTEVT2, registers should saved time occurrence exception. Branching should performed with bits register both (the state occurrence exception interrupt). User Program Using user program cannot usually access serial communication interface with FIFO (SCIF) SH7729R because board uses communicate with host board provides [Simulated Window] window allow user SCIF. When SCIF used from user program, SCIF driver user program communicates with [Simulated Window] window host rather than with actual SCIF directly. processing interrupts must added user program, user interrupt handler must created according directions section 7.1, Creation User Interrupt Handlers. installer CD-R supplied with board contains sample program user interrupt handler SCIF driver. details sample program, refer section 7.3, Sample Program. 7.2.1 Creation Driver Note following when creating SCI0 driver. receive serial data, interrupt must used. Create SCI-RXI (receive data full interrupt request) processing routine. When [HALT] button pressed during serial receiving operation, sends HALT code (H'12) board. When HALT code received, execution must branch HALT break processing address board. Table Endian endian Little endian HALT Break Destination Address HALT Break Destination Address H'A00090E0 H'A00490E0 branch HALT break processing performed same interface branch user interrupt handlers. details, refer section 7.1, Creation User Interrupt Handlers. Notes: SCI0 used communication between board host computer. user uses SCI0 purpose other than communication with [Simulated Window] window, correct operation cannot guaranteed. such purposes, SCI1 (IrDA) SCI2 (SCIF). processing that branches execution HALT break when HALT code received prepared, program cannot stopped clicking [HALT] button HDI. 7.2.2 SCI-Related Register Settings initial values SCI-related registers shown below. shaded bits must modified. Serial Communication Interface (SCI0): SCSMR (H'FFFFFE80) H'00 Initial value STOP CKS1 CKS0 SCBRR (H'FFFFFE82) H'FF Initial value SCSCR (H'FFFFFE84) H'73 Initial value MPIE TEIE CKE1 CKE0 restrictions placed accesses SCTDR, SCSSR, SCRDR, SCPDR, SCPCR. Interrupt Controller (INTC): interrupts used user program, interrupt level from set, interrupt level must used except SCI. ICRA (H'FFFFFEE2) H'0000 Initial value TMU0 TMU0 TMU0 ICRB (H'FFFFFEE4) H'00F0 Initial value ICRC (H'A4000016) H'0000 Initial value IRQ3 IRQ2 IRQ1 IRQ0 ICRD (H'A4000018) H'0000 Initial value PINT0 PINT7 PINT8 PINT15 IRQ5 IRQ4 ICRE (H'A400001A) H'0000 Initial value DMAC IrDA SCIF ICR0 (H'FFFFFEE0) Undefined Initial value NMIL NMIE ICR1 (H'A4000010) H'4000 IRQL IRLS IRQ5 IRQ5 IRQ4 IRQ4 IRQ3 IRQ3 IRQ2 IRQ2 IRQ1 IRQ1 IRQ0 IRQ0 Initial value restrictions placed accesses ICF2, PINTER, IRR0, IRR1, IRR2. Sample Program This section describes create user interrupt handlers SCI0 driver using sample programs. sample program files were created language SH-series assembly language work space Hitachi Embedded Workshop (HEW). This program performs echo-back characters input from [Simulated Window] window, line line, using SCI0. sample program files, including source object files, automatically copied Sample directory under installation directory. Load compiled load module (Simio.abs), program counter stack pointer values H'AC000000, H'ACF80000), click [Go] button execute program. Figure Executing Sample Program Note: work space supplied this sample program created Version (Release program cannot opened version earlier than 1.1. details, refer Hitachi Embedded Workshop User's Manual. File Configuration: Table shows files that compose sample program. Table File Name (install directory)\Sample\Simio.hws (install directory)\Sample\Simio.hww (install (install directory)\Sample\Simio\Env.inc (install (install (install (install directory)\Sample\Simio\Main.c (install (install (install (install (install (install (install (install (install (install (install (install Sample Program Files Description work space file file Branch address definition EXPEVT/INTEVT register definition Interrupt processing program SH7729R register definition driver program Main program Start program relation definition Global variable/stack area Vector definition Vector table area Interrupt handler file Syntax text file endian file little endian Make file endian Make file little endian Sections: Table shows sections sample program. Table Address H'0C000000 H'0CF7F000 H'0CF7FC00 H'0CF7FFFF H'AC010000 Sections Sample Program Section Name Start, IntPRG, Dataarea Stack INTHandler INTTBL Interrupt Handlers: interrupt sources their processing shown table 7.5. interrupt tha Other recent searchesWPS-242717-02 - WPS-242717-02 WPS-242717-02 Datasheet VSC8473 - VSC8473 VSC8473 Datasheet VSC8473-01 - VSC8473-01 VSC8473-01 Datasheet VSC8477 - VSC8477 VSC8477 Datasheet SN74ABT652 - SN74ABT652 SN74ABT652 Datasheet SN54ABT652 - SN54ABT652 SN54ABT652 Datasheet SC017 - SC017 SC017 Datasheet PTLG0100KA-A - PTLG0100KA-A PTLG0100KA-A Datasheet MC33002 - MC33002 MC33002 Datasheet MC34002 - MC34002 MC34002 Datasheet MC35002 - MC35002 MC35002 Datasheet APTGT75A120D1 - APTGT75A120D1 APTGT75A120D1 Datasheet APTC60VDAM24T3G - APTC60VDAM24T3G APTC60VDAM24T3G Datasheet 2SA1699 - 2SA1699 2SA1699 Datasheet
Privacy Policy | Disclaimer |