Rev. 2.50 28 June 22, 2017 Rev. 2.50 29 June 22, 2017
HT66F20/HT66F30/HT66F40/HT66F50/HT66F60
HT66FU30/HT66FU40/HT66FU50/HT66FU60
A/D Flash MCU with EEPROM
HT66F20/HT66F30/HT66F40/HT66F50/HT66F60
HT66FU30/HT66FU40/HT66FU50/HT66FU60
A/D Flash MCU with EEPROM
Forinstructionsinvolvingbranches,suchasjumporcallinstructions,twomachinecyclesare
requiredtocompleteinstructionexecution.Anextracycleisrequiredastheprogramtakesone
cycletorstobtaintheactualjumporcalladdressandthenanothercycletoactuallyexecutethe
branch.Therequirementforthisextracycleshouldbetakenintoaccountbyprogrammersintiming
sensitiveapplications.
Instruction Fetching
Program Counter
Duringprogramexecution,theProgramCounterisusedtokeeptrackoftheaddressofthenext
instructiontobeexecuted.Itisautomaticallyincrementedbyoneeachtimeaninstructionis
executedexceptforinstructions,suchas"JMP"or"CALL"thatdemandajumptoanon-consecutive
ProgramMemoryaddress.Onlythelower8bits,knownastheProgramCounterLowRegister,are
directlyaddressablebytheapplicationprogram.
Whenexecutinginstructionsrequiringjumpstonon-consecutiveaddressessuchasajumpinstruction,
asubroutinecall,interruptorreset,etc.,themicrocontrollermanagesprogramcontrolbyloading
therequiredaddressintotheProgramCounter.Forconditionalskipinstructions,oncethecondition
hasbeenmet,thenextinstruction,whichhasalreadybeenfetchedduringthepresentinstruction
execution,isdiscardedandadummycycletakesitsplacewhilethecorrectinstructionisobtained.
Device
Program Counter
Porgram Counter High Byte PCL Register
HT66F20
PC9, PC8
PCL7~PCL0
HT66F30 PC10~PC8
HT66F40 PC11~PC8
HT66F50 PC12~PC8
HT66F60 PMBP0, PC12~PC8
Program Counter
ThelowerbyteoftheProgramCounter,knownastheProgramCounterLowregisterorPCL,is
availableforprogramcontrolandisareadableandwriteableregister.Bytransferringdatadirectly
intothisregister,ashortprogramjumpcanbeexecuteddirectly,however,asonlythislowbyte
isavailableformanipulation,thejumpsarelimitedtothepresentpageofmemory,thatis256
locations.Whensuchprogramjumpsareexecuteditshouldalsobenotedthatadummycycle
willbeinserted.ManipulatingthePCLregistermaycauseprogrambranching,soanextracycleis
neededtopre-fetch.