Rev. 1.50 34 August 28, 2017 Rev. 1.50 35 August 28, 2017
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
Bank Pointer – BP
FortheHT66F0185device,theDataMemoryisdividedintotwobanks,Bank0andBank1.
SelectingtherequiredDataMemoryareaisachievedusingtheBankPointer.Bit0oftheBank
PointerisusedtoselectDataMemoryBanks0~1.TheDataMemoryisinitialisedtoBank0aftera
reset,exceptforaWDTtime-outresetinthePowerDownMode,inwhichcase,theDataMemory
bankremainsunaffected.ItshouldbenotedthattheSpecialFunctionDataMemoryisnotaffected
bythebankselection,whichmeansthattheSpecialFunctionRegisterscanbeaccessedfrom
withinanybank.DirectlyaddressingtheDataMemorywillalwaysresultinBank0beingaccessed
irrespectiveofthevalueoftheBankPointer.AccessingdatafromBank1mustbeimplemented
usingIndirectAddressing.
BP Register – HT66F0185
Bit 7 6 5 4 3 2 1 0
Name — — — — — — — DMBP0
R/W — — — — — — — R/W
POR — — — — — — — 0
Bit7~1 Unimplemented,readas“0”
Bit0 DMBP0:SelectDataMemoryBanks
0:Bank0
1:Bank1
Accumulator – ACC
TheAccumulatoriscentraltotheoperationofanymicrocontrollerandiscloselyrelatedwith
operationscarriedoutbytheALU.TheAccumulatoristheplacewhereallintermediateresults
fromtheALUarestored.WithouttheAccumulatoritwouldbenecessarytowritetheresultof
eachcalculationorlogicaloperationsuchasaddition,subtraction,shift,etc.,totheDataMemory
resultinginhigherprogrammingandtimingoverheads.Datatransferoperationsusuallyinvolve
thetemporarystoragefunctionoftheAccumulator;forexample,whentransferringdatabetween
oneuserdefinedregisterandanother,itisnecessarytodothisbypassingthedatathroughthe
Accumulatorasnodirecttransferbetweentworegistersispermitted.
Program Counter Low Register – PCL
Toprovideadditionalprogramcontrolfunctions,thelowbyteoftheProgramCounterismade
accessibletoprogrammersbylocatingitwithintheSpecialPurposeareaoftheDataMemory.By
manipulatingthisregister,directjumpstootherprogramlocationsareeasilyimplemented.Loading
avaluedirectlyintothisPCLregisterwillcauseajumptothespeciedProgramMemorylocation,
however,astheregisterisonly8-bitwide,onlyjumpswithinthecurrentProgramMemorypageare
permitted.Whensuchoperationsareused,notethatadummycyclewillbeinserted.
Look-up Table Registers – TBLP, TBHP, TBLH
Thesethreespecialfunctionregistersareusedtocontroloperationofthelook-uptablewhichis
storedintheProgramMemory.TBLPandTBHParethetablepointerandindicatesthelocation
wherethetabledataislocated.Theirvaluemustbesetupbeforeanytablereadcommandsare
executed.Theirvaluecanbechanged,forexampleusingthe“INC”or“DEC”instructions,allowing
foreasytabledatapointingandreading.TBLHisthelocationwherethehighorderbyteofthetable
dataisstoredafteratablereaddatainstructionhasbeenexecuted.Notethatthelowerordertable
databyteistransferredtoauserdenedlocation.