| 数据搜索系统,热门电子元器件搜索 |
|
HT45F2002 数据表(PDF) 16 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F2002 数据表(HTML) 16 Page - Holtek Semiconductor Inc |
|
16 / 31 page ![]() Rev. 1.00 1� ���� 1�� �01� Rev. 1.00 17 ���� 1�� �01� HT45F2002 2-Wire Communication Flash MCU HT45F2002 2-Wire Communication Flash MCU Instruction Set Introduction Centraltothesuccessfuloperationofanymicrocontrollerisitsinstructionset,whichisasetof programinstructioncodesthatdirectsthemicrocontrollertoperformcertainoperations.Inthecase ofHoltekmicrocontroller,acomprehensiveandflexiblesetofover60instructionsisprovidedto enableprogrammerstoimplementtheirapplicationwiththeminimumofprogrammingoverheads. Foreasierunderstandingofthevariousinstructioncodes,theyhavebeensubdividedintoseveral functionalgroupings. Instruction Timing Mostinstructionsareimplementedwithinoneinstructioncycle.Theexceptionstothisarebranch, call,ortablereadinstructionswheretwoinstructioncyclesarerequired.Oneinstructioncycleis equalto4systemclockcycles,thereforeinthecaseofan8MHzsystemoscillator,mostinstructions wouldbeimplementedwithin0.5μsandbranchorcallinstructionswouldbeimplementedwithin 1μs.Althoughinstructionswhichrequireonemorecycletoimplementaregenerallylimitedto theJMP,CALL,RET,RETIandtablereadinstructions,itisimportanttorealizethatanyother instructionswhichinvolvemanipulationoftheProgramCounterLowregisterorPCLwillalsotake onemorecycletoimplement.AsinstructionswhichchangethecontentsofthePCLwillimplya directjumptothatnewaddress,onemorecyclewillberequired.Examplesofsuchinstructions wouldbe“CLRPCL”or“MOVPCL,A”.Forthecaseofskipinstructions,itmustbenotedthatif theresultofthecomparisoninvolvesaskipoperationthenthiswillalsotakeonemorecycle,ifno skipisinvolvedthenonlyonecycleisrequired. Moving and Transferring Data Thetransferofdatawithinthemicrocontrollerprogramisoneofthemostfrequentlyused operations.MakinguseofseveralkindsofMOVinstructions,datacanbetransferredfromregisters totheAccumulatorandvice-versaaswellasbeingabletomovespecificimmediatedatadirectly intotheAccumulator.Oneofthemostimportantdatatransferapplicationsistoreceivedatafrom theinputportsandtransferdatatotheoutputports. Arithmetic Operations Theabilitytoperformcertainarithmeticoperationsanddatamanipulationisanecessaryfeatureof mostmicrocontrollerapplications.WithintheHoltekmicrocontrollerinstructionsetarearangeof addandsubtractinstructionmnemonicstoenablethenecessaryarithmetictobecarriedout.Care mustbetakentoensurecorrecthandlingofcarryandborrowdatawhenresultsexceed255for additionandlessthan0forsubtraction.TheincrementanddecrementinstructionssuchasINC, INCA,DECandDECAprovideasimplemeansofincreasingordecreasingbyavalueofoneofthe valuesinthedestinationspecified. |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |