Home

HY13S00 HY13P IDE Software User Manual

image

Contents

1. DADC DADCO all zl a 1 W ROM ENHAO LPO 4 s e 7 BAOTRS HAOTR4 HAOTEG HAOTR2 HAOTEI HAOTRO PWMAO MC00 BZG lz Figure 30 3 4 Watch Window TW Hy WATCH 1030 bai Watch Name Watch Data Data Length Figure 31 Watch Name gt Monitor Data name program uses EQU or DS defined name Watch Address gt Monitor Data Address Watch Data gt Display value can select display arrangement from right to left or from left to right or in decimal or hexadecimal system Hex H gt L cies 4 options will Dec H L show up after jj Hy WATCH Dec L H 4 clicking eng PWRCN 030 FO 111110000 lo 041 QD TMACN Move the mouse to here and double clicking Figure 32 Hex H gt L Hexadecimal display address H L from low to high Hex L gt H Hexadecimal display address L H from high to low Dec H gt L c L gt H Decimal display address H L from low to high De Decimal display address L H from high to low 2012 2013 HYCON Technology Corp www hycontek com APD HY13PIDE002 _EN Page 31 HY13S00 e X Watch Data for Bin gt Data display in decimal system only show up when using EQU defined address Data Length gt Data length display DS definition length it will display 2 when using EQU definition Data Type D DS definition C EQU definition Add Delete Watches Edit Watch Delete Watch
2. Figure 39 e IN1ST Switch 1 Click mouse left key on the name of IN1ST switch will be ON OFF 2 Click mouse left key on the network switch IN1ST switch will be ON OFF e VR1P Network 1 Click mouse left key on the name of VR1P to select the network 2 Click mouse left key on the network switch VR1P to select the network 3 Click mouse left key on the network window like Figure 40 will appear users can select network switch Gear UU 1 Figure 40 e VIN Network 1 Click mouse left key on the name of VR1N to select the network 2 Click mouse left key on the network switch VR1N to select the network 3 Click mouse left key on the network window like Figure 40 will appear users can select network switch 2012 2013 HYCON Technology Corp APD HY13PIDE002 EN www hycontek com Page 36 HY13S00 Gear 00 jl Figure 41 e ADC Sample Clock Click mouse left key window like Figure 42 will show up and then user can select the network switch ADCS 20 000 Figure 42 ENADC Click mouse left key on network switch ENADC will be ON OFF When ENADC ON ADC display zone will show value e VDDA Network ENVDDA control 1 Select ENVDDA switch ON OFF 2 Select VDDA voltage Click mouse left key window like Figure 43 will show up users can select to the mode YODA ID 1 op PES 01 00 ep s u Figure 43 3 Display VDDA voltage When ENVDDA 0 the zone display VDDA External
3. S5 S4 IVPP eV ICESCK C G ICESDI GD ICESDO VDD 3V Blank Program ONG Check Figure 90 J14 Adapter 9V input 8 6 supply programming power source connected when programming OTP U20 USB connector to PC Downloading program for emulation and debug Downloading programming code for HY13P series P3 HY13P series programming control port PIN1 VPP 6V connects to VPP PIN2 ICECK connects to PSCK PINS ICESDI connects to PSDI 2012 2013 HYCON Technology Corp APD HY13PIDE002 EN www hycontek com Page 62 HY13S00 PIN A ICESDO connects to PSDO PIN5 VDD 3V connects to VDD PING VSS connects to VSS Sd Program IC programming button S5 Blank Check Blank Check key D9 Green LED USB or Adapter power on OTP programming Blank Check successful execution display light D10 Red LED OTP programming Blank Check frequency calibration error execution display light D11 Red LED Under programming 2012 2013 HYCON Technology Corp APD HY13PIDE002 EN www hycontek com Page 63 HY13S00 Figure 91 shows the connection way of connecting programming IC to control board programming pin when PC online a Figure 91 Figure 92 shows the connection way of connecting offline programming IC to control board programming pin when PC offline Figure 92 e To implement offline operation Hex file must be firstly downloaded to programmer Fla
4. E e Fast Window Switch Switch to Edit window A IET 2 Switch to Source window s Ej A 0 9 a E Tl setae Io IRI o A o FILE Test ASM Test asm HY12P INC AUTHOR WATER LEE COMPANY HYCON TEK DEVICE HY12P65 INPUT DEVICE OUTPUT oo CREATED 2010 10 15 OUTPUT CREATED 2010 10 15 UPDATED DESCRIP ss Tne Line 15 Size 0 0k 6K Total Code Line 15 AUTHOR WATER LEE COMP ANY H COH TEK HY12P65 Modified file of size 424 byte 3 Switch to Hex window 4 Switch to Ram window 1001171 EOK bt sree DBR instruction 80h 0 M 80 A5 Oh 29h 1 o M 29 80 7FEh b Switch to Reg window e 6 Switch to Watch window Ll 127658 9E 2r fr aio s EOK H oy Oe DAR INDFO POINCO PODECO PRINCO PLUSWO INDFl POINC PODECI PRINCI PLUSW WREG BSRCN TMAR PRC TMCR PWMR LCDO ESDI 20 ol 00 FD 00 FF 00 00 LCD2 LCD3 LCD4 LEDS LCD6 LCD SSPBUF TXREG RCREG 00 00 ol 00 00 00 FF FF EO SDATA MSDATA MSDATA MSDATA MSDATAIDIDATAIDIDATAIDIDATA CTAU 7F FF EO 00 00 00 00 00 FF CTAH CTAL CTBU CTBH CTBL CTCU CTCH CTCL KHMAXT FF 00 00 00 00 DU 00 00 00 WUE A VLIVM URE A SET UBATRITINE ULT UD ITA K TKTT NEMT AT AT TET AP AL mE AT AT Word FSRO FSRI TOS PCLAT TBLPTR TBLD PROD BRGR OOFF OOFF 0000 100 1FFF FFFF FFFF 1FFF v 2012 2013 HYCON Technology Corp APD HY13PIDE002 _EN www hycontek com Page 23 HY13S00 e Fast Debug 1 Step back U i 2 Trace Enter into Macr
5. Tel HyconI DE WHER Chip Hycon 13P56 4K ICE Inteface USB Project Options Windows Revision History Set as assembly main file Include 13P INC include Main inc AsemblesEun i SPICNT EIECGBISPI R E AssembleaRum Emulation F4 SPICNT 0 gt SPIBUF SBit 7 1 SS SPIBUFAYBit 7 0 Xj 8 Asemble CRI H SPICNT 1 gt SPIBUF KI5ERAM Address D I Low byte gt FSROL 5 pes SPICNT 2 gt SPIBUF 85ERAM Address D I High byte gt FSROH set Mam File SPICNT gt 2 3 jH ERAM Address HASSE SPICNT nf 838 255 set Mode d ECS PIN HH 1880 58 Hol TERK SPICNT org 0000h mol 00100111b mof MCKCNI F ACCE jmp ProBegin nop jmp 0 org 0004h Include Interrupt asm ProBegin include SysIni asm MainLoop lt gt C Documents and Settings YC Cho SET AHY138 Tool HY13P56 HY13P56 SPI_Special MAIN 13p56 asm ICE Connect Checksum Ox7BF4 Figure 7 2012 2013 HYCON Technology Corp APD HY13PIDEO02 EN www hycontek com Page 10 HY13500 HNOLOGY THI HyconIDE WHER Chip Hycon 13P56 4K ICE Inteface USB Project File Edit Search View Assemble amp Run Options Windows Revision History Assembly and start debugging 9 ft e n DD HE SETE Bl a A D MAIN 13p56 asm 13PINC MAIN INC INTERRUPT ASM SPLASM INTADC ASM SYSINLASM SPICHT Hk Asri Sut Search View Azsemble amp un Options Windows SPICHT 0 gt SPIBUF TFjBit 7
6. 1 ZB SPIBUF JBit 7 0 X SPICHT 1 gt SPIBUF ERAM Address fj Low byte gt FSROL SPICHT 2 SPICHT gt 2 SPICHT OI 255 cs prin Io sk po amp Ei BIR SPICHT gt SPIBUF fERAM Address DI High byte gt FSROH gt SM TRER Address ETTE HE 00100111b x Z MCKCH1 F ACCE t Debugging nop H jmp 0 org 0004h Include Interrupt asm ProBegin include SysIni asm naw o Adde e e heel A Line 15 Size 0 5k 4K Total Code Line 478 main C Documents and SettingsiYC ChoSE AHY138 Tool HY13P56 HY13P56 ICE Connect Checksum Ox7BF4 Figure 8 Users can use any compiler to edit Source Code as long as it can be stored in ASCII Code format Source code will be reloaded when compiling program to ensure its correctness Debugging and edit function will be depicted respectively in the following chapters 1 6 Demo Code Operation e Aer installing HY13P IDE software users can refer to Demo Code that provided by HYCON at C Program Files HyIDE HY13PIDE DemoCode 2012 2013 HYCON Technology Corp APD HY13PIDEO02 EN www hycontek com Page 11 HY13500 HNOLOGY 2 HY13P IDE Interface Description 2 1 HY13P IDE Edit Interface Version TW HYIDE HID em V1 00 Chip HY 13P56 4K ICE Inteface USB Project BRE File Edit Search View Assemble amp Run Options Windows Revision History S E A 9 a MAIN 13p56 asm Include 13P INC include Main inc SPICNT RIN SPI
7. APD HY13PIDEO02 EN Page 18 HNOLOGY HY13500 t Interface Setup Interface Setup Build Options Int Setup ICE Test Register OSC Calibration SAAM Data Address Write Data Head Data Write Head Program ROM Data Address V Write Data LK VEL Head Data Md rite Head LE ALL Wite Read Figure 17 e OSC calibration Tel Interface Setup Interface Setup Build Options Int Setup ICE Test Register OSC Calibration HAD Calibration Enable HA Calibrator Enable 55 Calibration Permissible Error Input HAT 2000000 Hz 2 Z KANGE 1850000 2150000 Hz LPO Calibration Enable G AA Calibration Input LFO 113000 RANGE 10000 15000 Hz Figure 18 APD HY13PIDE002 EN 2012 2013 HYCON Technology Corp Page 19 www hycontek com HY13S00 HY13P IDE Software User Manual HYCON L X AA 2 SON LEGHNOLOGY 2 1 7 Windows The window can be displayed horizontally or vertically File Edit Search View Programmer Options Windows Revision History KEN in ee KS Tie Horizontally Alt Down Ld Tile Verticllv AI Up Figure 19 2 1 8 Program Structure Before editing new program user must select IC part number through interface setup Different IC will have different Instruction Set according to IC part number definition it is classified as HOGA and HO8B instruction set User can refer to the appendix software
8. Rp S SPICNT 20 gt SPIBUF SBit 7 1 i SPIBUF JBit 7 20 S SPICNT 1 gt SPIBUF IEGERAM Address DI Low byte gt FSROL SPICNT 2 gt SPIBUF JH3ERAM Address D I High byte gt FSROH SPICNT gt 2 gt 34 JE5ERAM Address ET AE SPICNT AJA 255 SCS PIN H11450 sf HO SER SPICNT org 0000h myl 00100111b mvf MCKCNI F ACCE jmp ProBegin s hop jmp 0 org 0004h Include Interrupt asm ProBegin include SysIni asm sRAM Address 0x82 0x82 0x00 get ADCI data 0x82 0xFF get ADC2 data file of size 4628 byte C Documents and Settings YC Cho SME HY13S Tool HY13PS6 HY13P56 SPI_Special MAIN 13p56 asm ICE Connect Che m Ox7BF4 A Checksum after Main program file IDE connecting status program compiled Figure 9 2012 2013 HYCON Technology Corp APD HY13PIDEO02 EN www hycontek com Page 12 HY13S00 2 1 1Edit Window e Open file Open the existing edited file in the disk e Set bookmark Using this function to go back to the bookmark instantly when many files were opened e Goto bookmark 85 Jump to the default bookmark e Find string Find input string e Find next string e Goto page IS Using this function to switch files Assemble ge Only acting assemble function not debug status After assembled a message window will show up Mn Message 2012 2013 HYCON Technology Corp APD HY13PIDEO02 EN www hycontek com Page 13 HY13S00 2 1 2 File Edit Search Vi
9. a window will appear Click the interface setup as shown in Figure 65 fase eps 2 ik IED rz IS GE H ss Click Option Click Interface ENS Setting ICE M Select Chip No BH OSC Calibration mes Select Language Chinese gt Language EHRE 28 USB Select Interface IDE IS e PS DSS C ARTE Select Programming Mode Hise RAM 62256 Figure 65 Chip Select gt Choose the specific programming IC part no If programmed IC part no differs from that of the selected IC Blank Check Program and Verify will fail Language gt Choose operation interface language like Chinese or English Hardware Interface gt USB interface or Parallel Port interface is selectable IDE Mode gt Programmer or emulate and Debug is selectable When interface setup finished click Build Options to select programming configuration As described in Figure 66 2012 2013 HYCON Technology Corp APD HY13PIDEO02 EN www hycontek com Page 48 HY13S00 HY13P IDE Software User Manual HYGON IC Interface Setup Sele Interface Setup Build Options Int Setup ICE Test Hegister osc Calibration No Use Area Fille Generate Files v fi W Enable Tool Bar ONE Y Hex file Font obs Mo Use Area Fill Generate Filese k L Re 00 rl ASCII file C FF are OxFFFF p Smart Compilere WOT Reset Vector m lv Smart Compiler
10. ACM Voltage Optimization C ACM 1 J Stack Option Omer S elec LIV Stack Over resel EE V Stack over STOP C Input Program Times Enable Programe Enable Progam Times Input Program Times Timasw Close Figure 66 2012 2013 HYCON Technology Corp APD HY13PIDEO02 EN Page 49 www hycontek com HY13S00 Generate Files gt Choose generated file after assembly Stack Option gt Choose whether to reset when stack overflow or stack full after OTP program operation No Use Area Fill gt Fill up 00 or FF in unused program space after assembly Smart Compiler gt Choose whether to simplify assembly Enable Program Times gt Choose whether to enable Download program times Input Program Times gt Input Download program times Maximum 2147483646 Minimum 1 After assembly finished click ICE Test to test ICE operation voltage as Figure 67 Connect Adapter 9V and connect USB Line to ICE Make sure the ICE is connected and then click Option THI Interface Setup Interface Setup Build Options Int Setup ICE Test Register OSC Calibration SRAM Data kaala Address V Write Data Read Data l Check Vv PP Write Head s s Kee show WCC Program ROH Data i voltage Address Write Data Read Data Check VC Ce Write Head Check v PP and VYC Ce Figure 67 VPP voltage when programming 5 6 lt VPP lt 6 6 VDD voltage when programming 2 7 VDD 3 6 After voltage testin
11. ADC CE 7 65536 nu 1011 lt G ayiq quio Figure 49 e ADC Display Zone 1 Select ADC output form gt Hex or Dec output is selectable 2 Select ADC output Bit 8 24 Bit output is selectable 3 Display output button gt clicking this button to display ADC output value 2012 2013 HYCON Technology Corp APD HY13PIDE002 EN www hycontek com Page 39 HY13500 HNOLOGY 3 7 Comparator Window VEH Multi Comparator DER ies Bee hen EIB VDDA Etgen ek Ain RE pesca 0000 lt l MCNESD Coste 00 gt BEARS Alt 2 A rb rus 1 0 titer ES Ain Watch A4 EE Al 5 EPR SS TF ae Alt 6 HE te Alt ADCIREE comparator window re DEER DRIG E tLeft Figure 50 MCRPS Network MCOHS Voltage Divider Select MCRS Select MCNS Network pO ICH Multi Comparator emm MCoHs 3 07 0000 pesca 0000 age el MCR CZ MEL gt NGHI gt gt MCHO E SCH ENMC MCOIV MCOIV Switch MCSEN ae A 1 2 rei MCNES Network 12 Sz i MES de MCOFR lt MCOFR Switch n MCH1 Pis MCLP Switch T S MCPS Network MCNEC Switch D Switch Figure 51 e MCNES Network 1 Click mouse left key to the network name CPIH to select the network 2 Click mouse left key to the network switch MCNES to select the network 3 Click mouse left key window like Figure 52 shows up then user can select the switch network 2012 2013 HYCON Technology Corp APD HY13PIDEO02 EN www hyconte
12. ENAD1 IW2 2 0F 000 ENLDO 0 vppaxpoj o00 ADC CK 7 65536 0000 x pora 1011 lt DC25 3 0 S 0 ADCLK lt 500kHz SC ADCIF GAIN lt 32 E ADCROHML 5 ADC out mode ADRST HEX ADC outp bits 15 M Read ADC Ibit Q amp ui ER 8 Figure 36 ENLDO YDDA 00 Cuan ENLDO L 0 ADCLE lt 500kHz GAIN lt 32 7 ADIGN x 2 VDDA Network age UU ALR 20145 CHOP VHIBN x 172 ADC out mode HEX ADC outp bits Law Head AD C VRL Network VR1ST Figure 37 1 Click mouse left key on the name of INH to select INH network 2 Click mouse left key on the network switch INH to select the network HYGON HNOLOGY EI DC Offset oe Network ADGN Network ADC CK 65536 VRGN EE pA posses Enans ADIGN 14 s ti AU m i ADIHAMLL OSR Network Display ADC Data Select ADC output format ADC output Bits Display ADC output button 3 Click mouse left key window like Figure 38 will appear users can select network switches 2012 2013 HYCON Technology Corp www hycontek com APD HY13PIDE002 EN Page 35 HY13S00 Figure 38 e IN1N Network 4 Click mouse left key on the name of INL to select INL network 5 Click mouse left key on the network switch INL to select the network 1 Click mouse left key window like Figure 382 will appear users can select network switch
13. Hg oo 74 63 7A 3E 7B fe 00 nn op i Li t I 1I 1 1 an an an Tarl GRT 5 e e Le 09 02 03 04 03 00 7B 00 00 00 43 03 00 00 00 00 00 00 00 00 0i 00 34 nn nn nn 00 07 EF DE D FB 00 nn nn no no nn 00 oo 00 nn nn nn nn 5E nn 00 DE DS 73 DE BB 79 DE D TA oc TA D4 79 DE 00 04 OD FF 00 F7 00 00 00 85 00 54 Figure 23 2012 2013 HYCON Technology Corp APD HY13PIDE002 EN www hycontek com Page 27 HY13S00 e There are two ways to revise SRAM value 1 Point the cursor to the selected revised lines click mouse s left key and Key IN directly 2 Point the cursor to the selected revised lines double click the mouse s left key a window will pop up as Figure 27 shown Users can key in on keyboard or press the button by mouse Ramll D 5 27 Ren RAM Data Keyboard Key IN RAM Address Mouse Click RR ep K Der ETT VE Figure 24 2012 2013 HYCON Technology Corp APD HY13PIDE002 EN www hycontek com Page 28 HY13S00 HY13P IDE Software User Manual 3 3 Register Window H S G HLOAYData BIS E HLOH A ddress fel Bee HE1 D Address H S G HLOAYData fR ByteH JRegister INDFO POINCU PODECO PRINCO PLUSWU IHDFI PLUSW l WEEG BSECH TMAE ADIH ADIM OL i DU UU UU LC D2 ET LCD4 LEDS LODE LOD UU UU UU UU UU UU LEDI LEDIZ LCD13 LCDl4 LCDIS5 DU DU DU DU DU 1491011 PEP Por TBLPTE TBLD HE Word H EV BJ Register AH RPAGEI Register AR PAGE2 Register
14. Register Record If the register or SRAM has been revised manually after access to simulation window hardware emulation or software simulation the data will be recorded no matter RAM Register ADC OP and CMP was revised by which window The data will be revealed after pressing the button SRAM record At this time windows will suspend until it is closed to execute other commands fase Smee ik temme zsm IB RS SER ees Er SS 5m P e h snare d IN SRAM Register EP ELS IE MEHR zs oden o ee f ee EEE icin Bete Display SRAM amp Register Record FR ane BIB MIA E s v TRIER MA gu PC Display Save or Clear Status discontinue status Ea Figure 58 2012 2013 HYCON Technology Corp APD HY13PIDEO02 EN www hycontek com Page 44 HY13S00 HY13P IDE Software User Manual Msesas ax B a 4 o Ti SRAMARegister C EG SPLASM INTADC ASM SYSINLASM KEvsq ES 2842 L ast Data item piia call eewrite 75e aemet 6h Gm mvt AL EAM HU 44h 54h Add in progra mvt eedatemj mvl alh call eewrite mvt ADAZH W mvt eedatemj mwl 22h call eewrite inf KeyCnt I jmp ADCCAL PC stop adaress ADCShowValue call GetADC call ShowAapc Clear Record Status Continue jmp ADCCAL ADCUWShow mwl OFh mvt dsp 5 F ACCE myl zh call eewri
15. and the content is empty a message will appear as Figure 82 Ie UB SBM Blank OK Figure 82 If the IC selection is incorrect or the content is not empty a message will show up as Figure 83 Figure 83 4 3 2 Program Dra The icon of Program is The purpose of programming is to write Compiler accomplished program into IC OTP When programming is completed and the IC is assembled as finished goods programmer can operate the program as user commanded Program the downloaded or assembly finished Hex file displayed at the bottom of the column in the selected IC and verify the correctness of the programming content please refer to Chapter 4 2 1 or 4 2 2 for programming procedures If the selected IC is correct and the programming succeeds message will appear at the information column as Figure 84 illustrated If Enable Program Times is ticked up the enable program times will minus 1 and the program times left will be revealed in the message column 2012 2013 HYCON Technology Corp APD HY13PIDE002 EN www hycontek com Page 58 HY13S00 HY13P IDE Software User Manual HYGON Program SBM OK Verify Chip OK Verity SBM OK TET Program Times Left 399 lt i ge SO E E Enable Program Times Figure 84 If the IC selection is incorrect or the programming fails a message will show up as Figure 85 Figure 85 4 3 3 Verify D The icon of Verify is m The purpose to verify program
16. as shown in Figure 62 e If the argument is INDFO POINCO PODECO PRINCO INDF1 POINC1 PODEC1 and PRINC1 the Data will be FSRO or the address Data of FSR1 as Figure 63 described e lf the argument is PLUSWO or PLUSW1 the Data is FSRO WREG or the address Data of FSR1 WREG as illustrated in Figure 64 Data LEI L UAE mwl mv T T EE mwl 13h mek AE mvt OFSh F ACCE mvl ih S EHR Figure 60 HE Byte Ep f lill LOL mail Ly Poy ALL LJ U i Mainloop Mainloop btaz OU OCH UCD ACCE btaz bas z RLCDG btas U SCN SYSOP ACCE htss SVSCH SVSOP ACCE bet RLCDG b lbat ACCE Figure 61 2012 2013 HYCON Technology Corp APD HY13PIDE002 EN www hycontek com Page 46 HY13S00 HYGON HY13P IDE Software User Manual AL ENEE Show first parameter Show second parameter bsf INDFO 4 ACC bat INDF 4 ACCE AG 10 80h a AS 10 80h mtt RAMFPout l1 R amp DCF amp t l mett RAMP Gtl ADCFat1 MainLoop Mainloop htsz SVSCN SVSOP ACCR J Lus ln Figure 62 Name FSRO address Data htsz HVC SVSoBP RACCE Te oo we TT SAT 1 T 1 2 ska A SATA Figure 63 Name FSRO WREG address Data Figure 64 2012 2013 HYCON Technology Corp APD HY13PIDEO02 EN www hycontek com Page 47 HY13S00 4 Programming Windows 4 1 Interface Setup Click Options
17. demo code Chapter 1 6 gives illustration of demo code usage Users can refer to following program structure to start writing program Basic structure description is listed as below e Program Name Definition as ASM e Register Name or RAM Definition as INC There are many program m Mam zem Initial asm Interrupt asm Sub asm Man mc HO mc e Mam aem structure Program name can be any name ORG OOH Declare program start JMP BEGIN Jump to main program ORG 04H Declare interrupt flag address Include Interrupt asm Use Interrupt asm interrupt vice program Max 100include file BEGIN Main program start Label name definition can be any word Include X Initial asm Use Initial asm hardware initial vice program JMP T1 Jump to T1 vice program Ti NOP Include Sub asm Use Sub asm vice program Include 13P inc HY 13P series special register name address definition Include Main inc HAM name address definition END End program Reference Document IP User Manual Instruction Set User Manual HOGA Instruction Set Manual or HO8B Instruction Set Manual Hycon IDE Complier User Manual HY MCU COMPILER 2012 2013 HYCON Technology Corp APD HY13PIDE002 EN www hycontek com Page 20 HY13S00 2 1 9 Self defined Instruction 1 ML ae il HY13P IDE includes user self defined instruction function This function provides user to self define HY13P series instruction as their
18. familiar MCU instructions Usage Description All self defined instruction function is installed under Inst txt file It is separated into two rows The first instruction first row of every row is HYCON origin instruction name users cannot make amendment to it The second instruction second row is User self defined instruction name First and second instruction can only be separated by space multi space or Tab Second instruction can be followed by semicolon as remark Second instruction name can be the same as the first one The name of second instruction cannot be defined as any of HYCON origin instruction name except the instruction in the same row Otherwise it is deemed as invalid and will adopt the origin instruction name to compile program After users self define the second instruction name the first or second instruction name can be used when program compiling Every row can only has one self defined instruction name any repeated instruction name will be deemed as invalid Example JMP JUMP JMM JPP JU Xwrong definition Repeated defined instruction or self define instruction will be deemed as invalid Example JMP JUMP JMP JPP X Instruction name redefine JUMP is invalid instruction at this point only JPP is valid JPP JU Cannot use self define name to redefine JMP JN x Cannot define as HYCON existing instruction name Correct definition is JMP JUMP 2012 2013 HYCON Technology Corp APD HY13PIDE
19. preventing it from over programming on the production line After ticking up Enable Program Times key in the program times in the column below Input Program Times maximum is 99999999 minimum is 1 This argument will be written into EEPROM of the programmer after the compiler programmed file is downloaded to Flash Memory Afterwards the enabled program times will reduce 1 each time when programming completed If the value reduced to 0 the programming action may not be executed At this time an error signal Red LED will be lighted up but Blank Check still operates normally 5 Troubleshooting 5 1 HYCON IDE Execution Problem i ei Access violation at address OO4ABF79 in module HyIDE exe Read Poof address 000002F8 The problem might be happened under Microsoft Vista or Windows 7 system environment To avoid the problem the limit of authority for HYCON IDE execution has to be set as system administrator to execute HYCON IDE by administrator status JM HyconIDE V2 00 FZ Windows XP Service Pack 3 IRAE O 256 EXE FEAT EFE 640 x 480 SBP PAT FA BR X RS PAS mee eee TrEs DPI SR SPARS eee acu iur ses Il xh Spo 2012 2013 HYCON Technology Corp APD HY13PIDE002 EN www hycontek com Page 66 HY13S00 HY13P IDE Software User Manual 6 Revision History Major differences are stated thereinafter Version Page Revision Summary V01 ALL F
20. 002 EN www hycontek com Page 21 HY13S00 3 HY13P IDE Debug Interface It can be classified into hardware debug and software debug e Hardware debug The indication column is blue e Software debug The indication column is green T HyconIDE WHER Chip Hycon 11P13 4K ICE Inteface USB Project SS KA SIL HARE AFAT E OR RE KAMER Kirs ora sel er mg tm PW gt DD EAE 6 K 77 org 0000h ProReset nop i 28 SA Ri T jmp ProBegin jmp 0 2 org 0004h SPICNT gt 2 X E k Include Interrupt asm SPICNT Ti 25 SCS PIN FRI S0 of H lt Sie 2 9k 4K Total Code Line 2919 08 B2 04 46 00 00 40 00 FF 00 00 71 SF 7F 0 0 M 92 0 TT 1F 00 00 07 02 00 00 60h 0 M 60 0 30 00 TUURA OX ZU WATCH BIX INDO MUFF J 4A Name J ddr Hex H I BinRefered Symbol Reserve Lengh Ty IND1 M 073 00 WREG 20 Cycle 00000042 WRT 030 FO 11110000 0 02 CBR INDFO POINCO PODECO PLUSWI WREG BSRCN 20 00 PWMR SSPBUF LCDO PRINCO PLUSWO INDFl POINC PODEC PRINCI ADCRH ADCRM ADCRL TMAR PRC TMCR 00 00 00 00 FF 00 LCD LCD LCD3 LCD4 LCDS LCD6 21 4A 4 08 76 04 00 02 40 LCD LCD8 LCD9 87 AS 04 j ICE Connect Checksum 0x8D68 c Program Files HyIDE HyconIDE DemoCode HKitchenScale KitchForllPl3 asm APD HY13PIDE002 EN 2012 2013 HYCON Technology Corp Page 22 www hycontek com HY13500 HNOLOGY 3 1 Fast Execution ES no Q mm Tub 0 PE a
21. 27 Modify Indirect address Data e Modify WREG Data WEEG 02 Cycle OO06 Berrie IDECO PRINCO Mouse Click Figure 28 e Modify single 1byte or Word Register Data Byte INDFO POINCO PODECO PRINCO PLUSWO INDFl POINC PODECI PRINCI PLUSWI WREG BSRCN TMAR ADIH ADIM ADIL LCDO LODI NII UD l UU UU 00 00 00 00 Double click the mouse s left ke a input interface will show up PE all PROD HERR WEE TRIE a FEFF 207E FFFF BIE 02 BIE 03 BIE 04 BEOS PFFF A FFFF v FSRO FSRI TOS oooo 0000 0000 TBICO TBICl TBIC2 FFFF FFFF FFFF _ PAGE PAGE SECH SEFL SKUN INTEO GIE Click Zone SKPRT2 SKPRT1 SKPRTO TBHE TMAIE ELE EOIE Figure 29 Modify Register single 1 byte or single 1 bit After configuring Bit as 1 it will be highlighted in white blue digit After configuring Bit as 0 it will be marked in black digit 2012 2013 HYCON Technology Corp APD HY13PIDE002 EN www hycontek com Page 30 HNOLOGY HY13S00 _ PAGE PAGE PAGE PAGE4 SECH SKFL SEUN SKOV SKPRT2 SKPRTI SEPRTO IHTEO GIE MCOIE WDTIE TBIIE TMAIE ENE EOE INTE ADIE MCOIF WDTIF THIF TMAIF ELIF EOIF IHTF ADIIF MST AT C DC H oy Z TO IDL RST SEERR MG VPPHY BIELY BIEWR EH SlEIR pe a 4 oe d E e SIE Double click mouse left key Number input window shows up BIEAH3 BIEAH 3 VDDAXlI VDDAXO EHREFO44 DESI DH
22. AID Delete All Watches Hide Addr Load Properties save Properties As Clear All Properties 2012 2013 HYCON Technology Corp APD HY13PIDE002 EN www hycontek com Page 32 HY13S00 e Monitor EQU defined Register or RAM click right key of the mouse and select the register or RAM to be monitored as shown in Figure 33 TH Hy ADDWCH Add Delete Watches Edit Watch Delete Watch AID Delete AN Watches Hide Addr Load Properties save Properties As Clear Al Properties Figure 33 2012 2013 HYCON Technology Corp APD HY13PIDEO02 EN www hycontek com Page 33 HY13S00 HY13P IDE Software User Manual H CON HYGON TECHNOLOGY 3 5 Stack Window View AssemblekRun room Edit AI Source Al Hex Alte3 Watch Alta Static RAM An Special Register Alt46 Sick Aa ADC Panel AIS OP Panel Next File AlttRight Previous File AlttLeft Figure 34 t Display stack layers Display stack address Figure 35 2012 2013 HYCON Technology Corp APD HY13PIDEO02 EN www hycontek com Page 34 HY13S00 HY13P IDE Software User Manual 3 6 ADC Window Click ADC Panel ID DAS EAR Serie ES i812 zii Es REE Watch PETRIE TEPEEPIPSS ite ADIS Z UBE an asi G TRIER 3 Ries TH ADCIForm PGA Network VRH Network e IN1P Network Alttl Alt 2 Alt 3 Alt 4 Alt 5 Alt 6 Alte AlttRight AlttLeft V ADCIForm ENLDO VDDA 00
23. FA 7806 6601 DOOF FOF9 D010 FOFS 008 BC26 7952 8C26 DO3B FOD4 DOZA FOD5 AAD2 789A 64D4 18AF 66A9 64D5 1CB0 gt Figure 88 2012 2013 HYCON Technology Corp APD HY13PIDEO02 EN www hycontek com Page 60 HY13S00 HY13P IDE Software User Manual HYGON 4 3 5 AUTO The icon of Auto is C Auto integrates Blank Check Program and Verify function If user selects Auto it will first check whether the IC is blank then to program and verify After the execution succeeded a message will be displayed as Figure 89 displayed If the option Enable Program Times is ticked up the program permitted times will reduce 1 and the program times left will be shown in the message column SBM Blank OK Program Chip OK Program SBM OK Verify Chip OK Verify SBM OK Program Times Left 999 Figure 89 If any function fails the whole process will stop and display an error message in the message column 2012 2013 HYCON Technology Corp APD HY13PIDEO02 EN Page 61 www hycontek com HY13S00 4 4 Offline Programming 4 4 1 Programming Description As the development process evolves to engineering trial production the programmer can be used alone It is not necessary to connect programmer to PC qe Ground U20 J14 JP3 ICESDO D ICESDI SD ICEC 9 VDD D ICESCK vss HY13P ICE USB Control Board D11 D10 D9 e 0
24. HYGON si RAK HY13S00 HY13P IDE Software User Manual APD HY13PIDE002_EN HY13S00 HY13P IDE Software User Manual 1 1 INTRODUCTION 1 2 HY13P IDE INSTALLATION AND SYSTEM REQUIREMENT 1 3 INSTALL AND REMOVE YS UR OV ERE P 1 4 REGISTRATION 1 5 DEMO CODE DESCRIPTION 1 6 DEMO CODE OPERATION 2 HY13P IDE INTERFACE DESCRIPTION 2 1 HY13P IDE EDIT INTERFACE 2 1 1Edit Window eee TE EE 2 1 4View 2 1 5 Assemble and Run 2 1 6 Interface Setup 2 1 7 Windows 2 1 8 Program Structure 2 1 9 Self defined Instruction 3 HY13P IDE DEBUG INTERFACE 3 1 FAST EXECUTION 3 2 RAM WINDOW 3 3 REGISTER WINDOW 3 4 WATCH WINDOW 3 5 STACK WINDOW 3 6 ADC WINDOW 3 7 COMPARATOR WINDOW 3 8 REGISTER RECORD 3 9 HINT FUNCTION OF SOURCE CODE WINDOW 4 PROGRAMMING WINDOWS 4 1 INTERFACE SETUP 4 2 OPERATION PROCEDURES 4 2 1 Open File and Assembly 4 2 2 Download HEX File 4 3 PC ONLINE OTP PROGRAMMING 2012 2013 HYCON Technology Corp www hycontek com Table of Contents APD HY13PIDEO02 EN Page 2 HY13S00 A HY13P IDE Software User Manual HYCON ETH AST BONK CNCC m m 58 c KA Progi a ec eee A ste eee 22 ete Siete ete ee ee EE EEE 58 RE TE 59 2 34 e HEHEHE 59 LESE AUTO TTT 61 4 4 OFFLINE PROGRAMMING sexs sss ss ece sese seene ennenen eenn enen 62 41 4 1 Programming RE e dn BE 62 4 4 2 Program Times Hes ole 66 5 TROUBLESHOOTING sss ss sss sse e eenn DD 5 1 HYCON
25. IDE EXECUTION PROBLEM ee eee rennen nnne enen eenn 66 6 REVISION HISTORY s sss sss sve s enesenn ennenen eenn ennenen ennenen eenn 67 2012 2013 HYCON Technology Com ABD HY 3PIDEQ02 EN www hycontek com Page 3 HY13S00 Attention 1 HYCON Technology Corp reserves the right to change the content of this datasheet without further notice For most up to date information please constantly visit our website http www hycontek com 2 HYCON Technology Corp is not responsible for problems caused by figures or application circuits narrated herein whose related industrial properties belong to third parties 3 Specifications of any HYCON Technology Corp products detailed or contained herein stipulate the performance characteristics and functions of the specified products in the independent state We does not guarantee of the performance characteristics and functions of the specified products as placed in the customer s products or equipment Constant and sufficient verification and evaluation is highly advised 4 Please note the operating conditions of input voltage output voltage and load current and ensure the IC internal power consumption does not exceed that of package tolerance HYCON Technology Corp assumes no responsibility for equipment failures that resulted from using products at values that exceed even momentarily rated values listed in products specifications of HYCON products specified
26. MAIN 13p56 hex Body on board Checksum Ox7BF4 Figure 79 OTP not connected a a C Documents and Settings YC Cho SEIB AHYl13S8 Tool HY13P56 HY13P56 SPI Special MAIN 13p56 hex BES Checksum 0x7BF4 Figure 80 Make sure the selected programming IC part number is the same with the OTP part number in the topic window as Figure 65 described When programmer executes Blank Check Programming and Verify commands program will check whether the IC part number and OTP programming part number are identical If the part number is different the data will not be written into OTP and an error message will be displayed in information column as Figure 78 described If users intend to find out whether the part number is correct before programming point the cursor to IC APD HY13PIDE002 EN 2012 2013 HYCON Technology Corp Page 57 www hycontek com HY13S00 Connection Status Display and click the mouse left key If the selected IC is correct a message will show up as Figure 79 If it is incorrect the message will be displayed as Figure 83 If Enable Program Times has been marked up the spare program times will display in the message column as Figure 81 illustrated Figure 81 4 3 1 Blank Check Ce Blank Check icon is The internal code of Blank ICs that have yet been programmed is OxFFFF The purpose of checking the IC is to make sure the OTP address content is OXFFFF If the IC selection is correct
27. U org 0004h Include Interrupt asm naNO Click Mouse Right Key ProBegin Set Program Main File include Sys ni asm file KitchForl 1P12 asm file Main ine myl OEOh mvf SPIINDEXL F ACCE SE Set Bookmark Goto Bookmark myl 13h 88 5 BS Close file Cte F4 mvf OF5h F ACCE Set Main File mv lh SHE 4 4 T A aT 1 1 Modified Figure 72 Assembles Source Code and download the file to programmer or IDE Flash Memory as Figure 73 illustrated Assemble and nee H MH rs Download to RS Gi em MA HEAT dB E AH eines EC O a3 mR a m h 4 ty Dw Dn 2012 2013 HYCON Technology Corp APD HY13PIDE002 _EN www hycontek com Page 54 HY13S00 HY13P IDE Software User Manual 73 Mon Message HYGON HNOLOGY SIN HAO Calibration Function ON SA LPO Calibration Function ON Flash had been protected read only Programmer ID 80000400 Program had been protected C Program Files HyIDE HyconIDE DemoCode KitchenScale KitchForl11P13 hex Download OK Program Times Download OK Program Times Function Enable Program Times 1000 lt Figure 74 1 When using USB interface the program code will be loaded into programmer or Flash Memory of IDE for mass production programming 2 If there is enabled program times in the assembly option information column will d
28. When ENVDDA 1 the zone display VDDX select voltage e PGA Network Click mouse left key window like Figure 44 will show up users can select to the network I PGAGN 1 0 00 zig S 11 r Figure 44 e VRH Network 1 Click mouse left key to the network name VRH to select the network 2 Click mouse left key to the network switch VRH to select the network 2012 2013 HYCON Technology Corp APD HY13PIDE002 EN www hycontek com Page 37 HY13500 HNOLOGY 3 Click mouse left key window likeFigure 45 will show up users can select to the switch network Leuna 00 i 10 11 Figure 45 e VRL Network 1 Click mouse left key to the network name VRL to select the network 2 Click mouse left key to the network switch VRL to select the network 3 Click mouse left key window likeFigure 45 will show up users can select to the switch network Lv 0 H U 1 U Figure 46 e DC Offset Network Click mouse left key window likeFigure 45 will show up users can select to the network Figure 47 e ADGN Network Click mouse left key window likeFigure 45 will show up users can select to the network Figure 48 e VRIGN Click mouse left key to the network name VR1GN to select the network e OSR Network Click mouse left key window likeFigure 45 will show up users can select to the network 2012 2013 HYCON Technology Corp www hycontek com APD HY13PIDE002 EN Page 38 HY13S00
29. ZEHZRPAGE3 Register Register byte Register bit o000 o000 o000 1IFDF FFF TEICO TBICI TB1C2 BIE D0 BIE 01 FFFF FFFF FFFF FFFF FFFF p SEOV S INTEO MCOIE WDTIE TEHE INTE ADIIE MCOIF WDTIF TBIIF i E ADIIF PPHY E 2 BIEAH3 ALO EHLDOO YODDA VDDAX EHREFO OSCSI OSCS LH51 DH50 DM 2 LOPS LCPsO DADC DADLCO DTMHEI ETSI ATI HAOMI agger gms AAA ese isis D ee ej SEE HAOTES HAOTR4 HACTES Figure 25 e Modify Indirect Data or Address FOIHCI PODECI ADIL LODO UU UU LC DS LEDI UU UU BIEAR SUT FFFF BIE 03 BIE 04 FFFF SEPERTZ2 TMAIE ELIE TMAIF ELF N OY SEERE MCO BIELV BIEWE BIEAHZ BIEAHI ADIRST DM51 DMSO LTMEO TIMES HAOMO ENHAO HAOTRE2 H OTEI HYGON Cycle Times PRINCI LCD BIERD BIEAHU CSFON CUPS LPO HAOTR HNOLOGY gt x As Figure 269 configures using keyboard to Key IN or using cursor to click data the Address can be modified Revise indirect address VA 11P13Special Register click the left key j of the mouse Figure 26 Clear Cancel As shown in Figure 27 using Key IN of the keyboard or using cursor to click data the Data can be modified 2012 2013 HYCON Technology Corp www hycontek com APD HY13PIDEO02 EN Page 29 HY13500 HNOLOGY SCHEI E e ati Bey FEREDE MINDFO POINCO PODE Mouse Click Figure
30. bration e X Enable S W Calibration Enable software LPO deviation calibration function Deviation stores at RAM OFFH address Input HAO or Input LPO Frequency value to be calibrated Permissible Error Permissible range of frequency value after calibrated and to be calibrated Software calibration will be described in below e HAO Software Calibration Frequency deviation value was stored at RAM OFEH Deviation will be written to RAM when IC Power on This action is not actual frequency calibration source HAO Hardware Calibration and HAO Software Calibration can be co existed Executing Hardware Calibration first then to calculate Software Calibration HAO deviation basic frequency is defined as 4000HZ LSB Data format of OFEH address Bit 0 1 Bit6 BitO represents frequency differences e 01H represents frequency difference is 4000HZ while FFH represnets 4000HZ Example HAO is about to calibrate 2000000HZ frequency and the actual IC HAO 1920000HZ Then 1920000 2000000 4000 80000 4000 20 Thus the RAM OFEH data is 1110 1100b 2012 2013 HYCON Technology Corp APD HY13PIDE002 EN www hycontek com Page 51 HY13S00 HY13P IDE Software User Manual Example HYGON HNOLOGY HAO is about to calibrate 2000000HZ frequency and the actual IC HAO 2008000HZ Then 2008000 2000000 4000 8000 4000 2 Thus the RAM OFEH data is 0000 0010b e LPO Software Calibration The calculated frequency deviat
31. ce Setup Build Options Int setup ICE Test Register OSC Calibration Chip Select 13P56 AK Language English vi Hardware Interface Interface Made USE IDE Mode e emulate and Debug Programmer Program Memory Select HAM 62256 N Figure 14 B Chip Select Select IC part no Compiler will assemble the selected part no s program file It will determine whether there is any misuse or non existing Register or SRAM or has the program exceeded the ROM Size Language option English and Chinese interface are selectable Communication interface option Select IDE communication interface Mode option Two choices Emulate and debug and programmer 2012 2013 HYCON Technology Corp APD HY13PIDEO02 EN www hycontek com Page 16 HY13S00 e Build Option Jt Interface Setup PE Ed Interface Setup Build Options Int Setup ICE Test Register OSC Calibration Generate Files Iv Enable Tool Bar w Hey file Font obi file No Use Area Fill List file f UU aw WOT Reset Vector root amb eu func settings e f Blank OM f Blank OFF ACM Voltage c le Smart Compiler Optimization Program Protect stack Option Compiler Select Iw Stack Over resel e default Stack aver STOP L Input Program Times Enable Program Times Close Figure 15 B Assembler generated extension it is selectable to produce below file formats 1 Binary file Hex 2 Obj file obj 3 List file I
32. ew AssembleRr New UN LCN pen 1 lu save fa ltz nave As save All lose File Close All Open Project save Project Read From Flash Memory Rat Cabe Figure 10 Open Project gt Project includes IC No IDE interface main program file name current status and checksum The project status will be loaded once this function is activated 2 1 3 Edit IEEE search View Assemble Inda z Chez Cute Colt Copy Calo Faste 07 LR Y select Al Figure 11 2 1 4View E AssemblessEun Edit Al Next File AlttRight Previous File Alt Left Figure 12 2012 2013 HYCON Technology Corp APD HY13PIDEO02 EN www hycontek com Page 14 HY13S00 2 1 5 Assemble and Run Asser bleak un Options Winda AssembleAEun Simulation i F4 Assembhle Chr FIU set Mam File met Mode d Figure 13 Assemble amp Run Emulation gt Assemble Source Code and execute debug mode Assemble gt Only executing assemble not debugging Error message will show up when the lines is error It is usually used in generating OBJ Code Object e Set Main File gt Set the file as assembly main file Files will be named after compiler generated file name such as Hex MAP ASC etc e Set Mode Debug mode gt Debug through software or hardware is selective 2 1 6 Interface Setup e Interface Setup 2012 2013 HYCON Technology Corp APD HY13PIDE002 EN www hycontek com Page 15 HY13S00 DE Interface Setup Interfa
33. g completed click OSC Calibration to software hardware frequency calibration e Notice of using this function B f software HAO LPO calibration programming is activated RAM OFEH OFFH address data will be meaningful after powering up the IC B X Single site programming time will increase about 500msec software LPO calibration programming is enabled B Software HAO LPO calibration function is not actual calibration frequency only providing frequency deviation for calculation B Online programming only support hardware calibration HAO not software calibration function 2012 2013 HYCON Technology Corp APD HY13PIDE002 EN www hycontek com Page 50 HY13S00 TH Interface Setup m 6 E Interface Setup Build Options Int Setup ICE Test Register OSC Calibration HAO Hardware HAO Software Calibrations HAD Calibration Calibrations Permissible Error The allowed The HAO Frequency y tolerances value was set for Calibration RANGE 1500000 2050000 Hz LFO Software LPO Calibration Calibrations a Input LPO value was set for RANGE 22000 35000 Hz Calibration The LPO Frequency Figure 68 HAO Calibration e Enable H W Calibration Enable hardware HAO calibration function actually calibrates system frequency Hardware calibration function must be confirmed after choosing IC part no e X Enable S W Calibration Enable software HAO deviation calibration function Deviation stores at RAM OFEH address LPO Cali
34. herein 5 Notwithstanding this product has built in ESD protection circuit please do not exert excessive static electricity to protection circuit 6 Products specified or contained herein cannot be employed in applications which require extremely high levels of reliability such as device or equipment affecting the human body health medical equipments security systems or any apparatus installed in aircrafts and other vehicles 7 Despite the fact that HYCON Technology Corp endeavors to enhance product quality as well as reliability in every possible way failure or malfunction of semiconductor products may happen Hence users are strongly recommended to comply with safety design including redundancy and fire precaution equipments to prevent any accidents and fires that may follow 8 Use of the information described herein for other purposes and or reproduction or copying without the permission of HYCON Technology Corp is strictly prohibited 2012 2013 HYCON Technology Corp APD HY13PIDE002 EN www hycontek com Page 4 HY13S00 1 HY13P IDE Overview 1 1 Introduction To facilitate the product development process HYCON IDE platform is provided to develop the full range of HYCON MCUs Customers can implement in circuit emulation of the end products on this platform and program the code onto OTP products of HY13P series 1 2 HY13P IDE Installation and System Requirement Minimum requirements for operating HY13P IDE e PC Hardwa
35. ion stores at RAM OFFH address and will be written to RAM after IC Power on This action is not actual calibration frequency source LPO deviation basic frequency is defined as 64HZ LSB OFFH address data format e Bit7 0 1 Bit6 BIitO represents frequency differences e 01H represents frequency value as 64HZ FFH represents frequency value as 64HZ Example LPO is about to calibrate 28000HZ frequency and the actual IC LPO 28128HZ Then 28128 28000 64 128 64 2 Thus RAM OFFH data is 0000 0010b Example1 LPOs about to calibrate 28000HZ frequency and the actual IC LPO 27872HZ Then 27872 28000 64 128 64 2 Thus RAM OFFH data is 1111 1110b After the completion of interface setup click close All configured parameters will be recorded and reloaded automatically when initiated next time Title window will show the defaulted programming IC part no as shown in Figure 69 2012 2013 HYCON Technology Corp HH HYIDE HID T CAU Chip HY 13P56 4K ICE Inteface USB Project fas ike Si AAG isis IB AB RSD bh Show chip no to be programmed Figure 69 www hycontek com APD HY13PIDE002 EN Page 52 HY13500 HNOLOGY 4 2 Operation Procedures UN HYIDE Mode Edit 72 80 Chip HY 11P13 4E ICE Inteface USB Project ZH Edit Search View i Programmer Options Windows Revision History Open Compiler m ny Dmm Main File en o pb og c xw O
36. irst Edition 2012 2013 HYCON Technology Corp www hycontek com HYGON HNOLOGY APD HY13PIDEO02 EN Page 67
37. isplay the programming times as shown in Figure 74 3 After assembling completed Hex filename and Checksum will be displayed in underneath section as Figure 75 illustrated Loading Hex file name Chip Connection TZ nuvp lt C Documents and SettinqsVYC ChoXI AiHYl138 Tool HY13P56 HY13P56 SPI_Special MAIN l3p56 hex Status Hex Checksum gt Body on board Checksum Ox 7BF4 Figure 75 2012 2013 HYCON Technology Corp www hycontek com APD HY13PIDEO02 EN Page 55 HY13S00 4 2 2 Download HEX File To download Hex File please use HY 13P Hex Loader software and operate according to the user manual HY Hex Loader Software User Manual 2012 2013 HYCON Technology Corp APD HY13PIDE002 EN www hycontek com Page 56 HY13500 4 3 PC Online OTP Programming fase ika Ek KAHE dis SIS ME ke s i E L i gt 3 L 3 Mi i Show Blank Dag E t Code Check Assemble Verify Read Auto o Figure 76 EN GER Gs DB HE D Cy Dg pa Figure 77 Blank Check Programming Verify and Read Commands can be implemented when the programmed file being successfully loaded into programmer or IDE Flash Memory On the contrary those commands will not be activated if the download failed OTP on Bt s MVP e lt gt C Documents and ettings YC Cho SE E HY13S Tool HY13P56 HY13P56 SPI_Special
38. it cannot be revised directly the displayed value is not referable If revise is required please refer to Chapter 3 3 Revise indirect addressing Data or Address e Function Display Click the mouse selection key right key set Mark set Markinew color Rest Mark Reset All Mark set Hint Reset Hint Reset All Hint Load RAM Data nave RAM Data save To excel RAMBANED RAMBANEI RAMBANEZ Figure 22 m Set Mark m Set Mark new color R Reset Mark 2012 2013 HYCON Technology Corp APD HY13PIDEO02 EN www hycontek com Page 26 HY13500 HNOLOGY Reset All Mark Set Hint Reset Hint Reset All Hint Load RAM Data Save RAM Data Save To excel RAMBANKO e Hint Use DS defined SRAM Hint will be automatically generated in corresponding window address When cursor point to the address it will show the defined string Ex Program definition SRAM MEMAR 080h MD1 DS 1 MD2 DS 1 MD3 DS 1 MDL1 DS 1 MDL2 DS 1 MDL3 DS 1 MD4 DS 5 S REG DS 1 r Len DS 1 SQRTmp DS 4 Temp DS 16 After assembling it will enter into debug status displaying memory window When cursor points to 80h address lt 80 gt MD1 will be shown When cursor points to 86h address lt 86 gt MD4 0 will show up When cursor points to 87h address lt 87 gt MD4 1 will show up KN Data Memory le lsle elese elese l lop go 00 00 nn oO EE lt r i oo oo op Di oo Bon oo oo oo oo nn 00 oo 00 oo oo 00 oo Ei 00 oo Big oo 00 M rr id FF
39. k com Page 40 HY13S00 HY13P IDE Software User Manual HYGON Figure 52 e MCRPS Network 1 Click mouse left key to the network name MCRPS to select the network 2 Click mouse left key to the network switch MCRPS to select the network 3 Click mouse left key window like Figure 53 shows up then user can select the switch network E MCReS 1 0 00 BEE aza min zo WDA Figure o3 e MCOHS Network 1 Click mouse left key to the network name MCOHS to select the network 2 Click mouse left key to the network switch MCOHS to select the network 3 Click mouse left key window like Figure 54 shows up then user can select the switch network MCOHS i ay aoe Figure 54 e MCRS Network 1 Click mouse left key to the network name MCRS to select the network 2 Click mouse left key to the network switch MCRS to select the network 3 Click mouse left key window like Figure 55 shows up then user can select the switch network 2012 2013 HYCON Technology Corp APD HY13PIDE002 EN www hycontek com Page 41 HY13S00 ICES 3 0 0000 kuul 0000 a Figure 55 e MCNS Network 1 Click mouse left key to the network name MCNS to select the network 2 Click mouse left key to the network switch MCNS to select the network 3 Click mouse left key window like Figure 56 shows up then user can select the switch network Figure 56 MCPS Network 1 Click mouse left key to the net
40. l Clear LCD Figure 22 OCBB code 882B 5229 cooo FASA 6420 B SB 641F 6655 6656 6557 6658 6659 CBDZ 6EA7 7FFD 369B 7FE4 cooo F9AB cooo F7D1 cooo FAOE O6F8 66B7 86A8 JOEE 0600 66CD to m instruction BCF 2Bh 4 RREC 29h 1 CALL Oh 0 NOPF A3Ah MVE 20h 0 BTSS 9Bh 0 MWE lFh U MVE 55h Ee MVE 56h 1 MVE Sih i MVE 58h Le MVFE B89h 1 RCALL 3D2h TFSZ A 7h U RJ 7FDh DCS Z 9Bh 1 RJ 7E4h CALL Oh 0 NOPF gABGh CALL Oh O NOPF 7Dih CALL Oh O NOPF AUE h MVL F8h MVF B7h 1 BCF ABh 3 BSF EEh lU MYL Oh MVF CEDAR Xa CLRFE BS8h U m m Kach m e CO OO OO OCH e HYG N M ZB 0 M 29 20 M Z0 7B M 9B 0 M 1F 7F M 55 7A M 56 3E M 57 71 M 58 5F M 59 7F M A7 0 M 9B 0 M B7 M A8 3C M EE 0 M CD 0 M B8 HNOL APD HY13PIDE002 EN Page 25 HY13S00 3 2 RAM Window KN Data Memory Figure 21 B After opening RAM window Bank will show the volume of the selected IC Every Bank has 256 byte Gank starts from 0x00 to OxFF Bank1 starts from 0x100 to Ox1FF etc If the address does not exist it will display If users intend to switch Bank display use cursor to point to the desired Bank zone and then click the left key of the mouse to confirm If Hint is set the address will display numbers and will be underlined Notice The Address 0x00 OxOEof Bank is indirect addressing register
41. mber HyIDE Machine Number OO00036A DO00036A Register Number Register Number mg deng 0000 Write Write re Figure 3 5 Ifthe process is successful a dialog will be shown as follows Information Figure 4 2012 2013 HYCON Technology Corp APD HY13PIDEO02 EN www hycontek com Page 8 HY13S00 6 Ifthe process failed a dialog will be shown as Figure 6 C The ICE has wet been registered please fill in the register application form on HYCON website to obtain the register code info tml Hp www hcontek com e page5 1 h Figure 5 7 Once the register is succeeded Customers do not have to worry that other numbers may be written into the Register Number 2012 2013 HYCON Technology Corp APD HY13PIDEO02 EN www hycontek com Page 9 HY13500 HNOLOGY 1 5 Demo Code Description e Starting C Program Files HyIDE HY13PIDE DemoCode e Set the file as assembly main file e Assembly starts and proceeds program debug File Edit Search View EaD O KitchenScale 4 ADC asm y J ADCCAL aen SATE ClDiplsyasm LIA DC asm S Interruptasm Select kitchFor11P13 asm SIBI L Eeyscan asm Open Demo Codi IX ooo ENDE MIL Open CILCDINDX asm HSC L MainPro asm ar Math asm Open Project tr Cla ASM HAJEN SPL asm EE E ness Open Demo Code a ChSyslni asm Read From Flash Memory ip Osean Beat di 9 NT KitchForl 1PF13 asm AO Ti Sc ER AUTO asm Figure 6
42. ming IC is to compare if the program written into IC OTP equals to the program downloaded to programmer or IDE Flash Memory Verify programming IC content consistency with the downloaded or assembled Hex file displayed at the bottom of the column If the IC is protected by program this verification is ineffective or the comparison failed If IC selection and program verification is success a message will appear as Figure 86 Figure 86 f IC selection is incorrect or the program verification miscarries a message will pop up as Figure 87 Verify Chip Fail Figure 87 4 3 4 Read 55 The icon of Read is The purpose to read the IC is to verify the consistency of OTP Checksum and programmed Hex file To read IC content the procedures are illustrated as Figure 88 Its content will reveal at Display Code window 2012 2013 HYCON Technology Corp APD HY13PIDEO02 EN www hycontek com Page 59 HY13S00 fase Bp Sth mme diz SIS Ge AREER 3 7 i L Ds Be Da t Show OTP Code Tansan Aaaa o 1i gt js Ja Je i 1000 0000 79E2 0000 0000 DOOF FOFF D010 l 001 0011 982E 1700 1701 1702 1703 B226 1002 1835 6461 66FA 0681 CFA 7805 G64A3 003 6661 B427 TFFE 8427 6461 66F1 6475 OTP Chip is 13P56 Read Checksum 0x BF4 E 004 6661 3AA3 0600 18043 04E0 B82B 7802 005 6461 7FE4 0600 0C60 6661 TFF3 0601 Show OTP 006 6CFA 7803 6461 OCF9 7807 6461 66F9 Checksum 007 AE
43. o vice program 1P 3 Step over Not enter into Macro vice program 4 Skip Call T 5 Execute Free RUN 6 Pause llli 7 Continue DP 8 Program replace h 9 Back to edit mode bd Assemblea R un Options Wind Free RUN AN E E Step Over JA F5 S lep Over race n Trace m Lp Cnt at tepBack Stack Out U ER Program Reses Continue b Step GE H Program Rese FG i EditMode lt Ct F11 i Edit Mode GX set Break Point F2 Figure 20 e Two methods to set or remove interrupt 1 Use mouse to select interrupt place in program code window or machine code window press F2 button to set to remove interrupt 2 Use mouse to select interrupt place in program code window or machine code window double click the left key to set or remove interrupt 2012 2013 HYCON Technology Corp APD HY13PIDE002 EN www hycontek com Page 24 HY13S00 HY13P IDE Software User Manual Click mouse to set interval section 2012 2013 HYCON Technology Corp www hycontek com U Bub a 100 mvt Tm F ACCE mvt TENE US MES bcf Sene CET C WREG E ACH call LDISP mvt TBLDL W Af btss Temp 9 n mvt TBLDH W Af mvt m vf LCDZ F AC m vf LCD3 F ACl mvt LCD4 F ACH mvt LCD5 F ACl Sysini 3 call GetADC tfsz Tm ACCE jmp Sysini_3 dcsz Temp 9 F f jmp Sysini_2 call Delay1Oms call ReLoadADB cal
44. om main file points the mouse to the specific file and presses mouse right key Set this file as the assembly main file as shown in 2012 2013 HYCON Technology Corp APD HY13PIDEO02 EN www hycontek com Page 53 HY13500 HNOLOGY K Edit Miis KitchForl 1P13 asm SPICNT JE SISPIE TS E SPICNT 20 gt SPIBUFAYBit 7 1 38 SPIBUFAYBit 7 20 8 SPICNT 21 gt SPIBUF 83ERAM Address D I Low byte gt FSROL SPICNT 22 gt SPIBUF 385ERAM Address DI High byte gt FSROH SPICNT gt 2 gt SIT fRSERAM Address 738 SSF SPICNTA Hf EEE 255 CS PIN FH 1880 24 40451 SAR SPICNT org 0000h jmp ProBegin nop jmp U org OO004h Include Interrupt asm j C O lt Click Mouse Right Key ProBegin Set Program Main File include SysIni asm file KitchForl 1P13 asm file Mam mc myl OEQh mvf SPIINDEXL F ACCE ee EP myl 13h 542 15 Close file Ctl F4 mT OFSh F ACCE Set Main File mv lh j di Y A 747600 Set Bookmark Goto Bookmark ifl Modified Figure 2 d Edit Mainine KitchForl1P13 asm SPICNT JT ISPIRI SE gt SPICNT 20 gt SPIBUFAYBit 7 1 88 SPIBUFAYBit 7 20 S SPICNT 21 gt SPIBUF fHGERAM Address DI Low byte gt FSROL SPICNT 22 gt SPIBUF THGERAM Address DI High byte gt FSROH SPICNT gt 2 gt SIT 832RAM Address 1738 BITE SPICNTA AJIRA 255 BCS PIN 641480 24 210551 Se SPICNT org O000h jmp ProBegin nop jmp
45. pen Q Coho f Down Load Hex File t Open Project Programmer s J Save Project Flash Memore DownLosd To Flash Memory Read From Flash Memory Read Programmers Ext Flash Memory Only 1 far Writer Versian e Figure 70 Open Open the programmed source code main file Open Project Open the saved project Save Project gt Save the finished project 4 2 1 Open File and Assembly IX HyconIDE PRO Chip Hycon 13P56 AK ICE lateface USD Project RZ en Qut dmg MPAA QUA mE ue e e H XG a 8 MAIN 13556 ann Include 13P 1NC include Main inc SPICNT ERSP IKI Bt H SPICNT 0 gt SPIBUFMBit 7 1 B SPIBUFMIBin 7 0 W SPICNT 1 gt SPIBUF TEX RAM Address D Low byte FSROL SPICNT 2 gt SPIBUF FRAM Address ff High byte FSROH SPICNT 2 4 MERAM Address SETTIMANE SPICNTA ufi 255 MCS PIN 31440 1 OK GARR SPICNT org Ok myl 00100111b mal MCKCNI F ACCE jmp ProBegin hop jmp org 0004 Inclede nlerrept asm ProBegin include Gesin am MainLoop ilor ICE RAM Address 0x82 0x82 0x00 get ADCI data 0x82 0xFE get ADC2 data Modified ide of te 4525 byte main C Documents and Settings V YC Cho EID IY129 ToolVWETIOPECMIY129 6 SPI Special MAIN Ligt ara ICE Connect Check Ox70F4 Figure 71 Open source code main file and it will be displayed as the assembly file If the displayed name differs fr
46. po neu pooma com H TEA TER 1884 FHonlDE OL FRM TRE 1 S Fees RER rem AEGA OGA GAASE EAA ATENEO AD igna Dalia Analog bo Digtal com abad B Pi OTP Type MA HY DL BE G ayecement ERREUR pa Jm J c9 je HyeaalDE FAM l ita Shell Wirard Readme information Piense read tha bolsang readma information carefully Verion Revision Record vao 2010 04 28 Support medel HYH HE HS H VIF T3 HTTP TA HY P22 Hr 11523 HY TIE Hr ERA HylTIESM HT lead Hardware support model AE dai doen seg it Program compatibility HIDE Wie anal HVIDE V1 x pecgeam is nol com petibla Progromming fla HIER thet asembed by HIDE V2 consect ba dowelooded ia HIDE Vl X Co JE Co ie Hyeomi OE VZ UU laali meld Wiza Lei fue edu uses this oompuber all users C Oriy For ge YC Cha T HycomiDE F200 Imztalihaseld Waranl Destination Folder Chek Neo bo rat ad ta thir lelder or dick Changa to rat 9 bo a diferank folder m Kela HyconBDE 2 016 Caer Pilet IDE ycondDE je HweanlDE V2 00 Inralzhiel Wirard Database Folder Ch Hes bo pat ad to this Folder er click Change to install to a different Folder Fotto Ve OO databace b Cer arn Pier Is Hycoal Dk F200 aralh Wizard Coston Setup Select tha program Pastures you want installed Cikk o an KO in Eh kt False bo chang hiw amp Feature k ictal Feature Descrphon s Hyconallkk AMI arial har hd Wizard Trat alli Hy conde 2 00 The
47. program Pastures you elected are being installed take Denver ad neger Las ETEA i Necenl Dk W31KI foetal har HM H read Installshield wizard Completed Tha brictaltsheskd wG xd has orgue installed HyconIDE v2 00 Cri Finish bo exit thes vazad F Launch thes program Figure 1 2012 2013 HYCON Technology Corp APD HY13PIDEO02 EN www hycontek com Page 7 HY13S00 HY13P IDE Software User Manual HYGON Remove Please remove the file of HY13P IDE in Add Remove Program under Control Panel 1 4 Registration For first time using ICE for simulation or program OTP chip users must apply for a register code as to proceed operation x HyIDE has not been Regisiter Figure 2 Registration Procedures 1 Please check the HY13P IDE Machine Number HyIDE Code on the parcel and send the number by e mail or on line registration HYCON will send back another customer register code to you Connect the HyIDE Control Board to PC through USB interface ExecuteHY13P IDE software HY13PIDE exe Go to Option and press Register 4 Fillin the customer code in Register Number and click Write to start Build Options EE m d HC 1 H Interface Setup Interface Setup Interface Setup Build mm EI Int Setup dmSeup ICE Test METes Int Setup mwSeup ICE Test ten Register Register OSC Calibration OSC Calibration Register osc Calibration Interface Setup HylDE Machine Nu
48. re Request PC compatible system with PENTIUM CPU 128 MB Memory 256MB is recommended 10 GB Hard Disk Space e Supporting Products HY13P56 e Supporting Hardware Model No HY13S00 DK01 development kit e Supporting Software Version HY13P IDE V1 0 JE 2012 2013 HYCON Technology Corp APD HY13PIDE002 EN www hycontek com Page 5 HY13500 HNOLOGY e OS Windows 98SE Windows 2000 Windows XP Windows Vista Windows 7 e Applicable Interface USB Port 1 3 Install and Remove Install Note For some Windows OS it may require to have administrator identity to install the Hex Loader to the computer e Find and run the file Setup exe in the CD ROM or file e Following the instruction window dialogs step by step to continue setup procedures as shown in Figure 1 2012 2013 HYCON Technology Corp APD HY13PIDE002 EN www hycontek com Page 6 HY13S00 HY13P IDE Software User Manual HYGS HYGON TECHNOLOGY il HyconlDE V2 8 LertallEkirld Wizard Welcome to the Install h eld Wizard for HyconIDE V2 00 Tha Brut Saal R Wierd vd inctall HeosnBDE V 00 on your computer To continue Ok Nest WARNING This program amp protected bry copyright law snd intiernationud treaties l3 Byron De TZON Inztallzhield Wizard License Agreement Please read khe Foliewing kenge agreement carey HycenlDE CON Integrated Dua lope Lreie ames ift SBS geb FRASER RELA THR TIILINENHCSDEEILmBEHPSERREIDI THEA RE H CHEIR ti
49. sh Memory The procedure can refer to chapter 4 2 1 or chapter 4 2 2 e To implement offline operation press S5 button to check if the IC is blank and the D9 Green LED should be lighted up e 4 Button is programming button Its procedures are Blank Check gt Program gt Verify If Program Protection of Assemble Option is ticked before downloading data to Flash Memory 2012 2013 HYCON Technology Corp APD HY13PIDEO02 EN contek com Page 64 HY13S00 program protection will be executed after Verify completed If Program Protection is not picked up it will stop after Verify accomplished and D4 Green LED will be lighted up e When Programming finished please press S5 to check if the IC is blank At this moment the D10 Red LED should be lighted up which means the programming is successful data has been programmed into IC so Blank Check failed e f any failure or error happened during execution procedures D10 Red LED will be lightened up On the contrary D9 Green LED will be lighted up if success 2012 2013 HYCON Technology Corp APD HY13PIDEOO2 EN www hycontek com Page 65 HY13S00 HY13P IDE Software User Manual HYGON 4 4 2 Program Times Restriction The menu of Assemble Option in interface setup has an option of Enable Program Times as described Figure 66 This option restricts the permitted program times of download program This is a safety mechanism that restrains the permitted program times
50. st 4 ADCII file asc Font option Choose editor s fonts Fill unused zone Fill the unused zone with 0x0000 or OxFFFF in the program Simplified assemble Simplified assemble function is selectable When JMP or CALL is smaller than 2K it will automatically transform to RJ or RCALL If the arguments of CALL are set it will not transform to RCALL B Program protection Please refer to Interface Setup under Programming Window chapter 2012 2013 HYCON Technology Corp APD HY13PIDEO02 EN www hycontek com Page 17 HY13S00 e Interrupt Setup WER Interface Setup Interface Setup Int Setup Register Iw STOP When UY Stack Watch Watch Watch Watch Watch Watch watch Watch enable enable enable enable enable enable enable enable Bit Biti Bit Bits Bit Bits Bit Bit Build Options ICE Test OSC Calibration Watch Address Watch Data Figure 16 Stop operation when Stack overflow IDE will stop when Stack overflow Monitor address Select the monitored Register or RAM The program will stop when the program executed RAM or Register value equals to the monitored Data Monitor Data Monitor value is set when the monitor Data is filled up Monitor RAM bit Monitor function will be activated if the monitor bit is ticked The program will stop when the bit of Data value equals to the marked on bit ICE Test 2012 2013 HYCON Technology Corp www hycontek com
51. te inf KeyCnt P ACCE imp ADCCAL ADCShow Value call Gret ADDO call ShowADC imp ADCCAL MVL Ob4h MVF 0040h 1 0 MVF AINET2Z F ACCE ESF 0040h 1 0 BSF AINET2 1 ACCE ADCUMW show New added program mal Ub myi dspto F ACCE ADCUWShowCOM myl LCDI mal dsprl F ACCE Figure 59 2012 2013 HYCON Technology Corp www hycontek com HYGON HNOLOGY APD HY13PIDEO02 EN Page 45 HY13S00 3 9 Hint Function of Source Code Window If users intend to know Register SRAM value and Address in source code window point the cursor to Register or SRAM the name address and data can be revealed This function is only applicable to the instructions below CLRF ADDF INF INSZ DCF DCSZ SUBF COMF ADDC ANDF IORF XORF SUBC RRF SETF MULF RLF JZ RRFC RLFC SWPF DAW INSUZ DCSUZ ARLC ARRC CPSG CPSL CPSE TFSZ BTFG BSF BCF BTSS BTSZ MVFF 5 EMacro gt e Only the first parameter is effective when instruction is under byte operation as Figure 603 described e When command is BCF BSF BTSS BTSZ and BTGF Byte value will be revealed if the cursor points to the first argument If the cursor points to the second argument it will display the specified Bit value 1 or 0 as Figure 614 illustrated e When command is MVFF not Macro the first argument value will appear if the cursor points to the first argument If the cursor points to the second argument the argument value will show up
52. work name MCPS to select the network 2 Click mouse left key to the network switch MCPS to select the network 3 Click mouse left key window like Figure 57 shows up then user can select the switch network Lar spain Figure 57 2012 2013 HYCON Technology Corp APD HY13PIDE002 EN www hycontek com Page 42 HY13S00 TA HY13P IDE Software User Manual HYCON M SS Eoo VDDA Network Please refer to ADC VDDA network ENMC Click mouse left key to the network name ENMC starts ENMC status display When ENMC 1 enable comparator When ENMC 0 disable comparator MCLP Click mouse left key to the network name MCLP starts MCLP status display When MCLP 1 high power consumption and high performance When MCLP 0 low power consumption mode e MCOFR Enable Click mouse left key to the network name MCOFR module will be enabled or disabled MCOFR status display When MCOFR 1 enable output filter module When MCOFR 0 disable output filter module e MCOIV Switch Click mouse left key to the network name MCOIV will be ON OFF MCOIV status display When MCOIV 1 non inverting When MCOIV 0 inverting MCNEC Switch Click mouse left key to the network name MCNEC will be ON OFF MCNEC status display When MCNEC 1 according to CCK_D1 doing open close serial movement When MCNEC 0 both open circuit 2012 2013 HYCON Technology Corp APD HY13PIDE002 EN www hycontek com Page 43 HY13S00 3 8

Download Pdf Manuals

image

Related Search

Related Contents

Apple Mac mini CI7-2.3G    Massive Pedestal/post 16184/87/10  内容 ー 420側  User Manual  Kenroy Home 50293SLCOP Use and Care Manual  AEDを点検しましょう(厚生労働省) [PDFファイル/703KB]  ADIFLEX - Fixcer  Plonger avec un ordinateur  Anthro Charging Cart  

Copyright © All rights reserved.
Failed to retrieve file