Home
FS982X IDE
Contents
1. Figure 1 2 Layout of a FS982X Emulation Board and b FS Control Board Fortune Semiconductor Corp 1 78 Rev 1 0 a 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 Options Linker Options Executable File OMIT Emulation FS OTPWriter OTP Option Figure 1 3 FASM500 Project Manager Fortune Semiconductor Corp 8 78 Rev 1 0 a 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 e Code instruction simulation e Code logic simulation Provides perfect software breakpoint system 10 points 2 Hardware emulation Easier for use and installation Internal or extensional oscillator can b
2. Tie i A la 9 Size Number Revision 1 5 5 3 5 5 5 5 5 55 B gREZEEEEEEEEREERE slg Ela Date 9 Oct2004 Sheet of File CAWORKMS amp SUSBTESTSCHSSE TRANSBGAIBRSSE TRANSBOARD ddb 1 3 4 6 Note Fortune Semiconductor Corp Diagram 1 FS982 1 amp 22 IC 14 78 E Transfer Board Circuitry FS9823 ICE is 160 pin which can be transferred by pin to pin therefore no ICE circuitry is provided FS982X IDE Rev 1 0 WU Fortune FS982X IDE Diagram 2 Circuitry of FS9821 22 25 OTP Transfer Board 1 2 3 4 5 6 Mimi 1S S e fe e e fea ea ea ca ca a EI AES NE IHEADER 20X2 D ouotanscwetascwetac FORA NMA AMAA ole ooo ooo caca a EIAS JP 112 14 0 40 39 PK CONG com 91 2 0 COMI ICA 49 eR 3 4p 5E o ES NC 0 36 35 p x o 5 65 E SHH ics NC o 34 33 PK w
3. 42 432 FRE of RAM DIA E 42 46 REGISTER niire 43 4 6 1 PROVISION OF nici ii NN ETA E 43 Fortune Semiconductor Corp 3 78 Rev 1 0 Fortune FS982X IDE WAICH e E E 44 4 7 1 Procedure of Bit Tracking seen enne eene e ene ttre nennen eene nene nennen nennen sense nennen enn 46 48 STACK ata deanna N 47 4 8 1 Remolding SUA CK FO OI CSS eoi ast ose seen tumens RE esthetic acts EEE 47 4 9 ERROR MESSAGE ES rt eeeseeraesneeaseeees 48 4 10 Bor m 48 4 11 S TUPI TT R 40 5 DEBUG OF FS982X sseeeese sates 50 Del GENERAL DESCRIPTION AM 50 OZ SYSTEM RR 50 9 2 1 Process of Reset of Hardware System sss een eene eene nnne 22 5 2 2 Process of Reset of Power 224 5 2 3 Process of Reset of Software System
4. Se cccococ Lil ded LLLI LI E E SUB Figure 2 9 Back Counting Figure 2 10 Internal Count of Temp Step 2 Then press FS982X Emulation Board 54 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 otep 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 a 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 Selection Device How to choose IC and RAM the step has to be selected prior to wr
5. sse eee e nenne nennen e nen nennen nen 52 5 3 HARDWARE EMULATION OF APPLICATION ecisva seus uana Co vro db aera ego E TE tsss ttet settee teste vade da Eo Dee b nr TO essre enserre 52 5 3 1 Igi Ii Iz netaeeeo 52 5 3 2 Hardware Termination 52 5333 SNE SEP E nn een ne eae nee are 53 I ee E ER A A ETE 53 5 4 1 FIOW 10 SC1UD Break FOIS AN T EA EEE aE AT 53 5 4 2 Howto Release Break Points sse eene enne ene eene eres eene nnne eren terre 53 SIMULATION OF ES982X IDE 5 ertiiesescessnsetece vas ee eS ean AEE Aad aasa YAN VS 00 B iasan aiea 54 Je FS982X EMULATION BOARD apace sce es suc epicuri umi ac s SEMBRA E EIIUE 55 TA GENERAL DESCRIPTION p 55 7 2 BLOCK DIAGRAM AND PIN DEFINITION cccccccccesssscccesessscecceessceeccessseeccceeseececessseececessseeceeessseeceeseseeecseesaeeeesensaeeees 55 A USE EMULATION BOARD sf 7 3 1 nie OU O LOD ATEM MS 57 Foo A QUO ereina ERE EINT E E A EE R A AAEE 58 Lo RET 58 7 3 4 How to Switch Normal Programming MOde 2 nennen nenne
6. MM 23 T 25 O T e E A E EE 30 ZR CON ce gece anc EE E E E E A 30 3 TOOLBAR OF FS982X IDE ticae ee ener ern cere 31 MEME 31 o 0 31 Sc MEE o saa carrer tines hoetesatertivs 32 0r 128 5 0 32 55 2287 33 m mt 34 SW C uie NE 35 SOMME co d 35 4 X IDE Uis em PNEU 36 4 1 GENERAL DESCRIPTION 36 ZT VINO ea pec eae a na beech ea ed ca se aac bash cnt tenet ssp 37 4 3 SOURCE CODE a ENNE EEA 38 4 4 WINDOW OF PROGRAM MEMORY ssssccccsssssscccssscccesssssecessesceeecceessesececenseasessesseaceesessuscessesascesenscesessesaaseesensease 39 4 5 WINDOW OF DATA MEMORY ironi headed Titae tpa ENEA Ebo AE EENDE E aiaa 40 4 5 1 Revision of Register
7. EE 30K VSS icc VOC am ele rea I fn c sho SERRA q saipa 2 SWS an 0 1uF E 4 Le 81 von ic 00090000000 Cs Ka 000000000 NDD ice i 000000000 CNX 060000000 ao pm IN4001 EN E 0 luF luF Title eal le ele ele lel ielele 1 EE EE SIRI 4 a JO amp JO fan fam fan fan Sw DPDT zi Size Nunber Revision VSS ic 0 luF B VSS o VID ie VSS ico VSS icc Date 20 08 2004 Shea of File C3Docunents and Settings hho ne EE ENU BxlSt lDdb 6 Fortune Semiconductor Corp Diagram 3 FS982X Emulation Board Circuitry 11 78 FS982X IDE Rev 1 0 M oa FS982X IDE Table 1 LCD T F Table e LCD SA AEN ASN ROY elg I 2 5 Blas Qo A Kor Ka m n gt ERO VE s VR 0 Pes LCD specification Fortune Semiconductor Corp 78 78 Rev 1 0
8. F WCHEDIT symbol ADGO value 2 t Norma f Hit refered address D900 Figure 4 14 Edit Watch Screen Fortune Semiconductor Corp 46 78 Rev 1 0 a 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 7 fox 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 otep 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 otep 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 a FS982X IDE 4 9 Error Message Window During compiling FASM500 provides code analysis function detect errors to variable nam
9. Programming DownLoad Verity Read Chip Hex Code wite Protect Joo or o2 Jos os os os or os oa os oe oc oo oe or StartAddress END Address J Block write Block Read TIME Figure 2 24 Window of After Compiling Fortune Semiconductor Corp 26 78 Rev 1 0 Fortune FS982X IDE 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 l File 2Open 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 RomWiriter ID Number 1 FASM500 RomWiriter ID Number 1 FASM500 File ReadEEPROM Chip Info File ReadEEPROM Chip Info File Name File Name C Program Files FS IDE2 0 T oturial main hex ICE Chip Type FS9822 4 File Hex Code ICE Chip Type FS9822 4K File Hex Code F9822 riter Chip F59822 foo o o2 os os os os oz fos os oa os oc joo foe or 0000A A000 ADDO A000 A018 4021 2214 0000 4000 220F 4090 2207 400F 220F 4000 2226 File CheckSum SFA17 40FF 2225 40FF 2280 2080 2224 0000 A016 0206 1E80 2080 2224 0002 A000 A000 A000 0002 4000 A000 4000 A000 4000 4000 A000 4000 A000 4000 A000 A000 4000
10. 159821 ASM LCDINDX ASM LIB9821 45M AlttDown AlttUp Alt Right AlttLeft EASRA ID Number 0 instruction BTFSS pue ID Number 0 o z js s 5 Je P Js fo fa s fe p fe fr 000 00 00 FF FF 07 FF 00 00 00 00 00 OD DO DO 80 010 Selec 020 CLKIHI 030 Fortune Semiconductor Corp 6h 5 Figure 4 1 36 78 FS9821 843i ID Number 0 INDO M OFF Program Counter 0000 more M OFF Work FF Cycle 00000000 E rn c 2 NIF TMIF PCIF ADIF INTE GIE TMIE PCIE ADIE ELIE Dono PMDInjoo_ pcsurpo fFMOUTDO_ foo Paoi fcap jeep i 2 3 4 5 6 PTI bi bi bits bi bits bi be bio uD AIENBI a7 65 a5 a4 a3 at ad purl PT2MR BZEN PM2EM PMIEN ETMO EOM1 EOMC MCK MzcK MecK Ms cK M3 CK M2 CK M0 C PCK ENPUMP CHICK CHICKO BEEP S PCI ADCON j JjADRsT ADM_2 ADM 1 ADM INSO F_WAICH Edit Source Hex Ram Rea Watch 4888 F7 FB ra d LC RENE 2 2 57 M ADCNT 082 15 00010101 CON 00000000 EN 00000000 11111111 11111111 FS982X IDE Window Rev 1 0 M oa 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 op
11. PARG oo M 66 P S10 14 SEGIO 0 IuF PARS PAR 99 9 13 SEW PAR o o PARS oe als s LU SE D VSS i PARI 6 PARIO loo s7 LIL SEG PARIT o o ARI 69 Ul ss 19 SEG TO mo 9 o 99 288288588 Sac E se Bo oo ARAMA AACA EN 7 POT j PIOS ee com 6 1 loo ROT oe COMB SG P si 5 SEGI CRAM 6 o MMPI 69 MDMPI Cove ae X c L4 COME MDM o c ESMP MM C5 caMi Bg 7 X o 3 cow RUN 5 6 RDYMP A oo ICA ie T6 c 2 con RST 5 o PWEB 69 VSS ie C6 ICB SG 75 c 1 C0MI M PREB C7 OF VI 74 99 x 9 V2 NC LCD WD CON34 VS ice CON34 O luF j V3 NC 5X x EN 0 1uF i ESI coz v2 RS 69 COMI 1 4con VID 3V l ad s 5 X COM eo COMA d 1 DD 15 VPP FSOR ESXX X SEGI oo SEQ VoD CYP 3 og BTI VPP TS28 o o WCX v 66 SEG 66 SEG 5 loo BE VGC S98 o DD 3VIN D ete R3 65 SEG SEG TCR Bs 7 G BE 7 Ma s m 64 RB SEG ee SEG a ze eL 1 luF VDD ice PER 63 PWEB SED SEGIO TTOB luF luF a 62 CSBMP SEGIT oo SEGIZ luF COMIO COMO Mee 61 MMPI SEGIS ee SEGI4 ji P MMos 50 MMO SEGIS ee SEGIG VSS i FS9823 ICE RN 59 RUNNP SEGLT ac SEGIS VSS ic oo 55 RDYMe SEGIS oe SE O VSS_ice 57 PARD SEI 669 SE 2 VPP buf BRE 56 PARI SE 3 ee SEQ4 EE E Doo 55 pam SEG 69 SEQ ice 54 PAR SE 7 SE S PAR lt 3 gt eo j VDDA ai 53 PARE SEQ be SEGO otro VS DEN 52 PARS SEGI ec SEG2 Vai oro 51 PAR
12. 00 OO 00 00 Are you sure to reset all Hint Reset All Hint j oo E eS UR Load RAM Data Save RAM Data 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 Fortune FS982X IDE Menu e Set Mark Mark register the displayed color can be set from Set Mark new color e Set Mark new color Set Set Mark color as shown in the Figure 4 6 after clicking the options ui Br an SEER ix a m En pu E nu Br an EN E EE SRR ma Figure 4 6 Color option Window 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 e Set Hint Setup expected value of register data when the cursor is moved to the address of the register will show a yellow hint e 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 e Save RAM Data Save current register data as ram pre set file for easier to compare data ff test ELA Fi
13. 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 B Fortune Semiconductor Corp 53 78 Rev 1 0 Fortune 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 amp Run Set Debug Simulation from the tool bar Step 2 Verification Select Assemble amp Run Assemble amp 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 FASM Simulation ID Number 1 main C Program Files FS IDE2 0 Toturial main asm Source Code ID Number 1 Edit Source Hex Ram Reg Watch edit 7 re F9 F12 Ast mainasm F59822 INC INCLUDE FS9822 INC PT2D equ 080h PT2D OOH GOTO S SINI 04 TimerISR Set CLK Source amp Timer Figure 6 1 Successf
14. 5 Hex Please refer to chapter 4 4 e Watch Alt 4 Shows only when soft hardware emulation simulation press this option will jump to F WATCH Please refer to chapter 4 7 e Ram Alt 5 Shows only when soft hardware emulation simulation press this option will jump to 5 Ram Please refer to chapter 4 5 Register Alt 6 Shows only when soft hardware emulation simulation press this option will jump to Register Please refer to chapter 4 6 Stack Alt 7 Shows only when soft hardware emulation simulation press this option will jump to Stack Please refer to chapter 4 8 Error Message Shows only when soft hardware emulation simulation press this option will jump to Error Message e LCD Window Alt 9 Not provided yet e Next Window Alt Down Previous Window Alt Up For each window screen switching Next File Alt Right Previous File Alt Left Display and switch opened files in Edit Window Fortune Semiconductor Corp 33 78 Rev 1 0 M oa FS982X IDE 3 0 Assemble amp Run Please move the mouse to the tool bar Assemble amp Run and click the left button pull down the options as shown in the Figure 3 6 FASM500 Mode Edit v0 02 Sele File Edit Search Yew FMEA Options AboutiAltrA Assemble amp Run Emulation ID Number 1 F10 main C XPE SetMain File set Mode Figure 9 6 Assemble amp Run Menu Assemble amp Run F10 Compiling files and proceed soft
15. E RBi 9 ee e e emo e e ei o o o t a SI 4 k i Es g 5 Bl n 3035 Odd lt gt Id 8 LCOS Hd c t ld g mu 9cOdS LNV lt I gt Id a Sa scDaS TL NI lt 0 gt 1d E oa 5 Z8 L C 1d 8 Das O O L DHS cOdS 9 14 Eu Pp m COSS INAJ lt S gt T 1d eden Das O 16085 TOS lt t gt T Ld o 00 6 OK 0cDds VGIS c Ld A o o 61038 IWGd Z Ld 5 o o Qt S OCDAS fld AO e 81085 ILNI I C1d m pot SCO SS LCOSS thd MAFI b LIDaS OLNI 0 C 1d H o H8 9cO 3S STDAS OrLd Led OS o o 91038 LNIV lt L gt I 14 Hd 67 p s TCO HS ETDAS Ld Sed AE lo SIDAS ON IV lt 9 gt I 14 gt o iz p 1CDdS wLa ted P s6iDds tue a 2 SSS eT DR o lo 1D3S a PNIV lt b gt I 14 5 t o SIDAS LIDAS 5 AD o ZIDAS 9 ENIV lt E gt I 1d Iz ptd OBEN SIDAS E Ld A lo TIDAS ZNIW lt C gt I 14 XREH 61 p HIDAS IDAS ld Eld AD e lo o1pas INIV lt I gt 1 Id tit L1 ABEN TIDAS Zld Told AS o o 694S ONTV lt 0 gt 1 14 cht s pK O1DaS 6038 ld 1114 A o 854S 1 oH 8D3S LOS GEFI Ae o lo 555 8A d pd 9DaS SDAS tild tld o 9055 Old d 6 be TOUS EDAS Tid o sas ald NN 1038 0l 1
16. Including Auto Button Blank Check Programming Verify Write Protect etc selections e Block Programming Read Block programming Block Read Write button Start Address and End Address Fill in Area e 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 a FS982X IDE 1 Single Step Programming 9 Programming Program File Hex Code into OTP chip 9 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 gt Read Check Code Note The memory of FS Control Board U11 or Programming Panel U1 has to be RAM62256 when use this function 9 Stop Force system to stop programming e Blank Check Check if the OTP chip is blank e Compare System will compare if the programming code and OTP code are the same or not e 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 e Status Displaying Area Shows whether the loaded data is correct or not the status displaying is as shown in the Table 9 1 Table 9 1 Status Table File loaded to EEPROM28C256 fails File loaded to EEPROM28C256 fails Chip serial No loaded fails Loop check code compare fails 2 Continuous Prog
17. Pro Type Boost Mode CheckSum 8F652 Protect No Chip Type F53821 Figure 9 4 Read EEPROM data e 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 M oa 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 RomWriter ID Number Hot Connect m El E3 File RealEEFROM mug Information Chip Is OLD Version i 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 FS9822 4 FS9822 Read Chip CheckSum Figure 9 6 Information of executable file File name The path and file name of the executable file immediately shows up as loading in the file ICE chip type The selected chi
18. 10 2 2 SOFTWARE INSTALLATION 10 2 2 1 Ice 10 222 gt 21610 oec s LN ar 11 23 MARDWARE SETUP E 11 Zi 1 General Description of FS982X ICE amp 9 2 11 2 3 2 Overview of FS982X Emulation Board ssssssssssssesee eee eee e eene enne eee nne nenne nnn 12 2 9 9 JIntroduclioH OFFS CONTO EN NENES 13 2 3 4 Connection of Hardware System sse eene eene enn enne nenne renes es nenne 14 kal 21 Uc IET M 15 2A ABAT TOTO A NN 18 2 4 1 General Description of Operation sssssssssssssssse eee EEA EEEE EEEE EEEE eene nene nnns 18 24 2 Selection of 18 243 Creating a ao ae ee m 19 E Us 20 24 5 Writing Code sss eee mI n 21 I E
19. 3 8 About Move the mouse to About AIt 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 FASH500 Mode Edit v0 02 File Edit Search View Azemble amp Run Options main C Program Files FS IDE2 0 Toturial main asm Figure 3 8 About AIt A Window Fortune Semiconductor Corp 35 78 Rev 1 0 902 Fortune 4 Windows of FS982X IDE 4 1 General Description FS982X IDE FS982X IDE provides perfect windows for users to proceed software hardware simulation and emulation 10 windows are provided under the simulation condition the method operation as shown in the Figure 4 1 is to move the mouse to the tool bar option follows Edit Window Source Window Hex Window RAM Window Register Window F WATCH Window Stack Window LCD Window Setup Window Error Message Window Window and click the left button the screen of windows are as Debug operation provides immediate modification function convenient for users to perform immediate modification to the value of ram and register FASM500 KHA v0 01 es fee S Po daifadA i SR ARPES main E Fsc E Ii Susp main asm F59823 INC M TRE Watch HourTemp FLAG LED1Temp Felis Aili TAER miek LED4Temp LED5Temp LED6Temp HOP HOP HOP ait Alt A Alttl Alt 2 Alt Altt4 Alt6 Altt irse code Application Clock main asm
20. FS982X Emulation Board Layout Fortune Semiconductor Corp 55 78 Rev 1 0 a FS982X IDE 1 Components e 32768 Hz oscillator provides extensional clock for the system e U1 Transfer Board location for the connection with FS982X ICE or OTP Transfer Board U2 LCD the specification is 4 COM 13 Segment For the true value may refer to the enclosed Table 1 2 Jumpers e J1 LCD V2 voltage input selection pin Pin1 2 3 is pre set to be open e J2 LCD V3 voltage input selection pin Pin1 2 is pre set to be short e 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 e FS5982X ICE packing internal test pin usually it is open e 9 FS5982X Emulation Board power source as shown in the Table 7 1 Table 7 1 J9 Jumper List PIN 1 2 Short FS Control Board provides voltage 3 V PIN 2 3 Short FS Control Board provides voltage 5 V PIN 1 2 3 Open TT and JVSSB ICE input voltage 5V 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 PIN1 SDA MDMP1 CYP Data PIN Connect PIN1 with PT2 0 PIN3 SCK CSBMP Clock PIN Con
21. INC MOVLW 000011115 MOVWE TMCON PT2INI MOVLW 00000000B Set pull up resistor MOVWF PT2PU MOVLW 11111111B Set IJO Port MOVWF PT2EN Set PT2 data MOVLW 111111118 Set PT2D data MOVWE PT2D MOVEW PT2D Set PT2 data HMOVWF PT2 HOP GOTO MAIN 7 TimerISR CLRF Clear Timer Flag COMF PT2 data invert MOVEW Set PT2 data MOVWE Figure 2 18 Finished Break Points To select Window gt Register from the tool bar Register Window shows immediately then select Assemble amp Run gt Run or press the hot key F9 the register window will show as the Figure 2 19 program stops at the instruction NOP FS9822Register ID Number 1 Edit Source Hex Ram Reg Watch edit F7 8 ra Fi2 ns INDO M OFF 49 Program Counter 0018 more INDI M OFE JECA Work FF Cyele 00000017 ENS Dn c Status IRP1 IRPO B 3 T2 ezen PW2eM PMIEN EIMO M5 CK PCK jENPUMP CH2CKT CH2CKO a EDMI EOMO NVDDA eer PMCON jPowEN 52 PMCS MCS PT20cB P20ce4 P20ce3 e e p LCDENR CCDCKSILCOCKSOLCDEN LeveL DUTYT DUTYO ENPHPL Econ wcoL izcov iac EE es EE Figure 2 19 Register Window Fortune Semiconductor Corp 23 78 Rev 1 0 M oa FS982X IDE If users like to see the contents of a certain address e g PT2D please select Window gt Watch from the tool bar F WATCH will show as in the Figure 2 20 F WATCH Ed
22. 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 e USB 5V Pin 1 2 of J5 is short e DC JACK 5V Pin 2 3 of J5 is short 8 3 3 Verification of Connection between FS Control Board and PC When CONG which controls main panel is connected to a PC via USB open Start Setup Control Panel System select Hardware gt 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 fe STAD WRO HAH 4 5 m 5 CREEP RARN5W6XT 4 D DACD ROM SERS 93 IDE ATA ATAPI 324 38 amp IEEE 1394 EP EHAS 8 PCMCIA ftm esp ACHES Enden i HID comphant device USB AEE mS Ms USB me o meum Ja XL iRSEES x SS c MAR ESHER Se 86 dd Sct Sy SORE Cc SEAR PURE SBS BES SY SBREtG COM 0 LPT gt PRE RHEBSS Sith ig lle a 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 WU Fortune 9 OTP Programming 9 1 General Description FS982X IDE After the application program is developed engineer has to use OTP chip to program the executable file into EEPROM to check whether th
23. buffer or press Ctrl X Copy C Ctrl C Copy the marked strings into buffer or press Ctrl C Paste V Ctrl V Paste the contents of buffer into the position of cursor or press Ctrl V Select All Select all contents of the file 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 FASH500 Mode Edit v0 02 File Edit Es View AsembleaRun Options About Alts FmdiE ChhF Figure 3 4 Search Menu e Find F Ctri F Search the compatible string in this file or press Ctrl F Find Next F3 Search the next compatible string in this file or press F3 Fortune Semiconductor Corp 32 78 Rev 1 0 Moa A 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 FASH500 Mode Edit 0 02 File Edit Search BOUM Asemble amp Rin Options AboutiAltrA main eo DE2 0 Toturial main asi Next Window AltDown Previous Windw AltUp Next File Alt Right Previous File AlttLeft Figure 3 5 Window Menu Edit Alt 1 Enter into Edit Window Source Alt 2 Shows only when soft hardware emulation simulation press this option will jump to Source Please refer to chapter 4 3 e Hex Alt 3 Shows only when soft hardware emulation simulation press this option will jump to
24. details please refer to FS982X data sheet Fortune Semiconductor Corp 42 78 Rev 1 0 a FS982X IDE 4 6 Register Window If users like to enter into Register window may press View gt 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 FSUSZZEerziterID Number 1 Edit Source Hex Ram Reg watch edt Fal ra rio Ba INDO M OFF 49 Program Counter 0000 more IND1 M OFE J CA Work FF Cycle OOOO0000 status IRF IRPD PD C C Z HTF E a 3 a ae a U ADRST ADM 1 a 1 CK En Eum 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 2SOP1PO0 to be 1 the steps are as follows Step 1 open Register select the register NETD gt SOP1P0 and click the left button of the mouse Register Modification will show up as shown in the Figure 4 10 otep 2 use mouse to sel
25. hardware emulation simulation Set Main File Setup the file in the operated window to be the main complied document Set Mode Setup emulation or simulation Run 9 Continuously execute loaded code program keeps being executed to the setup 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 Stop F12 Stop program counter right now and halt program counter Program Reset Ctrl F12 Reset program counter to zero Edit Mode Ctrl F11 Press this option will jump to Edit Mode from simulation status 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 Moi A FS982X IDE 3 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 FASH500 Mode Edit 12 File Edit Search View Asemble Rim W About Altt setup Alo marn C Program Files 3lmain asm Configuration Load Configuration Figure 3 7 Options Menu Setup Alt O Select chip type and other relevant setup please refer to chapter 4 9 e 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
26. n o n n e rnomo ortuoncortuoncoroanm IP mm mmmodcoduddqce c HEADER 20X2 Qo emm NAAN A Ta 2 zn en ea jen rn in AJAJAJA A a 98 888 sls hls dele ele E ees R88 eee 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 C m ra jg na ca ca ra ra fes a en ra ra ra n a ca ra a n s I ze ISS OO v na v va a on o e an fan a a on n ko a o 3 E IPSIS ia lt Slo I 5 5 0 Sf ay oo fr of xa t ea ea oJ an oo r ro waft eaten S ofo e ve o no o o reno o o U2 C 2308008055802z292305559980m6 55 amp 4 m JP4 SEioooooooOO0zzn2locusT8um gl com cows EET s m 91 20 coM com 8i ias EAE EUER zm ia 5 40 ICB COMI COND 88 1 36 35 m 9 5 6 o Vi LCA 83 COMI PARQ gt 9 34 33 0 x y i 80 LCB 84 LCA PAR3 gt 0 32 31 p x 55 10 o Vi 85 LCB PAR lt 4 gt O 30 29 0 x 11 12 p x Vo 86 PAR lt S gt 28 270 X C o 13 14p X x a V2 PAR lt 6 gt PRR no COX numus 15 16 p V3 PAR lt 7 gt ee ES DT VDDA 88 CSBMP ice MDMPI ice 17 18 5 VDDA PAR lt 8 gt eee 2 y A VS 89 MDMPO ice RUNMPice O 19 20 0 x VS PAR lt 9 gt SV Eee E C nz VGG 90 RDYMP ice PARO ic
27. t 5 o n 5 5 5 5 5 0 5 5 5 53 53 9 5 59 5 5 5 5 5 5 5 5 5 5 0 5 5 5 5 5 5 5 10 e fe fe Ke fra fra fra fra fra fra fea fea Fea amma UOPOPO AD AA AAA AAA AAA DA AA 72 70 nanan eT ep e fealea lofafoc r rofia t eafeal o arfoo m ofialst eafea Ez Fal dr sd Ed ase ad d rad Rd NIAI e 51 ed e ead d a Pap Nat d oli JP QOQOOOZzdo ZooogoOOO0O00gz542Zzust sm m OO000 IE 170707070707 07 77 3j c COM4 COMS NS NC 495 X cC O cow E A COMI ICA S ONE 5 B A o HB 3 Jes 5 6 JANET vo w s b C 45 aca SC OPNET 8 s5 PB lt 7 gt 4S PD6 O 32 31 9 10 0 x lt aT PT3 lt 6 gt di PBS o 30 29 o x 11 12x va a M PTI 5 715 pma SO 28 27 0 X o 13 14 OK 0 26 25 0 X Sof 15 16 PK PI3 lt 3 gt 47s SO 2423 0 X o 1 180 X ssp VSG TS PD 2 is 19 20 p X yz 55 EE 5 PBO 0 20 19 0 X EE Sof 21 22p X a z B PB lt 0 gt o 18 17 0 X EE vep 9 23 2 p X r 94 PD T 37 pps SO 16 15 fo oE I X pa Dis o PTI2 lt 6 gt 55 pps So 14 13 0 X ys EE 2 PI2 lt 5 gt 3 RENE o our y 5 NC 3 So 10 9 p gt a
28. 0 A000 A000 A000 A000 A000 A000 A000 A000 A000 AOOO A000 00054000 4000 4000 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 0006 4000 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 Ad A000 000714000 A000 4000 4000 A000 A000 A000 A000 A000 A000 4000 A000 A000 4000 A000 A000 E Read Chip Hes Code Successtul f wte Protect Joo o oz os o Jos os w oe os oa we wo oe Jo 0000 4005 4000 4000 4000 4018 4021 2214 0000 4000 220F 4090 2207 400F 220F 4000 2225 Start Address END Address 0001 40 2225 40FF 2280 2080 2224 0000 A016 0206 1E80 2080 2224 0002 4000 4000 4000 f 0002 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 Block wie nee 4000 4000 4000 4000 4000 A000 A000 A000 A000 A000 A000 A000 A000 4000 A000 Q004 A000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 0005 4000 4000 A000 A000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 00064000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 TIME 98 BankC heck Fail 1a000 A000 A000 A000 4000 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 ADOO Figure 2 30 Error Verification Screen Fortune Semiconductor Corp 29 78 Rev 1 0 a 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 a
29. 000 0 1 10000000000 0 Figure 7 4 CONS Figure 7 5 CONG Table 7 4 CONS Pin Definition Pin Definition Pin Definition Pin Definition PIN 6 PINI7 PTA Table 7 5 CONG Pin Definition Definition Pin Definition Pin Definition Pin PIN1 PIN8 PT40 PIN16 PT33 PIN2 PT24 PIN9 PT42 PIN15 PT35 PIN3 PT26 PIN10 PIN14 PT37 PIN PT36 PTS j j Fortune Semiconductor Corp 58 78 Rev 1 0 Fortune FS982X IDE 7 3 4 How to Switch Normal amp 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 5 Step 2 close switch S1 Step 3 J11 s PIN 1 2 3 4 5 6 7 8 9 10 11 12 open 5 Step 4 J10 short 5 Step 5 J9 s PIN 1 2 short 5 Method 2 Step 1 U1 choose FS982X ICE Transfer Board 5 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 WU Fortune FS982X IDE 2 Program Method1 Step 1 Step 2 Step 3 Step 4 Step 5 U1 choose FS982X OTP Transfer Board 5 close switch 1 5 J11 s PIN 1 2 3 4 5 6 7 8 9 10 11 12 short J9 s
30. 02 51 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 a FS982X IDE ooftware 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 e FS982X Emulation Board for emulation of chip and system application verification shown in the Figure 1 2 e 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 DC JACK
31. 31 31 Sn EUH NC o 8 TeX me ae r p XN Jaam ue e El NC So 6 5 o lt xor 9 35 36 xn RSTiel0 15 BS m4 aes UL M TT RST lt lt lt lt lt lt lt lt a BEL X 2 B ST ES eru 3 DARAATIRARATIS 9 eoe Emo HEADER 20 2 HEATER 20X2 m QOOODO a FS9822 ele er fiafrolrfoolalo eafea ar iafo rfoolao laafen r inoleroclalo esiste EEEE amp ES aaa em olol a 6 zem gg 8 a o S SEE IEEE ES OE IE J J Atcoecntenmontoxontowo P RN mans mApR200 A ASHE AES oe Or A 0 10 09 00 09 Hi Title o a Eo ERIS Size Number Revision Bd zu Ew e n si Ead En n d i wil B Date 9 Oct 2004 Sheet of File CAWORK EBESUSBTESTISCHSE TRANSB AIBDSE_TRANSBOARD ddb 1 2 3 4 5 6 Diagram 2 B FS9822 OTP Transfer Board Circuitry Fortune Semiconductor Corp 15 78 Rev 1 0 FS982X IDE V5 Fortune Rev 1 0 ircuitry a 8 8 9 E 5 eA w ME 5 3 E 1 2 2 8 9 ij TI Q a EZ mike mc mE nmm Um cm 8 58 amp mmmmednadac cc E Ez z S82 In O C ooo t c1 GO 00 0 t 6I oO 00
32. 4000 A000 4000 A000 poo4 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 AO00 A000 Jee Boos Aon0 A000 A000 4000 4000 4000 4000 A000 A000 A000 A000 A000 A000 A000 A000 A000 l Booe o00 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 COMPARE Blank Check jo7 A000 A000 A000 4000 4000 A000 A000 A000 A000 A000 A000 A000 A000 A000 ADDO A000 jw Programming DownLoad Read Chip Hex Code Successful Start Addres Block Write Block Read TIME Figure 2 27 Programming Setup Screen File RealEEPROM Chip Info File Name C Program Files FS IDE2 0 T oturial main hex F59822 4K File Hex Code F59822 eo fom o2 os os os os oz os o9 foa fos oc op ok coo fils 4000 4000 A000 A018 4021 2214 0000 4000 220F 4090 2207 400F 220F 4000 2226 SFAI 0001 40FF 2225 40FF 2280 2080 2224 0000 A016 0206 1E80 2080 2224 0002 A000 A000 A000 A000 A000 A000 ADOD A000 A000 4000 A000 A000 A000 4000 A000 A000 4000 A000 A000 A000 A000 A000 4000 A000 A000 4000 A000 A000 A000 4000 A000 A000 A000 A000 A000 A000 A000 A000 4000 A000 A000 4000 A000 A000 A000 4000 A000 A000 A000 A000 A000 0005 4000 4000 4000 4000 A000 A000 A000 A000 A000 A000 A000 4000 4000 ADDO A000 A000 0006 4000 A000 4000 A000 A000 A000 4000 A000 A000 A000 4000 A000 A000 A000 A000 A000 000714000 A000 A000 A000 A000 A000 4000 A000 A000 A000 A000 A000 A000 4000 4000 A000 Verify Read Chip Hex Code Write P
33. 82X ICE s jumper 2 Set up of Software e Options Setup setup Selection of OTP chip type and ROM e Compiling file Building file and enter into programming interface 3 Setup of Programming Utility e Load file Open programmed file Programming setup programming selection setup and programming e Programmed file verification use software to confirm the programmed file to see if it is correct Note lf manufacturers like to program in bulk FSC offers the programming service e 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 TS h yO 4 000 MH TAU ETE Q mox e Q 0l0l0l0O Figure 2 22 Complete FS982X ICE Fortune Semiconductor Corp 25 78 Rev 1 0 a FS982X IDE Setupof Options gt 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 amp FS6811 from Write Chip Select otep 4 Assemble F
34. A000 4000 A000 Read Chip CheckSum 0003 4000 4000 A000 A000 A000 A000 A000 A000 A000 A000 A000 4000 A000 A000 4000 ADDO 0004 4000 A000 A000 A000 A000 A000 A000 A000 A000 4000 4000 4000 A000 A000 A000 A000 0005 4000 A000 4000 A000 A000 A000 A000 A000 A000 4000 4000 A000 A000 A000 A000 A000 m ERES 0006 4000 A000 4000 A000 A000 A000 A000 A000 4000 4000 4000 4000 4000 A000 A000 A000 0007 4000 A000 A000 A000 4000 4000 A000 AODO 4000 4000 A000 A000 4000 A000 A000 A000 Programming Programming Verify Read Chip Hex Code Verily Read Chip Hex Code Wiite Protect Write Protect o0 fo o2 fos fos os fos foz fos fos foa op foc foo foe or Start ddress END Address Start Address END Address Block write Block write Block Read Block Read Chip is Empty TIME BankC heck Fail Figure 2 25 a chip empty Figure 2 25 b chip not empty Rom Writer ID Number 1 FASH500 File ReadEEPROM Chip Info File Name C Program Files FS IDE2 0 T oturial main hex ICE Chip Type FS9822 4 File Hex Code riter Chip F59822 oo or o2 os os os fos oooo EE A000 A000 ADDO ADT8 4021 2214 0000 4000 220F 4090 2207 400F 220F 4000 2226 File CheckSum 9FA17 4DFF 2225 40FF 2280 2080 2224 0000 A016 0206 1E80 2080 2224 0002 A000 A000 A000 0g2 A000 A000 A000 A000 A000 A000 ADDO A000 A000 A000 A000 ADDO A000 A000 A000 A000 Read Chip CheckSum 0003 4000 4000 A000 4000 4000 A000 4000 4000 A000 4000 A000 A000 4000 A000 A000 4000 00044000 A000
35. A000 4000 A000 A000 A000 4000 4000 A000 A000 A000 A000 A000 A000 A000 0005 4000 A000 A000 4000 A000 A000 A000 4000 ADDO A000 A000 A000 ADDO A000 A000 A000 ooo6 4000 A000 A000 4000 A000 A000 A000 A000 ADDO A000 A000 A000 ADDO A000 A000 A000 Read COMPARE BlankCheck A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 Programming STOP DownLoad Verify Read Chip Hex Code Successful Write Protect foo o o2 os fos 5 oe ov jos fos fos oe oc op oe oF Start amp ddress END Address Block Write Block Read TIME Chip is Empty Figure 2 26 Loading file screen Fortune Semiconductor Corp 21 18 Rev 1 0 ES FS982X IDE e 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 RomWriter ID Number 1 FASM500 Ele ReadEEPROM _Chip Info ial main hex Program Options TERES foo oi os o4 os oe oz os os oa oe oc oo oe or soe ils A000 4000 4000 4018 4021 2214 0000 4000 220F 4090 2207 400F 220F 4000 2226 File CheckSum 0001 40FF 2225 40FF 2280 2080 2224 0000 4016 0206 1E80 2080 2224 0002 4000 4000 4000 0002 4000 4000 4000 4000 4000 4000 A000 4000 A000 4000 4000 4000 A000 4000 A000 A000 Read Chip CheckSum 0003 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000
36. Fortune Semiconductor Corp NIA Fortune FS982X Integrated Development Environment User s Manual Rev 1 0 Jul 2005 FS982X IDE UM 10 EN CR 004 Fortune 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 FS982X IDE Fortune Semiconductor Corp 2 78 Rev 1 0 Fortune FS982X IDE Table of Contents Page No Lh INIBOBUCIHON OEFRBS982X DE REED 6 CENNER EDE SCRIPTION OO Tm 6 A IDE A E 6 1 2 CODING PROCEDURE OF FS982X di irn nri dla ber 8 129 FEATURES OPI NUDO BEIM DU E 0 10 X MEME ORNER DESC RIP TION MN
37. G SEG3 60 SEG4 ni 1 VSSP ae 50 PAR7 SEGS i H PT20 CB PARcs 29 PARS SEGT 60 SEG CSBMP E a PRI CIA CA PAR 9 38 PARO SEBO ee SEGIO RST e E RST VDDP DEUM 47 PARIO s VPP F598 z 2 s p VPP buf DEM 46 PARTI COND VOC F598 5 Eo R VDD ice luF DEDE 45 PARI n 12 oH m a luE VDD ice SR PARCI3 gt 2 E HEADER 6X2 vS ie 25 pa ST 2z29229959 Za 8 np g222Z E D mo ZE4442424F5RA0R nker adda ao 32768Hz a EER T PIO lt 2 gt pea12 DP334 UP345 6 Uear8 P3 9 10 e3t1 12 l N Bm goo m Programming Shot Shot Shot Shot Shot Shot Shot VDD EEBBHe CEELEEELEPPCPPPPPPPPPPPPPEEEE22 2 Simulation Open Open Open Open Open Open Open VSS 2518 52 aoe 8 6 6 6 C C 0 0 0 VDD e OA VSS ial M 100K Reset FATAL sses RPI RP a R3 R2 RS RS Fed Sk d IAE 22nF RST SIS ei x es Rs Rc e e cle Rc e e Rc es Re Rc ee Rc e ee ce Re e Be Rc es Re c n RR ec Rc a 4PREB 4CSBMP Ed RDYMP A oe SMDMPI 3 CI 18 PT20 T 6PARI 4 27nF 10nF PB4 I 7 1 7 55 Eco A VSS ie ea 9 LN PARIS prm VSS ice Yet luF PT21 5 o IK C24 P 2 B o o 4 PARI p VSS ice VDD ice Toi T Um pi j yen Lei I eror DIME SN 5 o o 8 PARIT
38. M in FS Control Board OTP Practically used product provides ROM only needs power not necessary to use FS Control Board can independently work e 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 g a ETC ai eic di i a dW A TUM aval NW FS9822 BODY 3 des m T Z th QO E LES TULLE HEHH itii Figure 2 3 Transfer Board of ICE and OTP Fortune Semiconductor Corp 11 78 Rev 1 0 Fortune 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 e LCD Liquid crystal display LCD control selection end Power Switch Button Working and Programming Normal Program Selection End FS982X chip switch s 2 5 2 ews conductor Corporation 2004 10 20 Tine rel gee dite Ss LS sees s SEN WON ET ALL XXI a tes o 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 Fortune FS982X IDE 2 3 3 Introduction of FS Control Board F
39. PIN2 3 short 9 J10 open Method2 Step 1 Step 2 Step 3 U1 choose FS982X OTP Transfer Board 5 close switch S1 8 Pin Jumper jumps to Program as shown in the Figure 7 8 Figure 7 8 Select Program Mode 3 Test after Program Method1 otep 1 otep 2 otep 3 otep 4 otep 5 otep 6 otep 7 Method2 otep 1 otep 2 otep 3 otep 4 otep 5 otep 6 Fortune Semiconductor Corp 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 5 J11 s Pin 1 2 3 4 5 6 7 8 9 10 11 12 open 9 J10 short then can test the actually function 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 5 8 Pin Jumper jumps to Normal end as shown in the Figure 7 7 then can test the function 60 78 Rev 1 0 a 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 Fortune FS982X IDE 8 FS Control Board 8 1 General Description FS Contr
40. Power Source from DC JACK e U11 Emulated program memory may use RAM62256 or EERPROM28C256 LED1 Power LED Fortune Semiconductor Corp 63 78 Rev 1 0 a FS982X IDE 3 Connector 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 CON2 Programming control I O port CONS System power output provides regulated 3V output and the power for button and LED 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 How to select power from Emulation Writer Board How to select power from FS Control Board e Verification of Connection of FS Control Board and PC Fortune Semiconductor Corp 64 78 Rev 1 0 a 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 e 5982 Emulation Board Pin 1 2 of J4 is short e 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
41. S 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 USB protocol e Independent RAM e Independent power system Figure 2 5 FS Control Board Note Forthe detailed description of FS Control Board please refer to Chapter 8 Fortune Semiconductor Corp 13 78 Rev 1 0 Fortune 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 e Adjusting switch S5 setup is shown in the Table 2 1 e 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 55 FS9822 ICE FS9821 ICE 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 2F5982XX XXXXMCT SAGUO C 103 1093 13 29 23 193 75 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 c
42. S9822 FS9823 5 Program Info Location of Program Execution Where the program is executed located in the down left corner of the Figure 4 3 e 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 Program Memory ID Number Edit Source Hex Ram Reg watch edt ral Fa code instruction Figure 4 4 Source Window Fortune Semiconductor Corp 39 78 Rev 1 0 a 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 Ox1FF 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 AAs ID Number 0 00 00 FF FF 07 oO 00 oO 00 00 OO 00 80 O0 00 00 00 00 00 00 00 O0 oo BH Set Mark 00 00 00 00 OD O 00 00 00 Set Mark new color 00 00 00 00 OD OD 00 18 BeeMak ee To 00 00 FF FF FF FF FF 00 00 MERI 00 00 00 O0 Reset Hint 00 OO 00 OO OO OO OO 10
43. X IDE FS982X Hardware Demo Test asm and select Assemble amp Run Debug Mode Set up gt Hardware Emulation ID Number 0 5 then choose Assemble amp Run gt Run to proceed compiling works After compiling the screen is as shown in the Figure 2 8 FASM Emulation ID Number 1 File Edit Search View Assemble amp Run Options About Alt A main C Program Files FS IDE2 0 Toturial main asm Source Code ID Number 1 Edit Source Hex Ram Rea Watch edit F7 Fa Faf Fi2 Ast _Chk main asm 59823 INC INCLUDE FS9823 INC PT2D equ 080h PT2D ORG OOH ORG 04H GOTO TimerISR SYSIHI CLKIHI MOVLW 00100001B Set CLK Source amp Timer HOVWF MCK HOP TIMERINI MOVLW 00000000B reset Timer MOVWE TMCOH MOVLW 10010000B Set Timer Interrupt Enable MOVWE INTE MOVLW 00001111B Set Timer HOVWF THCON PT2INI Figure 2 8 Compilng Window of Test asm Fortune Semiconductor Corp 16 78 Rev 1 0 a FS982X IDE 3 Test and Execution Test steps are as follows Step 1 Select Assemble amp 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 ZARO H LES ELS S E E J Ig Lh L SR AN RUM L
44. d INDY PDAS oga B HA OLA PDAS OldO 81d EENI 794S c ge 1038s ON TINOO ON EWO ddA a eer eene SISIR p z ZB dz 3 8 Sm ol lal le SESS ES ea Q Q TET g EO cec esi Ed e a ama mmama zeke EEF 9 9 hu 5 a ea FS9823 OTP Transfer Board C 76 78 Diagram 2 C Fortune Semiconductor Corp WU Fortune Diagram 3 Circuitry of FS982X Emulation Board LCDI VCC ram E 17 Ao PARO ans Ws sia 16 SEGI2 PARI PAR e oo si L5 SEIT
45. ddr Hide label at the register address Load Properties Load all the F WATCH saved files the extension name of the file is defined as pro Save Properties As Save the Ram label listed in F WATCH the extension name of the file is pro Clear All Properties Clear all the opened Properties Fortune Semiconductor Corp 45 78 Rev 1 0 a 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 2 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 F WAICH Edit Source Hex Ram Rea f Watch 898 rFz ra io s RE RE OO0000000 OR O 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 2 address of can be watched after successful setup Note Names of bits O 7 shall be defined in code at first in bit tracing For Example equ 00h Bit equ 07h
46. e X 21 22 p X PAR lt 10 gt Sap Oe O ONS 5 VSSP__91 FS9822 ICE PARI ice PAR2 ice 23 24 0 X VSSP PAR I7 oOo CB 92 PAR3 ice PARA ice o 25 26 0 X CB PAR lt 12 gt FaR ce VDDA CA 93 PARS ice PAR ice x 0 27 28 D CA PIO lt 0 gt so OR ao VS VGG VDDP 94 PART ice PARS ice a l 29 30 3 VDDP PIO I O 10 l VSSP CB VDD ice 95 ice PARII ice O 32 n VDD PIO lt 2 gt Sait 8 pL CA VDDP VSS ice 96 PARIO ice PARI2 ice a O SE E VSS PIO lt 3 gt a O OE VDD ice VSS ice XOUT 97 PIOO ice O XOUT PIO lt 4 gt iS 2 0 4 N XOUT XIN XIN 98 PIOL ice PIO2 ice mr 9 37 38 0 RST icc TST 99 XIN S PIO lt S5 gt OB MC Eg ie 125 MIS mzzzzzzzebb2X3 EE 2 PIO lt 6 gt RST ice 100 RST 22222222228998 PIO 7 HEADER 20X2 B HEADER 20X2 7 PIOI i Beg A L a DM TE SEEEPZEEEEEREEEEEREEREEEEREEERER FS9822 ICE eafen t olere eaten fia ole oo Jays nele ole e Slao gx Ee m e ra e en eR es SEEEEBEEEEEEEEEEEEEEEEEEEEEEEEE Ojat 6 Ies e e e es e e jajajaja fa es o e e e e tayo 8188 Se eS RESI see E Em E Ie E E ojojo Oli amp amp amp amp amp e OH HC id GOO EDU
47. e 7 so nn z B NC o a 9 10 bx 33 V2 NC 4 30 29 p x o n s BEES NC S o 26 25 b X Seo 15 16 P x o B Ser PD Seo 24 23 PK we 3 B PR lt 6 gt Seo 19 20 p X PD 5 o 20 19 b X sa ST CB PI2 lt 4 gt o 18 ver 0923 24 p X r ES PR lt 3 gt iS gt _ lt Oo 25 265 DA Die B5B PR lt 2 gt 5 o 14 13 p X wr mp ond ES VDD VSSP 29 30 UE xouT e7 VSS essary PR lt 0 gt 2 O0 10 9 p a 31 320 SENE XN 67 eu 4244442 rn 0 8 7 0 X 33 346 5 XIN adadad Pn Seo 6 5 pe Xx VDD ice VSS ice INES AE UN IA USN 35 36 p 2A 4 3 ox XOUT XIN og 2vvov 9 TST 37 38 O RST icc BEEDESERR EEEEEE lt lt 2 1 0 x lt of 39 405 E2SZZOREELZEEEEEE HEADER 20X2 HEADER 20X2 FS9821 J ete role r se o o enlm lel B 8 B ia 9g B l als Eje Slo Sex sanas RO Re eR O t amp amp a amp amp a a TEPARA civ o Nyowo PPI SARASA HEADER 2012 SETS S R ewesmnBESEESSARESEE IS R 0000000000 OQ 9 I TL o a E FG fel lea bl FF BIEISIEIRIRIRIRIEIEIE Size Number Revision B 9 Oct2004 Sheet of CAWORKVSEESUSBTISTSCHSE TRANSBOAMDSE TRANSBOARD ddb 1 2 3 4 5 6 Di 2 A FS9821 OTP 1 fer Board Circuit 1 2 3 4 5 6 a j wW n D P3 D n HEADER 20X2 5
48. e 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 Error Message ID Number 1 Error code 5 C Program FilesYFS IDE2 0XToturialimain asm 18 Undefined Symbol TMCON 5 C Program Files FS IDE2 0 Toturial main asm 21 Undefined Symbol INTE Error code 5 C Program Files FS IDE2 0 Toturial main asm 24 Undefined Symbol TMCON Error code 5 C Program Files FS IDE2 0 Toturial main asm 29 Undefined Symbol PT2PU Error code 5 C Program Files FS IDE2 0 Toturial main asm 32 Undefined Symbol PT2EN 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 a 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 Select Chip FS9822 4K M Enable Tool Bar Language English Font Hardware Control Generate Files 5 LPT port or USB List file USB ASCII file rj Writer Chip Select E ASCII file ireveter v Hex file H
49. e application is correct or not Tutorial in Section 2 4 7 of Chapter 2 The programming window is shown as the Figure 9 1 will introduce details of window during programming RomWriter ID Number 1 FASM500 File ResdEEPROM Chip Info File Name C Program Files FS IDE2 0 T oturial main hex FS9822 4K F59822 EE i AODO File CheckSum 9FA17 A000 4000 400 Read Chip CheckSum D 400 0 400 0 A00 0 A00 v Verify Write Protect foo jm no os os fos os oz os os foa fo oc 00 fo jor AUD A00 A00 0 A00 0 A00 0 A00 0 A00 File Hex Code 0 A018 4021 2214 0000 4000 22 40FF 2225 40FF 2280 2080 2224 0000 A016 0206 1E 0 A000 4000 4000 4000 4000 AQ 0 4000 4000 4000 4000 4000 AQ 0 4000 4000 4000 4000 4000 AO 0 4000 4000 4000 4000 4000 AO 0 A000 4000 4000 4000 4000 AO 0 A000 4000 4000 4000 4000 AQ OF 4090 22 80 2080 22 00 4000 AQ 00 A000 A 00 A000 AQ 00 A000 A0 00 A000 AQ 00 A000 A Read Chip Hes Code 07 40 24 00 00 00 AD 00 00 00 00 Figure 9 1 Programming Window Fortune Semiconductor Corp 66 78 22 02 AD AD 00 A0 00 00 OF 40 00 00 00 00 AQ 00 00 3 os fos os oz oe 08 o os foc oo oe n 00 2226 00 A000 00 4000 00 4000 00 A000 00 A000 00 4000 00 00 A000 About executable file please refer to t
50. e etr totam ei tau aseo ev eene a etude E ETE sun ut UD Fou eb t isa e dads 70 9 24 Selection of Programming and 71 10 REVISION HISIOR i eint intesa eer ita aeeai 73 APPENDIX M 74 DIAGRAM 1 CIRCUITRY FS9821 22 23 ICE TRANSFER BOARD ee eene eee ette ca 74 Fortune Semiconductor Corp 4 78 Rev 1 0 Fortune FS982X IDE DIAGRAM 2 CIRCUITRY OF FS9821 22 23 OTP TRANSFER BOARD ee 75 DIAGRAM 3 CIRCUITRY OF FS982X EMULATION 77 TABLE 1 LCD T F 78 Fortune Semiconductor Corp 5 78 Rev 1 0 Fortune 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 t
51. e used Provides perfect hardware breakpoint system 3 points Supports immediate tracking function and detecting trigger function Provides USB protocol Shows results LCD Provides OTP programming 3 Software development screen Provides assembly compiler Compiler for windows structure Supports multiprogramming debug platform Provides programming executable file Provides perfect Debug Window Watch Window Ram Window Register Window and Stack Window Fortune Semiconductor Corp 9 78 Rev 1 0 Fortune 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 FASMBOO is applied to the development of FSC whole series ICE amp 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 p
52. ect the status supposed to be changed set 1 SUPIPUSI mF 1 POS Figure 4 10 Register Modification Window Fortune Semiconductor Corp 43 78 Rev 1 0 a FS982X IDE 4 7 F WATCH Window If users like to enter F WATCH window may select View gt 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 e Defined name e Defined name address e Value by 16 Hex Address or Value by Binary Display Add Delete Watches Edit Watch Delete Watch Alt D Delete All Watches Hide Addr Load Properties Save Properties As Clear All Properties Figure 4 11 F WATCH Window Fortune Semiconductor Corp 44 78 Rev 1 0 M oa 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 F ADDWCH total right shift total left shift left shift Figure 4 12 Add Delete Window Edit Watch Under this window the referenced value at specified address can be changed Delete Watch Can directly delete label in F WATCH Delete All Watches Can directly delete all labels in F WATCH Hide A
53. eration display will show up immediately as FASMBOO is started Edit F file tabs hot keys pen Function 04 ke y TimerISR SYSINI CLKINI MOVLW 00100001B Set CLK Source amp Timer MCK MOVWF NOP TIMERINI MOVLW 00000000B reset Timer MOVWF MOVLW 10010000B Set Timer Interrupt Enable MOVWF INTE MOVLW 00001111B Set Timer MOVWF edit area PT2INI MOVLW 00000000B Set pull up resistor Figure 4 2 Edit Window 1 Hot Keys Edit Press Edit button the system will show enable status 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 Hex Shows only when soft hardware emulation simulation press this option will jump to Hex Please refer to chapter 4 3 e Ram Shows only when soft hardware emulation simulation press this option will jump to Ram Please refer to chapter 4 5 Reg Shows only when soft hardware emulation simulation press this option will jump to Reg Please refer to chapter 4 6 e Watch Shows only when soft hardware emulation simulation press this option will jump to F WATCH Please refer to chapter 4 7 e Run Enter into Execution from Edit and shows Source 2 File Tabs Display the name of an opened file 3 Function Keys Open Open old files e Mark Setup or cancel tab 10 0 9 tabs can be
54. ex file inveter Hex file Seperat Mask file 8k 16 System Windows 2000 NT X ROM IDE RAM 62256 ee f GOTO 00 No Use Area Fill Figure 4 18 Setup Window 1 Select Chip Select device of compiling such as 9822 4 2 Language Choose Chinese or English 3 Font Choice of Font 4 ICE Control Via LPT port or USB Communication interface can support USB or LPT options system provides 378h LPT1 3BCh 278h and USB e Select programmed chip Users can select program type SPI Serial Port Interface or Boot loader type System provides FS9823 amp FS3866 FS9822 amp FS6811 FS9821 FS9811 FS9855 FS9824 SPI 1K SPI 2K SPI AK 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 List File Providing compiling results the file extension name is Ist ASCTI File For internal test the file extension name is asc ASCTI File inverse For internal test the file extension name is invert asc Hex File Hex file is provided for programming the file extension name is hex Hex File inverse H L byte exchange for internal test the file extension name is invert hex Hex File L H Separate For internal test the file extension na
55. file reading amp 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 FASH500 Mode Edit v0 02 HA Edit Search View Assemble amp Run Options About AltrA Figure 3 2 Menu of File New Ctri N Create a new file or press the hot key Ctrl N to create a new file Open O Ctrl O Open the old file or press the hot key Ctrl O to open the old file Save S Ctri S Save the file just operated in the window or press the hot key Ctrl S to save the file Save As Save the file just operated in the window by another name Save All Save all of the opened files Close File Close the file just operated in window Close All Close all of the opened files Open LCD Panel This function is not provided for the time being Close LCD Panel This function is not provided for the time being Exit Q Ctrl Q System is shut down Fortune Semiconductor Corp 31 78 Rev 1 0 M oa 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 FASM500 Mode Edit v0 02 File Edit Search View Assemble amp Run Options About Alt UndotZ Chez Cel Chex Copt Ctr Pastei Y ChlrV Select All Figure 3 3 Edit Menu Undo Z Ctrl Z Return to the last step or press the hot key Ctrl Z to execute Cut X Ctri X Cut off the marked strings into
56. fter 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 a 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 amp Execution Option and About Alt A as shown in the Figure 3 1 t 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 FASHM500 Mode Edit v0 02 File Edit Search View Assemble amp Run Options Abovut Altr main Figure 3 1 Tool Bar Window 3 2 File This option is for
57. gure 4 7 Format of RAM log file Fortune Semiconductor Corp 41 78 Rev 1 0 a 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 oet Hint from the window options Step 2 Pop out of window and enter into the label test otep 3 When move the mouse to the address 07h the yellow block will show up and displays the label for users to check if itis correct The yellow block displayed format is as follows address Label like lt O7 gt 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 Raml5 FF Ierory checked OF Clear Cancel 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 For
58. he Basic This chapter Rev 1 0 a FS982X IDE 9 2 Introduction of Programming Window After setting of chip select Assemble amp Run Assemble amp Run from the tool bar the screen of programming is shown as the Figure 9 2 has 4 parts Tool Bar Area of Information of Executable File Location of Actually Executable File selection Area of Programming and Verification 33 ID Number 0 Not Connect File Hex 7 Figure 9 2 Programming Screen Fortune Semiconductor Corp 67 78 Rev 1 0 WU Fortune 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 Rom Writer ID Number 1 FASM500 OM Chip Info IE RealEEPE Open Chi nave As Chris Figure 9 3 File Menu Open Ctri O Open the executable file then load in the contents of the file into File Hex Code area the extension file name is HEX e 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 Rom Writer ID Number 1 FASM500 File Chip Info EEPROM PASS
59. he 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 4 FS982X IDE In order to support FSC s whole series MSP Mixed Signal Processor products 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 e Software FASM500 e Hardware FS Control Board FS982X Emulation Board as shown in the Figure1 1 pleog 00
60. ile 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 Select Chip FS9222 4K M Enable Tool Bar Language English Font Hardware Control Generate Files 5 LPT port or USB List file USB ASCII file Writer Chip Select ASCII file irveter IV Hex file Hex file ireveter Hex file HIL Seperat Mask file 8k 16 System Windows 2000 NT v ROM IDE RAM 62256 L EE GOTO 00 No Use Area Fill Figure 2 23 Options Setup Window Compiling Files Select compiling method Assemble amp Run Set Mode gt Emulation ID Number 0 from the tool bar and set the file to be the main program compiled Assemble amp Run Set Main File then use this file to proceed compiling Assemble amp Run gt Assemble amp 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 9 of the Basic Tutorial have not been executed Bin Waiter ID Number 1 FASM500 W ReadEEPROM Chip Info ICE Chip Type FS9822 4K Fille Hex Code nup F59822 joo o o2 os oa os fos oz os os oa fo foc oo oc or File CheckSum Read Chip CheckSum BlankCheck Auto COMPARE Blank Check
61. indow Fortune Semiconductor Corp 21 78 Rev 1 0 WU Fortune FS982X IDE Copy the file FS9822 INC under C Program Files FASMS500 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 amp Run Assemble amp Run to compile this program the screen is shown as the Figure 2 17 a SYSIHI CLKIHI 00100001B Set CLK Source amp Timer HOVWF HCK HOP TIMERINI MOVLW 00000000B MOVWE THCON MOVLW 10010000B Set Timer Interrupt Enable MOVWF INTE MOVLW 00001111B Set Timer MOVWE THCON PT2INI Figure 2 17 Screen of Building Fortune Semiconductor Corp 22 78 Rev 1 0 Fortune FS982X IDE 2 4 6 Debug When the screen transfers to Source ID Number 0 to select Assemble amp 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 TimerlSR Breakpoint 3 Set the breakpoint before the instruction REFTIE After setup the screen is as shown in the Figure 2 18 FASM Emulation ID Number 1 main C Program Files FS IDE2 O Toturial main asm Source Code ID Number 1 Edit Source Hex Ram Rea watch 7 Fe 8 17 Ast Chk mainasm F59222
62. ing 5 2 Reset FS982X System 3 kinds of Reset as follows are provided by FS982X IDE e Hardware system reset Use button S2 of FS982X ICE to reset system Power source reset Use switch 51 of FS982X ICE to reset system Software reset Execute Assemble amp Run Program Reset Fortune Semiconductor Corp 50 78 Rev 1 0 a FS982X IDE Table 5 1 Results of 3 kinds of Reset System Reset Reset Reset Clear Memory NNT Program Counter PC DECOM Clear Software Seting N N wo o Clear PD TO Note x Different type of chip has different initial value x Reset of system depends on chip type there are two kinds OTP and ICE FS982X ICE Program counter will execute by starting from OOH 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 l Option Setup y PD Power down flag TO Watch Dog Timer flag Fortune Semiconductor Corp 51 78 Rev 1 0 a 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 amp Run Program Reset fro
63. it Source Hex Ram Rea watch edit 7 Fef ra cio Rst Chk Bin Refered Symbol Figure 2 20 F WATCH Window Then move the mouse to WATCH and click right button of the mouse to select Add Delete watches then select PT2D clicking W amp the result will be shown as in the Figure 2 21 it will show the contents of 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 TimerlSR Select Assemble amp Run gt 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 330Q 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 v FS982X IDE Fortune 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 e Hardware setup Use OTP s Transfer Board to replace ICE s Transfer Board and set up the location of FS9
64. iting code 2 Create a new file How to create a new file 3 Compiling How to compile files 4 Write Code Write code into file this example is to write the I O code into the file 5 Debug How to use register window F WATCH Window to debug 6 Programming Executive codes into OTP chip 7 OTP Testing use OTP to perform off line operation The 8 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 Select Chip Fs9822 4K M Enable Tool Bar Language English Font Hardware Control Generate Files LPT port or USB List file USB ASCII file ASCII file inveter v Hex file C Writer Chip Select Hex file inveter Hex file H L Seperat Mask file 8k 16 System Windows 2000 NT ROM IDE RAM 62256 No Use Area Fill f GOTO 00 Figure 2 11 Setup Window The notes for setup are as follows Select Chip Please choose suitable IC type No from select chip ver such as FS9822 4k e ROM Selection Select IDE RAM 62256 from ROM Selection of ROM is depending on memory of FS Control Board e ICE Communication Protol Please select USB as the communication screen from via LPT port or USB Fort
65. lease unzip the file and execute the resulting file to install InstallShield Wizard Preparing to Install E FASMhB LD Setup is preparing the InstallShield Wizard which will quide you through the program setup process Please wait Checking Operating System Version Cancel 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 Fortune 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 gt Program gt FASM500 the screen shows as Figure 2 2 it means the program is installed FASM500 Mode Edit v0 02 File Edit Search View Assemble amp Run Options About AltA main 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 ICE In Circuit Emulator For hardware emulation not providing ROM has to use the RA
66. m the tool bar to execute software reset the program counter will be reset at the OOh 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 Application program in Hardware e Stop application program e Single step execution 5 3 1 Hardware Execution Select Assemble amp 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 amp 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 e Atthe breakpoint When the program is executed at the setup breakpoint by compiling the program Will stop When the program is executed by trace stopover the program counter will stop at every step Upon the instruction of stop When the program is executed select Assemble amp Run Stop or press the hot key F12 the program counter will s
67. me is H hex and L hex MaskFile 8k 16 For internal test the file extension name 5 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 a 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 e Reset FS982X system Hardware emulation of application program e 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 main C Program Files F IDE2 0 Toturial main asm Source Code ID Humber 1 Edt Sowce Hex Ram Reg Watch e amp F7 FB Faf Fi2 Ra ch mainas INCLUDE FS9822 INC equ 080h PT2D 00H r GOTO SYSINI 04 TimerISR 7 SYSINI 7 MOVLW 001000018 Set CLK Source amp Timer MOVWE MCK Size O 0k4K Total Code Line 29 Figure 5 1 Screen after compil
68. 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 MAIN NOP GOTO TimerlSR CLRF COMF MOVFW MOVWF RETFIE equ 080h OOH SYSINI 04H TimerlSR 00100001B MCK 00000000B TMCON 10010000B INTE 00001111B TMCON 00000000B PT2PU 11111111B PT2EN 11111111B PT2D PT2D PT2 MAIN INTF PT2D 1 PT2D PT2 Set CLK Source Timer reset Timer Set Timer Interrupt Enable Set Timer Set pull up resistor Set I O Port Set PT2D data Set PT2 data Clear Timer Flag PT2 data invert Set PT2 data Figure 2 14 Template code Select Assemble amp Run gt Assemble amp Run to execute the code the screen in the error message window will show the Figure 2 15 Error Message ID Number 1 Error code b C Program Files FS IDE2 0 Toturial main asm 18 Undefined Symbol TMCON Error code b C Program FilesYFS IDE2 0XToturialimain asm 21 Undefined Symbol INTE Error code 5 C Program Files FS IDE2 0 Toturial main asm 24 Undefined Symbol TMCON Error code 5 C Program Files FS IDE2 0 Toturial main asm 29 Undefined Symbol PT2PU Error code 5 C Program Files FS IDE2 0 Toturial main asm 32 Undefined Symbol PT2EN Figure 2 15 Error Message W
69. n 59 3 5 How to Measure 2 eee e enn eee enn eese nenne nenne sess eene einen essen nene ness 61 8 ESCONIBROLBOARD Bate n isti it tuin adi vei inier nee 62 ST CENERALDESCRIPTION MR UU 62 8 2 BLOCK DIAGRAM AND PIN DEFINITION cccccccccccssssscccececeseesseeeecceessesaeeeeecesessseeeeceeeeseseeeeecesesssaeeeceseseaaeeeseceeesaaas 63 9 3 TO USE FS CONTROL BOARDYJ beatae toa Pea eu and ha esr aad 64 86 3 1 How to Select Power Source from FS Control Board for Emulation Programming 65 8 3 2 Howto Select Power of FS Control Board sssssssssssssseeee eene eene enne 65 8 3 3 Verification of Connection between FS Control Board and PC sss 65 9 IPPROGRAMMING S ier neni Rire nerd ii cae EM MEM 66 91 GENERAL DESCRIPTION TWO T 66 9 2 INTRODUCTION OF 67 9 2 1 E 66 922 Iniormation of Executable File HO 69 923 BulerAJea0 Executable FIG ri
70. nect PIN3 with PT2 1 PIN5 Reset PIN Connect PIN5 with RST RST ice PIN7 VPP FS98 VPP Connect PIN7 with VPP 12V PIN9 VCC FS98 VDD Connect PIN9 with VDD VDD ice 5 8V PIN 11 GND Connect PIN11 with VSS VSS ice 3 Dip Switches e 55 FS982X chip selection switch 4 Connectors CON1 Connected to CON1 of FS Control Board CON2 Connected to CON2 of FS Control Board CON3 Connected to CON3 of FS Control Board CON4 Connected to CON4 of FS Control Board CONS A D input port I O port of Emulation Board CONG A D input port I O port of Emulation Board CONT LCD output pin 22 2 pin output number dependes on the selected chip type Note The number of the digital output of CON5 and CONG will be different according to the chip type please refer to FS982X data sheet Fortune Semiconductor Corp 56 78 Rev 1 0 Fortune FS982X IDE 5 Buttons 1 Power switch of FS982X Emulation Board 2 Reset button e 3 General button or PT2 0 interrupt button S4 General button or PT2 1 interrupt button 7 3 How to Use Emulation Board Notes for use of FS982X Emulation Board e How to Use LCD How to Select FS982X Chip How to Switch Operation amp Programming Mode How to Measure Current es OF SSBINX XXXXMCT X MXN e yA t P V ie os Fortune Semiconductor Corporation m 3 S Figure 7 3 FS982X Emulation Board 7 3 1 How to use LCD The LCD Segment
71. ol Board as shown in the Figure 8 1 is applied to FS9912 FS9922 FS9932 FS9821 FS9822 gt 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 System Configuration and Jumper Set Introduce FS Control Board and each connector on the FS Control Board notes for use of jumper e How to use FS Control Board Introduce notes for emulation and simulation when FS Control Board is connected to FS982X Emulation Board 9 piam h 0922220922 i J u 4 nomm de 1 i ALTAE i Figure 8 1 FS Control Board Fortune Semiconductor Corp 62 78 Rev 1 0 NG FS982X IDE 8 2 Block Diagram and Pin Definition FS Control Board layout is shown as the Figure 8 2 amp e a gt 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 e DC JACK CONS Input DC 5V e USB B CON6 USB Connector 5 2 Setup Jumper and Memory J1 Output 3V and GND after regulation J2 Output 3V after regulation J3 GND J4 Select input power for emulation or programming Table 8 1 Selection of Power for Emulation or Programming 2 3 Pin e J5 Power setting Table 8 2 Power Setting Short regulation 1 2 Pin Preset Power Source from USB
72. ommunicates 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 a FS982X IDE 2 3 5 Comprehension Test The comprehension test mainly to verify the I O LCD key counter Interrupt analog temperature l Start gt Program gt FASM500 will be executed at first then it will proceed as following steps 1 Setup Select Options gt Set up from the tool bar as shown in the Figure 2 7 This example focuses on FS9822 Select Chip 622 4K M Enable Tool Bar chip some hints need user s attention Language Engish E ae U1 select FS9822 ICE chip Logline pee sind 9 Please select ON position in PAR13 ts ASCII file of S5 but select OFF position in C Whiter Chip Select ASCII file invete PAR11 PAR12 refer to the Table iv Hex file Ei Hex file inveter 2 1 EUM Hex file Seperat 1 Short 2 3pin of J2 short 1 2 pin of RWiweXXONT gt J2 open J1 and short 13 5 Other products of FS982x may be referred to this example No Use Area Fill ROM IIDE RAM 62256 C FF GOTO 00 Figure 2 7 Setting window Fortune Semiconductor Corp 15 78 Rev 1 0 Fortune FS982X IDE 2 Open File and Compiler Select File gt Open File from the tool bar to open the file C Program Files FS982
73. p 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 l File gt 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 M oa 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 RomWrter ID Eumber 0 Eo File Hex Code Read Chip Hex Code Figure 9 7 Buffer Area of Executable File e File Hex Code The area saves executable data After the executable file is opened the screen will show the contents of the executable file 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 TO T8 Rev 1 0 Fortune FS982X IDE 9 2 4 Selection of Programming and Verification This block provides operation selection during programming mainly divided into 4 parts e Single Step Programming Including Programming Read Stop Blank Check and Compare Load in etc buttons and status displaying area Continuously Programming
74. provided by each mode of FS982X is different therefore FS982X provides two kinds of screen for users easier operation e 4 13 LCD U2 4 COM 13 Segment LCD 5 e 2 20Connector 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 T4 Forthe LCD true value please refer to the enclosed Table 1 Fortune Semiconductor Corp 57 78 Rev 1 0 a FS982X IDE 7 3 2 How to Select FS982X Chip FS982X Emulation Board provides dip switch 55 for users easier selection of chip type The setting is as shown in the Table 7 3 Table 7 3 Dip Switch Definition PAR13 PART12 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 CONG Users may use connectors to connect with other devices CONS pin definition is shown in the Table 7 4 and the Figure 7 4 pin definition is shown in the Table 7 5 and the Figure 240000000000 1 10000000000 24000000
75. ramming Auto System will automatically program according to the selected steps after press Blank Check The function is as the same as Single Step Programming gt Blank Check e Programming The function is as the same as Single Step Programming gt Programming Verify The function is as the same as Single Step Programming Compare e Write protect Protect the programming code of chip 3 Block Write Read e Start Address Input start address for internal use End Address Input end address for internal use e Block Write Programming the start and end addresses for internal use e 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 T2 T8 Rev 1 0 M oa FS982X IDE 10 Revision History Ver Date Page Description 1 0 Jul 31 05 Release of First Edition EN corresponding to ver 1 1 of TC Fortune Semiconductor Corp 13 78 Rev 1 0 WU Fortune Appendix Diagram 1 Circuitry of FS9821 22 25 ICE Transfer Board 1 3 4 5 6 5 5 5 5 Fea fea en ea en en ea en n rn DAA e ee o
76. rotect og or o2 os os 15 fos foz oe os oa op oc oo oc or 0000 4005 4000 4000 A000 4018 4021 2214 0000 4000 220F 4090 2207 400F 220F 4000 2226 StarttAddress END Address 0001 40FF 2225 40FF 2280 2080 2224 0000 A016 0206 1E80 2080 2224 0002 4000 4000 4000 z 0002 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 Block Write 0003 4000 4000 A000 4000 4000 4000 A000 4000 A000 4000 A000 4000 A000 4000 A000 4000 0004 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 Seen Read I 0005 4000 4000 4000 4000 4000 4000 4000 4000 A000 4000 4000 4000 4000 4000 4000 4000 Read 0006 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 TIME eading 000714000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 4000 Figure 2 29 Correct Verification Screen RomWriter ID Number 1 FASM500 File ReadEEPROM Chip Info C Program Files FS IDE2 0 T oturial main hex F59822 4K File Hex Code F59822 oo ot o2 os os os oe foz os os os fos oc oo ok oF nooo ETE A000 A000 ADDO A018 4021 2214 0000 4000 220F 4090 2207 400F 220F 4000 2226 9FA17 40FF 2225 40FF 2280 2080 2224 0000 A016 0206 1E80 2080 2224 0002 A000 A000 A000 0002 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 9FA17 0003 4000 4000 4000 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 A000 0004 A000 4000 A000 A000 A00
77. rotect foo o foz fos fos fos fos oz fos os oa fos oc oo oc or Start Address END Address Block Write Block Read Figure 2 28 Successful Programming Screen Fortune Semiconductor Corp 28 78 Rev 1 0 Fortune FS982X IDE e 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 RomWriter ID Number 1 FASM500 File ReadEEPROM Chip Info C Program Files FS IDE2 0 T oturial main hex 59822 4K File Hex Code F59822 oo o o2 os os os fos oz os os oa oe oc on oe jor A000 A000 ADDO AOTS 4021 2214 0000 4000 220F 4090 2207 400F 220F 4000 2226 SFA17 0001 40FF 2225 40FF 2280 2080 2224 0000 A016 0206 1E80 2080 2224 0002 A000 4000 A000 0002 4000 A000 4000 4000 A000 A000 A000 A000 4000 4000 A000 A000 A000 4000 4000 A000 SFA17 0003 4000 A000 A000 A000 A000 4000 A000 4000 A000 4000 A000 4000 A000 4000 AODO A000 0004 A000 A000 4000 4000 4000 A000 A000 A000 4000 4000 A000 A000 A000 4000 4000 A000 0005 4000 A000 4000 4000 A000 A000 A000 A000 4000 4000 A000 A000 A000 4000 4000 A000 0006 4000 A000 4000 4000 A000 A000 A000 A000 4000 4000 A000 A000 A000 4000 4000 A000 0007 4000 4000 4000 4000 4000 4000 4000 4000 A000 A000 A000 A000 A000 A000 A000 A000 S Read Chip Hex Code Successful Write P
78. setup maximum can be used with Goto at the same time Goto Can be used with Tab the purpose is for a fast change to the location of tab Find Search compatible string in Edit Area Keep on searching the specified string Page Page of Edit 4 Edit Area Program of an opened file can be revised Fortune Semiconductor Corp 37 78 Rev 1 0 a 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 Source Code ID Number 1 5 mE Edit Source Hex Ram Reg Watch edit F F8 F9 Bst LE file label Se ee INCLUDE FS9822 1IHC PT2D equ 080h PT2D debug ORG OOH GOTO SYSIHI function ORG OAH GOTO TimerISR SYSINHI CLKIHNHI HMOVLW 00100001B Set CLK Source amp Timer program MOVWF MCK info HOP 1 Line 6 Size 0 0k4K Total Code Line 29 Figure 4 3 Source Window 1 Hot Keys Edit Press Edit button select this option can modify code Source Select this option the screen will jump to Source for debug Hex Select this option the screen will jump to Hex please refer to 4 4 Ram Select this option the screen will jump to Ram please refer to 4 5 Reg Select this option the screen will j
79. top immediately Fortune Semiconductor Corp 52 78 Rev 1 0 Fortune FS982X IDE 5 3 3 Single Step Execution FASMBOO 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 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 FASMS500 breakpoint 1 Set up of Mouse Click otep 1 Use mouse to select Source window otep 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 otep 1 Use mouse select Source window otep 2 Use mouse to select the code of the pre set breakpoint Step 3 Select Assemble amp 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
80. ul entering into simulation Fortune Semiconductor Corp 5A 78 Rev 1 0 Fortune 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 e Applied to ICE and OTP chip of FS9821 FS9822 FS9823 Provides LCD independent test pin Provides system independent test function e Provides digital analog port Provides Normal Program jumper to select Working or Programming Mode Provide 1 set LCD 4 COM 13 Segment e Provides 3 buttons 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 J13 O O I4 Figure 7 2
81. ump to Reg please refer to 4 6 Watch Select this option the screen will jump to F WATCH please refer to 4 7 Edit Return to Edit Mode from Execute Mode and shows Edit for modifying code Trace F7 Detailed trace to the code i e enter into Macro and sub program Step Over F8 Trace to the code i e not enter into Macro and sub program RUN F9 Execute program STOP F12 Halt program Program Reset Rst Reset program counter 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 a FS982X IDE 3 Function Keys Open Open Compiled files Mark Setup or cancel label 10 0 9 labels can be setup maximum can be used with Goto at the same time Goto Can be used with Label the purpose is for a fast change to the location of label Find Search the compatible string in this file F N Keep on searching the specified string Page Page of Edit 4 Debug Area Location of Program Execution The location of the blue cursor is the halt position of program Setup Break Point Set the breakpoint IB 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 ooft Interrupt Hard Interrupt FS9821 F
82. une Semiconductor Corp 18 78 Rev 1 0 v FS982X IDE Fortune 2 4 3 Creating a New File To create a new file please select File 2Open File as shown in the Figure 2 12 then select File gt Save As to save this file The file name is main asm and then add a folder in the access route C Program the name is Tutorial suggested then to save the file _ FASM500 Mode Edit v0 02 Figure 2 12 Window of Create a new file Fortune Semiconductor Corp 19 78 Rev 1 0 Fortune FS982X IDE 2 4 4 Compiling Files Select compiling method from the tool bar Assemble amp Run Debug Mode Set up gt Hardware Emulation ID Number 0 and setup this file to be the compiled main file Assemble amp Run Set Main File then proceed compiling of this file Assemble amp Run Assemble amp Run After compiling the screen is as shown in the Figure 2 13 FASM Emulation ID Number 1 PIEIE main C Basic Training Tutoriall main asm Source Code ID Number 1 Edit Source Hex Ram Reg Watch edit F F8 Fa Rst Chk main asri Figure 2 13 Window of Building a file Fortune Semiconductor Corp 20 78 Rev 1 0 WU Fortune 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 amp Run gt Edit Mode to enter into writing code in the
Download Pdf Manuals
Related Search
Related Contents
Sound Bar User Manual/Installation Manual téléchargez le journal dans son intégralité [ PDF - 28p - Athis-Mons 社会保険庁LANシステムクライアント機器の増設配備に 不確かさカテゴリー分類例示 平成15年度 第Ⅰ類【PDF:20KB】 Kenwood KDC-M4524G User's Manual HUAWEI Ascend P1 RP96966 Cupcake Maker LB7 Copyright © All rights reserved.
Failed to retrieve file