Home
HY12S65
Contents
1. Program SBM Verify Chip Show Program Times Verify SBM OK If Program Times Function had been Enable Program Times Left99999997 4 Figure 88 If the IC selection is incorrect or the programming fails a message will show up as igure 89 ON Message Program Chip OB _______ Program SBM Fail igure 89 4 3 3 Verify The icon of Verify is The purpose to verify programming 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 90 SBM OK Figure 90 If IC selection is incorrect or the program verification miscarries a message will pop up as Figure 91 Verify Chip Fail Figure 91 4 3 4 Read 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 92 Its content will reveal at Display Code window 2012 HYCON Technology Corp APD HYIDEOO
2. 25 section Sco PIN H180 ProBegin include eie 4E Figure 22 2012 Technology Corp www hycontek com instruction MVE BaF MYL MVE BaF MVE MYL MVE MVE BTaa BaF ETHS BAT BTS3z BAT BTaa BAT BAT ETZ BAT 59h ABh CBh Boh 23h Eh FBh 13h F5h 1h 325h 21 32Dh ZFZh 2F h ABh 1 9 0 59 71 M AB 3 M AB 3 M CD M BB 120 2 1 5 0 4 0 21 0 5 11 21 0 5 11 0 2 2 4 0 M AB 3 Mi6Dj 8I N TECHNOLOGY 0 009 01 24 12565 HYCON IDE Software User Manual HYGON 3 2 RAM Window Data Memory m Figure 23 B After opening RAM window Bank will show the volume the selected IC Every Bank has 256 byte BankO 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 u
3. U7 ICESDI D ICESDO ICECS HY IDE USB Control Board qu 95 p VPP ICESCK 3 ICESDI 4 ICESDO 14 VDD 52 51 i 04 Ground Figure 94 4 Adapter 9V input 5 supply programming power source connected when programming U7 USB connector to PC Downloading program for emulation and debug Downloading programming code for HY12P series J5 HY12P series programming control port PIN 1 6 connects to VPP of the IC PIN 2 ICECK connects to PSCK of the IC PINS ICESDI connects to PSDI of the IC PIN4 ICESDO connects to PSDO of the IC 5 VDD 3V connects to VDD of the IC PING VSS connects to VSS of the IC S1 1IC programming button 52 Blank Check key 04 Two color LED Red LED OTP programming Blank Check failure signal Green LED OTP programming Blank Check success signal Green LED USB Adapter power on signal 2012 HYCON Technology Corp 0 09 01 EN www hycontek com Page 61 12565 HYCON IDE Software User Manual HYGON Figure 95 shows the connection way of connecting programming IC to control board programming pin when PC online Figure 95 Figure 968 shows the connection way of connecting offline programming IC to control board programming pin when PC offline Figur
4. 110 5 CMPRH 0111 S CMPRH 1000 5 CMPRH 1001 5 CMPRH 1010 5 1111 gt Figure 58 2012 0 09 01 EN www hycontek com Page 41 12565 HYCON IDE Software User Manual HYGON e VRLCMP Network 1 Click the specified network name VRLCMP can select to that network 2 Click the specified network switch VRLCMP can select to that network 3 Figure 59 will show up by clicking and then users can select the switch network S_CMPRL 0000 MES CMPRL 0010 135 lt 0011 gt 4 I S_CMPRL lt 0000 Figure 59 e VREF Network 1 Click the specified network name VREF can select to that network 2 Click the specified network switch VREF can select to that network 3 Figure 60 will show up by clicking and then users can select the switch network SFUVR lt 3 0 gt 5 MODE lt 3 gt FUVR 1111 Figure 60 Measurement Mode Network 1 Click the specified network name users can select to that network 2 Click the specified network switch users can select to that network 3 Figure 61 will show up by clicking and then users can select the switch network 5 MODE 1 111 v S_MODE lt 0000 S 0001 gt 5_ 0010 gt 5_ 0011 gt S lt 0100 gt S 0101 gt S MODE 0110 S MODE 0111 S MODE 1000 S lt 100
5. 1 Hycon USB Device 2 88 Hycon Technology Corporation c windowsit ES Hycon USB IDE Device 88 Hycon Technology Corporation c windowst Hycon USB Device Hycon Technology Corporation c Wwindowsta gt Microsoft BARAK ibis Ase pees AB Windows 2 Bah i 2l sah ERE 124613 Sip Sew m Hycon USB Device i DEAR Figure 2 2012 HYCON Technology Corp APD HYIDEOO9 VO1 EN www hycontek com Page 7 12565 Software User HYGON Remove Please remove the file of HYCON IDEDMM V1 1 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 has not been Regisiter Figure 3 Registration Procedures 1 Please check the HyIDE 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 2 Connect the HyIDE Control Board to PC through USB interface 3 Execute HYCON IDE software HYCONIDE exe Go to Option and press Register 4 Fill in the customer code in Register Number and click Write to start na Interface Setup Interface Setup Interface Setup Buil
6. Se c tho Open Demo Code o 2 sa Flesh Memory as m 0 Colo i Testasm Xam v Figure 7 bo HYIDE 512 HyconIDEDMM V1 1 Chip 12P65 6 ICE Inteface USB Project wR SUB 53 hy eee Test asm Set as assembly main file Test ASM AUTHOR WATER LEE E COMPANY HYCON TERRE DEVICE HY12P65 INPUT OUTPUT CREATED 2010 10 15 UPDATED DESCRIP file of size 424 byte C Program Files HyIDE HyconIDEDMM DemoCode Ref Code Test asm Checksum 0 120 Figure 8 2012 HYCON Technology Corp APD HYIDEOO9 VO1 www hycontek com Page 10 HY12S65 HYCON IDE Software User Manual HYGON N TECHNOLOGY HyconIDE Chip Hycon 12P65 ICE Inteface US Assembly and start debugging 8 1 SRAM t m DD Parras DEK 2 Testasm HY12P INC 991850 HyconIDEDMM 91 1 Chip Test ASM 535 SHITGGATI AUTHOR WATER LEE COMP ANY DEVICE HY12P65 IHPUT OUTPUT CREATED 2010 10 15 Debuggi
7. 21 www hycontek com HY12S65 HYCON IDE Software User Manual HYGON N TECHNOLOGY 3 1 Fast Execution a amp Hh jg th H IP Pp oO DD e Fast window switch 1 Switch to Edit window pissas 2 Switch to Source window s Be 9 Hartas DAR Be FILE Test ASM Testasm HYI2PINC AUTHOR WATER LEE gt saree COMPANY DEVICE 12 65 INPUT DEVICE H 12P65 OUTPUT CREATED 2010 10 15 OUTPUT CREATED 2010 10 15 UPDATED DESCRIP file of size 424 byte Size 0 0k 6K Total Code Line 15 3 Switch to Hex window ern DEAR instruction 80h 0 M 80 A5 Oh 29h 1 0 M 29 80 7FEh Switch to Watch window e 6 5 Switch to Reg window 12065 9er fr B MBR 4 INDFO POINCO PODECO PRINCO PLUSWO INDFl POINC PRINCI PLUSW WREG BSRCN TMAR PRC TMCR PWMR LCDO 80 01 00 FD 00 00 00 LCD2 LCD3 LCD4 TEDS LCD6 LCD SSPBUF TXREG RCREG 00 00 01 00 00 00 EO SDATA MSDATA MSDATA MSDATA MSDATAIDIDATAIDIDATAIDIDATA 00 00 00 00 00 CTAL CTBU CTBH CTBL CTCU CTCH CTCL FF 00 00 00 00 00 00 00 00 WUE 4 VLCIM URE AVI UBATHITINY UBATHIUINY LT AE TWTT TAT Word FSR1 TOS PCLAT TBLPTR TBLD PROD BRGR O
8. HYGON 8 fL S 12565 HYCON IDE Software User Manual APD HYIDEOO9 VO1 12565 HYCON IDE Software User Manual Table of Contents HYGON N TECHNOLOGY 1 HYCON IDE OVERVIEWV erie te 4 1 1 INTRODUCTION 4 1 2 HYCON IDE INSTALLATION AND SYSTEM REQUIREMENT enne 4 1 3 INSTALE AND REMOVE 5 5 mV 8 TAR O IRATON 8 1 5 DEMO CODE DESCRIPTION dtu 10 2 HYCON IDE INTERFACE 12 2 DII CONDE EDIT INTERFACE ten cn Poen 12 EO inre ol RN RETE 13 14 14 14 ASSOembDIG G RU 15 A 15 19 Program 19 tms 19 3 HYCON IDE DEBUG INTERFACE 21 SFA TEX CUTI ON 22 3 2 RAM WINDOW 25 23 REGISTER WINDOW 28 438 NATCH 30 AGI WINDOW ETT 32 3 6 Ie pre E 33 WINDOW mem 38 3 8 40 3 9 REGISTER fe 45 3 10 HINT FUNC
9. _ case ECHNCH 00M a FFFF STKPTR STEFL STKPRT3STEPRT2ST EPRTI INTE GIE MBIE TMAIE WDTIE Figure 31 e 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 PAGE PAGE3 STEPTR2STEPTR1 STEPTRO GIE TMCIE TMAIE WDTIE ELIE EOIE TXIE RMSIE LPFIE 0 ADIIE SSPIE CTIE E27IE 2 251 23 X E22IE 2 E20IE ADCIF TMCIF TMBIF TMAIF WDTIF EOIF TXIF RCIF RMSF LPFF DIF SSPIF CTF E27IF E25IF E23IF E22IF z C DC N 2 IDLEB SKERR x ENLVD LYD VLDX2 4 VLDXU VSL SVIN3 SVIN2 SVINI SVINO SVIPl SWIPO 1 SKRST HAOTRS HAOTR4 OTR HAOTRO CPUCKl _ 15050 ADCCK PERCK 8752 8751 8250 MACK TMAS 50 ENWDT WDTS2 WDTS1 WDTSO 512 511 510 501 500 NPFD PWMRLIPWMRLO CDPR VLCDXI VLCDXO LCDBF LCDBIl LCDBIO LCDMXO SS Figure 32 2012 Technology Corp 09 01 www hycontek com Page 29 12565 HYCON IDE Software User Manual HYGON 3 4 Watch Window Wa
10. eee eee 64 5 1 EXECUTION 64 REVISION HISTORY 64 2012 Technology Corp 09 01 www hycontek com Page 3 12565 HYCON IDE Software User Manual HYGON 1 HYCON IDE Overview 1 1 Introduction To facilitate the process of product development 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 HY series 1 2 HYCON IDE Installation and System Requirement Minimum requirements for operating HYCON IDE e PC Hardware Request PC compatible machine with PENTIUM amp CPU 128 MB Memory 256MB is recommended 10 GB Hard Disk Space e Supporting Products HY12P65 Supporting Hardware Model No HY12S65 DK01 development kit Supporting Software Version HY CON IDEDMM V1 1 and above e Compatibility of Program Version N A 2012 HYCON Technology Corp APD HYIDEOO9 VO1 www hycontek com Page 4 HY12S65 HYCON IDE Software User Manual HYGON N TECHNOLOGY OS Windows 98SE Windows 2000 Windows XP Windows Vista Windows 7 Support x86 32bit system 64bit system not in support Applicable Interface USB Port 1 3 Install and Remove Install Note For some Windows OS
11. 1 05 00 Figure 49 e ENSQUE Click the specified network name ENSQUE will be ON OFF When ENSQUE OFF X RMS 37 0 x RMS lt 37 0 gt N When ENSQUE ON ENRMS Click the specified network name ENRMS will be ON OFF ON OFF When ENADC ON RMS zone will display value e Reset RMS LPF Click the specified network name RSRMS can select to that network When RSRMS changes from OFF to ON RMS LPF can be reset 2012 HYCON Technology Corp 09 01 www hycontek com Page 37 12565 Software User Manual 3 Power Window HyconIDEDMM Vil HY 12 65 6K 1 View Assemble amp Run Programmer Options Edit Alt 1 r Message 1 Next File Alt Right Previous File Alt Left Figure 50 He Power DMM_Bias VDX VDS X gt lt gt MCU BIAS DSC lt X gt VS8 K 16VDD 89 AGND vLeC lz 24 56 AGNDP lt 9 gt AGNDP lt 8 gt GEEK NE lt 7 gt Lour ol lt 6 gt 40 LU lt 4 gt 5720 AGNDP lt 2 gt 5480 lt 1 gt AGNDP lt t gt 0 AGNDN lt 2 gt 51480 gt 25 240 Charge Pump AGNDN lt 4 gt 5 120 AGNDN lt S gt AV120 AGNDN amp e 40120 AGNDN lt 7 gt AGNDN gt 80120 AGNDN gt 100120 SAGND 1 0 gt VDD VSS Voltage 05 lt 17 1 gt REFO Referenc
12. This option restricts the permitted program times of download program This is a safety mechanism that restrains the permitted program times 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 1HYCON IDE Execution Problem j Access violation at address 004ABF79 in module HyIDE exe Read of address 000002 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 6 Revision History Major differences are stated thereinafter Version Page Revision Summary 01 ALL First Edition 2012 HYCON Technology Corp APD HYIDE009 V01_EN www hycontek com Page 64
13. e lf the argument is PLUSWO PLUSW1 the Data is FSRO WREG or the address Data of FSR1 WREG as illustrated in Figure 699 Name Address Data Lue rl mwl 13h FAAS mw f OFSH ACCE mwl ih EHE Figure 65 Display Byte Display bit ILY 11 Poy sabes M L Mainloop Mainloop btsz ACCE Pss 3 RLCDG het SVSOP ACCE bet RLCDG h lhat ACCE Figure 66 2012 HYCON Technology Corp APD HYIDE009 V01_EN www hycontek com Page 47 12565 HYGON HYCON IDE Software User Manual Helton 42 _ Display the first Argument Display the second Argument het 4 bsf 4 ACCE 10 80h E AS 10 80h 1 mvt 1 ADCFat1 Mainloop Mainloop htsz SVSCN SVSOP ACCR FP 11 e uu lan Figure 67 Address Data htsz awacN VAP ACCE l TT aT 1 11 Figure 68 FSRO WREG Data 4 1 PIN SW Figure 69 2012 HYCON Technology Corp APD HYIDE009 V01_EN www hycontek com Page 48 HY12S65 HYCON IDE Software User Ma
14. 4 3 1 Blank Check 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 and the content is empty a message will appear as Figure 86 Message SBM Blank Figure 86 If the IC selection is incorrect or the content is not empty a message will show up as Figure 87 Message Figure 87 4 3 2 Program 1 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 88 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 HYCON Technology Corp 0 09 01 EN www hycontek com Page 57 12565 HYCON IDE Software User Manual HYGON ON Message
15. Feature Description REREAD APRS UAT MR 0E GRE HyconIDEDMMIE EAE EAT BAR 2E GE FEL EER SHY CONE RE http rw hycontek com D FAIR 495 HEE LAP WI RE 2 FRES amnes HEARS SMB AACS E MMB DMM 8 Bit OTP MCU HY12P25 P fb 9 accept the terms in the license agreement O1 do not accept the terms in the license agreement 1 9 HyconIDEDMM 1 1 InstallShield Wizard X HyconIDEDMM 1 1 InstallShield Wizard Readme Information Installing HyconIDEDMM V1 1 Please read the Following readme information carefully The program features you selected are being installed Version Revision Record Please wait while the InstallShield Wizard installs HyconIDEDMM V1 1 This may take several minutes V1 1 2011 09 29 Support model Status HY12P65 Er 12565 0 01 development kit PCB NO A10004 Revision items Revise Revise error in Download to flash memory function V1 0 2010 10 15 Support model HY12P65 m 15 HyconIDEDMM V1 1 InstallShield Wizard 9 HyconIDEDMM V1 1 InstallShield Wizard Customer Information InstallShield Wizard Completed Please enter your information User Name The InstallShield Wizard has successfully installed ffabo chang HyconIDEDMM V1 1 Click Finish to exit the wizard Organization Launch the program Install this application for 9 Anyone who uses this computer all
16. HYIDE009 V01_EN www hycontek com Page 54 HY12S65 HYCON IDE Software User Manual HYGON N TECHNOLOGY 4 2 2 Download HEX File To program an already assembled Hex file go to File gt Select Download to Flash Memory and the Hex file However the last option will change according to initial setup whether to protect the program or not If protect program was activated the warning message will not show up as Figure 79 described Sia Download the Hex to programmer or to IDE Flash Memory MERR ATER Memory 73 Ref Code 2 HY12P INC Testasm RE ORES Test map 2 Test pro 7 8 HEIS Select the Hex file to be programmed dere FASS 18 45 QD Test hex RaR dg SE EB AU Hex v Figure 79 When download success message column will display successful message as Figure 77 illustrated and display Download Hex file and Checksum as Figure 78 2012 HYCON Technology Corp APD HYIDE009 V01_EN www hycontek com Page 55 12565 HYCON IDE Software User Manual HYGON 4 3 PC Online OTP Programming File Edit Search View Programmer Options Windows Revision History it xx S Figure 80 Figure 81 Blank Check Programming Verify and Read Commands can be implemented when the programmed file being successfully loaded into programmer or IDE Flas
17. Register Modify Record File Continue Compiler Display SRAM amp Register record Figure 63 2012 HYCON Technology Corp APD HYIDE009 V01_EN www hycontek com Page 45 HY12S65 HYCON IDE Software User Manual HYGON N TECHNOLOGY File Edit Search View Assemble amp Run Programmer Options Windows SRAM Record Revison History e File Continue Compiler INTERRUPT ASM SPLASM INTADC ASM 5 5 WES Eo Data mvf s reg EE F ACCE Wh mvl HIGH UWeight Coh mvf fsrOH F A mvl weight call eewrblk Add To Program ADshiftbit mvf eedatemp F ACCE 20h call eewrite 5 eedatemp F ACCE 21h call eewrite ADAZH W ACCE mvf eedatemp F ACCE PC Stop Address 4 11 eewrite inf KeyCnt F ACCE jmp ADCCAL ADCShowValue call GetADC call ShowADC ADCUWShow Y Contum 9 C Program Files HyIDE HyconIDE DemoCode Kitchenscale ADCCAL ASM had been modified Rebuild Main Program inf KeyCnt F ACCE jmp ADCCAL ADCShowValue 11 GetADC call ShowADC Add New Program 000h 0040h 1 0 2 ACCE 000h 0041 1 0 ACCE dsp 5 F ACCE LCD1 dsp 1 F ACCE ldpr Temp 6 FSRO 5 dsp 3 F ACCE High LCD1 4 display AD
18. The indication column is green Chip Hycon 12P65 ICE Inteface USB Project AK MFAT 07 SRAM Me DBR 9 lt lt Test asm HY12P INC AUTHOR WATER LEE S COMPAHY DEVICE HY12P65 INPUT CREATED 2010 10 15 UPDATED DESCRIP Size 00k 6K Total Code Line 15 D x Ri 00 0000 80h 0 80 A Oh 29h 1 0 29 Name Addr gt Il Bin Refered Symbol Reserve Lengh Ty INDFO POINCO PODECO PRINCO PLUSWO INDFl PODECI PRINC PLUSW WREG BSRCN TMAR PRC PWMR LCDO LCD 80 01 00 FD 00 00 00 LCD2 103 1504 LCDS 15606 LCD SSPBUF RCREG 00 00 01 00 00 00 FF 0 MSDATA MSDATA MSDATA MSDATA MSDATALDIDATAIDIDATAIDIDATA 0 00 00 00 00 00 IF CTCU CTCH CTCL KHMAXU 00 00 00 00 00 00 00 00 TUL UMINUNY ULI TAT Word FSRO TOS PCLAT TBLPTR PROD OOFF 00 0000 1700 1 FFFF Connect Checksum 0 120 main C Program Files HyIDE HyconIDEDMM DemoCode Ref Code Test asm 2012 HYCON Technology Corp 009 01
19. it may require to have administrator identity to install the Hex Loader to the computer Insert the HYCON IDE CD into the CD ROM drive and find the file in the CD ROM or file to execute Setup exe Following the instruction window dialogs step by step to continue setup procedures As shown in Figure 1 1 First time installation must initiate USB driver program the setup procedures are as Figure 2 shown 2012 HYCON Technology Corp APD HYIDE009 V01_EN www hycontek com Page 5 HY12S65 HYCON IDE Software User Manual TECHNOLOGY ie HyconIDEDMM 91 1 InstallShield Wizard is HyconIDEDMM 91 1 InstallShield Wizard Welcome to the InstallShield Wizard for Database Folder HyconIDEDMM V1 1 Click Next to install to this folder or click Change to install to a different Folder The InstalShield R Wizard wil install HyconIDEDMM V1 1 Install HyconIDEDMM V1 1 database to your computer To continue click Next C Program Files HyIDE HyconIDEDMM DemoCode WARNING This program is protected by copyright law and international treaties HyconIDEDMM Y1 1 InstallShield Wizard 19 HyconIDEDMM V1 1 InstallShield Wizard License Agreement Custom Setup Please read the following license agreement carefully Select the program features you want installed Integrated Development Environment Digital Mutimele Ig 9 A Click on an icon in the list below to change how a feature is installed EARR
20. up Data 00 00 OU 00 00 OO 00 AS 2012 HYCON Technology Corp www hycontek com 00 00 OO OO oo oo oo EH 00 10 oo 412 01 Da au 10 au au au DE au Figure 25 13 01 DE 03 Da 03 34 DE 04 DE 03 BB DE au au au au SE DE au 85 D 04 nu iF 2E il 45 01 00 NM ODO 00 00 FF o0 rr 09 01 26 12565 HYCON IDE Software User Manual HYGON 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 RAM Data Keyboard Key IN RAM Address Mouse Click 2211218 Figure 26 2012 HY
21. users Only for me Tabo Chang 9 HyconIDEDMM 1 1 InstallShield Wizard Destination Folder Click Next to install to this Folder or click Change to install to a different folder Install HyconIDEDMM V1 1 to C Program Files HyIDE HyconIDEDMM Figure 1 2012 HYCON Technology Corp APD HYIDEOO9 VO1 EN www hycontek com Page 6 HY12S65 HYCON IDE Software User Manual HYGON N TECHNOLOGY ESI Hycon USB Device WERE RHA CD RESE e ae SER ERES EI AAR EES ASIA gt 7 HYDMM 77 HyEnobTest OPE PRS RMA 3 EyIDE ERIT PUE MSR ROR A USt E A US ERST ORE SUR IRURE D HexLonder gt HyconIDE GRE CD ROM M HyconIDE V2 7 C Program Files HyIDE HyconIDEDMM Driver i DemoCode DE HPS PIR eis gt Windows TIRE GAMERA ESE EXE dk Bite dip Mie THE PRR gt HEF Ais Bi Hycon USB IDE Device Hycon USB IDE Device gt fk Windows DESC ES Windows D z
22. 09 VO1 www hycontek com Page 58 12565 HYCON IDE Software User Manual HYGON If the IC is protected by program this function is ineffective or the comparison failed File Edit Search View sembeskun Programmer Options Windows Revision History Bo Read Checksum Figure 92 2012 HYCON Technology Corp APD HYIDE009 V01_EN www hycontek com Page 59 HY12S65 HYCON IDE Software User Manual HYGON 4 3 5 AUTO The icon of Auto is 5 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 93 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 MEME Program SBM Verify Chip OK Verify SBM OK Program Times Left 999 Figure 93 If any function fails the whole process will stop and display an error message in the message column APD HYIDEOO9 VO1 2012 HYCON Technology Corp www hycontek com Page 60 12565 HYCON IDE Software User Manual HYGON 4 4 PC Offline Programming 4 4 1Programming 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
23. 1 gt S MODE 1010 S MODE 1011 S 1100 gt S lt 1101 gt S lt 1110 gt 5 lt 11112 Figure 61 2012 HYCON Technology Corp APD HYIDE009 V01_EN www hycontek com Page 42 12565 HYCON IDE Software User Manual HYGON Multi function Network 1 Click the specified network switch users can select to that network 2 Figure 62 will show up by clicking and then users can select the switch network gt 4 lt 2 gt he 2012 0 09 01 EN www hycontek com Page 43 12565 HYCON IDE Software User Manual HYGON Figure 62 2012 HYCON Technology Corp APD HYIDE009 V01_EN www hycontek com Page 44 12565 HYCON IDE Software User Manual HYGON 3 9 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 the 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 Wen HyconIDE Simulation Chip 12P65 6 ICEInteface USB Project File Edit Search View Assemble amp Run Programmer Options Windows SRAM Record Revision History wu A ayp DD SRAM amp
24. 15050 ADCCK PERCK BZS2 8251 8250 TMACK 51 50 ENWDT WDTS2 WDTS1 WDTSO TMCCE TMCCKO TMCS12 TMCS11 TMCS10 501 500 ENPFD PWMRL1 PWMRLO Register byte Register bit Figure 27 e Modify Indirect Data or Address As Figure 28 configures using keyboard to Key IN or using cursor to click data the Address can be modified 12P65 RE Sr te INDO gt Modify Indirect Address Daten Using cursor to click 1 Figure 28 As Figure 29 configures using Key IN of the keyboard or using cursor to click data the Data can be modified RE ET Bp POINCO PODE Click 1 Modify indirect Data Figure 29 2012 HYCON Technology Corp APD HYIDEOO9 VO1 EN www hycontek com Page 28 12565 HYCON IDE Software User Manual TECHNOLOGY e Modify WREG Data WREG 02 Cycle 0006 PRINCU Figure 30 e Modify Data of single 1byte or Word Register Byie POINCOU PODECO PRINCO PLUSWO PODECI 71 71 71 7l 7l 71 71 WREG BSR DC AM PLUSWI PWME 55 LCRO um Yum xc NERO FF FF 00 5 SF LOD LCD8 LCD Ram05D LCD9 Using keyboard to Key In directly Pd Click Zone Zone 45 TELD _
25. 1_EN www hycontek com Page 40 HY12S65 HYCON IDE Software User Manual HYGON N TECHNOLOGY e Click the specified network name ENCMP will be ON OFF ENCMP display status INCMP Network 1 Click the specified network name INCMP can select to that network 2 Click the specified network switch INCMP can select to that network 3 Figure 57 will show up by clicking and then users can select the switch network gang CMP FB 0 10 lt 0 gt PB lt 2 gt PB lt 3 gt PB lt 4 gt 5 000 gt Y 5 lt 000 gt 5 CMPI 001 S 010 gt 5 11 S 100 S_CMPl lt 101 S_CMPl lt 110 S CMPI 111 Figure 57 e VRHCMP Network 1 Click the specified network name VRHCMP can select to that network 2 Click the specified network switch VRHCMP can select to that network VDOSC lt 16 gt VOSC lt 13 gt VOSC lt 11 gt VOSC lt 10 gt VDSC 3 AGNDP 5 gt AGNDP lt 4 gt AGNDP 3 AGNDP 2 lt 1 gt lt 0 gt lt 12 3 MARE VOSC lt 13 gt VOSC lt 11 gt VDSC lt 10 gt 05 lt 9 gt AGNDP lt 6 gt AGNDP lt 5 gt AGNDP lt 4 gt AGNDP 3 AGNDP lt 2 gt lt 1 gt AGNDP lt 0 gt AGNDN 1 5 0000 gt 5 0000 gt 5 lt 0001 gt 5 lt 0010 gt 5 lt 0011 gt 5 lt 0100 gt 5 lt 0101 gt 5
26. 82 E CEDUCA PPD Tie tace Y Message Clicking MPN Burg enm Next File Alt Right Y Previous File Alt Left Uinc WOED AJHT ANDAI AMD A msn wA Mk annie 7 CQ P H E OOPS an s eo Figure 55 Measurement VREF Mode Network Network VOLT AOHM VREF VD517 40516 VD515 2 AGNDPS AGNDP AGNDPS MUX AGNDPO 052 VD53 AGNDNS AGNDNS SMODE P 209 MODE lt 3 gt 1212105450 S_FUYR lt 0000 v 0000X 0 0 1 x 056 0010X VDSCe13 0011X VDSCx11 gt 0100X VDSC 10 0101X VOSC lt 9 gt 4 1 0110X VDSC 8 1111 Lm lt 100 0 AGNDP lt 6 gt CMPHO 100 1 AGNDP 5 AGNDP 4 gt 101 1 AGNDP 3 110X0 2 gt AGNDP lt 1 gt AGNDP 0 ENCMP 1 AGNDN 1 Multifunction 5 Network VRHCMP SMODE lt 5 gt Network 900K INCMP SDIO E Me PB 2 Network AGND 10k lt 3 AGND AGNON lt 3 gt A AGNON VRLCMP PB 1 Q ON FED Network 0 01 099 5 lt 0000 gt 56 2012 HYCON Technology Corp APD HYIDE009 V0
27. Build Options Int Setup ICE Test Register OSC Calibration Chip Select 12 5 Language English Hardware Interface nterface Mode USB IDE f emulate and Debug f Program Memory Select 62256 15 e Interface Setup 2012 HYCON Technology Corp APD HYIDEOO9 VO1 www hycontek com Page 15 12565 HYCON IDE Software User Manual HYGON Interface Setup Interface Setup Build Options Int Setup ICE Test Register OSC Calibration Chip Select 12 5 Language English Hardware Interface nterface Mode USB IDE Made f emulate and Debug f Programmer Frogram Memory Select 62256 Figure 16 B Chip Select Select IC part no Compiler will assemble the selected 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 HYCON Technology Corp APD HYIDEOO9 VO1 www hycontek com Page 16 12565 HYCON IDE Software User Manual HYGON Build Option Interface Setup Interface Setup Build Options Int Setup ICE Test Register OSC Calibration Generate Files v Enable Tool Bar Hex fi
28. CCAL Line 365 Size 29k 4K Total Code Line 2947 2 Program Files HyIDE HyconIDE DemoCode KitchenScale KitchForl1P1l3 asm Figure 64 2012 HYCON Technology Corp APD HYIDE009 V01_EN www hycontek com Page 46 12565 HYCON IDE Software User Manual HYGON 3 10 Hint Function of Source Code Window users intend to know Register or 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 CPSG CPSL CPSE TFSZ BTFG BSF BTSS BTSZ MVFF Not Macro Only the first followed argument is effective as Figure 655 described 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 666 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 argument value will show up as shown in Figure 67 e argument is POINCO PODECO PRINCO INDF1 POINC1 PODEC1 and PRINC1 the Data will be FSRO or the address Data of FSR1 as Figure 688 described
29. CON Technology Corp APD HYIDEOO09 VO1 www hycontek com Page 27 HY12S65 HYCON IDE Software User Manual HYGON N TECHNOLOGY 3 3 Register Window 12 65 Seles P gemCombr0 Data of indirect address 0 Aadress indirect data 0 Data of indirect INHDID POINCO PODECO PRINCO PLUSWO INDFl POINC PODEC PRINCI address 1 Address f indirect PLUSWl WREG BSRCN TMAR PWMR 1550 LCDI data 1 80 01 FD 00 FF 00 00 LCD3 4 LCD LCD SSPBUF TXREG RCREG 09 00 00 ED MSDATA MSDATA MSDATA MSDATA MSDATALDIDATAIDIDATAIDIDATA 00 00 00 00 00 CTBH CTCU CTCH CTCL FF 00 00 00 00 00 00 00 00 amp CVTOQICLTAXKTRITTOYLCLTAATATLIDOLCOLTAATWTT TAT Single Byte Register FSRD FSR1 TOS PCLAT TBLPTR TBLD PROD BRGR OOFF OOFF 0000 1700 1FFF FFFF lFFF 1 Word Register STKPTR2STKPTR1 STKPTRO Display PAGE1 TMAIE WDTIE EE Register AT E26IE 251 E23IE E22IE 2 E201E Display PAGE2 ADCIF TMCIF TMAIF WDTIF Register ADIF SSPIF E26IF E2SIF E23IF E22IF E2IIF DA 2 DC N OV 7 Register SKERR VLDX3 VLDX2 YVLDX1 YVLDXO SVINO 5 2 5 SVIPO HAOTRS HAOTR4 HAOTR2 HAOTEO CPUCKO 0 551 550 HSCK ENHAO LCD31
30. OFF OOFF 0000 1200 v 2012 HYCON Technology Corp APD HYIDE009 V01_EN www hycontek com Page 22 12565 Software User HYGON Fast Debug 1 Step back v i 2 Trace Enter into Macro vice program bd 3 Step over Not enter into Macro vice program 4 Skip Call 7 5 6 Pause 7 Continue PE 8 Program replace h 9 Back to edit mode ER ELI ree RUN RAS Step Over a ack Out Stack Out jb t ac 1 um sg Gtep Back on e omo sup war Program CM n Mode _ 1 3 Edit Mode 53 IL EE EM Set Break Pomi Fz Figure 21 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 HYCON Technology Corp APD HYIDEOO9 VO1 EN www hycontek com Page 23 HY12S65 HYCON IDE Software User Manual gt Source Code Foy Program Memory FatchForl INTERRUPT ASM SEICHT SPICHT SEICNHT Click mouse SPICNT to set SPICNT interval
31. OSC Calibration Generate Files Enable Tool Bar V Hex file um No Use Area 00 ASCII Stack Option Smart Compiler Stack Over Program Protect Input Program Times Enable Program Times onn Close 71 2012 HYCON Technology Corp APD HYIDE009 V01_EN www hycontek com Page 49 12565 HYCON IDE Software User Manual HYGON 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 Input Download program times Maximum 2147483646 Minimum 1 After assembly finished click ICE Test to test ICE operation voltage as Figure 72 Connect Adapter 9V and connect USB Line to ICE Make sure the ICE is connected and then click Option FWA ICE n VPP SH OSC Calibration SRAM he E 5 6 26 V Data CK YPP x B 7 WDD ea BA VCC ROM 3 02 VDD ea FR Data CK VCC Data CK ALL es JER Figure 72 VPP voltage when programming 5 6 lt VPP lt 6 6 VDD voltage when programming 2 7 lt
32. TION OF SOURCE CODE WINDOW nnn nnn nne 47 4 PROGRAMMING 5 49 4 1 INTERFACE SETUP enn aa aa RR RR RR RR RR Rua 49 4 2 OPERATION PROCEDURES 51 1 2 Fil 55 52 4 2 2 Download eit 55 2012 Technology www hycontek com APD HYIDEOO9 VO1 EN Page 2 12565 HYCON IDE Software User Manual 4 3 PC ONLINE OTP 56 4 3 1 Blank Check QE 57 wa PN OG E 57 IM MM MIN UNES 58 58 60 4 4 PC OFFLINE PROGRAMMING 61 4 4 1Programming Description cu 61 4 4 2 Program Times HesITICHIOD sisisi a a a 64 5 TROUBLESHOOTING
33. VDD lt 3 6 2012 HYCON Technology Corp APD HYIDE009 V01_EN www hycontek com Page 50 HY12S65 HYCON IDE Software User Manual HYGON N TECHNOLOGY 4 2 Operation Procedures HE Mode Ede DEDMM YLI Chip HY 12265 intefece Project Eda Edit Wew Windows 0 Ctile amp Clore File Ciste Open Project Deve Progect Raed From Flav Meme Cote ORG 0 IMP START ORG 4 START CALL DELAY IDLE NOF DELAY CLRF MVL 0 1 TwocT WEEN Figure 73 Open gt Open the programmed source code main file Open Project gt Open the saved project Save Project gt Save the finished project Download file to Flash Memory gt Download the finished Hex file after assembly to programmer or IDE Flash Memory 2012 HYCON Technology Corp APD HYIDE009 V01_EN www hycontek com Page 51 12565 HYCON IDE Software User Manual HYGON 4 2 1 Open File and Assembly HYIDE HyconIDEDMM V1 1 Chip HY 12P65 6K ICEInteface USB Project Edit Ii File Edit Search View Assemble amp Run Programmer Options Windows Revision History Ctrl N Open O Ctrl O m ve 5 Ctrl S gum Save Save All Close File Close All Open Proj
34. d m Ex Interface Setup aol Int Setup Test Int Setup ICE Test Register _ Register OSC Calibration Calibration Register osc Calibration Build Options HyIDE Machine Number HyIDE Machine Number 000003 0000036 Register Number Register Number 00270 Figure 4 5 process is successful a dialog will be shown as follows Figure 5 2012 HYCON Technology Corp APD HYIDE009 V01_EN www hycontek com Page 8 12565 HYCON IDE Software User Manual HYGON 6 Ifthe process failed a dialog will be shown as Figure 6 has not been Regisiter Figure 6 7 Once the register is succeeded Customers do not have to worry that other numbers may be written into the Register Number 2012 HYCON Technology Corp 09 01 www hycontek com Page 9 HY12S65 HYCON IDE Software User Manual HYGON N TECHNOLOGY 1 5 Demo Code Description e Starting C Program Files HyIDE HyconIDEDMM DemoCode Ref Code Test asm e Set the file as assembly main file Assembly start and proceed program debug HYIDE 5 HyconIDEDM 7 2 EHO C Ret Code E gt BENE Cho 5 Ctrl Select Test asm Open Demo de Ral RAAT
35. dited file in the disk e Set bookmark Using this function to go back to the bookmark instantly when many files were opened Goto bookmark 0 Jump to the default bookmark e Find string Find input string e next string A Go to page Using this function to switch files Assemble ge Only acting assemble function not debug status After assembled a message window will show up DER 2012 HYCON Technology Corp APD HYIDE009 V01_EN www hycontek com Page 13 12565 HYCON IDE Software User Manual File HOH HYIDE Mode Edit HyconIDEDMM V1 1 HG File Edit Search View Assemble amp Run Progi Chip Save S Save As Save All AH Close File Close All Open Project Save Project Read From Flash Memory Exit Q Figure 11 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 DownLoad To Flash Memory Ctrl N Ctrl O Ctrl 5 Ctrl Q Edit HYIDE HyconIDEDMM V1 1 File Search View Assemble amp Ri 53 Undo Z Ctrl Z GP New Ctrl C Paste V Ctrl V Select All Edit LCD panel Figure 12 View HYIDE Mode Edit HyconIDEDMM V1 1 gt Source New0 Static Special Register Stack Me
36. e lt 9 0 gt AGND Generator 1 VDS 17 1 EN VS lt 9 1 gt Internal REFO Floating ENREFO ReErence lt 4 gt MUX ias 12V HYGON N TECHNOLOGY LDO Network ENLDO ENVGG VLCD Network LCDPR ENLCD LCDBF ENREFO ENIM v Reference AGN AGND Net work Generator 2 AGND Figure 51 ENLDO SREFO Click the specified network name ENLDO will be ON OFF ENLDO display status when ENLDO 1 VDDA output voltage 100 Network Figure 52 will show up by clicking and then users can select the switch network Lpec lt oo gt Von Figure 52 LDO ILDOx 10 LDOXz112 2012 HYCON Technology Corp www hycontek com 0 09 01 EN Page 38 12565 HYCON IDE Software User Manual HYGON e ENVGG Click the specified network name ENVGG will be ON OFF ENVGG display status when ENVGG 1 VGG output voltage ENLCD Click the specified network name ENLCD will be ON OFF ENLCD display status when ENLCD 1 start LCD e Click the specified network name LCDPR will be ON OFF LCDPR display status when LCDPR 1 VLCD power sauce is generated from internal IC When 0 VLCD power sauce is generated from external input pin e CDBF Click the specified network name LCDBF will be ON OFF LVDBF display status e VLCD Network Figure 53 w
37. e 96 e To implement offline operation Hex file must be firstly downloaded to programmer Flash Memory The procedure can refer to chapter 4 2 1 or chapter 4 2 2 e To implement offline operation press S2 button to check if the IC is blank and the D4 Green LED should be lighted up e 951 Button is programming button procedures are Blank Check gt Program gt Verify If Program Protection of Assemble Option is ticked before downloading data to Flash Memory 2012 HYCON Technology Corp 0 09 01 EN 62 HY12S65 HYCON IDE Software User Manual HYGON 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 S2 to check if the IC is blank At this moment the D4 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 04 Red LED will be lightened up On the contrary 04 Green LED will be lighted up if success 2012 HYCON Technology Corp APD HYIDEOO09 V0O1 EN Page 63 www hycontek com 12565 HYCON 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 71
38. ecified network 2 Click it and Figure 43 will be displayed 2012 HYCON Technology Corp 09 01 www hycontek com Page 34 12565 HYCON IDE Software User Manual HYGON ADSIN 111 gt Figure 43 Network switch ADSCHP 1 Network is switchable by clicking 3 types are selective 2 Figure 44 will show up by clicking then users can select the switch network Figure 44 AD1 INPBUFF switch 1 Click the specified network name ADSIPB ADSINB switch will be ON OFF 2 Click the specified network switch ADSIPB ADSINB switch will be ON OFF e ADCCK option Click the specified network name ADCCK will switch options When ADCCK OFF HAO OSC 10 When ADCCK ON HAO OSC 20 e ENADC Click the specified network name ENADC will be ON OFF When ON ADC zone will display value e ADIRH Network ADSRP 1 Click the specified network name AD1RH can select to that network 2 Click the specified network switch AD1RH can select to that network 3 Figure 45 will show up by clicking then users can select the switch network 2012 HYCON Technology Corp APD HYIDEOO9 VO1 www hycontek com Page 35 12565 HYCON IDE Software User Manual HYGON Figure 45 Network ADSRN 1 Click the specified network name AD1RN can select to that network 2 Click the specified network switch AD1RN can select to that network 3 Figure 46 wil
39. ect Save Project ownLoagd 10 Flasn ernaorny Read From Flash Memory Exit Q Ctrl Q INCLUDE HY12P INC ORG 0 JMP START ORG 4 RET START CALL DELAY IDLE NOP DELAY 080H 0 MVL 0 L1 1 Display Assembly Main li d File Name ri Modified C Program FilesXHyIDEXHyconIDEDMMXDemoCoda ReZ Code Test asm Figure 74 Open source code main file and it will be displayed as the assembly file If the displayed name differs from 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 Figure 75 2012 HYCON Technology Corp APD HYIDE009 V01_EN www hycontek com Page 52 HY12S65 HYCON IDE Software User Manual HYG N TECHNOL HYIDE Mode Edit HyconIDEDMM V1 1 Chip HY 12P65_ 6K __ICE Inteface USB Project Edit LI File Edit Search View Assemble amp Run Programmer Options Windows Revision History FILE Test ASM AUTHOR WATER LEE COMPANY I DEVICE 12 65 11 CREATED 2010 10 15 sUPDATED DESCRIP n ORG 0 file Test asm JMP START Set Bookmark gt Goto Bookmark gt Click right key RET Close file Ctrl F4 of the mouse Set File and select Set START Main File NCS WREG 1n Modified file of size 424 byte Files HyIDE HyconIDEDMM DemoCode Ref
40. h Memory On the contrary those commands will not be activated if the download failed OTP Chip does not match with the selected IC Figure 82 OTP online CYPRESS TestDemoboard Body tn board Checksum OxDOCO Figure 83 OTP not connected D CYPRESS IDE Tenx HY PC IDETEST llpl3 l28test RitchForl1Pl3 hex PEGE Checksum 0 45 Figure 84 Make sure the selected programming IC part number is the same with the OTP part number in the topic window as Figure 70 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 82 described If users intend to find out whether the part number is correct before programming point the cursor to IC Connection Status Display and click the mouse left key If the selected IC is correct a message 2012 HYCON Technology Corp 0 09 01 EN www hycontek com Page 56 12565 HYCON IDE Software User Manual HYGON will show up as Figure 83 If it is incorrected the message will be displayed as Figure 88 If Enable Program Times has been marked up the spare program times will display in the message column as Figure 85 illustrated Figure 85
41. ill show up by clicking and then users can select the switch network VLCDX DD0 VLCD NEUEN VLCDE DT VLCDX 10 VLCDX 112 Figure 53 e ENREFO Click the specified network name ENREFO will be ON OFF ENREFO display status when ENREFO 1 REFO output voltage e SREFO Click the specified network name SREFO will be ON OFF SREFO display status When SREFO 1 REFO power sauce is generated from internal IC When SREFO 0 REFO power sauce is generated from external PB 4 gt pin AGND Network Figure 54 will show up by clicking and then users can select the switch network 5 AGND DO 4 AGND 00 gt 01 AGND1 O gt Floating s Eero voltage Reference Generator 2 5 AGNDe11 gt Figure 54 2012 HYCON Technology Corp APD HYIDE009 V01_EN www hycontek com Page 39 HY12S65 HYCON IDE Software User Manual HYG N TECHNOLOGY 3 8 MPN Window VOLTOHM C v it Du MISES ADMHDF BBHDFI VREF WHF vnnd ARMIS HEHT ETE Ww eed Vn Ce VET TB aee l Assemble amp Run Programmer Optior VIC Edit Alt 1 LII L Prete DAE ch oo fe oo bag a oe Seo eee I o22 220 2ao2 28952552522
42. 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 For example JMP JUMP JMM JPP JU xXwrong definition way JMP JUMP e Repeated defined instruction or self define instruction will be deemed as invalid Example JMP JUMP JMP JPP instruction name redefine JUMP will be deemed as invalid instruction only JPP is valid JPP JU cannot use self defined name to redefine JMP JN cannot be defined as HYCON origin existed instruction name Correct definition is JMP JUMP 2012 HYCON Technology Corp 09 01 www hycontek com Page 20 HY12S65 HYCON IDE Software User Manual HYGON 3 HYCON IDE Debug Interface It can be classified into hardware debug and software debug e Hardware debug The indication column is blue e Software debug
43. l show up by clicking then users can select the switch network Figure 46 e AD1 VRBUFF Switch 1 Click the specified network name P VERBUFF N VERBUFF switch will be ON OFF 2 Click the specified network switch P VERBUFF N VERBUFF switch will be ON OFF ADGN Network Figure 47 will show up by clicking then users can select the network Figure 47 e VRGN Click the specified network name VRGN can select to that network e Reset Comb Filter Click the specified network name RSTCONB can select to that network When RSTCOMB changed from OFF to ON Comb Filter can be reset 2012 HYCON Technology Corp 09 01 www hycontek com Page 36 12565 HYCON IDE Software User Manual HYGON Network ADFOSR Figure 48 will show up by clicking then users can select the network ADF OSR Z 0 ques Figure 48 e ADC Display zone 1 Select ADC data output type Hex or Dec output 2 Select ADC data output Bit gt From 8 19 Bit output 3 Display output button gt ADC output value will be displayed by clicking this button Click the specified network name ENLPF will be ON OFF When ENADC ON LPF zone will display value Reset LPF Click the specified network name RSLPF can select to that network When RSLPF changes from OFF to ON LPF can de reset e OSR4 Network LPFBW Figure 49 will show up by clicking then users can select the network
44. le EN obj file Use Area Fill List file 00 ASCII file FF stack Option Smart Compiler Stack Over Program Protect Input Program Times Enable Program Times hon Figure 17 B Assembler generated extension it is selectable to produce below file formats 1 Binary file Hex 2 Obj file obj 3 List file Ist 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 HYCON Technology Corp APD HYIDEOO9 VO1 www hycontek com Page 17 12565 HYCON IDE Software User Manual HYGON e Interrupt Setup Hel Interface Setup Interface Setup Build Options Int Setup ICE Test Register OSC Calibration STOP When Stack Watch address Watch enable Watch enable Watch enable Bit M watch enable Wah Vas Watch enable Bit Watch enable Bith Watch enable Bit Watch enable Bit Figure 18 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 pr
45. nderlined Notice The Address 0x00 OxOEof is indirect addressing register 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 pet Mark set Markinew color Reset Mark Reset All Mark set Hint Reset Hint Reset Hint Load RAM Data save Data save excel RAMBANED RAMBANE RAMBANEZ Figure 24 BH Set Mark B Set Mark new color 2012 HYCON Technology Corp 09 01 www hycontek com Page 25 12565 HYCON IDE Software User Manual Hint Reset Mark Reset All Mark Set Hint Reset Hint Reset All Hint Load RAM Data Save RAM Data Save RAMBANKO HYGON N TECHNOLOGY 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 1 0 1 MD2 DS 1 MD3 DS 1 MDL 1 05 1 05 1 MDL3 0 1 4 05 5 o 0 1 Len 0 1 SQRTmp DS 4 Temp 0 1 6 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
46. ng UPDATED DESCRIP IHCLUDE H 12P INC ORG 0 JMP START START CALL DELAY IDLE Size 0 0k 6K Total Code Line 15 main C Program Files HyIDE HyconIDEDI ICE Connect Checksum 0 120 Figure 9 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 program compiles to ensure its correctness Debugging and edit function will be depicted respectively in the following chapters 2012 HYCON Technology Corp APD HYIDEOO9 VO1 EN www hycontek com Page 11 12565 HYCON IDE Software User Manual HYGON 2 HYCON IDE Interface Description 2 1 HYCON IDE Edit Interface IDE Interface Project Name HyconIDE Chip 12265 ICE USB Project Sik IR AUTHOR WATER LEE COMPANY HYCON DEVICE 12 65 INPUT OUTPUT S CREATED 2010 10 15 UPDATED DESCRIP Modified file of size lt 424 byte C Program Files HyIDE HyconIDEDMM DemoCode Ref Code Test asm ICE Connect Checksum 1 204 Main program file name IDE connecting status Checksum after compiled Figure 10 2012 HYCON Technology Corp APD HYIDEOO9 VO1 EN www hycontek com Page 12 12565 HYCON IDE Software User Manual HYGON Edit Window 5 Open file Open the existing e
47. ng program structure to start writing program Basic structure description is listed as below Program Name Definition as ASM e Register Name or RAM Definition as INC Two program contectents are listed below B Testasm amp HO8 inc e structure Program name can be any name Include H12P inc opecial register names and address definition of HY12P series ORG Declare program start JMP START Jump to main program ORG 04H Declare interrupt flag address NOP Interrupt program RET START Start Main program Label name definition can be any word CALL DELAY IDLE NOP DELAY RET END End Program Reference Document IP User Manual User s Guide Instruction Set User Manual Instruction Set Manual HYCON IDE Complier User Manual HY MCU COMPILER Self defined Instruction HYCON IDE for DMM includes user self defined instruction function This function provides user to self define HY12P series instruction as their familiar MCU instructions 2012 HYCON Technology Corp APD HYIDEOO9 VO1 www hycontek com Page 19 12565 HYCON IDE Software User Manual HYGON Usage description 1 ex 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
48. nual HYGON N TECHNOLOGY 4 Programming Windows 4 1 Interface Setup Click Options a window will appear Click the interface setup as shown in Figure 70 AVIDE Mode edit HyconIDEDMM V11 Chip HY 12265 6K ICE Inteface USB Pre e ble amp Run Programmer Options Lp a Interface setup Click window pops up Option W Interface Setup 3X Select gt Interface Setu Build Options Interface Setup E Int Setup ICE Test Register OSC Calibration Chip Select 12P65 EK Language Engish Hardware Interface Interface Mode USB Y IDE Mode emulate and Debug C Programmer Program Memory Select RAM 62256 m Figure 70 Chip Select gt Choose the specific programming IC part no If programmed IC differs from 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 71 p Interface Setup Interface Setup Build Options Select Build Options Int Setup ICE Test Register
49. ogram executed RAM or Register value equals to the monitored Data Monitor Data Monitor value is set when the monitor Data 1 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 e Interface Setup Interface Setup Build Options Int Setup ICE Test Register OSC Calibration SHAM Data Address Write Data Head Data write Head Program ROM Data Address Write Data CK VEL Head D ata Write Head LK ALL Figure 19 2012 HYCON Technology Corp 09 01 www hycontek com Page 18 12565 HYCON IDE Software User Manual HYGON Windows The window can be displayed horizontally or vertically Men HYIDE Mode Edit HyconIDEDMM V1 1 Chip HY 12P65 ICE Inteface USB Project Edit File Edit Search View Assemble amp Run Programmer Options Revision History Tile Verticlly Alt Up Figure 20 5 Y Tile Horizontally Alt Down 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 and instruction set User can refer to the appendix software demo code Chapter 1 6 gives illustration of demo code usage Users can refer to followi
50. select the register RAM to be monitored as shown in Figure 35 ADDWCH Add Delete Watches Edit Watch Delete Watch AlttD Delete All Watches Hide Addr Load Properties save Properties As Clear All Properties Figure 35 2012 HYCON Technology Corp APD HYIDEOO9 VO1 EN www hycontek com Page 31 HY12S65 HYCON IDE Software User Manual HYGON N TECHNOLOGY 3 5 Stack Window View AssmbleSRun exam Eit Hex Watch Static special Register Stack ADC Panel Alt 9 OP Panel Next File Alt Right Previous File Alt Lett Figure 36 Display stack layers Display stack address Figure 37 2012 HYCON Technology Corp APD HYIDEOO9 VO1 EN www hycontek com Page 32 12565 Software User Manual HYGON 3 6 ADC Window Asemble amp Run Edit Alt l source Altt2 Hex Watch Alte4 static RAM 5 Special Register Stack Alte Click ADC Panel _ ADC Panel Panel EL Previous File Alt Left uw E Figure 38 ADCCK Network PNetwork INPBUFF selection A ja P ud eee VRGN AD1 FP FTMOD 1 0 E 1 es Network res VGN x1 ON ADSINB 4 ADIEN MEZESME BA Al AD1 VRBUFF P_VERBUFF N_VERBUFF Network p ari RLU AD1RH Network Re
51. set Comb Filter 000 Network 5 1 Network as LPF output TH ADC gt ae e AD1RL button Display NG Display LPF eS Reset RV LPF Reset LPF s ADC output ADC output bit output OSRY button number type ENLPF Root Absolute ENRMS Figure 39 2012 HYCON Technology Corp APD HYIDEOO9 VO1 EN www hycontek com Page 33 12565 HYCON IDE Software User Manual HYGON Network ADSIP 1 Click the network name then AD1IP can go to the specified network 2 Click it and Figure 40 will be displayed Figure 40 Network ADSIN 1 Click the network name then AD1IN can go to the specified network 2 Click it and Figure 41 will be displayed gt MUX 5 TS2P 5 102100 41 AD1FPNetwork ADSFP 1 Click the network name then AD1FP can to the specified network 2 Click it and Figure 42 will be displayed t FTM OD 1 0 REF 0 P 1 2 3 4 5 ADSIP DOnO ADSIP DUDU ADZIPeODOT 1 s ADSIP 0101 ADSIPaOT 102 ADSIP 0111 ADSIP 1 000 ADSIP 1001 ADSIPs1070 ADSIPz10112 ADSIPs1100 ADSIP lt 1101 Figure 42 AD1FN Network ADSFN 1 Click the network name then AD1FN can go to the sp
52. ssage Next File Previous File Figure 13 2012 HYCON Technology Corp www hycontek com Chip HY 12P65 6l Comparator Panel File Edit Search Assemble amp Run Programmer Opt Alt 1 gt gt DP d Te gt ct Alt 9 Alt Right Alt Left APD HYIDEOO9 VO1 EN 12565 HYCON IDE Software User Manual HYGON Assemble amp Run HyconIDEDMM V1 1 Chip HY 12P65 6K ICE Inteface USB Project Edit File Edit Search View Assemble amp Run Programmer Options Windows Revision History 53 Assemble amp Run Emulation FA a Assemble Ctrl F10 Set Main File Set Mode 2 Simulation v Emulation Ru n ES ep Ove Trace F7 ack Ou StepBack F ntinue Fil f F12 Program Reset F Edit Mode 1 ReLoad ROM Set Break Point F2 Figure 14 Assemble amp Run Emulation gt Assemble Source Code and execute debug mode Assemble 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 Mode Debug mode gt Debug through software or hardware is selective Interface Setup Interface Setup Interface Setup
53. t Code Test asm Simulator Checksum 0 120 Assembles Source Code and download the file to programmer or IDE Flash Memory as Figure 76 illustrated File View Assemble amp Run Programmer Windows Revision re i Assemble and T download to IDE Flash Memory IT Message Program Code lesthex Download OK Program Times Download OK Times Function Enable Program Times 1000 successful Download to programmer or IDE Flash Memory Display the program times that this program can be burned Figure 77 1 When using USB interface the program code will be loaded into programmer or Flash Memory of IDE for mass production programming 2 there is enabled program times in the assembly option information column will display the programming times as shown in Figure 77 3 After assembling completed Hex filename and Checksum will be displayed in underneath section as Figure 78 illustrated 2012 HYCON Technology Corp APD HYIDE009 V01_EN www hycontek com Page 53 HY12S65 HYCON IDE Software User Manual HYGON N TECHNOLOGY Load Hex file name IC connection Hex Checksum display zone v lt gt C Program Files HyIDE HyconIDEDMM DemoCode Ref Code Test hex Checksum 120 Figure 78 2012 HYCON Technology Corp APD
54. tch Address Watch Data for Bin Data Type TW WATCH Maa Figure 33 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 gt 1 Hex L gt Dec gt 1 ijj WATCH Dec L H eng PWRCN 030 FO 111110000 O41 OD 4 options will show up after clicking Move the mouse to here and double clicking Figure 34 Hex H gt L Hex L gt H Hexadecimal display address L H from high to low Dec H gt L Dec L gt H Decimal display address L H from high to low Hexadecimal display address H L from low to high Decimal display address H L from low to high e Watch Data for Bin gt Data display in decimal system only show up when using EQU defined address Data Length 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 Delete All Watches Hide Addr Load Properties save Properties As Clear All Properties 2012 HYCON Technology Corp APD HYIDEOO9 VO1 EN www hycontek com Page 30 12565 HYCON IDE Software User Manual HYGON e Monitor EQU defined Register or RAM click right key of the mouse and
Download Pdf Manuals
Related Search
HY12S65 h12650-r16
Related Contents
1. - Graco Inc. Septembre - Autosphere USER MANUAL MANUEL DE L`UTILISATEUR VGN-NR285E/T Reference III SAマニュアルダウンロード(PDF) 保証とアフターサービス 【必ずお読みください】 4 - Hyundai Power Products Slither SL Booklet.indd MRA200 User Manual "user manual" Copyright © All rights reserved.
Failed to retrieve file