eSL/eAM Series (+eSLZ000) INTEGRATED DEVELOPMENT ENVIRONMENT USER’S GUIDE DOC. VERSION 1.8 (Applicable to eSL/eAM IDE Version 1.0 & later) ELAN MICROELECTRONICS CORP.
Trademark Acknowledgments: IBM is a registered trademark and PS/2 is a trademark of IBM Windows is a trademark of Microsoft Corporation ELAN and ELAN logo are trademarks of ELAN Microelectronics Corporation Copyright © 2006 by ELAN Microelectronics Corporation All Rights Reserved Printed in Taiwan The contents of this User’s Manual (publication) are subject to change without further notice.
Contents Contents 1 Introduction 1 1.1 Overview .....................................................................................................................1 1.2 Introduction to eSL/eAM IDE Program .....................................................................2 1.2.1 Tools under File View and Voice View Modes ..................................................2 1.2.1.1 File View Mode ....................................................................................2 1.2.1.
Contents Appendix A Library Tool Introduction 53 A.1 Overview ...................................................................................................................53 A.2 Create New Library file.............................................................................................53 A.2.1 Create library file from eSL/eAM IDE...........................................................53 A.2.1.1 New Project...................................................................................
Contents D How to Use Self Test 83 D.1 IDE Tool Self Test Function Setting .........................................................................83 D.2 Self Test I/O Application Circuit .....................................................................84 D.3 Self Test Flow Chart ..................................................................................................85 E How to Create and Use External Voice Project 87 E.1 Create SPI Voice Project.........................................
Contents Reference Manual Revision History Doc. Version Revision Description Date 1.0 Initial Version 2006/3/15 1.1 Add eAM serial chip and speech ADPCM coding type 2006/6/7 1.2 Add How to create and use SPI Project 2006/7/10 1.3 Add some note and ezwave icon and relate command 2006/7/20 1.4 Modify appendix D and modify assemble watch window content Update compiler option window 2006/8/15 1.5 Modify Customize Option Dialog content Add Speech Overview window section 2006/12/19 1.
Chapter 1 Chapter 1 Introduction 1.1 Overview MIDI files (*.mid) Wav files (*.wav) User data (*.tbl, *.bin) Assembly module (*.asm) C module (*.
Chapter 1 1.2 Introduction to eSL/eAM IDE Program The eSL/eAM IDE Program is a Windows-based program that is used among other things, to develop embedded programs for eSL/eAM series microcontrollers. The embedded program is developed by taking one or more source files in assembly language and translate them into object files that are linked to each other along with one or more libraries. The created executable program is then downloaded to ICEeSL for simulation, verification and debugging. 1.2.
Chapter 1 1.2.2 eSL/eAM IDE Main User Interface Editor Window Disassembly Window Special Register Window Menu Bar Tool Bar (Standard & Build) Document Bar Project Window (File or Voice View Mode) FileViews & VoiceViews Tabs ROM Status Window Output Window RAM Window Watch Window IO Window Call Stack Window eSL/eAM IDE Main Window Layout 1.2.2.
Chapter 1 The root node of the Project window shows your current micro-controller, project filename, and *Project type (executable or library project) Project Type: Executable Project – are the project that can debug and download source data on simulator and ICEeSL Library Project – are the project that can’t debug and download source data on simulator and ICEeSL, but it can create a library file (*.a).
Chapter 1 Project Window (Voice View Mode External) Project Filename (*.prj) Target Microcontroller The Project window under VoiceView – External Mode tab holds the Files. (only for SPI Voice Project) Where: Voice Files (*.wav,*.mp3,*.wma,*.mid, *.*) – are the speech, mid and user defined files that are added into the current project. The root node of the Project window shows your current microcontroller and project filename.
Chapter 1 “Percussion” Node – contains the percussion instruments defined by your MIDI files. Like the Tone node above, the Percussion node also consisted of two child nodes, “Auto” and “Manual.” It is also initially empty regardless of the presence of MIDI files in the voice project. Only after clicking the Build or Rebuild All command from the Project menu that the eSL/eAM IDE starts to automatically collect the percussion instruments for MIDI files and display them under “Auto” node.
Chapter 1 in the voice project. If inserting binary data, browse for the “Binary Data Files (*.bin)” folder from the same dialog. Press the OK button in the dialog to apply selection. The selected data files will be shown under the User Data node. Editor Window Current file being edited The eSL/eAM IDE Editor is a multi- windowed editing tool for creating, viewing, and modifying source files.
Chapter 1 ROM Status Window The red and green area meets the used ROM size ROM Status window show how many Program ROM and Data Rom Size used by user’s source code and voice data. The red and green section meets the used size. RAM Window RAM window provides the updated contents of RAM in the same way as in updating the contents of the special registers. The address format (hex) is in left column.The RAM window allows user click right mouse button to pop-up a dump menu.
Chapter 1 Dump RAM All: dump and save ram datas from address 0 to the last address. Dump RAM From: dump and save ram datas which the address range specified by user. Example: Start address = 0x100 Offset = 0x050 End address = 0x150 *meets you want dump ram data from RAM address 0x100, offset 0x50, end address is 0x150 and total count is 0x50. NOTE 1. Start address can’t over max address. 2. Start address + offset = end address can’t over max address 3.
Chapter 1 Build – displays assembler/linker related messages, trace logs, and error messages. Double click on the error message to link to the corresponding program text line in the Editor window where the source of error occurs. Debug – displays debugging related messages and their corresponding error messages. Find in Files – allows you to find a like string (selected from an active file) from other active or inactive files in your folder.
Chapter 1 Edit Menu Undo Cancel the last edit action Redo Repeat the last edit action Cut/Copy/Paste Same as standard clipboard function Select All Select all contents of the active window Go to Line… Move cursor to the defined line number within the active window Find Find the defined strings in the active window Find in Files Find the defined strings in one or more files window Replace… Same as standard “find and replace” editing functions View Menu Toolbars View/hide Standard or Build toolbar Statu
Chapter 1 Debugr Window: View/Hide Call Stack/Watch/Disassembly window Call Stack Window: The Call Stack window shows a list of all active Procedure Calls. Active procedure calls are the procedures in the application that were started but not completed. The Call Stack window helps you trace the operation of an application as it executes a series of nested procedures.
Chapter 1 Watch Window: The Watch window lets you view and modify program variables and lists the current function call nesting. The contents of the Watch Window are automatically updated whenever program execution stops. Note, watch window for asm project only can watch the symbols defined as .DW, .DS, .EQU, Level and RAM data. Note, EQU Symbol no address information, .DS symbol only shows the first address and data.For example: Å .DS Symbol RamReserve .DS 1 EquValue .EQU 10 Å .
Chapter 1 Watch Window for C Project Disassembly Window: The Disassembly window shows your target program as assembly code. The highlighted instruction shown indicates the Active procedure. You also can select the Disassembly Window as the active window to debug your target program, but take note that eSL/eAM IDE does not allow user to set breakpoint in the Disassembly window.
Chapter 1 Monitor Window: The Monitor window show data which get from IO[0x7D]. Before use this window, you must enable monitor data flag at [menu]Æ [Debug]Æ[Enable Monitor Data] and connect to ICEeSL.
Chapter 1 Full Zoom-Out Before Full Zoom-Out After Full Zoom-Out Full Zoom-Iin Before Full Zoom-In After Full Zoom-In Zoom-Out Before Zoom-Out 16 • After Zoom-Out eSL/eAM Series (+eSLZ000) IDE User’s Guide
Chapter 1 Zoom-In Before Zoom-In After Zoom-In Zoom Bar Before drag zoom bar After zooming in eSL/eAM Series (+eSLZ000) IDE User’s Guide After zooming out • 17
Chapter 1 Full Scale: Set all samples full scale Before Full Scale After Full Scale Discrete: Set all continuous samples discrete. Before Discrete After Discrete Period Align: Calculate frequency of waves. Monitor window will change wave band when the period change. Clear: Clear All Samples which show at monitor window. Save: Save all samples which user select (blue area), but if user doesn’t select save area, monitor window will save all samples.
Chapter 1 Project Menu New… Create a new project Open Open an existing project Save Save the active project together with all related data Close Close the active Project window Insert Files to Insert program source files Project… into project Insert Special Insert Special register into Register Special register window Insert Tones into Insert music tones into project Project… Insert Percussion Insert percussion into project into Project… Build Compile modified files only Rebuild All Compile all source fi
Chapter 1 Step Into Execute instructions step-by -step (with register contents updated simultaneously). Note, in c project, step into always clear trace buffer. Step Over Execute instructions as in Step Into except for Call instruction, which is executed as in Go command above. Note, in c project, step over always clear trace buffer.
Chapter 1 Toggle Machine Cycle: Enable/Disable Get Machine Cycle count. The valid range of machine cycle is form 0x00 to 0xFFFFFF (16777215). If machine cycle over this range, eSL/eAM IDE will show overflow message at output window. ROM Breakpoint Dialog: ROM breakpoint can set at any address of the Program ROM. At this Dialog, you can check all ROM breakpoints in project, remove one or remove all breakpoint. In addition, you can click checkbox to disable ROM breakpoint.
Chapter 1 Hardware Breakpoints Dialog (please refer to Appendix C) Four Domain Logic Condition Pre-Trigger Loop Counter PC counter break (read/write) You can set an immobile PC value to trigger break. PC range from 0x0000 to 0x7FFF RAM break (read/write) The data memory breakpoints can be set to one of three modes; address break, address with data break, address with data mask break, in addition every mode support Data memory Read, Data memory Write or Data memory Read or Write.
Chapter 1 I/O break (read/write) The I/O breakpoints can be set to one of three modes; address break, address with data break, address with data mask break, in addition every mode support Data Read, Data Write, Data Read or Write.
Chapter 1 EMF Download Boot Flash: Download data to EMF Boot Flash DROM Flash: Download data to EMF DROM Flash SPI Data Flash: Download data to ICEeSL SPI Data Flash Play Midi and Speech Dialog (please refer to Appendix B) Tool Bar Output Bar Control Bar Status Bar Tool Bar: Open and build midi file (user must select form type fisrt) Open and build speech (user must select coding type first) Connect ICE Change Midi tone library (Instrument And Percussion) Load IDE support default Midi tone library file
Chapter 1 Control Bar: Play midi or speech button Pause midi or speech playing button Stop midi or speech playing button Restart(Reset) playing button No Repeat playing midi or speech button Repeat playing midi or speech button Sound on button Sound off button Volume slider bar Output Bar: The Output bar displays messages indicating results of midi or speech compiling just performed, such as connection, midi or speech file information, and change *.
Chapter 1 Project Setting: Define compiler (assembler), linker, customize and directory option. Compiler Option Dialog Support warning messages: Support warning message when compile or assemble project Support extra warning for several ANSI rules: Support extra warning message for several ANSI rules when compile C file. This option only work at C file. Optimization: Support debug information if select debug mode, opposite, Release mode doesn’t have debug information.
Chapter 1 Customize Option Dialog Auto download voice project data: eSL/eAM IDE will auto download voice data into DROM when user starts debugging source code. This option enable when eSL/eAM IDE connect ICEesL and only support executable project (i.e. only executable project can debug source code). Auto verify PROM data: eSL/eAM IDE will verify PROM when compile or assemble source code. Body Type: IDE allow user reset body type, when project opened.
Chapter 1 the maximum address and only fill the address which user used to binary file. User can select input, output and display pin. (please refer to Appendix D) Note This option only enable at ICE mode, no support at Simulator mode. Inp Source: User can indicate instrument and percussion library file through this brower. Available User RAM .DS Size: show how mamy RAMs can be used for user. Enable Record Option Function: When users enable record option, the record function will be activated.
Chapter 1 (2) 2 Channel (Speed && Pitch control / Beat Tracking / Sound Location): Support 2 channels can be used. The eSL/eAM IDE will reserve mid usable RAM size for user. If users select this option, the memory which user can use is at last 30 words (address 0 ~ address 29). The speech algorithm can be used is the same as next Table of option (3). (3) 2 Channel (S1+S2 or S1+Melody [all type]): Support 2 channels can be used. The eSL/eAM IDE will reserve min usable RAM size for user.
Chapter 1 (2) 2 Speech or Melody: It can support maximum 2 speeches or melody. The eSL/eAM IDE will reserve available RAM size for user. If users select this option, the memory which user can use is 783 words (address 0~ address 782). The speech algorithm can support type 5 and type 6. (3) more than 2 Speech or Melody: It can support maximum 4 speeches or melody. The eSL/eAM IDE will reserve available RAM size for user.
Chapter 1 Connect Dialogue. Coding Type Setting: Select speech coding type. eSL032, eSL128, eSL256, eSL512, eSL128S, eSL256S and eSL512S include Type 3, Type 4, Type 5, Type 6, Recorder ADPCM, and Type MP3-Like. eSLZ000, eSL032A, eSL128A, eSL256A, eSL512A, eSL128SA, eSL256SA and eSL512SA include Type1, Type 2-1 Type 2-2, Type 3, Type 4, Type 5, Type6, Recorder ADPCM and Type MP3-Like.
Chapter 1 Type6 coding type. Stack Pointer Setting: Define stack pointer address. Default address is the max available size address of different Chip. Window Menu New Window Open another window of the same file you are currently editing (for split window viewing) Cascade Arrange all open files in cascade formation Tile Arrange all open files editing in tile formation Close All Close all open files “1 hello.
Chapter 1 About ELAN See information on version of the IDE… current eSL/eAM IDE Program Pop-Up Menu Right Click edit document then IDE will pop-up this menu (The description of all items please refer to previous pages) 1.2.2.3 Toolbar 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 View/hide either Standard or Build toolbar, or both from View menu.
Chapter 1 1.2.2.4 Document Bar The Document bar displays the buttons representing each of the active files in the Editor window. Click the button of the pertinent file that you wish to place in front of the Editor window to perform editing (function is similar with taskbar buttons under Windows). 1.2.2.
Chapter 2 Chapter 2 Getting Started with eSL/eAM IDE 2.1 Overview This chapter provides a step-by-step description on How to create a new project under File View Mode How to add/remove existing source file in a project. How to build projects. How to debug an project. 2.2 Starting the eSL/eAM IDE Program To start eSL/eAM IDE Program, click on the eSL/eAM IDE icon from desktop or from Windows Start menu.
Chapter 2 2.3 Create a New Project (about SPI project, please release reference Appendix E) To create a new project, you need to configure your project by following these steps: 1. From the Menu bar of the eSL/eAM IDE main window, click on File or Project menu and choose New command from the resulting Pull-down menu. 2. The New dialog (shown below) will then display.
Chapter 2 3. Select Projects tab from dialog and assign a name for the new project in the Project Name box (suffix .prj will auto-append to the filename). Target Microcontroller Project Filename and Project Type 4. Locate the folder where you want to store the new project. You may use the Browse icon to find the appropriate folder. 5. Select the target microcontroller for your project from the Micro Controller list box. 6.
Chapter 2 The new project is created with the defined project name, microcontroller and project type you have selected displayed on top of the Project window. 2.4 Add and Remove Source Files from/to Project You can either insert existing source files into the new or existing project, or create new ones from within eSL/eAM IDE text Editor and automatically insert them into the new project. 2.4.
Chapter 2 2. Assign a filename for the new source file in the File Name box. 3. Locate the folder where you want to store the new source file in your disk. You may use the Browse icon to find the appropriate folder. 4. Check Add to Project check box (default) if you want to automatically add the new file into your project. Otherwise clear the check box. 5. Click OK button after confirming your inputs. You will be prompted to start writing the newly defined source file in the Editor window. 2.4.
Chapter 2 2.4.4 Deleting Source Files from Project From the Project window, select the file(s) you wish to delete. Then press the Delete key from your keyboard. “Project (File View)” Window 2.5 Add and Remove Voice Files from/to Project You can insert existing voice files into the new or existing project, inserted file will add to Voice View in Project Window. Voice files include speech files (*.wav), melody files (*.mid) or user define file (*.bin,*.tbl). 2.5.
Chapter 2 “Project” Menu 2. “Insert File into Project” Dialog On the other hand, you can clicking mouse left button at the “Speech File”, “Midi File” and “User Data” node in voice view window. eSL/eAM IDE will pop-up one pop menu for you to select the desired file from the resulting “Insert Files” dialog. The same, the selected file will insert at corresponding node in the voice view window.
Chapter 2 2.5.2 Encode Speech Files in the Project User can click mouse left buttom at indicate speech file and open “Speech property” dialog to select speech option to encode speech file.
Chapter 2 File Info: about file full path, resolution, sample rate and Bit Rate.The Bit Rate will exchange between different coding type and different sample rate. Code Type: eSL/eAM IDE support Type1 ~Type6 coding type for eSLZ000, eSL032A, eSL128A, eSL256A and eSL512A, others, only support Type4, Type 5, Type 6. Default is Type 3 and bit rate is 12Kbps. Plus Configuration: include echo (from 0~5), style (hard, medium and soft) and enhance. Mark Number: set the max mark number for indicate speech file.
Chapter 2 Coding Type and Plus Configuration Speech files Search Conditions Hardware/Software Play Pad Speech Overview Dialog: In this dialog you can multi select files and set Coding type, Echo, Style and Mark Num at one time. You also can search files by different condition at Search Option section. After searching, all of fit speech files will be highlighted. 2.5.
Chapter 2 Set midi option by clicking mouse left buttom Play Midi: Let user can immediately listen midi data status before build midi file. This function only enable at ICEeSL connected. Form Setting: eSL/eAM IDE support short and long form option before build midi data. Default is Short form. Midi form setting dialog Channel Setting: Channel Setting dialog support user to indicate which track assign to which channel by max notes. eSL/eAM IDE support 32 tracks and 16 channels.
Chapter 2 NOTE One channel only can be assigned to one track Property: show midi file property. 2.6 Edit a Source File From and Within Project You can edit source files that are already inserted in the project. To do so, double click the source file you wish to edit from the Project window and the file will open in the Editor window of the eSL/eAM IDE Program Double click to open & edit file Source file opened for editing Editing Source File From and Within Project 2.
Chapter 2 Output Window Showing Successful Compile, Assemble & Link Compilation If error is detected during compilation, pertinent error message will also display in the Output window. Double click on the error message to link to the source of error from corresponding program text line in the Editor window. Output Window Showing Compiler, Assembler & Link Compilation Errors Modify source files to correct the errors and repeat Compiler assembler and link operations. 2.
Chapter 2 2.8.1 Breakpoints Setup To assign a breakpoint, position cursor at any source line where a breakpoint is going to be set, and then press F9 key. Observe the line highlighted in red with a red footprint (dot ) indicator to its left. You can also click on the Insert/ Remove Breakpoint icon (hand shape) on the toolbar, or choose Breakpoint Footprint Breakpoint Active Source File with a Defined Breakpoint Insert/Remove Breakpoint command from the Debug menu to set the breakpoint.
Chapter 2 2.8.2 Debugging Tools Start and perform debugging with the following commands from the Debug menu or their pertinent icons from Toolbar: ICE/SW – Switch Debugger mode between ICEeSL and Simulator F5 Ctrl+F5 F11 Go - Run program starting from the current program counter until breakpoints are hit and breakpoint address executed. Free Run - Run program starting from the current program counter until Break Execution command occurs. All defined breakpoints are ignored during free run.
Chapter 2 50 • eSL/eAM Series (+eSLZ000) IDE User’s Guide
Appendix A Appendix A Library Tool Introduction A.1 Overview library file list (*.a) File Browser Library file name All obj file list in selected library file (*.a) insert obj file into selected library file remove object file which selected from list save selected object file as another objject file All function name list in selected obj file A.2 Create New Library file The eSL/eAM IDE support two methods to create library. A.2.1 Create library file from eSL/eAM IDE A.2.1.
Appendix A 2. The New dialog (shown below) will then display. 3. Select Library Project from Project Type combo box. 4. Locate the folder where you want to store the new project. You may use the Browse icon to find the appropriate folder. 5. Select the target microcontroller for your project from the Macro Controller list box. 6. Select the project type for your new project from the Type group box (default is ASM). Project Type 7. Click OK button after confirming all your choices and inputs.
Appendix A A.2.1.2 Add and Remove Source Files from/to Project Please reference Section 2.4 A.2.1.3 Edit a Source File From and Within Project Please reference Section 2.5 A.2.1.4 Build Project With your source file(s) inserted into the project, you are now ready to compile your project. With the source file(s) shown in the Project window – Click Rebuild All command to assemble and link all inserted files regardless of having been recently modified or not.
Appendix A Modify source files to correct the errors and repeat Compiler assembler and link operations. NOTE 1. eSL/eAM IDE doesn’t support debugger in Library project 2. Library project only has File view 3. Library project can’t insert voice file. A.2.2 Create Library File from Library Tool User can create new library file form library tool by following these steps: 1. From the Menu bar of the tool main window, click on File menu and choose New library command from the resulting Pull-down menu. 2.
Appendix A A.3 Library Tool Sub-Window File Browser: Search folder that include library file (*.a) from this sub-window. Library File List: List library file (*.a) Object File List: List all object files include in selected library file (*.a) Symbol List: List all function names include in selected object file (*.
Appendix A A.4 Library Tool Buttons 56 • Add Add additional object file into selected library file. Remove Remove object files which selected form object file list window. Extract To Save highlighted object file as another object file. (shown following ) Close Close library tool.
Appendix B Appendix B Play Midi & Speech Dialog Introduction B.1 Overview Tool Bar Output Bar Control Bar Status Bar B.2 Connect ICEeSL This Application only allows user play midi and speech at ICEeSL, so user must check ICE connected first. User can check ICEeSL connection status throw output window, the square at the button right of dialog (Red: Disconnect, Green: Connected) and status bar. User can click button to connect ICEeSL.
Appendix B Output Window Status Bar and Square Disconnect status Output Window Status Bar and Square Connected status B.3 Build and Play Speech User can click button to build speech file. 1. Select Speech file (*.wav, *.mp3, *.
Appendix B 2. Select speech property: User can select different property to build speech. Select Speech Property (for wav file) Select Speech Property (for mp3and wma file) 3. Play speech: user can click button to play speech. Before the first playing, the dialog will auto-download builded speech data into ICEeSL.
Appendix B B.4 Build and Play Midi B.4.1 Change Different Midi Tone Library What is midi tone library? The midi tone library is the file (*.inp) which collects different instrument or percussion data. User can create this file from EZWave (please refercnce EZwave Guide). How to download midi tone library? In this dialog, we support default midi tone library. Uuser can click button to download defult midi tone library as new active library.
Appendix B Load Different midi tone library as new active library NOTE: 1. If user doesn’t change midi tone library, the default midi tone library will be set as activelibrary. 2. The active library is valid until user change midi tone library. B.4.2 Build and Play Midi User can click button to build midi file. 1. Select midi file (*.mid) 2.
Appendix B 3. Play midi: user can click button to play midi. Before the first playing, the dialog auto-download builded midi data into ICEeSL. B.5 Get Information User can click button to get new active midi tone library, active midi file and active speech file.
Appendix B B.
Appendix B 64 • eSL/eAM Series (+eSLZ000) IDE User’s Guide
Appendix C Appendix C How to Use Hardware Breakpoint C.1 Hardware Breakpoint Setup Four Domain Logical condition Pre-Trigger Loop Counter C.1.1 PC Counter Break (Read/Write) You can set an immobile PC value to trigger break. The PC break setting only support address break (read, write and read/write), data and mask can’t be set in dialog.
Appendix C For example: If user set PC break value as 0x008A, logical function as SET1 OR SET2, Loop counter as “1”, Run after breakpoint trigger as “0”. After this setting, the system will generate a breakpoint trigger at PC = 0x8A.
Appendix C C.1.2 RAM Break (Read/Write) The data memory breakpoints can be set to one of three modes; address break, address with data break, address with data mask break, in addition, every mode support Data memory Read, Data memory Write and Data memory Read or Write. Data memory address from 0x000 to 0x1FFF for eSLZ000 platform, others from 0x000 to 0x07FF Data memory data from 0x0000 to 0xFFFF Mask data from 0x0000 to 0xFFFF For example: If user set RAM break condition as address with data write.
Appendix C C.1.3 I/O Break (Read/Write) The I/O breakpoints can be set to one of three modes; address break, address with data break, address with data mask break, in addition, every mode support Data Read, Data Write and Data Read or Write.
Appendix C For example: If user set IO break condition as address with data read with mask. The IO address as 0x07(PORTB), data as “0xFFC6”, mask as 0xFF00 (low byte don’t care), logical function as SET1 OR SET2, Loop counter as “1”, Run after breakpoint trigger as “0”. After this setting, the system will generate a breakpoint trigger at PC = 0x014B.
Appendix C C.1.4 Register Break (R0~R7) (Write Only) The register breakpoints can be set to one of three modes; address break, address with data break, address with data mask break, but in register domain only support address write, Data Write.
Appendix C For example: If user set register break condition as address with data read. The register address as 0x05(R5), data as “0xA5A5”, logical function as SET1 OR SET2, Loop counter as “1”, Run after breakpoint trigger as “0”. After this setting, the system will generate a breakpoint trigger at PC = 0x014F.
Appendix C C.1.5 Logical Select The H/W breakpoint mechanism supports two SET breakpoints, according to logical select menu, we can distinguish two kinds option for SET1 and SET2. Such as: 1. SET1 Æ SET2: this item means SET1 sequential to SET2. The SET1 condition must be trigger firstly then trigger SET2, the system will generate a breakpoint. 2. SET1 OR SET2: this item means both SET1 and SET2 can generate breakpoint. In other word, the SET1, SET2 are relationship of logical “OR”.
Appendix C For example: SET1ÆSET2 If user set SET1 break condition as RAM break that address with data writ. The RAM address as 0x55, data as “0x5678”. SET2 break condition as register break that address with data write. The address as 0x02 (R2), data as 0x5A5A, logical function as SET1 Æ SET2, Loop counter as “1”, Run after breakpoint trigger as “0”. After this setting, the system will generate a breakpoint trigger at PC = 0x014E.
Appendix C SET1 break condition trigger. SET2 break condition trigger. C.1.6 Loop Counter The loop counter can be setting from 1 to 255 (default set to 1). If user defines logical select is SET1 OR SET2, the SET1 break and SET2 break will be count together. When SET1 break and SET2 break count times equal user define count times, the system will generate a breakpoint trigger. If user define logical select is SET1 Æ SET2, the loop count will be increase one only at SET1ÆSET2 break condition trigger.
Appendix C Example 1: SET1 OR SET2 If user set SET1 break condition as RAM break that address with data writ. The RAM address as 0x55, data as “0x5678”. SET2 break condition as register break that address with data write. The address as 0x02 (R2), data as 0x5A5A, logical function as SET1 OR SET2, Loop counter as “3”, Run after breakpoint trigger as “0”. After this setting, the system will generate a breakpoint trigger at PC = 0x0142.
Appendix C SET1 break condition trigger. Counter=1 Counter=3 SET2 break condition trigger.
Appendix C Example 2: SET1ÆSET2 If user set SET1 break condition as RAM break that address with data writ. The RAM address as 0x55, data as “0x5678”. SET2 break condition as register break that address with data write. The address as 0x02 (R2), data as 0x5A5A, logical function as SET1 Æ SET2, Loop counter as “2”, Run after breakpoint trigger as “0”. After this setting, the system will generate a breakpoint trigger at PC = 0x014E.
Appendix C SET1 break condition trigger. SET2 break condition trigger.
Appendix C C.1.7 Run After Breakpoint Trigger This item means the system will run how many instructions after break has trigger. The dialog can be fit instruction number from 0 to 2047. When break has trigger (whether SET1 condition occur firstly or SET2), the instructions counter will start. If SET1 has trigger and instructions number over than SET2, the SET2 break can’t be trigger. The same as SET2 has trigger and instructions number over than SET1, the SET1 break can’t be trigger.
Appendix C SET1 break condition trigger. Run after breakpoint trigger number 6 instruction: NOP, R3=IO[PORTB], NOP R2.l=0x5a, R2.
Appendix C C.1.8 Hardware Breakpoint Supported Instructions 1. PC break: all instructions type can support, but RPT inner instruction not supported. 2. RAM break: all instruction type can support, but RPT inner instruction not supported. 3. I/O break: only support following instruction type: a) b) c) d) BS IO[address].b (address from 0x0 to 0xF) BC IO[address].b (address from 0x0 to 0xF) BTG IO[address].
Appendix C 82 • eSL/eAM Series (+eSLZ000) IDE User’s Guide
Appendix D Appendix D How to Use Self Test D.1 IDE Tool Self Test Function Setting After opening an existing or new project, click the “Setting” menu and click “Project” From Project Setting Dialog, enable the “Enable self type” check box to allow IO port setting.
Appendix D Input Port select Output Port select Display Port select 84 • eSL/eAM Series (+eSLZ000) IDE User’s Guide
Appendix D D.2 Self Test I/O Application Circuit When power is switched ON, output signal is initially “High” then turns to “Low”. At the same time, D1 is turned ON and enters into the self testing mode.When self testing is completed, output signal becomes “High” and D1 turns OFF. If checksum fails (Display = 1), D2 will then turns OFF. Otherwise, (checksum Ok), D2 is turn ON..
Appendix D D.
Appendix E Appendix E How to Create and Use External Voice Project E.1 Create SPI Voice Project Besides internal DROM, it could be played from external ROM or SPI flash. You could use External project to set related instrument and samples. There were some steps as followed.In External voice project: 1. Create a new External Voice project. 2. In the project option of setting, you could choose Chip Serial and ROM Size.
Appendix E E.2 Add file into SPI Voice Project Add your voice files (including speech, midi or user data files) in your order. The order of example is that “start1.wav”, “start2.wav”, and “newyear.mid” are 1, 2, and 3.
Appendix E You can set related speech option on speech property dialog. You could set related melody option, including form setting, channel setting, and property.
Appendix E When you build External project, if you enabled modify instrument index option, it opened modify instrument index dialog. You could modify instrument and percussion index according to your melody project.
Appendix E E.3 Other Settings E.1.1 Speech Project If the coding type of speech was not selected in speech project, user must manually insert new coding type from coding type setting option. The SPI speech play setting would be completed. User could play speech from external SPI flash.
Appendix E E.1.2 Melody Project 1. First, users must know related instrument list, percussion instrument list. Tone file and percussion file would show out *.vlg file in SPI and melody project. Users must combine related tone instruments and percussion instruments in SPI and melody project. So users could insert new instruments, percussion instruments, tone files and percussion files in melody project. NOTE Instrument, percussion instrument, tone and percussion files are in *.vlg file of project.
Appendix E 2. If there were not related instrument or percussion instrument in melody project, you could insert manual instruments from manual dialog. User could insert desired instruments.
Appendix E 3. After inserted manual instrument or percussion instrument, user could select related wave samples. 4. Finally, you rebuilt melody project and run user’s melody project on ICE chip.