| Electronic Components Datasheet Search |
|
HT45F5Q Datasheet(PDF) 17 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F5Q Datasheet(HTML) 17 Page - Holtek Semiconductor Inc |
|
17 / 114 page ![]() Rev. 1.10 1� De�e��e� 1�� �01� Rev. 1.10 17 De�e��e� 1�� �01� HT45F5Q Charger Flash MCU HT45F5Q Charger Flash MCU Fe tc h In st . 1E xe cu te I ns t. 1 Fe tc h In st . 2 Fl us h Pi pel in e 1 2 3 4 5 6 DE LA Y: MO V A, [1 2H ] CA LL D EL AY CP L [ 12H ] : : NO P Ex ec ut e In st . 2 Fe tc h In st . 3 Fe tc h In st . 6 Ex ec ut e In s t. 6 Fe tc h In st . 7 Instruction Fetching Program Counter Duringprogramexecution,theProgramCounterisusedtokeeptrackoftheaddressofthe nextinstructiontobeexecuted.Itisautomaticallyincrementedbyoneeachtimeaninstruction isexecutedexceptforinstructions,suchas“JMP”or“CALL”thatdemandajumptoanon- consecutiveProgramMemoryaddress.Onlythelower8bits,knownastheProgramCounterLow Register,aredirectlyaddressablebytheapplicationprogram. Whenexecutinginstructionsrequiringjumpstonon-consecutiveaddressessuchasajump instruction,asubroutinecall,interruptorreset,etc.,themicrocontrollermanagesprogramcontrol byloadingtherequiredaddressintotheProgramCounter.Forconditionalskipinstructions,once theconditionhasbeenmet,thenextinstruction,whichhasalreadybeenfetchedduringthepresent instructionexecution,isdiscardedandadummycycletakesitsplacewhilethecorrectinstructionis obtained. Program Counter Program Counter High byte PCL Register PC10~PC8 PCL7~PCL0 ThelowerbyteoftheProgramCounter,knownastheProgramCounterLowregisterorPCL,is availableforprogramcontrolandisareadableandwriteableregister.Bytransferringdatadirectly intothisregister,ashortprogramjumpcanbeexecuteddirectly,however,asonlythislowbyte isavailableformanipulation,thejumpsarelimitedtothepresentpageofmemory,thatis256 locations.Whensuchprogramjumpsareexecuteditshouldalsobenotedthatadummycycle willbeinserted.ManipulatingthePCLregistermaycauseprogrambranching,soanextracycleis neededtopre-fetch. Stack ThisisaspecialpartofthememorywhichisusedtosavethecontentsoftheProgramCounter only.Thestackisneitherpartofthedatanorpartoftheprogramspace,andisneitherreadablenor writeable.TheactivatedlevelisindexedbytheStackPointer,andisneitherreadablenorwriteable. Atasubroutinecallorinterruptacknowledgesignal,thecontentsoftheProgramCounterarepushed ontothestack.Attheendofasubroutineoraninterruptroutine,signaledbyareturninstruction, RETorRETI,theProgramCounterisrestoredtoitspreviousvaluefromthestack.Afteradevice reset,theStackPointerwillpointtothetopofthestack. Ifthestackisfullandanenabledinterrupttakesplace,theinterruptrequestflagwillberecorded buttheacknowledgesignalwillbeinhibited.WhentheStackPointerisdecremented,byRETor RETI,theinterruptwillbeserviced.Thisfeaturepreventsstackoverflowallowingtheprogrammer tousethestructuremoreeasily.However,whenthestackisfull,aCALLsubroutineinstructioncan stillbeexecutedwhichwillresultinastackoverflow.Precautionsshouldbetakentoavoidsuch caseswhichmightcauseunpredictableprogrambranching.Ifthestackisoverflow,thefirstProgram Countersaveinthestackwillbelost. |
|
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 |