| Electronic Components Datasheet Search |
|
HT45F4M Datasheet(PDF) 122 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F4M Datasheet(HTML) 122 Page - Holtek Semiconductor Inc |
|
122 / 138 page ![]() Rev. 1.10 1�� �an�a�� 1�� �01� Rev. 1.10 1�� �an�a�� 1�� �01� HT45F4M Lithium Battery Backup Power ASSP MCU HT45F4M Lithium Battery Backup Power ASSP MCU Logical and Rotate Operations ThestandardlogicaloperationssuchasAND,OR,XORandCPLallhavetheirowninstruction withintheHoltekmicrocontrollerinstructionset.Aswiththecaseofmostinstructionsinvolving datamanipulation,datamustpassthroughtheAccumulatorwhichmayinvolveadditional programmingsteps.Inalllogicaldataoperations,thezeroflagmaybesetiftheresultofthe operationiszero.Anotherformoflogicaldatamanipulationcomesfromtherotateinstructionssuch asRR,RL,RRCandRLCwhichprovideasimplemeansofrotatingonebitrightorleft.Different rotateinstructionsexistdependingonprogramrequirements.Rotateinstructionsareusefulforserial portprogrammingapplicationswheredatacanberotatedfromaninternalregisterintotheCarry bitfromwhereitcanbeexaminedandthenecessaryserialbitsethighorlow.Anotherapplication whererotatedataoperationsareusedistoimplementmultiplicationanddivisioncalculations. Branches and Control Transfer ProgrambranchingtakestheformofeitherjumpstospecifiedlocationsusingtheJMPinstructionor toasubroutineusingtheCALLinstruction.Theydifferinthesensethatinthecaseofasubroutine call,theprogrammustreturntotheinstructionimmediatelywhenthesubroutinehasbeencarried out.ThisisdonebyplacingareturninstructionRETinthesubroutinewhichwillcausetheprogram tojumpbacktotheaddressrightaftertheCALLinstruction.InthecaseofaJMPinstruction,the programsimplyjumpstothedesiredlocation.Thereisnorequirementtojumpbacktotheoriginal jumpingoffpointasinthecaseoftheCALLinstruction.Onespecialandextremelyusefulset ofbranchinstructionsaretheconditionalbranches.Hereadecisionisfirstmaderegardingthe conditionofacertaindatamemoryorindividualbits.Dependingupontheconditions,theprogram willcontinuewiththenextinstructionorskipoveritandjumptothefollowinginstruction.These instructionsarethekeytodecisionmakingandbranchingwithintheprogramperhapsdetermined bytheconditionofcertaininputswitchesorbytheconditionofinternaldatabits. Bit Operations TheabilitytoprovidesinglebitoperationsonDataMemoryisanextremelyflexiblefeatureofall Holtekmicrocontrollers.Thisfeatureisespeciallyusefulforoutputportbitprogrammingwhere individualbitsorportpinscanbedirectlysethighorlowusingeitherthe″SET[m].i″or″CLR[m].i″ instructionsrespectively.Thefeatureremovestheneedforprogrammerstofirstreadthe8-bitoutput port,manipulatetheinputdatatoensurethatotherbitsarenotchangedandthenoutputtheportwith thecorrectnewdata.Thisread-modify-writeprocessistakencareofautomaticallywhenthesebit operationinstructionsareused. Table Read Operations Datastorageisnormallyimplementedbyusingregisters.However,whenworkingwithlarge amountsoffixeddata,thevolumeinvolvedoftenmakesitinconvenienttostorethefixeddatain theDataMemory.Toovercomethisproblem,HoltekmicrocontrollersallowanareaofProgram Memorytobesetupasatablewheredatacanbedirectlystored.Asetofeasytouseinstructions providesthemeansbywhichthisfixeddatacanbereferencedandretrievedfromtheProgram Memory. Other Operations Inadditiontotheabovefunctionalinstructions,arangeofotherinstructionsalsoexistsuchas the″HALT″instructionforPower-downoperationsandinstructionstocontroltheoperationof theWatchdogTimerforreliableprogramoperationsunderextremeelectricorelectromagnetic environments.Fortheirrelevantoperations,refertothefunctionalrelatedsections. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |