Download FS982X IDE
Transcript
FS982X Integrated Development Environment User’s Manual Rev. 1.0 Jul., 2005 Fortune Semiconductor Corp. FS982X-IDE-UM-10_EN CR-004 FS982X IDE Taipei Office: 28F, No.27, Sec. 2, Zhongzheng E. Rd., Danshui Town, Taipei County 251, Taiwan Tel.:886-2-28094742 Fax:886-2-28094874 http://www.fsc.com.tw This manual contains new product information. Fortune Semiconductor Corporation reserves the rights to modify the product specification without further notice. No liability is assumed by Fortune Semiconductor Corporation as a result of the use of this product. No rights under any patent accompany the sale of the product. Fortune Semiconductor Corp. 2/78 Rev. 1.0 FS982X IDE Table of Contents 1. Page No. INTRODUCTION OF FS982X IDE.................................................................................................................................6 GENERAL DESCRIPTION ..........................................................................................................................................................6 1.1 FS982X IDE ...............................................................................................................................................................6 1.2 CODING PROCEDURE OF FS982X IDE ......................................................................................................................8 1.3 FEATURES OF FS982X IDE ........................................................................................................................................9 2. BASIC TRAINING OF FS982X IDE .............................................................................................................................10 2.1 GENERAL DESCRIPTION ............................................................................................................................................10 2.2 SOFTWARE INSTALLATION ..........................................................................................................................................10 2.2.1 Install/Uninstall.................................................................................................................................................10 2.2.2 Execution of FASM500................................................................................................................................... 11 2.3 HARDWARE SETUP .................................................................................................................................................... 11 2.3.1 General Description of FS982X ICE & FS982X OTP ................................................................................ 11 2.3.2 Overview of FS982X Emulation Board.........................................................................................................12 2.3.3 Introduction of FS Control Board ..................................................................................................................13 2.3.4 Connection of Hardware System ..................................................................................................................14 2.3.5 Comprehension Test ......................................................................................................................................15 2.4 A BASIC TUTORIAL .....................................................................................................................................................18 2.4.1 General Description of Operation .................................................................................................................18 2.4.2 Selection of the Device...................................................................................................................................18 2.4.3 Creating a New File ........................................................................................................................................19 2.4.4 Compiling Files ................................................................................................................................................20 2.4.5 Writing Code ....................................................................................................................................................21 2.4.6 Debug................................................................................................................................................................23 2.4.7 Program ............................................................................................................................................................25 2.4.8 OTP Test ..........................................................................................................................................................30 2.4.9 Conclusion........................................................................................................................................................30 3. TOOL BAR OF FS982X IDE..........................................................................................................................................31 3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8 4. GENERAL DESCRIPTION ............................................................................................................................................31 FILE ............................................................................................................................................................................31 EDIT............................................................................................................................................................................32 SEARCH......................................................................................................................................................................32 VIEW ...........................................................................................................................................................................33 ASSEMBLE & RUN ......................................................................................................................................................34 OPTIONS ....................................................................................................................................................................35 ABOUT ........................................................................................................................................................................35 WINDOWS OF FS982X IDE..........................................................................................................................................36 4.1 GENERAL DESCRIPTION ............................................................................................................................................36 4.2 EDIT W INDOW ............................................................................................................................................................37 4.3 SOURCE CODE W INDOW ...........................................................................................................................................38 4.4 W INDOW OF PROGRAM MEMORY ..............................................................................................................................39 4.5 W INDOW OF DATA MEMORY ......................................................................................................................................40 4.5.1 Revision of Register Label .............................................................................................................................42 4.5.2 Revision of RAM Data ....................................................................................................................................42 4.6 REGISTER W INDOW ...................................................................................................................................................43 4.6.1 Revision of Register........................................................................................................................................43 Fortune Semiconductor Corp. 3/78 Rev. 1.0 FS982X IDE 4.7 F_WATCH W INDOW .................................................................................................................................................44 4.7.1 Procedure of Bit Tracking ...............................................................................................................................46 4.8 STACK W INDOW .........................................................................................................................................................47 4.8.1 Remolding Stack Address ..............................................................................................................................47 4.9 ERROR MESSAGE W INDOW ......................................................................................................................................48 4.10 LCD .......................................................................................................................................................................48 4.11 SETUP W INDOW .....................................................................................................................................................49 5. DEBUG OF FS982X IDE ................................................................................................................................................50 5.1 GENERAL DESCRIPTION ............................................................................................................................................50 5.2 RESET FS982X SYSTEM ..........................................................................................................................................50 5.2.1 Process of Reset of Hardware System ........................................................................................................52 5.2.2 Process of Reset of Power System ..............................................................................................................52 5.2.3 Process of Reset of Software System..........................................................................................................52 5.3 HARDWARE EMULATION OF APPLICATION .................................................................................................................52 5.3.1 Hardware Execution........................................................................................................................................52 5.3.2 Hardware Termination ....................................................................................................................................52 5.3.3 Single Step Execution.....................................................................................................................................53 5.4 BREAK POINT .............................................................................................................................................................53 5.4.1 How to setup Break Points? ..........................................................................................................................53 5.4.2 How to Release Break Points?......................................................................................................................53 6. SIMULATION OF FS982X IDE ....................................................................................................................................54 7. FS982X EMULATION BOARD ....................................................................................................................................55 7.1 GENERAL DESCRIPTION ............................................................................................................................................55 7.2 BLOCK DIAGRAM AND PIN DEFINITION ......................................................................................................................55 7.3 HOW TO USE EMULATION BOARD? ...........................................................................................................................57 7.3.1 How to use LCD? ............................................................................................................................................57 7.3.2 How to Select FS982X Chip? ........................................................................................................................58 7.3.3 How to Use I/O Pin? .......................................................................................................................................58 7.3.4 How to Switch Normal & Programming Mode? ..........................................................................................59 7.3.5 How to Measure Current?..............................................................................................................................61 8. FS CONTROL BOARD ..................................................................................................................................................62 8.1 GENERAL DESCRIPTION ............................................................................................................................................62 8.2 BLOCK DIAGRAM AND PIN DEFINITION ......................................................................................................................63 8.3 HOW TO USE FS CONTROL BOARD? ........................................................................................................................64 8.3.1 How to Select Power Source from FS Control Board for Emulation / Programming ............................65 8.3.2 How to Select Power of FS Control Board ..................................................................................................65 8.3.3 Verification of Connection between FS Control Board and PC ................................................................65 9. OTP PROGRAMMING..................................................................................................................................................66 9.1 GENERAL DESCRIPTION ............................................................................................................................................66 9.2 INTRODUCTION OF PROGRAMMING W INDOW ............................................................................................................67 9.2.1 Tool Bar.............................................................................................................................................................68 9.2.2 Information of Executable File.......................................................................................................................69 9.2.3 Buffer Area of Executable File .......................................................................................................................70 9.2.4 Selection of Programming and Verification .................................................................................................71 10. REVISION HISTORY ................................................................................................................................................73 APPENDIX...............................................................................................................................................................................74 DIAGRAM 1:CIRCUITRY OF FS9821、22、23 ICE TRANSFER BOARD ...............................................................74 Fortune Semiconductor Corp. 4/78 Rev. 1.0 FS982X IDE DIAGRAM 2:CIRCUITRY OF FS9821、22、23 OTP TRANSFER BOARD ..............................................................75 DIAGRAM 3: CIRCUITRY OF FS982X EMULATION BOARD .....................................................................................77 TABLE 1:LCD T/F TABLE ...................................................................................................................................................78 Fortune Semiconductor Corp. 5/78 Rev. 1.0 FS982X IDE 1. Introduction of FS982X IDE General Description FS982X IDE, developed by Fortune Semiconductor Corp. (FSC), is a brand new simulation and programming developing tool for FSC’s MSP, whose structure is simple and easier to use, can simulate and program OTP products at the same time. USB protocol is adopted, with fast data transmission, easier to be connected to computer, great convenience for users. RISC instructions are used in code, more easier for users, it is very important to the application of MCU. FS982X series products is a one-time programmable MSP, the MSP provides calculation, one-time programmable program register, high accuracy multichannel, fully difference ADC, low noise OPAMP, LCD display driver, highly regulated bandgap, voltage promotion and regulated voltage power, buzzer driver circuit, clock oscillation circuit, which are integrated all together. The application field is very broad. Owing to the built-in one time programmable register of the series products, the developing cycle is shortened, and the new products enter into market very fast, the products are very popular. For the convenience of introducing the product, FS9822 is taken to be the example in this user’s manual, other type of chips are similar. English and Chinese are available in window’s language; this user’s manual introduces the product in English. This user’s manual can be applied to all the products of FS982X series. 1.1 FS982X IDE 2 CON4 PT2.1 CON USB/B CON6 1 J14 GND VCC J13 Progra m CON3 1 J4 J5 PT2.0 Reset USB CON1 J9 J10 1 Norma l 1 U1 J11 1 U4 CON4 CON2 DC JACK (CON5) U6 CON5 S1 J4 J5 J6 J7 LED1 1 J12 J2 J1 J3 S3 U2 U11 CR1 1 1 1 S2 1 CON6 U5 PAR1 3 PAR1 2 PAR1 J3 CON7 U2 S5 FS Control Board GND J1 S4 J2 VDD_+3V CON 3 FS982x Emulation Board CON1 In order to support FSC’s whole series MSP( Mixed Signal Processor )product’s application and development, FSC provides complete developing tools to make customers more convenient during product’s development and use. The whole set of developing tools includes: z Software:FASM500 z Hardware:FS Control Board、FS982X Emulation Board, as shown in the Figure1.1. Figure 1.1 Overview of FS Control Board and FS982X Emulation Board FS982X IDE is applied to FS9912、FS9922、FS9932、FS9821、FS9822、FS9823、FS9824、FS6811、 FS3861、FS3866 and FS9855 etc. products’ online emulation and application verification, as well as programming of OTP products. Fortune Semiconductor Corp. 6/78 Rev. 1.0 FS982X IDE J4 U2 1 USB/B CON6 DC JACK (CON5) Software provides friendly windows for user’s coding without difficulties; various emulation functions are provided by hardware during debugging, such as multifunction tracking, single step execution and breakpoint, etc. FS982X IDE can transmit info., and the power is supplied by USB In order to enable FS982X IDE applied to all of FSC’s MCU products, the developing system hardware is divided into: z FS982X Emulation Board for emulation of chip and system application/verification, shown in the Figure 1.2. z FS Control Board for control/debug, as shown in the Figure 1.2. FS982X IDE Control Board uses USB protocol, several FS982X IDE can be emulated by one set PC, no extra power source is needed during emulation, USB built-in power or extensional DC 5V power can be selected during programming. 1 1 J5 J12 J2 J1 J3 CON 2 S5 J4 J5 J6 J7 1 U4 CON6 CON 4 CON 3 S1 S3 S4 PT2 .0 PT 2.1 LED1 S2 J14 VCC GN D Reset VDD_+3V J13 (a) GND CO N5 J9 J10 Norm a l J2 P rogra m J1 1 C ON3 J3 J11 CON4 U1 1 U5 CR1 PAR1 3 PAR1 2 PAR1 1 U2 CON1 C ON 2 U11 C ON7 U6 1 1 CON1 1 (b) Figure 1.2 Layout of (a) FS982X Emulation Board and (b) FS Control Board Fortune Semiconductor Corp. 7/78 Rev. 1.0 FS982X IDE 1.2 Coding Procedure of FS982X IDE FS982X IDE coding and compiling provide friendly windows, complete coding procedure as shown in the Figure 1.3. “Setup of Compiling” is used during relevant setting of compiling, such as Chip Selection, selection of RAM, compiling by many files one time. “Set of Linking” provides selection of setting of emulation/programming, such as IC emulation, OTP programming. Source Files Building Options Compilier Linker Options Linker Simulation Emulation(ICE) Executable File Emulation (OTP) Figure 1.3 Fortune Semiconductor Corp. F S O T PWriter (Option) FASM500 Project Manager 8/78 Rev. 1.0 FS982X IDE 1.3 Features of FS982X IDE FS982X IDE is a high efficiency, low cost developing tool, whose functions are as follows: (1)Software simulation z Code instruction simulation z Code logic simulation z Provides perfect software breakpoint system (10 points) (2)Hardware emulation z Easier for use and installation z Internal or extensional oscillator can be used z Provides perfect hardware breakpoint system (3 points) z Supports immediate tracking function and detecting trigger function. z Provides USB protocol z Shows results (LCD) z Provides OTP programming (3)Software development screen z Provides assembly compiler z Compiler for windows structure z Supports multiprogramming debug platform z Provides programming executable file z Provides perfect Debug Window, Watch Window, Ram Window, Register Window, and Stack Window. Fortune Semiconductor Corp. 9/78 Rev. 1.0 FS982X IDE 2. Basic Training of FS982X IDE 2.1 General Description This chapter makes initial users learn how to use FS982X IDE, can be acquaint with “creating a new file”, “ edit a file”, “code debug”, “OTP programming”, etc. The contents are consisted of 3 parts: software installation, hardware installation and basic trainning. The main readers of this chapter are initial users. For the users who have been familiar with FSC’s MSP products, may skip this chapter. 2.2 Software Installation 2.2.1 Install/Uninstall “FASM500” is applied to the development of FSC whole series ICE & OTP, but it is only available in Windows Working System. (1)Install When use CD-ROM to install, please execute “setup.exe”, screen is shown in the Figure 2.1, then follow the hint in the screen to install. If it fails, please search “setup.exe” program in the disc and install. When the program is down-load from network, please unzip the file and execute the resulting file to install. Figure 2.1 Installation window Please be aware that in order to avoid any mistakes, please process the installation works as an administrator during installation of FASM500. Fortune Semiconductor Corp. 10/78 Rev. 1.0 FS982X IDE (2)Uninstall Step 1: Select 『Start->Setup->Control Panel』 Step 2: Use mouse clicking “Add or Delete Program”, search “FASM500” in the Table and click. Step 3: Click “Delete” can delete the program. 2.2.2 Execution of FASM500 After installation, it executes in 『Start->Program-> FASM500』, the screen shows as Figure 2.2, it means the program is installed. Figure 2.2 FASM500 Window If it is not set in the access route C:\Program File during installation, please execute under user selected installation menu to confirm that the installation is complete. 2.3 Hardware Setup 2.3.1 General Description of FS982X ICE & FS982X OTP There are two kinds of chip: ICE and OTP in FSC FS982X series chips. z ICE (In Circuit Emulator): For hardware emulation, not providing ROM, has to use the RAM in FS Control Board. z OTP: Practically used product, provides ROM, only needs power, not necessary to use FS Control Board, can independently work. z FS982X ICE and FS982X OTP can be developed and used with FS982X IDE, during which the corresponding Transfer Board shall be used, as shown in the Figure 2.3. For the Transfer Board circuitry, please refer to the enclosed Diagram 1, 2. Figure 2.3 Transfer Board of ICE and OTP Fortune Semiconductor Corp. 11/78 Rev. 1.0 FS982X IDE 2.3.2 Overview of FS982X Emulation Board FS Emulation Board is provided for verification of ICE and OTP chips, as shown in the Figure 2.4, the board is applied to FS982X series MCU, provides: z LCD (Liquid-crystal display) z LCD control selection end z Power Switch z Button z Working and Programming (Normal / Program) Selection End z FS982X chip switch Figure 2.4 FS982X Emulation Board Note: For the detailed description of FS982X Emulation Board, please refer to Chapter 7. Fortune Semiconductor Corp. 12/78 Rev. 1.0 FS982X IDE 2.3.3 Introduction of FS Control Board FS Control Board is applied to FSC whole series MCU, providing USB protocol convenient to communicate with PC, and debugging tool, as shown in the Figure 2.5. The Board provides: z USB protocol z Independent RAM z Independent power system Figure 2.5 FS Control Board Note: For the detailed description of FS Control Board, please refer to Chapter 8. Fortune Semiconductor Corp. 13/78 Rev. 1.0 FS982X IDE 2.3.4 Connection of Hardware System Hardware system connection can be divided into 3 steps: (1)Setup of Switch and Jumper of FS982X Emulation Board z Adjusting switch (S5), setup is shown in the Table 2.1. z Adjusting J11 jumper, programming shall be switched to “Program”, working to “Normal”. Note: Unpredictable error will occur if switch and jumper are incorrectly adjusted during use. Table 2.1 Selection of Switch (S5) PAR13 FS9823-ICE OFF FS9822-ICE ON FS9821-ICE ON PAR12 OFF OFF ON PAR11 OFF OFF OFF (2)Connection of Board: Connect the FS Control Board, FS982X Emulation Board and Transfer Board by pin to pin, as shown the Figure 2.6. (3)USB Connection: Use USB wire to connect the FS Control Board and PC. Figure 2.6 Complete Hardware Systems The consumption power is about 90~150mA during OTP programming, therefore, please do not parallel connect USB with bulk current when USB internal power is used. For example: USB extensional connect type disc without extensional connect power. When FS Control Board communicates with PC screen by USB, if there is no response in 2 sec., the communication fails; therefore, please do not use other USB device to proceed bulk info. transmission, like, USB hard disc save. Fortune Semiconductor Corp. 14/78 Rev. 1.0 FS982X IDE 2.3.5 Comprehension Test The comprehension test mainly to verify the I/O, LCD, key, counter Interrupt, analog temperature, 『Start->Program->FASM500』will be executed at first, then it will proceed as following steps: (1)Setup: Select 『Options -> Set up』from the tool bar, as shown in the Figure 2.7. This example focuses on FS9822 chip, some hints need user’s attention: z U1 select FS9822 ICE chip。 z Please select ‘ON’ position in PAR13 of S5,but select ‘OFF’ position in PAR11、PAR12 (refer to the Table 2.1)。 z 1.Short 2-3pin of J2,short 1-2 pin of J2,open J1 and short J3。 z Other products of FS982x may be referred to this example. Figure 2.7 “Setting” window Fortune Semiconductor Corp. 15/78 Rev. 1.0 FS982X IDE (2)Open File and Compiler: Select 『File->Open File』from the tool bar to open the file “C:\Program Files\FS982X IDE\FS982X\Hardware Demo\Test.asm”, and select 『Assemble&Run->Debug Mode Set up->Hardware Emulation ID Number:0』, then choose 『Assemble&Run->Run』 to proceed compiling works. After compiling, the screen is as shown in the Figure 2.8. Figure 2.8 Compilng Window of Test.asm Fortune Semiconductor Corp. 16/78 Rev. 1.0 FS982X IDE (3)Test and Execution: Test steps are as follows: Step 1: Select 『Assemble&Run ->Run』from the tool bar or press the hot key F9 to build code and execute, then LCD is shown as the Figure 2.9, to proceed back counting 10 sec. Value drifting is normal if test panel is not added in the system. Figure 2.9 Back Counting Figure 2.10 Internal Count of Temp. Step 2: Then press FS982X Emulation Board S4 (PT2[1]), system enters into RTCmode. Step 3. After several sec., press again FS982X Emulation Board S4(PT2[1], system will enter into Sleep Mode, LCD will have no sign now. Step 4. Press again FS982X Emulation Board S4(PT2[1]), system will re-start. Step 5. Press S3 (PT2[0]) one time, LCD will show ADC value (internal temperature value), as shown in the Figure 2.10. During temperature test, ADC value can change up and downward via change of IC temperature. The shown temperature value in the Figure 2.10 will be different depending on the ambient condition. When the 5 steps have been carried out, means the tests on the digital I/O, LCD, counter, etc. digital signal have been completed. Test on analog signal ADC with temperature has been completed. If there is any exception occurs, please check jumper and mode switch and other setting, or report the question to the agent or FSC. Fortune Semiconductor Corp. 17/78 Rev. 1.0 FS982X IDE 2.4 A Basic Tutorial 2.4.1 General Description of Operation For users’ better understanding of the operation of FS982X IDE, this chapter explains first about operation of writing code, compiling, debugging, and OTP programming, etc., the contents include: (1) (2) (3) (4) (5) (6) (7) Selection Device: How to choose IC and RAM, the step has to be selected prior to writing code. Create a new file: How to create a new file. Compiling: How to compile files. Write Code: Write code into file, this example is to write the I/O code into the file. Debug:: How to use register window, F_WATCH Window to debug. Programming: Executive codes into OTP chip. OTP Testing: use OTP to perform off-line operation The a. m. 1~5 items can make FS9822 ICE to perform system simulation, and can make FS9822 OTP chip to perform programming test. Items 6~7 can be saved if users do not have OTP chip. 2.4.2 Selection of the Device Select 『Options->Setup』from the tool bar, the screen is as shown in the Figure 2.11. Figure 2.11 “Setup” Window The notes for setup are as follows: z z z Select Chip: Please choose suitable IC type No. from “select chip ver.”, such as FS9822 (4k). ROM Selection: Select IDE_RAM_62256 from “ROM”. (Selection of ROM is depending on memory of FS Control Board). ICE Communication Protol: Please select USB as the communication screen from “via LPT port or USB”. Fortune Semiconductor Corp. 18/78 Rev. 1.0 FS982X IDE 2.4.3 Creating a New File To create a new file, please select 『File->Open File』, as shown in the Figure 2.12, then select 『File->Save As』to save this file. The file name is “main.asm”, and then add a folder in the access route C:\Program Files\FASM500, the name is “Tutorial (suggested)” then to save the file. Figure 2.12 Window of ‘Create a new file’ Fortune Semiconductor Corp. 19/78 Rev. 1.0 FS982X IDE 2.4.4 Compiling Files Select compiling method from the tool bar: 『Assemble&Run->Debug Mode Set up->Hardware Emulation ID-Number:0』; and setup this file to be the compiled main file: 『Assemble&Run-> Set Main File』; then proceed compiling of this file: 『Assemble&Run->Assemble&Run』. After compiling, the screen is as shown in the Figure 2.13. Figure 2.13 Window of Building a file Fortune Semiconductor Corp. 20/78 Rev. 1.0 FS982X IDE 2.4.5 Writing Code PT2 is setup to be an output port in this example, interrupt per second; ISR makes voltage of PT2 H/L output in turn. Select 『Assemble&Run->Edit Mode』to enter into writing code; in the meantime, to key in the following code into the edit window as shown in the Figure 2.14. PT2D ORG GOTO ORG GOTO SYSINI: CLKINI: MOVLW MOVWF NOP TIMERINI: MOVLW MOVWF MOVLW MOVWF MOVLW MOVWF PT2INI: MOVLW MOVWF MOVLW MOVWF MOVLW MOVWF MOVFW MOVWF equ 080h 00H SYSINI 04H TimerISR ; PT2D 00100001B MCK ;Set CLK Source & Timer 00000000B TMCON 10010000B INTE 00001111B TMCON ;reset Timer 00000000B PT2PU 11111111B PT2EN 11111111B PT2D PT2D PT2 ;Set Timer Interrupt Enable ;Set Timer ;Set pull-up resistor ;Set I/O Port ;Set PT2D data ;Set PT2 data MAIN: NOP GOTO TimerISR: CLRF COMF MOVFW MOVWF RETFIE END MAIN INTF PT2D,1 PT2D PT2 ;Clear Timer Flag ;PT2 data invert ;Set PT2 data Figure 2.14 Template code Select 『Assemble&Run->Assemble&Run』to execute the code, the screen in the error message window will show the Figure 2.15. Figure 2.15 “Error Message” Window Fortune Semiconductor Corp. 21/78 Rev. 1.0 FS982X IDE Copy the file “FS9822.INC” under C:\Program Files\FASM500\FS982X\INCLUDE to your folder, and add this program as shown in the Figure 2.16. INCLUDE FS9822.INC Figure 2.16 Add Command Then select 『Assemble&Run->Assemble&Run』to compile this program, the screen is shown as the Figure 2.17. add this command Figure 2.17 Screen of Building Fortune Semiconductor Corp. 22/78 Rev. 1.0 FS982X IDE 2.4.6 Debug When the screen transfers to “Source ID-Number : 0”, to select 『Assemble&Run->Breakpoint』from the tool bar , or press the hot key F5 before code No. to setup the break point as follows: Breakpoint 1: Set the breakpoint before the instruction “NOP” after the mark MAIN. Breakpoint 2: Set the breakpoint before the instruction “CLRF INTF” after the mark TimerISR. Breakpoint 3: Set the breakpoint before the instruction “REFTIE”. After setup, the screen is as shown in the Figure 2.18. Figure 2.18 Finished Break Points To select 『Window->Register』from the tool bar, “Register Window” shows immediately, then select 『Assemble&Run->Run』or press the hot key F9, the register window will show as the Figure 2.19, program stops at the instruction “NOP”. PT2 register Figure 2.19 “Register” Window Fortune Semiconductor Corp. 23/78 Rev. 1.0 FS982X IDE If users like to see the contents of a certain address (e.g.: PT2D), please select 『Window->Watch』 from the tool bar, “F_WATCH” will show as in the Figure 2.20. Figure 2.20 “F_WATCH” Window Then move the mouse to “F_WATCH” and click right button of the mouse to select “Add/Delete watches”, ”, the result will be shown as in the Figure 2.21, it will show the contents of then select “PT2D”, clicking “ the register Pt2 by clicking “OK”. For contents of other register are the same.. Figure 2.21 Add/Delete watches Window For code execution, please press the hot key F9, program counter will enter into the service breaking program of “TimerISR”. Select 『Assemble&Run->Trace』, or press the hot key F7, users may see the program counter single step execution. Take this for example, press the hot key F9, PT2 voltage will change high / low. Note: If users like to directly see the voltage change of PT2, may serially connect an LED and one 330Ω between PT2 and ground. For the introduction of PT2, please refer to the enclosed Diagram 3: “Circuit of FS982X Emulation Board” and Chapter 8. Fortune Semiconductor Corp. 24/78 Rev. 1.0 FS982X IDE 2.4.7 Program There are 3 steps in the programming action: exchange of hardware, setup of software, setup of programming utility. In this chapter we will show users how to program code to OTP chip. (1) Exchange of Hardware z Hardware set up: Use OTP’s Transfer Board to replace ICE’s Transfer Board, and set up the location of FS982X ICE’s jumper. (2)Set up of Software z 『Options->Setup』set up: Selection of “OTP” chip type and “ROM”. z Compiling file: Building file and enter into programming interface. (3)Setup of Programming Utility z Load file: Open programmed file. z Programming setup: programming selection setup and programming. z Programmed file verification: use software to confirm the programmed file to see if it is correct. Note: If manufacturers like to program in bulk, FSC offers the programming service. z Setup of Hardware Step 1. Replace ICE Transfer Board: to replace the ICE Transfer Board to be OTP Transfer Board. Step 2. Change J11 jumper: to change the J11 of FS982X from “Normal” to be “Program”. After setup, it is shown as the Figure 2.22. FS982X OTP Transfer Board J11 Figure 2.22 Complete FS982X ICE Fortune Semiconductor Corp. 25/78 Rev. 1.0 FS982X IDE z Set up of 『Options->Setup』 Select 『Options->Setup』in the tool bar, as shown in the Figure 2.23, please set up by the following steps: Step 1. Select Chip: Select suitable IC type, such as FS9822(4k) from “Select Chip “. Step 2.Hardware Control (Communication): Select “USB” from “via LPT port or USB” to be the communication protocol. Step 3. ICE Control (Programming): Select chip type, such as FS9822&FS6811 from “Write Chip Select”. Step 4. Assemble File Setup: Select the option of ‘Hex file’ in generate files. Step 5. ROM Select:, Select IDE_RAM 62256 from “ROM”. Note: The IC selection at Step 1 and Step 3 should be the same, or unexpected error will occur. Figure 2.23 『Options>Setup』Window z Compiling Files Select compiling method: 『Assemble&Run->Set Mode -> Emulation ID-Number:0』from the tool bar, and set the file to be the main program compiled:『Assemble&Run->Set Main File』; then use this file to proceed compiling『Assemble&Run->Assemble&Run』. After compiling, the screen is as shown in the Figure 2.24. Please confirm that the “Emulation chip mode” and the “programmed chip” are the same. Please open the file you like to compile, if steps 1~5 of the Basic Tutorial have not been executed. as the same Figure 2.24 Window of After Compiling Fortune Semiconductor Corp. 26/78 Rev. 1.0 FS982X IDE z Loading in Files Before loading in file, please select “Blank Check” from the window to check whether OTP chip ROM is blank. If it is, it shows as the Figure 2.25(a), if not, it will show as the Figure 2.25(b). Select programmed file 『File->Open』from the tool bar, usually the file name is “*.hex”; in this example, the file name is “main.hex”. After loading in file, the screen is shown as the Figure 2.26. To check whether loading in file is correct or not has to see “successful” appears in the screen. Figure 2.25(a) chip empty Figure 2.25(b) chip not empty Figure 2.26 Loading file screen Fortune Semiconductor Corp. 27/78 Rev. 1.0 FS982X IDE z Setting up Programming Tool Please select from the options “Programming” and “Verify”, and select “Auto”, the screen of setup of programming is as shown in the Figure 2.27, the completion of programming is as shown in the Figure 2.28. Program Options Figure 2.27 Programming Setup Screen 成功烧入 Figure 2.28 Successful Programming Screen Fortune Semiconductor Corp. 28/78 Rev. 1.0 FS982X IDE z Verification of Programming Files Programming utility provides program code verification function, please select “Compare” in the screen, the right screen is as shown in the Figure 2.29; error is shown as the Figure 2.30. Figure 2.29 Correct Verification Screen Figure 2.30 Error Verification Screen Fortune Semiconductor Corp. 29/78 Rev. 1.0 FS982X IDE 2.4.8 OTP Test After successfully complete the programming steps by following the section 2.4.7, the code has been programmed into FS982X OTP chip. If users like to test the chip after programming, please follow the following steps. Step 1. Remove USB wire from FS Control Board. Step 2. Add 3V power source between J13 and J14. Step 3. Switch J11 from “Program” to “Normal”. Step 4. Close power switch S1. In this case, verification of H/L voltage per sec. at all I/O port of PT2 can be measured. 2.4.9 Conclusion Main contents introduced in this section include: (1)Selection of device. (2)Creating a new file and writing an example code for one section about I/O port. (3)Compiling and debugging by window. (4)Programming code to OTP chip. (5)OTP test Certain understanding to create a new file, writing program, compiling has been built up via the a. m. operation, detailed introduction of each option of FS982X IDE can be found in the following chapters. Fortune Semiconductor Corp. 30/78 Rev. 1.0 FS982X IDE 3. Tool Bar of FS982X IDE 3.1 General Description FS982X IDE provides a perfect tool bar, including seven options: File, Edit, Search, Window, Compile & Execution, Option and About (Alt+A), as shown in the Figure 3.1. It is convenient for users to proceed writing and debugging operation. The tool bar of FS982X IDE also provides program access, users can find where the program comes from. The tool bar is shown as the Figure 3.1. Figure 3.1 Tool Bar Window 3.2 File This option is for file reading&writing/editing, please move the mouse to the Option『File』in the tool bar and click the left button, pull down the options as shown in the Figure 3.2. Figure 3.2 Menu of 『File』 z New (N) (Ctrl+N): Create a new file or press the hot key Ctrl+N to create a new file z Open (O) (Ctrl+O): Open the old file or press the hot key Ctrl+O to open the old file z Save (S) (Ctrl+S): Save the file just operated in the window or press the hot key Ctrl+S to save the file z Save As…: Save the file just operated in the window by another name z Save All: Save all of the opened files z Close File: Close the file just operated in window z Close All: Close all of the opened files z Open LCD Panel: This function is not provided for the time being z Close LCD Panel: This function is not provided for the time being z Exit (Q)(Ctrl+Q): System is shut down Fortune Semiconductor Corp. 31/78 Rev. 1.0 FS982X IDE 3.3 Edit Move the mouse to the tool bar “Edit” and click the left button, click the options as shown in the Figure 3.3: Figure 3.3 『Edit』Menu z Undo (Z)(Ctrl+Z) :Return to the last step, or press the hot key Ctrl+Z to execute. z Cut (X) (Ctrl+X): Cut off the marked strings into buffer, or press Ctrl+X. z Copy (C) (Ctrl+C): Copy the marked strings into buffer, or press Ctrl+C. z Paste (V) (Ctrl+V): Paste the contents of buffer into the position of cursor, or press Ctrl+V. z Select All: Select all contents of the file. z Edit LCD Panel: This function is not provided now. 3.4 Search Please move the mouse to the tool bar 『Search』, to click the left button and pull down the options as shown in the Figure 3.4. Figure 3.4 『Search』Menu z Find(F)(Ctrl+F): Search the compatible string in this file, or press Ctrl+F. z Find Next (F3): Search the next compatible string in this file, or press F3. Fortune Semiconductor Corp. 32/78 Rev. 1.0 FS982X IDE 3.5 View Please move the mouse to the tool bar “View”, and click the left button, pull down the options as shown in the Figure 3.5. Figure 3.5 『Window』Menu z Edit(Alt+1): Enter into Edit Window z Source (Alt+2): Shows only when soft/hardware emulation/simulation, press this option will jump to “Source”. Please refer to chapter 4.3. z Hex (Alt+3): Shows only when soft/hardware emulation/simulation, press this option will jump to “Hex”. Please refer to chapter 4.4. z Watch(Alt+4): Shows only when soft/hardware emulation/simulation, press this option will jump to ““F_WATCH”. Please refer to chapter 4.7. z Ram(Alt+5):Shows only when soft/hardware emulation/simulation, press this option will jump to “Ram”. Please refer to chapter 4.5. z Register (Alt+6):Shows only when soft/hardware emulation/simulation, press this option will jump to “Register”. Please refer to chapter 4.6. z Stack (Alt+7): Shows only when soft/hardware emulation/simulation, press this option will jump to “Stack”. Please refer to chapter 4.8. z Error Message: Shows only when soft/hardware emulation/simulation, press this option will jump to “Error Message”. z LCD Window (Alt+9): Not provided yet. z Next Window (Alt+Down)、Previous Window (Alt+Up): For each window screen switching z Next File ((Alt+Right)、Previous File (Alt+Left): Display and switch opened files in Edit Window Fortune Semiconductor Corp. 33/78 Rev. 1.0 FS982X IDE 3.6 Assemble & Run Please move the mouse to the tool bar 『Assemble & Run』 and click the left button, pull down the options as shown in the Figure 3.6. Figure 3.6 『Assemble&Run』Menu z Assemble & Run(F10): Compiling files,and proceed soft/hardware emulation/simulation. z Set Main File: Setup the file in the operated window to be the main complied document. z Set Mode: Setup emulation or simulation. z Run(F9): Continuously execute loaded code, program keeps being executed to the setup z z breakpoint, then stop. Step Over(F8): Step Over, trace to the code, i.e. not enter into Macro and sub-program Trace(F7): Trace, detailed trace to the code, i.e. enter into Macro and sub-program z Stop(F12): Stop program counter right now, and halt program counter. z Program Reset(Ctrl +F12): Reset program counter to zero. z Edit Mode(Ctrl +F11):Press this option will jump to Edit Mode from simulation status. z Set Break Point(F5): Numbers of break point will depends on chip type or simulation/emulation status. Fortune Semiconductor Corp. 34/78 Rev. 1.0 FS982X IDE 3.7 Options Move the mouse to 『Option』 in the tool bar and click the left button to select the options as shown in the Figure 3.7. Figure 3.7 『Options』Menu z Setup (Alt+O): Select chip type and other relevant setup, please refer to chapter 4.9. z Save, Load Configuration: Save or load configuration value. “For read only” should be released in advance, when copy “FASM500” from a disc to hard disc. 3.8 About Move the mouse to 『About(Alt+A)』in the tool bar and click the left button, the screen is as shown in the Figure 3.8 to display the software modification history. Figure 3.8 『About(Alt+A)』Window Fortune Semiconductor Corp. 35/78 Rev. 1.0 FS982X IDE 4. Windows of FS982X IDE 4.1 General Description FS982X IDE provides perfect windows for users to proceed software/hardware simulation and emulation operation as shown in the Figure 4.1. 10 windows are provided under the simulation condition, the method is to move the mouse to the tool bar option 『Window』and click the left button, the screen of windows are as follows: z z z z z z z z z z Edit Window Source Window Hex Window RAM Window Register Window F_WATCH Window Stack Window Error Message Window LCD Window Setup Window Debug operation provides “immediate modification” function, convenient for users to perform immediate modification to the value of ram and register. 暂存器视窗 原始码视窗 程式码视窗 F-WATCH 视窗 资料记忆体视窗 Figure 4.1 FS982X IDE Window Fortune Semiconductor Corp. 36/78 Rev. 1.0 FS982X IDE 4.2 Edit Window Edit Window of FS982X provides users personalization operation screen, whose function has 4 parts: Hot Keys, File Tabs, Function Keys, and Edit Area, as shown in the Figure 4.2. The operation display will show up immediately as “FASM500” is started. hot keys file tabs Function keys edit area Figure 4.2 “Edit” Window (1)Hot Keys z Edit: Press Edit button, the system will show “enable status”. z Source: Press Source button, the screen will jump to “Source” only after entering into soft/hard ware simulation/emulation. Please refer to the Figure 4.4. z Hex: Shows only when soft/hardware emulation/simulation, press this option will jump to “Hex”. Please refer to chapter 4.3. z Ram: Shows only when soft/hardware emulation/simulation, press this option will jump to “Ram”. Please refer to chapter 4.5. z Reg: Shows only when soft/hardware emulation/simulation, press this option will jump to “Reg”. Please refer to chapter 4.6. z Watch: Shows only when soft/hardware emulation/simulation, press this option will jump to “F_WATCH”. Please refer to chapter 4.7. z Run: Enter into Execution from Edit, and shows “Source”. (2)File Tabs Display the name of an opened file. (3)Function Keys z Open: Open old files z Mark: Setup or cancel tab, 10 (0〜9) tabs can be setup maximum, can be used with “Goto” at the same time. z Goto: Can be used with “Tab”, the purpose is for a fast change to the location of tab. z Find: Search compatible string in Edit Area. z F/N: Keep on searching the specified string. z Page: Page of Edit. (4)Edit Area Program of an opened file can be revised. Fortune Semiconductor Corp. 37/78 Rev. 1.0 FS982X IDE 4.3 Source Code Window ”Source” Window of FS982X provides users with a screen displaying execution logic debug, whose function has 5 parts: Hot Keys, File Label, Function Keys, Debug Area and Program Info., as shown in the Figure 4.3, after users execute compiling works, the window will show up. Hot file label debug function program info. Figure 4.3 “Source” Window (1)Hot Keys z Edit: Press “Edit” button, select this option can modify code. z Source: Select this option the screen will jump to “Source” for debug. z Hex: Select this option the screen will jump to “Hex”, please refer to 4.4. z Ram: Select this option the screen will jump to “Ram”, please refer to 4.5. z Reg: Select this option the screen will jump to “Reg”, please refer to 4.6. z Watch: Select this option the screen will jump to “F_WATCH”, please refer to 4.7. z Edit: Return to Edit Mode from Execute Mode, and shows “Edit” for modifying code. z Trace (F7): Detailed trace to the code, i.e. enter into Macro and sub-program z Step Over(F8): Trace to the code, i.e. not enter into Macro and sub-program z RUN(F9): Execute program z STOP(F12): Halt program z Program Reset (Rst): Reset program counter. z Chk: Check the chip data between FS Control Board and Compiler. (2)File Labels Entering into Debug Mode, file labels will display names of all complied files. Fortune Semiconductor Corp. 38/78 Rev. 1.0 FS982X IDE (3)Function Keys z Open: Open Compiled files. z Mark:Setup or cancel label, 10 (0〜9) labels can be setup maximum, can be used with “Goto” at the same time. z Goto: Can be used with “Label”, the purpose is for a fast change to the location of label. z Find: Search the compatible string in this file. z F/N: Keep on searching the specified string. z Page: Page of Edit. (4)Debug Area z Location of Program Execution: The location of the blue cursor is the halt position of program. z Setup Break Point: Set the breakpoint “ ” of program, i.e. the system will stop at this position. The numbers of breakpoint will depend on different type of chips or status of simulation/emulation. Table4.1 FS982X Soft/Hard ware Breakpoint IC types Soft. Interrupt FS9821 10 FS9822 10 FS9823 10 Hard. Interrupt 3 3 3 (5)Program Info. z Location of Program Execution: Where the program is executed, located in the down left corner of the Figure 4.3. z Size of Program: Calculates and shows code size of user’s program, i.e. min. unit is 0.1k byte 4.4 Window of Program Memory If the compiler wants to enter into Code, press 『View->Hex』or “Hex” in “Source” after user compiles the program. The interface will display the address, machine code and instructions where the complied code is saved, as shown in the Figure 4.4, i.e. the value will show by 16 hex. Figure 4.4 “Source” Window Fortune Semiconductor Corp. 39/78 Rev. 1.0 FS982X IDE 4.5 Window of Data Memory If the compiler wants to enter into Ram, press 『View->Ram』or “Ram” in “Source” after user compiles the program. The interface will display the contents of each address (0x00〜0x1FF) of ram, and the immediate modification function under debug environment, as shown in the Figure 4.5, i.e. the value will show by 16 hex. Figure 4.5 “RAM” Window Note: When the data written into register is different from previous, the address of register will be highlightted in blue to indicate any change of data. Fortune Semiconductor Corp. 40/78 Rev. 1.0 FS982X IDE Menu z z Set Mark: Mark register, the displayed color can be set from “Set Mark(new color)”. Set Mark(new color): Set “Set Mark” color, as shown in the Figure 4.6 after clicking the options. Figure 4.6 Color option Window z z z z z Reset Mark/Reset All Mark: Clear “Set Mark” function, click “Reset All Mark” will show the confirmation window, as shown at the up right side in the Figure 4.5. Set Hint: Setup expected value of register data, when the cursor is moved to the address of the register will show a yellow hint. Rest Hint/Rest All Hint: Clear “Set Hint” function, click “Reset All Hint” will show the confirmation window, as shown at the down right side in the Figure 4.5. Load RAM Data: Load in “data register” file format; respectively load in “.ram” files. The file format is shown as the Figure 4.7. Save RAM Data: Save current register data as “*.ram” (pre-set) file for easier to compare data. 00h~0fh 10h~1fh Figure 4.7 Format of RAM log file Fortune Semiconductor Corp. 41/78 Rev. 1.0 FS982X IDE 4.5.1 Revision of Register Label Difficulties will be increased under debug environment usually due to unknown label of the address. If the mouse points to the register, the address label will be displayed, and then the contents of the register can be read directly. The address in this example is 07h, the setup label is test, and the set steps are as follows: Step 1. Open ‘RAM’ window, select the address 07h and click the right button of the mouse, to select “Set Hint” from the window options. Step 2. Pop out of window, and enter into the label “test”. Step 3. When move the mouse to the address 07h, the yellow block will show up and displays the label for users to check if it is correct. The yellow block displayed format is as follows: <address>: Label, like:<07>: test. 4.5.2 Revision of RAM Data If users like to change values of some certain addresses under debug environment, the steps are as follows: Step 1: Open “RAM” Window, select the memory address supposed to be changed, and double click the left button of the mouse, the “RAM Modification” Window will show up. Figure 4.8 “RAM Modification” Window Step 2. Input the value via key board or screen key board. Note: Not every address can access modification in RAM address, such as 00H of FS982X can’t be changed. please refer to 《FS982X data sheet》. Fortune Semiconductor Corp. 42/78 For details, Rev. 1.0 FS982X IDE 4.6 Register Window If users like to enter into Register window, may press 『View->Register』from the tool bar, or press “Reg” from “Source” after compiling. The window will show the contents of the register depending on the chip type, as shown in the Figure 4.9. Register Window displays contents of the special register, including program counter, execution cycle, LCD and special register, and provides immediate modification service under debug environment. The contents displaying method is by 16 Hex., status shows in byte. Figure 4.9 Register Window Note: For detailed description of register name and definition, please refer to《FS982X data sheet》. 4.6.1 Revision of Register If users want to change values of some registers under debug environment, for example, to change the setup of “NETD->SOP1P0” to be 1, the steps are as follows: Step 1, open “Register”, select the register “NETD->SOP1P0” and click the left button of the mouse, “Register Modification” will show up, as shown in the Figure 4.10. Step 2, use mouse to select the status supposed to be changed, set 1. Figure 4.10 “Register Modification” Window Fortune Semiconductor Corp. 43/78 Rev. 1.0 FS982X IDE 4.7 F_WATCH Window If users like to enter “F_WATCH” window, may select 『View->Watch』from the tool bar, or press “Watch” in “Source” after compiling, this window provides numeric tracing function, as shown in the Figure 4.11. “F_WATCH” window displays the value defined by users. Besides, “bit tracing” function is also provided, it is convenient for users to see the change of each byte. Window displays as following: z Defined name z Defined name address z Value by 16 Hex z Address or Value by Binary Display Figure 4.11 “F_WATCH” Window Fortune Semiconductor Corp. 44/78 Rev. 1.0 FS982X IDE Menu Add/Delete Watches: Select this option will show “F_ADDWCH” Window. This window displays added or deleted label, as shown in the Figure 4.12. total right shift right shift total left shift left shift Figure 4.12 “Add/Delete” Window z Edit Watch: Under this window the referenced value at specified address can be changed. z Delete Watch: Can directly delete label in “F_WATCH” z Delete All Watches: Can directly delete all labels in “F_WATCH” z Hide Addr: Hide label at the register address z Load Properties: Load all the “F_WATCH” saved files, the extension name of the file is defined as “*.pro”. z Save Properties As: Save the Ram label listed in “F_WATCH”, the extension name of the file is “*.pro” z Clear All Properties: Clear all the opened Properties. Fortune Semiconductor Corp. 45/78 Rev. 1.0 FS982X IDE 4.7.1 Procedure of Bit Tracking If users like to watch variation of each bit under debug environment, in addition to watching the value of an address, FS982X IDE also provides the method of watching each bit, for example, like to watch the data at the 2nd bit of “ADCON(address=14h)”, the setup is as follows: Step 1, Open “F_WATCH”, use “Add/Delete Watches” of the menu to select name and address “ADCON(address=14h)” and “ADIF(address=02h)”. Figure 4.13 Successful setting in “F_WATCH” Window Step2, Click the right key of ADIF, select “Edit Watch” from the menu, as shown in the Figure 4.14. Step 3, Change the selection from “Normal” to “Bit”. Step 4, Select following address, the example is “ADCON”, press “OK”, 2nd address of “ADCON” can be watched after successful setup. Note: Names of bits[0〜7] shall be defined in code at first in bit tracing. For Example Bit0 Bit7 equ 00h : : equ 07h Figure 4.14 “Edit Watch” Screen Fortune Semiconductor Corp. 46/78 Rev. 1.0 FS982X IDE 4.8 Stack Window If users like to enter into “Stack” Window, may select 『View->Stack』from the tool bar after compiling. When write sub routine, the programmer cares about pushing and popping execution address very much, FS982X IDE provides “Stack” for watching address, as shown in the Figure 4.15. FS982X chip provides 8 stacks max. “Stack” will display stack address of code, and provides on-line modification service, the contents is displayed by 16 Hex. Figure 4.15 “Stack” Window 4.8.1 Remolding Stack Address FS982X IDE provides immediate modification function under debug environment (suggested not to use), the setup steps are as follows: Step 1, Open “Stack” Window, select the stack address supposed to be modified and double click the left button of the mouse, “Ram Modification” will show up as shown in the Figure 4.8. Step 2, Input the value via key board or screen key board. Note: The number of Stack level of each type of chip is not all the same, such as FS9821, provides only 6 level stack. For details, please refer to《FS982X data sheet》. Fortune Semiconductor Corp. 47/78 Rev. 1.0 FS982X IDE 4.9 Error Message Window During compiling, “FASM500” provides code analysis function; detect errors to variable name and instruction format. If any error occurs during compiling code, “Error Message Window” will show up, as shown in the Figure 4.17. The format of error message will be displayed in Error Message Window, consisted of “Message Code”, “File Label”, “Column” and “Description”, as shown in the Figure 4.16. [Error code] [Error label] [Error column]:[Error description] Figure 4.16 Error Message Format Figure 4.17 “Error Message” Window 4.10 LCD This function is not provided by FS982X IDE for the time being. Fortune Semiconductor Corp. 48/78 Rev. 1.0 FS982X IDE 4.11 Setup Window Like to enter into ‘Setup Window’ press『Options->Setup』 from the tool bar, as shown in the Figure 4.18, the setup items are as follows: Figure 4.18 “Setup” Window (1)Select Chip:Select device of compiling, such as FS9822(4K) (2)Language: Choose Chinese or English (3)Font: Choice of Font (4)ICE Control: z Via LPT port or USB: Communication interface can support USB or LPT options, system provides 378h(LPT1)、3BCh、278h and USB. z Select programmed chip: Users can select program type SPI (Serial Port Interface) or Boot loader type. System provides: FS9823&FS3866,FS9822&FS6811, FS9821, FS9811, FS9855, FS9824, SPI_1K, SPI_2K, SPI_4K, SPI_8K and SPI_16K. (5)Operation System: Users may choose Windows 98 or Windows NToperation system, users of Windows XP may choose ‘Windows NT’ System. (6)ROM: Buffer for data program/execution, options of memory are “RAM62256”, “EEPROM28C256” (7)Generate Files: From compiling, providing for chip. z List File: Providing compiling results, the file extension name is“*.lst”. z ASCΠ File: For internal test, the file extension name is “*.asc”. z ASCΠ File (inverse): For internal test, the file extension name is “*_invert.asc”. z Hex File: Hex file is provided for programming, the file extension name is “*.hex”. z Hex File (inverse): H/L byte exchange, for internal test, the file extension name is *_invert.hex”. z Hex File (L/H Separate): For internal test, the file extension name is “*_H.hex” and “*_L.hex”. z MaskFile (8k*16): For internal test, the file extension name is“*_H.msk” and “*_L.msk” (8)No Used Area Fill: Can choose 00, FF or GOTO 00 to fill the non-used area of code, “GOTO 00” is suggested for avoiding error of code.. Fortune Semiconductor Corp. 49/78 Rev. 1.0 FS982X IDE 5. Debug of FS982X IDE 5.1 General Description It is unavoidable to repeat modification and test on the original program during program development process. FS982X provides much more convenient for debug utilities, and shorten the development time. These functions include: Single step execution, setup breakpoint, tracking trigger condition, etc. This chapter mainly introduces the debug functions in three aspects: z Reset FS982X system z Hardware emulation of application program z Setup breakpoint Debug can be executed only after compiling; the code marked in blue in “Source” window as shown in the Figure 5.1 will be the first code to be executed. It means system is ready to accept and execute the debug order from the users. Figure 5.1 Screen after compiling 5.2 Reset FS982X System 3 kinds of Reset as follows are provided by FS982X IDE: z Hardware system reset: Use button S2 of FS982X ICE to reset system. z Power source reset: Use switch S1 of FS982X ICE to reset system. z Software reset: Execute 『Assemble&Run->Program Reset』 Fortune Semiconductor Corp. 50/78 Rev. 1.0 FS982X IDE Table 5.1 Results of 3 kinds of Reset Function Hardware System Reset Clear Special Register * Clear Memory N Program Counter (PC) 0** ***Clear Software Setting N Y Clear PD、TO Power Source Reset * N 0** N Y Software Reset * N 0(Stop) N Y Note: *:Different type of chip has different initial value. **:Reset of system depends on chip type, there are two kinds: OTP and ICE. FS982X ICE:Program counter will execute by starting from 00H, but data will be lost due to release of power for RAM as “system reset” or “power source reset”. FS982X OTP: Selection of chip, language, memory, etc. are represented by software setting, i.e. displayed in 『Option-Setup』. PD: Power down flag. TO: Watch Dog Timer flag. Fortune Semiconductor Corp. 51/78 Rev. 1.0 FS982X IDE 5.2.1 Process of Reset of Hardware System Use the button S2 of FS982X ICE to reset hardware system, as shown in the Table 5.1 for the variation. 5.2.2 Process of Reset of Power System Use the switch S1 of FS982X ICE to reset the power source, as shown in the Table 5.1 for the variation. 5.2.3 Process of Reset of Software System Select 『Assemble&Run->Program Reset』from the tool bar to execute software reset, the program counter will be reset at the 00h after execution, as shown in the Table 5.1 for the variation. 5.3 Hardware Emulation of Application After completion of the application program, need to use the execution file generated from compiling, and download the file to FS982X ICE. If there is no error during compiling, the first executed code in “Source” will be displayed in blue highlight, at this time, may use debug command of “FASM500” to emulate the application program. Three kinds of debugging are introduced as follows: z Application program in Hardware z Stop application program z Single step execution 5.3.1 Hardware Execution Select 『Assemble&Run-> Run』from the tool bar or press the hot key F9 may enter into hardware emulation. Now users may open Debug Window, including Edit, Source, Code, RAM, Register Window, too. Select 『Assemble&Run-> Stop』from the tool bar or press the hot key F12 may stop the program during hardware emulation. 5.3.2 Hardware Termination There are 3 kinds of method to stop the code: z At the breakpoint: When the program is executed at the setup breakpoint by compiling, the program will stop. z When the program is executed by trace/stopover, the program counter will stop at every step. z Upon the instruction of stop: When the program is executed, select 『Assemble&Run-> Stop』or press the hot key F12, the program counter will stop immediately. Fortune Semiconductor Corp. 52/78 Rev. 1.0 FS982X IDE 5.3.3 Single Step Execution z “FASM500” Single Step Execution provides two ways as follows: Step Over(F8): Step Over, trace to the code, i.e. not enter into Macro and sub-program; can trace the system procedure by the hot key F8. z Trace(F7):Trace, detailed trace to the code, i.e. enter into Macro and sub-program, can trace sub-program and Macro by the hot key F7. 5.4 Break Point “FASM500” provides efficient breakpoint system; 3 breakpoints can be setup at the same time during hardware emulation; 10 breakpoints can be setup at the same time during software simulation. 5.4.1 How to setup Break Points? There are two ways to setup “FASM500” breakpoint: (1)Set-up of Mouse Click Step 1: Use mouse to select “Source” window. Step 2: Double click the left button of the mouse before the pre-set code of the breakpoint; successful setting is shown as the Figure 5.2. (2)Set-up of Tool Bar Step 1: Use mouse select “Source” window. Step 2: Use mouse to select the code of the pre-set breakpoint. Step 3: Select 『Assemble&Run-> Set Breakpoint』from the tool bar, successful setting is shown as the Figure 5.2. Figure 5.2 Successful Setting of Breakpoints Note: (1)Setup breakpoint is onlyapplied to the code can be compiled . (2)When breakpoint setting is over max.number, system will use architecture “FIFO” to solve the problem. 5.4.2 How to Release Break Points? The way to release breakpoint is as the same as the setting. Use “Set-up of Mouse Click” or “Set-up of Tool Bar” can release the setting by mouse clicking. Users may double click the left button of the mouse to release the set breakpoint. “ ”. Fortune Semiconductor Corp. 53/78 Rev. 1.0 FS982X IDE 6. Simulation of FS982X IDE In addition to providing hardware emulation, FS982X also provides software simulation, to which “math library”、“code logic ”、“verification of setting register” are applied. The ways to set software simulation are as follows: Step 1. Open. Select 『Assemble&Run-> Set Debug->Simulation』from the tool bar. Step 2. Verification. Select 『Assemble&Run-> Assemble&Run(F10)』from the tool bar, users may see the screen as shown in the Figure 6.1 after compiling. When the green highlight appears in “Source” means the setting successes. 10 breakpoints are provided during software simulation; only 3 breakpoints for hardware emulation, others are the same. For details, please refer to the Chapter 3, 4, 5. Figure 6.1 Successful entering into simulation Fortune Semiconductor Corp. 54/78 Rev. 1.0 FS982X IDE 7. FS982X Emulation Board 7.1 General Description FS982X Emulation Board is applied to FS9821、FS9822 and FS9823 products’ emulation, as well as programming of FS982X OTP products. FS982X Emulation Board shall be operated with FS Control Board under debug and programming mode. The system provides the functions as follows: z Applied to ICE and OTP chip of FS9821、FS9822、FS9823 z Provides LCD independent test pin z Provides system independent test function z Provides digital/analog I/O port z Provides “Normal/Program” jumper to select Working or Programming Mode z Provide 1 set LCD:4(COM) * 13(Segment). z Provides 3 buttons z Provides FS982X chip selection mode switch FS982X Emulation Board is shown as the Figure 7.1. Figure 7.1 FS982X Emulation Board 7.2 Block Diagram and Pin Definition FS982X layout is shown as the Figure 7.2 (For the circuitry, please refer to the enclosed Diagram 3). FS982X is consisted of 5 parts: components, jumper, dip switch, connector and button. Figure 7.2 FS982X Emulation Board Layout Fortune Semiconductor Corp. 55/78 Rev. 1.0 FS982X IDE (1)Components z CR1: 32768 Hz oscillator, provides extensional clock for the system. z U1: Transfer Board location, for the connection with FS982X ICE or OTP Transfer Board. z U2: LCD, the specification is 4(COM) * 13(Segment). For the true value, may refer to the enclosed Table 1. (2)Jumpers z J1: LCD V2 voltage input selection pin, Pin1-2-3 is pre-set to be open. z J2: LCD V3 voltage input selection pin, Pin1-2 is pre-set to be short. z J3、J4、J5、J6、J7: System power source jumpers of FS982X Emulation Board. These jumpers are pre-set to be short if there is no special purpose. z J8: FS982X ICE packing internal test pin, usually it is open. z J9: FS982X Emulation Board power source, as shown in the Table 7.1. Table 7.1 J9 Jumper List Type PIN 1-2 Short PIN 2-3 Short PIN 1-2-3 Open Results FS Control Board provides voltage 3 V FS Control Board provides voltage 5 V JBAT_ICE and JVSSB_ICE input voltage 5V (Note) Note :JBAT_ICE and JVSSB_ICE input voltage can not be over 5V. J10: Use the jumper J10, the engineer can measure the actual current of FS982X chip. J11: OTP programming pin, I2C is adopted during OTP programming, the pin definition is shown in the Table 7.2. J12: Displayed selection of LCD SEGMENT 2, Pin2-3 is preset to be short. Table 7.2 J11 Pin Definition Pin Function PIN1 SDA(MDMP1_CYP) PIN3 SCK(CSBMP) PIN5 RST PIN7 VPP_FS98 PIN9 VCC_FS98 PIN11 GND Remark Data PIN, Connect PIN1 with PT2[0] Clock PIN, Connect PIN3 with PT2[1] Reset PIN, Connect PIN5 with RST(RST_ice) VPP, Connect PIN7 with VPP(12V). VDD,Connect PIN9 with VDD(VDD_ice, 5.8V) GND,Connect PIN11 with VSS(VSS_ice) (3)Dip Switches z S5: FS982X chip selection switch. (4)Connectors z CON1: Connected to CON1 of FS Control Board z CON2: Connected to CON2 of FS Control Board z CON3: Connected to CON3 of FS Control Board z CON4: Connected to CON4 of FS Control Board z CON5: A/D input port, I/O port of Emulation Board z CON6: A/D input port, I/O port of Emulation Board z CON7: LCD output pin 22*2, pin output number dependes on the selected chip type. Note: The number of the digital I/O output of CON5 and CON6 will be different according to the chip type, please refer to 《FS982X data sheet》. Fortune Semiconductor Corp. 56/78 Rev. 1.0 FS982X IDE (5)Buttons z S1: Power switch of FS982X Emulation Board z S2: Reset button z S3: General button or PT2[0] interrupt button z S4: General button or PT2[1] interrupt button 7.3 How to Use Emulation Board? Notes for use of FS982X Emulation Board z How to Use LCD? z How to Select FS982X Chip? z How to Switch Operation & Programming Mode? z How to Measure Current? Figure 7.3 7.3.1 I/O ports 4*20 CON7 4*13 LCD MCU Dip switch FS982X Emulation Board How to use LCD? The LCD Segment provided by each mode of FS982X is different; therefore, FS982X provides two kinds of screen for users’ easier operation. z z 4*13 LCD(U2):4(COM) * 13(Segment) LCD。 2*20 Connector (CON7):4(COM)*40(Segment) Connector. Users may connect this connector with other specification of LCD. System provides J12 jumper, convenient for the selection of FS982X Chip SEG2. If select Pin1-2 to be short, LCD will provide clock display (P1、ck1、ck2、one); if select Pin2-3 is short, LCD will provide unit display (T1、T2、T3、T4). For the LCD true value, please refer to the enclosed Table 1. Fortune Semiconductor Corp. 57/78 Rev. 1.0 FS982X IDE 7.3.2 How to Select FS982X Chip? FS982X Emulation Board provides dip switch (S5) for users’ easier selection of chip type. The setting is as shown in the Table 7.3. Table 7.3 Dip Switch Definition PAR13 PAR12 PAR11 FS9823_ICE OFF OFF OFF FS9822_ICE ON OFF OFF FS9821_ICE ON ON OFF Note:(1)Operation may be abnormal if the dip switch selected chip is different from the actually used chip. (2)Chip setting is only applied to FS982X ICE. Not necessary if OTP chip is used. 7.3.3 How to Use I/O Pin? FS982X Emulation Board provides each FS982X chip’s digital I/O port, analog measurement pin, consisting of connectors CON5、CON6. Users may use connectors to connect with other devices. CON5 pin definition is shown in the Table 7.4 and the Figure 7.4. CON6 pin definition is shown in the Table 7.5 and the Figure 7.5. Figure 7.4 CON5 Figure 7.5 CON6 Table 7.4 CON5 Pin Definition Pin Definition Pin PIN1 VDDA PIN8 PIN2 OP2O PIN9 PIN3 REFO PIN10 PIN4 PT10 PIN20 PIN5 PT12 PIN19 PIN6 PT14 PIN18 PIN7 PT16 PIN17 Definition PT20 PT22 VSS_ice VS OP1O AGND PT11 Pin PIN16 PIN15 PIN14 PIN13 PIN12 PIN11 Definition PT13 PT15 PT17 PT21 PT23 VSS_ice Table 7.5 CON6 Pin Definition Pin Definition Pin PIN1 VDD_ice PIN8 PIN2 PT24 PIN9 PIN3 PT26 PIN10 PIN4 PT30 PIN20 PIN5 PT32 PIN19 PIN6 PT34 PIN18 PIN7 PT36 PIN17 Definition PT40 PT42 VSS_ice VDD_ice PT25 PT27 PT31 Pin PIN16 PIN15 PIN14 PIN13 PIN12 PIN11 Definition PT33 PT35 PT37 PT41 PT43 VSS_ice Fortune Semiconductor Corp. 58/78 Rev. 1.0 FS982X IDE 7.3.4 How to Switch Normal & Programming Mode? “8 Pin Jumper ” is shown as the Figure 7.6, used for J11-J10-J9 short, can select 3 kinds of Working Mode “Normal”, “Program”, “Test after Program”. The setting steps are as follows: Figure 7.6 8 Pin Jumper (1)Normal mode Method 1 Step 1. U1 choose FS982X ICE Transfer Board。 Step 2. close switch S1。 Step 3. J11’s PIN 1-2、3-4、5-6、7-8、9-10、11-12 open。 Step 4. J10 short。 Step 5. J9’s PIN 1-2 short。 Method 2 Step 1. U1 choose FS982X ICE Transfer Board。 Step 2. close switch S1。 Step 3. 8 Pin jumper jumps to “Normal” end, as shown in the Figure7.7. Figure 7.7 Select “Normal” Mode Fortune Semiconductor Corp. 59/78 Rev. 1.0 FS982X IDE (2)Program Method1 Step 1. U1 choose FS982X OTP Transfer Board。 Step 2. close switch S1。 Step 3. J11’s PIN 1-2、3-4、5-6、7-8、9-10、11-12 short。 Step 4. J9’s PIN2-3 short。 Step 5. J10 open。 Method2 Step 1. U1 choose FS982X OTP Transfer Board。 Step 2. close switch S1。 Step 3. 8 Pin Jumper jumps to “Program”, as shown in the Figure 7.8. Figure 7.8 Select “Program” Mode (3)Test after Program Method1 Step 1. U1 choose FS982X OTP Transfer Board。 Step 2. Waiting for programming Step 3. Separate FS Control Board and FS982X Emulation Board. Step 4. Provide 2.4~3.6V power by VBAT_ice and VSSB_ice Step 5. Close switch S1。 Step 6. J11’s Pin 1-2、3-4、5-6、7-8、9-10、11-12 open。 Step 7. J10 short, then can test the actually function Method2 Step 1. Step 2. Step 3. Step 4. Step 5. Step 6. U1 choose FS982X OTP Transfer Board。 Waiting for programming Separate FS Control Board and FS982X Emulation Board Provide 2.4~3.6V power by VBAT_ice and VSSB_ice Close switch S1。 8 Pin Jumper jumps to “Normal” end, as shown in the Figure 7.7, then can test the function. Fortune Semiconductor Corp. 60/78 Rev. 1.0 FS982X IDE 7.3.5 How to Measure Current? FS982X Emulation Board provides current measurement pin J10, users may use DMM (Digital Measurement Meter) to connect the two ends of J10, and then can measure the consumption power of the chip, as shown in the Figure 7.9. Figure 7.9 J10 block Figure Fortune Semiconductor Corp. 61/78 Rev. 1.0 FS982X IDE 8. FS Control Board 8.1 General Description FS Control Board, as shown in the Figure 8.1, is applied to FS9912、FS9922、FS9932、FS9821、FS9822、 FS9823、FS9824、FS6811、FS3861、FS3866 and FS9855, etc. products’ emulation, as well as programming all the OTP products of FSC’s MCU. This Chapter will introduce: z System Configuration and Jumper Set: Introduce FS Control Board and each connector on the FS Control Board, notes for use of jumper. z How to use FS Control Board: Introduce notes for emulation and simulation when FS Control Board is connected to FS982X Emulation Board. Figure 8.1 FS Control Board Fortune Semiconductor Corp. 62/78 Rev. 1.0 FS982X IDE 8.2 Block Diagram and Pin Definition FS Control Board layout is shown as the Figure 8.2. Figure 8.2 FS Control Board Layout (1)Power System May choose 5V power for FS Control Board via USB or DC JACK, please see the following explanation: z DC JACK(CON5): Input DC 5V. z USB/B(CON6): USB Connector。 (2)Setup Jumper and Memory z J1: Output +3V and GND after regulation z J2: Output +3V after regulation z J3: GND。 z J4: Select input power for emulation or programming Table 8.1 Selection of Power for Emulation or Programming Short regulation Description 1-2 Pin (Preset) Power for Emulation 2-3 Pin Power for Programming z J5: Power setting Table 8.2 Power Setting Short regulation 1-2 Pin (Preset) 2-3 Pin Description Power Source from USB Power Source from DC JACK z U11: Emulated program memory, may use RAM62256 or EEPROM28C256. z LED1: Power LED. Fortune Semiconductor Corp. 63/78 Rev. 1.0 FS982X IDE (3)Connector z CON1: FS982X Emulation Board control I/O port. Can convert the out voltage via U6, makes the voltage level of FS Control Board and Emulation Board the same. z CON2: Programming control I/O port z CON3: System power output, provides regulated 3V output and the power for button and LED. z CON4: Programming voltage output. 8.3 How to Use FS Control Board? FS Control Board can be connected to FS982X Emulation Board or Writer Board, notes are as follows: z How to select power from Emulation/Writer Board? z How to select power from FS Control Board? z Verification of Connection of FS Control Board and PC Fortune Semiconductor Corp. 64/78 Rev. 1.0 FS982X IDE 8.3.1 How to Select Power Source from FS Control Board for Emulation / Programming The voltage for FS982X emulation and programming are respectively 3V and 12V, FS Control Board provides jumper J4 for users to select power source, the setting is as follows: z FS982X Emulation Board: Pin 1-2 of J4 is short. z Writer Board: Pin 2-3 of J4 is short. 8.3.2 How to Select Power of FS Control Board The power input method for FS Control Board is depending on different location, such as, when system needs debugging, USB can be connected for power supply, when FS Control Board connects to Writer Board, not connected to a computer, power can be supplied by DC JACK. FS Control Board provides Jumper J5 for users to select voltage input method, the setting is as follows: z USB 5V: Pin 1-2 of J5 is short. z DC JACK 5V: Pin 2-3 of J5 is short. 8.3.3 Verification of Connection between FS Control Board and PC When CON6 which controls main panel is connected to a PC via USB, open 『Start->Setup->Control Panel->System,』, select “Hardware->device administrator” from the Tabs, and press “friendly device UI”. If “HID-compliant device” shows, means system has been connected, as shown in the Figure 8.3. Figure 8.3 System Administrator Control Panel Note: When Windows 98 is connected to FS Control Board at the first time, an installation disc of Windows 98 is needed. Fortune Semiconductor Corp. 65/78 Rev. 1.0 FS982X IDE 9. OTP Programming 9.1 General Description After the application program is developed, engineer has to use OTP chip to program the executable file into EEPROM, to check whether the application is correct or not. About executable file, please refer to the Basic Tutorial in Section 2.4.7 of Chapter 2. The programming window is shown as the Figure 9.1. This chapter will introduce details of window during programming. Figure 9.1 Programming Window Fortune Semiconductor Corp. 66/78 Rev. 1.0 FS982X IDE 9.2 Introduction of Programming Window After setting of chip, select 『Assemble&Run->Assemble&Run』from the tool bar, the screen of programming is shown as the Figure 9.2, has 4 parts: z Tool Bar z Area of Information of Executable File z Location of Actually Executable File z Selection Area of Programming and Verification tool bar Area of Information of executable File Location of actually executable File Selection Area of Programming and Verification Figure 9.2 Programming Screen Fortune Semiconductor Corp. 67/78 Rev. 1.0 FS982X IDE 9.2.1 Tool Bar (1)FILE This selection is to read/write the programmed file. Move the mouse to 『File』of the tool bar and press the left button of the mouse, as shown in the Figure 9.3. The selection is as follows: Figure 9.3 File Menu z z Open… (Ctrl+O): Open the executable file, then load in the contents of the file into “File Hex Code” area, the extension file name is *.HEX. Save As...(Ctrl+S): Save the executable file, the data in “Read Chip Hex Code” will be saved after selection and press, the extension file name is *.HEX. (2)Read EEPROM This selection is to read the contents of EEPROM 28C256, the message in the screen is shown as the Figure 9.4 as following window after selection and press. Figure 9.4 Read EEPROM data z z z z z EEPROM: When “PASS” shows means system can accept single unit programming. Pro. Type: Programming Mode; Boost Mode or SPI Mode. Check Sum: Check password for executable file. Protect: Programming protection; “Yes” means chip data protected after programming; “No” means no protection to chip data after programming. Chip Type: Programmed chip type. Note: This selection is applied only to the system memory EEPROM. Fortune Semiconductor Corp. 68/78 Rev. 1.0 FS982X IDE (3)Chip-Info This selection is for confirmation of programmed chip type (only the chip programmed by Boost ROM can be detected), as shown in the Figure 9.5. Now, the function of Chip-Info can only detect the chip type FS9823E、FS9822E、FS6811. Figure 9.5 Chip Information 9.2.2 Information of Executable File This block provides all the information of programmed file, including file name, emulation chip type, programmed chip, file check code, and read check code, as shown in the Figure 9.6. Figure 9. 6 Information of executable file z z z z z File name: The path and file name of the executable file, immediately shows up as loading in the file. ICE chip type: The selected chip type during compiling. Write chip: The OTP chip type supposed to be programmed. File CheckSum: The checksum for loading in executable file, create a serial when select 『File->Open』to load in file. Read CheckSum: This procedure gets checksum from OTP, can be accessed by pressing “Read” in programming or verification selection area. Fortune Semiconductor Corp. 69/78 Rev. 1.0 FS982X IDE 9.2.3 Buffer Area of Executable File This block provides actual data of executable file and program memory, mainly divided into two parts: “File Hex Code” and “Read Chip Hex Code”. Figure 9.7 Buffer Area of Executable File z File Hex Code: The area saves executable data. After the executable file is opened, the screen will show the contents of the executable file. z Read Chip Hex code: The area saves actual data from OTP. This selection will completely show the contents of OTP chip code. Users may access OTP program memory by pressing “Read” in the Programming and Verification Area. Fortune Semiconductor Corp. 70/78 Rev. 1.0 FS982X IDE 9.2.4 Selection of Programming and Verification This block provides operation selection during programming, mainly divided into 4 parts: z Single Step Programming: Including Programming, Read, Stop, Blank Check, and Compare, Load in, etc. buttons and status displaying area. z Continuously Programming: Including Auto Button, Blank Check, Programming, Verify, Write Protect, etc. selections. z Block Programming/Read: Block programming, Block Read/Write button, Start Address and End Address Fill in Area. z Programming Time Display: Including Time Displaying, Overview of Operation, as shown in the Figure 9.8. Figure 9.8 Selection of Programming and Verification Fortune Semiconductor Corp. 71/78 Rev. 1.0 FS982X IDE (1)Single Step Programming Programming: Program “File Hex Code” into OTP chip. Read: Read the code in OTP chip, results will be put in the block “Read Chip Hex Code”; check code will be displayed in “Programmed File Info->Read Check Code”. z z Note: The memory of FS Control Board ( U11) or Programming Panel ( U1) has to be RAM62256 when use this function. Stop: Force system to stop programming. Blank Check: Check if the OTP chip is blank. Compare: System will compare if the programming code and OTP code are the same or not. Load: Reload executable file. When any modification to “File Hex Code”, “Load” should be pressed, code will be auto. updated and loaded into RAM or EEPROM for internal use. Status Displaying Area: Shows whether the loaded data is correct or not, the status displaying is as shown in the Table 9.1. z z z z z Table 9.1 Status Table Display Successful Err1 Err2 Err3 Err4 Err5 Err6 Description File loaded success loaded to RAM62256 fails File loaded to RAM62256 fails File loaded to EEPROM28C256 fails File loaded to EEPROM28C256 fails Chip serial No. loaded fails Loop check code compare fails (2)Continuous Programming z Auto: System will automatically program according to the selected steps after press. z Blank Check: The function is as the same as “Single Step Programming->Blank Check”. z Programming: The function is as the same as “Single Step Programming->Programming”. z Verify: The function is as the same as “Single Step Programming->Compare”. z Write protect: Protect the programming code of chip. (3)Block Write/Read z Start Address: Input start address for internal use. z End Address: Input end address for internal use. z Block Write: Programming the start and end addresses for internal use. z Block Read: Read the start and end address for internal use. (4)Programming Time Display Shows chip programming time (This area shows only in the Parallel Port screen). Fortune Semiconductor Corp. 72/78 Rev. 1.0 FS982X IDE 10. Revision History Ver. Date Page 1.0 Jul. 31, ‘05 All Fortune Semiconductor Corp. Description Release of First Edition (EN), corresponding to ver. 1.1 of TC 73/78 Rev. 1.0 FS982X IDE Appendix Diagram 1:Circuitry of FS9821、22、23 2 3 4 6 5 SEG2 SEG4 SEG6 SEG8 SEG10 SEG12 SEG14 SEG16 SEG18 SEG20 1 ICE Transfer Board D JP3 HEADER 20X2 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 COM3 COM4 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8 SEG9 SEG10 SEG11 SEG12 SEG13 SEG14 SEG15 SEG16 SEG17 SEG18 SEG19 SEG20 PREB_ice PWEB_ice CSBMP_ice MDM P1_ice MDM P0_ice RUNMP_ice RDYMP_ice PAR0_ice SEG1 SEG3 SEG5 SEG7 SEG9 SEG11 SEG13 SEG15 SEG17 SEG19 40 38 36 34 32 30 28 26 24 22 20 18 16 14 12 10 8 6 4 2 39 37 35 33 31 29 27 25 23 21 19 17 15 13 11 9 7 5 3 1 D VS VSSP CA VDD_ice XOUT TST 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 COM3 COM1 LCB V2 COM2 81 COM1 82 LCA 83 LCB 84 V1 85 86 V2 V3 87 VDDA 88 89 VS VGG 90 VSSP 91 CB 92 CA 93 VDDP 94 VDD_ice 95 VSS_ice 96 XOUT 97 XIN 98 TST 99 RST_ice 100 VDDA VGG CB VDDP VSS_ice XIN RST_ice HEADER 20X2 B COM2 COM1 LCA LCB V1 V2 V3 VDDA VS VGG VSSP CB CA VDDP VDD VSS XOUT XIN TST RST FS9822_ICE C JP2 PAR<1> PAR<2> PAR<3> PAR<4> PAR<5> PAR<6> PAR<7> PAR<8> PAR<9> PAR<10> PAR<11> PAR<12> PIO<0> PIO<1> PIO<2> PIO<3> PIO<4> PIO<5> PIO<6> PIO<7> OP1O REFO FTB FTC VB AGND PT1<0>/AIN0 PT1<1>/AIN1 PT1<2>/AIN2 PT1<3>/AIN3 PT1<4>/AIN4 PT1<5>/AIN5 PT1<6>/AIN6 PT1<7>/AIN7 PT2<0>/IN T0 PT2<1>/IN T1 PT2<2>/PDM1 PT2<3>/SDA PT2<4>/SCL PT2<5>/PDM2 PT2<6> PT2<7>/BZ PT3<0>/IN T2 PT3<1>/IN T3 PT3<2>/PFI PT3<3>/PFO PT3<4> PT3<5> PT3<6> PT3<7> JP4 COM4 COM2 LCA V1 V3 COM3 COM4 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8 SEG9 SEG10 SEG11 SEG12 SEG13 SEG14 SEG15 SEG16 SEG17 SEG18 SEG19 SEG20 PREB PWEB CSBMP MDMP<1> MDMP<0> RUNMP RDYMP PAR<0> U2 C 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 PAR1_ice PAR2_ice PAR3_ice PAR4_ice PAR5_ice PAR6_ice PAR7_ice PAR8_ice PAR9_ice PAR11_ice PAR10_ice PAR12_ice PIO0_ice PIO1_ice PIO2_ice PIO3_ice PIO4_ice PIO5_ice PIO6_ice PIO7_ice PREB_ice CSBMP_ice MDMP0_ice RDYMP_ice PAR1_ice PAR3_ice PAR5_ice PAR7_ice PAR9_ice PAR10_ice PIO1_ice 40 38 36 34 32 30 28 26 24 22 20 18 16 14 12 10 8 6 4 2 39 37 35 33 31 29 27 25 23 21 19 17 15 13 11 9 7 5 3 1 PWEB_ice MDMP1_ice RUNMPice PAR0_ice PAR2_ice PAR4_ice PAR6_ice PAR8_ice PAR11_ice PAR12_ice PIO0_ice PIO2_ice HEADER 20X2 PIO1_ice B PIO7_ice PIO5_ice PIO3_ice 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 OP1O FTB VB PT10 PT12 PT14 PT16 PT20 PT22 PT24 PT26 PT30 PT32 PT34 PT36 OP1O REFO FTB FTC VB AGND PT10 PT11 PT12 PT13 PT14 PT15 PT16 PT17 PT20 PT21 PT22 PT23 PT24 PT25 PT26 PT27 PT30 PT31 PT32 PT33 PT34 PT35 PT36 PT37 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 FS9822_ICE JP1 HEADER 20X2 A 1 2 3 Title Size PIO6_ice PIO4_ice REFO FTC AGND PT11 PT13 PT15 PT17 PT21 PT23 PT25 PT27 PT31 PT33 PT35 PT37 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 A Number Revision B Date: File: 4 9-Oct-2004 Sheet of Drawn By: C:\WORK\ 模擬器\USBTEST\SCH\SE_TRANSBOARD\SE_TRANSBOARD.ddb 5 6 Diagram 1 FS9821&22 ICE Transfer Board Circuitry Note: FS9823 ICE is 160 pin, which can be transferred by pin to pin, therefore no ICE circuitry is provided. Fortune Semiconductor Corp. 74/78 Rev. 1.0 FS982X IDE Diagram 2:Circuitry of FS9821、22、23 2 3 4 6 5 39 37 35 33 31 29 27 25 23 21 19 17 15 13 11 9 7 5 3 1 SEG2 SEG4 SEG6 SEG8 SEG10 SEG12 1 OTP Transfer Board JP3 HEADER 20X2 D 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 COM1 COM2 COM3 COM4 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8 SEG9 SEG10 SEG11 SEG12 SEG1 SEG3 SEG5 SEG7 SEG9 SEG11 40 38 36 34 32 30 28 26 24 22 20 18 16 14 12 10 8 6 4 2 D JP? VPP VS VSSP CA VDD_ice XOUT TST 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 COM3 COM1 LCB V2 LCA LCB V1 V2 V3 VDDA VS VGG VSSP CB CA VDDP VDD_ice VSS_ice XOUT XIN VDDA VGG CB VDDP VSS_ice XIN RST_ice 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 JP2 COM1 COM2 COM3 COM4 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8 SEG9 SEG10 SEG11 SEG12 COM4 COM2 LCA V1 V3 LCA LCB V1 V2 V3 VDDA VS VGG VSSP CB CA VDDP VDD VSS XOUT XIN FS9821 TST RST VPP NC OP1O REFO FTB FTC VB AGND PT1<0>/AI N0 PT1<1>/AI N1 PT1<2>/AI N2 PT1<3>/AI N3 PT1<4>/AI N4 PT1<5>/AI N5 JP4 C 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 NC NC NC NC NC NC PT2<7> PT2<6> PT2<5> PT2<4> PT2<3> PT2<2> PT2<1> PT2<0> PT1<7> PT1<6> HEADER 20X2 40 38 36 34 32 30 28 26 24 22 20 18 16 14 12 10 8 6 4 2 PT27 PT26 PT25 PT24 PT23 PT22 PT21 PT20 PT17 PT16 39 37 35 33 31 29 27 25 23 21 19 17 15 13 11 9 7 5 3 1 C HEADER 20X2 TST 1 RST_ice 2 VPP 3 4 OP1O 5 REFO 6 FTB 7 FTC 8 VB 9 AGND 10 PT10 11 PT11 12 PT12 13 14 PT13 15 PT14 16 PT15 FS9821 B JP1 HEADER 20X2 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 OP1O FTB VB PT10 PT12 PT14 PT16 PT20 PT22 PT24 PT26 B A A REFO FTC AGND PT11 PT13 PT15 PT17 PT21 PT23 PT25 PT27 Title Size Number Revision B Date: File: 1 2 3 4 9-Oct-2004 Sheet of Drawn By: C:\WORK\ 模擬器\USBTEST\SCH\SE_TRANSBOARD\SE_TRANSBOARD.ddb 5 6 Diagram 2(A) FS9821 OTP Transfer Board Circuitry 2 3 4 6 5 SEG2 SEG4 SEG6 SEG8 SEG10 SEG12 SEG14 SEG16 SEG18 SEG20 1 D JP3 HEADER 20X2 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 COM1 COM2 COM3 COM4 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8 SEG9 SEG10 SEG11 SEG12 SEG13 SEG14 SEG15 SEG16 SEG17 SEG18 SEG19 SEG20 SEG1 SEG3 SEG5 SEG7 SEG9 SEG11 SEG13 SEG15 SEG17 SEG19 40 38 36 34 32 30 28 26 24 22 20 18 16 14 12 10 8 6 4 2 39 37 35 33 31 29 27 25 23 21 19 17 15 13 11 9 7 5 3 1 D VPP VS VSSP CA VDD_ice XOUT TST 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 81 82 83 LCA 84 LCB 85 V1 86 V2 87 V3 VDDA 88 VS 89 VGG 90 91 VSSP 92 CB 93 CA VDDP 94 VDD_ice 95 VSS_ice 96 XOUT 97 98 XIN 99 TST RST_ice 100 COM3 COM1 LCB V2 VDDA VGG CB VDDP VSS_ice XIN RST_ice HEADER 20X2 B NC NC LCA LCB V1 V2 V3 VDDA VS VGG VSSP CB CA VDDP VDD VSS XOUT XIN TST RST FS9822 NC NC NC NC VPP NC OP1O REFO FTB FTC VB AGND PT1<0>/AIN0 PT1<1>/AIN1 PT1<2>/AIN2 PT1<3>/AIN3 PT1<4>/AIN4 PT1<5>/AIN5 PT1<6>/AIN6 PT1<7>/AIN7 PT2<0>/IN T0 PT2<1>/IN T1 PT2<2>/PDM1 PT2<3>/SDA PT2<4>/SCL NC NC NC NC NC JP4 COM4 COM2 LCA V1 V3 NC NC NC NC NC NC COM1 COM2 COM3 COM4 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8 SEG9 SEG10 SEG11 SEG12 SEG13 SEG14 SEG15 SEG16 SEG17 SEG18 SEG19 SEG20 JP? C NC NC NC NC PT3<7> PT3<6> PT3<5> PT3<4> PT3<3> PT3<2> PT3<1> PT3<0> PT2<7> PT2<6> PT2<5> NC NC NC NC NC 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 JP2 PT37 PT36 PT35 PT34 PT33 PT32 PT31 PT30 PT27 PT26 PT25 40 38 36 34 32 30 28 26 24 22 20 18 16 14 12 10 8 6 4 2 C 39 37 35 33 31 29 27 25 23 21 19 17 15 13 11 9 7 5 3 1 HEADER 20X2 B 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 OP1O FTB VB PT10 PT12 PT14 PT16 PT20 PT22 PT24 PT26 PT30 PT32 PT34 PT36 VPP 1 2 3 4 5 6 OP1O 7 8 REFO 9 FTB 10 FTC 11 VB AGND 12 13 PT10 14 PT11 15 PT12 16 PT13 17 PT14 18 PT15 19 PT16 20 PT17 21 PT20 22 PT21 23 PT22 24 PT23 25 PT24 26 27 28 29 30 FS9822 JP1 HEADER 20X2 A 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 A REFO FTC AGND PT11 PT13 PT15 PT17 PT21 PT23 PT25 PT27 PT31 PT33 PT35 PT37 Title Size 2 3 Revision B Date: File: 1 Number 4 9-Oct-2004 Sheet of Drawn By: C:\WORK\ 模擬器\USBTEST\SCH\SE_TRANSBOARD\SE_TRANSBOARD.ddb 5 6 Diagram 2(B) FS9822 OTP Transfer Board Circuitry Fortune Semiconductor Corp. 75/78 Rev. 1.0 OP2O REFO FTC AGND PT11 PT13 PT15 PT17 PT21 PT23 PT25 PT27 PT31 PT33 PT35 PT37 PT41 PT43 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 OP1O FTB VB PT10 PT12 PT14 PT16 PT20 PT22 PT24 PT26 PT30 PT32 PT34 PT36 PT40 PT42 VPP 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 COM4 COM2 LCA V1 V3 JP4 VPP VS VSSP CA VDD_ice XOUT TST B 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 COM3 COM1 LCB V2 VDDA VGG CB VDDP VSS_ice XIN RST_ice 1 Fortune Semiconductor Corp. COM2 81 COM1 82 83 LCA 84 LCB V1 85 86 V2 87 V3 VDDA 88 VS 89 VGG 90 91 VSSP 92 CB CA 93 VDDP 94 VDD_ice 95 VSS_ice 96 XOUT 97 98 XIN 99 TST RST_ice 100 HEADER 20X2 2 COM3 COM4 SEG1 SEG2 SEG4 SEG4 SEG5 SEG6 SEG7 SEG8 SEG9 SEG10 SEG11 SEG12 SEG13 SEG14 SEG15 SEG16 SEG17 SEG18 SEG19 SEG20 SEG21 SEG22 SEG23 SEG24 SEG25 SEG26 SEG27 SEG28 C COM2 COM1 LCA LCB V1 V2 V3 VDDA VS VGG VSSP CB CA VDDP VDD VSS XOUT XIN TST RST VPP NC NC OP2O OP1O REFO FTB FTC VB AGND PT1<0>/AI N0 PT1<1>/AI N1 PT1<2>/AI N2 PT1<3>/AI N3 PT1<4>/AI N4 PT1<5>/AI N5 PT1<6>/AI N6 PT1<7>/AI N7 PT2<0>/IN T0 PT2<1>/IN T1 PT2<2>/PDM1 PT2<3>/SDA PT2<4>/SCL PT2<5>/PDM2 PT2<6> PT2<7>/BZ PT3<0>/IN T2 PT3<1>/IN T3 PT3<2>/PFI PT3<3>/PFO 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 COM3 COM4 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8 SEG9 SEG10 SEG11 SEG12 SEG13 SEG14 SEG15 SEG16 SEG17 SEG18 SEG19 SEG20 SEG21 SEG22 SEG23 SEG24 SEG25 SEG26 SEG27 SEG28 SEG1 SEG3 SEG5 SEG7 SEG9 SEG11 SEG13 SEG15 SEG17 SEG19 SEG21 SEG23 SEG25 SEG27 SEG29 SEG31 SEG33 SEG35 SEG37 SEG39 40 38 36 34 32 30 28 26 24 22 20 18 16 14 12 10 8 6 4 2 39 37 35 33 31 29 27 25 23 21 19 17 15 13 11 9 7 5 3 1 SEG2 SEG4 SEG6 SEG8 SEG10 SEG12 SEG14 SEG16 SEG18 SEG20 SEG22 SEG24 SEG26 SEG28 SEG30 SEG32 SEG34 SEG36 SEG38 SEG40 1 2 OP2O OP1O REFO FTB FTC VB AGND PT10 PT11 PT12 PT13 PT14 PT15 PT16 PT17 PT20 PT21 PT22 PT23 PT24 PT25 PT26 PT27 PT30 PT31 PT32 PT33 FS982X IDE 3 3 4 FS9823 U1 5 SEG29 SEG30 SEG31 SEG32 SEG33 SEG34 SEG35 SEG36 SEG37 SEG38 SEG39 SEG40 PT4<3> PT4<2> PT4<1> PT4<0> PT3<7>/AIN11 PT3<6>/AIN10 PT3<5>/AIN9 PT3<4>/AIN8 4 76/78 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 6 D JP3 HEADER 20X2 D U1 SEG29 SEG30 SEG31 SEG32 SEG33 SEG34 SEG35 SEG36 SEG37 SEG38 SEG39 SEG40 PT43 PT42 PT41 PT40 PT37 PT36 PT35 PT34 JP2 40 38 36 34 32 30 28 26 24 22 20 18 16 14 12 10 8 6 4 2 Size Date: File: 39 37 35 33 31 29 27 25 23 21 19 17 15 13 11 9 7 5 3 1 C HEADER 20X2 B A JP1 HEADER 20X2 Title Number 5 Revision A B 9-Oct-2004 Sheet of Drawn By: C:\WORK\ 模擬器\USBTEST\SCH\SE_TRANSBOARD\SE_TRANSBOARD.ddb Diagram 2(C) FS9823 OTP Transfer Board Circuitry 6 Rev. 1.0 FS982X IDE Diagram 3: Circuitry of FS982X Emulation Board 1 2 3 4 5 6 LCD1 S EG1 S EG2 S EG3 S EG4 S EG5 S EG6 S EG7 S EG8 S EG9 S EG10 S EG11 S EG12 S EG13 S EG14 S EG15 S EG16 S EG17 S EG18 S EG19 S EG20 S EG21 S EG22 S EG23 S EG24 S EG25 S EG26 S EG27 S EG28 S EG29 S EG30 S EG31 S EG32 S EG33 S EG34 S EG35 S EG36 S EG37 S EG38 S EG39 S EG40 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 2 VDD_15V P3<7> 4 P3<4> 6 8 P3<6> 10 VPP_FS981 VPP_FS243 VCC_FS985 7 C2 9 1uF COM10 2 VPP_FSXX 4 VCC_FSXX VDD_3VIN 6 8 C3 10 1uF COM10 VSS_ice VSS_ice VSS_ice J11 MDMP1_CYP CSBMP RST VPP_FS98 VCC_FS98 1 3 5 7 9 11 VSS_ice B Programming Simulation JP3(1-2) Short Open 2 4 6 8 10 12 HEADER 6X2 JP3(3-4) JP3(4-5) Short Short Open Open PT20 PT21 RST VPP_buf VDD_ice VSS_ice JP3(5-6) JP3(7-8) JP3(9-10) JP3(11-12) Short Short Short Short VDD_CYP Open Open Open Open RP1 RPS9 C24 0.1uF VSS_ice 2 RUNMP 3 PWEB 4 CSBMP 5 S5 C16 2.2nF 1 2 PAR13 3 4 PAR12 5 6 PAR11 S EG1 S EG2 S EG3 S EG4 S EG5 S EG6 S EG7 S EG8 S EG9 S EG10 S EG11 S EG12 S EG13 S EG14 S EG15 S EG16 S EG17 S EG18 S EG19 S EG20 S EG21 S EG22 S EG23 S EG24 S EG25 S EG26 S EG27 S EG28 S EG29 S EG30 S EG31 S EG32 S EG33 S EG34 S EG35 S EG36 S EG37 S EG38 S EG39 S EG40 RST C17 27nF VSS_ice SW-3 J10 J15 J14 VSSB_ice SW DPDT JVDD_ice C20 0.1uF C21 1uF C26 0.1uF VSS_ice LCD_WT2 COM1 COM3 SEG1 SEG3 SEG5 SEG7 SEG9 SEG11 SEG13 SEG15 SEG17 SEG19 SEG21 SEG23 SEG25 SEG27 SEG29 SEG31 SEG33 SEG35 SEG37 SEG39 PREB PWEB CSBMP MDMP1 MDMP0 RUNMP RDYMP PAR0 PAR1 PAR2 PAR3 PAR4 PAR5 PAR6 PAR7 PAR8 PAR9 PAR10 PAR11 PAR12 PAR13 PIO0 PIO1 PIO2 CON7 1 44COM2 COM4 SEG2 SEG4 SEG6 SEG8 SEG10 SEG12 SEG14 SEG16 SEG18 SEG20 SEG22 SEG24 SEG26 SEG28 SEG30 SEG32 SEG34 SEG36 SEG38 SEG40 3 C CON22X2 B VDD_CYP R3 47K R2 47K RDYMP_A PB4 VSS_ice S4 R4 PT21 Q1 3904 1K PB3 VDD_ice C28 0.1uF VSS_ice RDYMP CON5 VSS_ice CON10X2 Q2 3904 R5 30K CON6 CON10X2 VSS_ice A Title C29 0.1uF VDD_ice VSS_ice Size 4 Number Revision B VSS_ice Date: File: VSS_ice 2 SEG1 COM4 COM3 COM2 COM1 VSS_ice VSS_ice 1 SEG2 PT20 C19 1uF C27 0.1uF VDD_ice D1 1N4001 D J12 S3 C18 10nF VSS_ice VCC_ram S1 A SEG12 SEG11 SEG10 SEG9 SEG8 SEG7 SEG6 SEG5 SEG4 SEG3 FS9823_ICE4P VCC_ram VSS_ice 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 NC NC NC NC NC NC NC NC NC NC NC NC NC NC NC NC PREB PWEB CSBMP MDMP<1> MDMP<0> RUNMP RDYMP PAR<0> PAR<1> PAR<2> PAR<3> PAR<4> PAR<5> PAR<6> PAR<7> PAR<8> PAR<9> PAR<10> PAR<11> PAR<12> PAR<13> PIO<0> PIO<1> PIO<2> FS9823_ICE 1 VDD_CYP C25 0.1uF J13VSS_ice VBAT_ice 2 CSRAM 3 MDMP0 4 PREB 5 MDMP1 6 PAR14 7 8 9 COM4 COM3 COM2 COM1 LCA LCB V1 V2 V3 NC NC NC NC NC NC NC NC NC NC NC NC NC NC NC NC NC NC VDDA VS VGG VSSP CB CA VDDP VDD VSS XOUT XIN TST RST 1 VDD_3V J9 RP2 RPS5 COM4 COM3 COM2 COM1 LCA LCB V1 V2 V3 1 CON34 CON4 12 34 56 78 910 C6 20 P T25 P T27 P T31 P T33 P T35 P T37 P T41 P T43 C5 VSS_ice P T24 P T26 P T30 P T32 P T34 P T36 P T40 P T42 C22 1uF C 1 VDD_CYP 3 P3<3> 5 P3<5> 7 9 C23 1uF 121 122 123 124 125 126 C7 127 0.1uF C8 128 129 0.1uF 130 0.1uF 131 0.1uF 132 V2 J1 133 134 135 V3 J2 136 C4 137 1uF VDD_ice 138 139 140 141 142 143 144 VPP_buf 145 VDDP J3 146 VDD_ice C9 147 VDDA 148 C10 VS 149 VGG J4 150 1uF VSSP 151 J5 CB 152 10uF C11 J6 C12 CA J7 153 C13 VDDP 154 155 10uF 156 1uF 1uF VDD_ice XOUT 157 XIN C14 158 TX1 TST 25pF R6 159 160 32768Hz 10M J8 JTST C15 VSS_ice 25pF S2 R1 VDD_ice VSS_ice Reset 100K MDMP1_CYP VSS_ice CON3 1 2 3 4 5 6 7 8 910 S13 S12 S11 S10 S9 S8 S7 S6 S5 S4 S3 S2 S1 C1 C2 C3 C4 U1 OP2O OP1O REF O F TB F BC VB AGND P T1<0> /AIN 0 P T1<1> /AIN 1 P T1<2> /AIN 2 P T1<3> /AIN 3 P T1<4> /AIN 4 P T1<5> /AIN 5 P T1<6> /AIN 6 P T1<7> /AIN 7 P T2<0> /I NT0 P T2<1> /I NT1 P T2<2> /PDM1 P T2<3> /SDA P T2<4> /SCL P T2<5> /PDM2 P T2<6> P T2<7> /BZ P T3<0> /I NT2 P T3<1> /I NT3 P T3<2> /PFI P T3<3> /PFO P T3<4> /AIN 8 P T3<5> /AIN 9 P T3<6> /AIN 10 P T3<7> /AIN 11 P T4<0> P T4<1> P T4<2> P T4<3> P IO<7> P IO<6> P IO<5> P IO<4> P IO<3> CON34 VDD_3V CON2 PAR0 PAR2 PAR4 PAR6 PAR8 PAR10 PAR12 PAR14 PIO1 PIO3 PIO5 PIO7 MDMP1 CSBMP RDYMP_A PWEB 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 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 35 36 37 38 39 40 CON1 PAR1 PAR3 PAR5 PAR7 PAR9 PAR11 PAR13 PIO0 PIO2 PIO4 PIO6 CSRAM MDMP0 RUNMP RST PREB OP2O OP1O REF O F TB F TC VB AGND P T10 P T11 P T12 P T13 P T14 P T15 P T16 P T17 P T20 P T21 P T22 P T23 P T24 P T25 P T26 P T27 P T30 P T31 P T32 P T33 P T34 P T35 P T36 P T37 P T40 P T41 P T42 P T43 P IO7 P IO6 P IO5 P IO4 P IO3 VSS_ice 20 VS OP1O AGND P T11 P T13 P T15 P T17 P T21 P T23 C1 0.1uF D VDDA 1 OP2O REF O P T10 P T12 P T14 P T16 P T20 P T22 VCC_ram 20-Oct-2004 Sheet of C:\Documents and Settings\lhmhome\桌面\USB ICE.Ddb Drawn By: 5 6 Diagram 3 FS982X Emulation Board Circuitry Fortune Semiconductor Corp. 77/78 Rev. 1.0 FS982X IDE Table 1:LCD T/F Table z LCD A5 one A4 B5 1 A6 B4 2 ck1 A3 TARE ZERO z C5 B6 C4 B3 D5 C6 3 ck2 C3 P1 A7 D6 E4 T1 P2 B7 B1 C2 P3 C7 C1 D2 P4 T2 台兩 T3 oz T4 Pcs E3 E2 D7 D1 g E6 5 ck2 B2 A1 4 D3 ck1 A2 one D4 E5 P5 E7 E1 P6 LCD specification COM1 COM2 COM3 COM4 SEG1 ZERO TARE SEG2 P1 ck1 ck2 one SEG3 A1 A2 A3 A4 SEG4 P2 A7 A6 A5 SEG5 B1 B2 B3 B4 SEG6 P3 B7 B6 B5 SEG7 C1 C2 C3 C4 SEG8 P4 C7 C6 C5 SEG9 D1 D2 D3 D4 SEG10 P4 D7 D6 D5 SEG11 E1 E2 E3 E4 SEG12 P6 E7 E6 E5 SEG13 T4 T3 T2 T1 Fortune Semiconductor Corp. 78/78 Rev. 1.0