| Electronic Components Datasheet Search |
|
HT68F003 Datasheet(PDF) 15 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT68F003 Datasheet(HTML) 15 Page - Holtek Semiconductor Inc |
|
15 / 119 page ![]() Rev. 1.41 14 April 11, 2017 Rev. 1.41 15 April 11, 2017 HT68F002/HT68F0025/HT68F003 Cost-Effective Flash MCU with EEPROM HT68F002/HT68F0025/HT68F003 Cost-Effective Flash MCU with EEPROM 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-consecutiveaddressessuchasajumpinstruction, asubroutinecall,interruptorreset,etc.,themicrocontrollermanagesprogramcontrolbyloading therequiredaddressintotheProgramCounter.Forconditionalskipinstructions,oncethecondition hasbeenmet,thenextinstruction,whichhasalreadybeenfetchedduringthepresentinstruction execution,isdiscardedandadummycycletakesitsplacewhilethecorrectinstructionisobtained. Device Program Counter Program Counter High byte PCL Register HT68F002/HT68F003 PC9~PC8 PCL7~PCL0 HT68F0025 PC10~PC8 PCL7~PCL0 ThelowerbyteoftheProgramCounter,knownastheProgramCounterLowregisterorPCL,is availableforprogramcontrolandisareadableandwriteableregister.Bytransferringdatadirectly intothisregister,ashortprogramjumpcanbeexecuteddirectly,however,asonlythislowbyteis availableformanipulation,thejumpsarelimitedtothepresentpageofmemory,thatis256locations. Whensuchprogramjumpsareexecuteditshouldalsobenotedthatadummycyclewillbeinserted. ManipulatingthePCLregistermaycauseprogrambranching,soanextracycleisneededtopre-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 |