Rev. 1.71 32 April 11, 2017 Rev. 1.71 33 April 11, 2017
HT66F002/HT66F0025/HT66F003/HT66F004
Cost-Effective A/D Flash MCU with EEPROM
HT66F002/HT66F0025/HT66F003/HT66F004
Cost-Effective A/D Flash MCU with EEPROM
STATUS Register
Bit 7 6 5 4 3 2 1 0
Name — — TO PDF OV Z AC C
R/W — — R R R/W R/W R/W R/W
POR — — 0 0 × × × ×
"×" unknown
B
it7~6 Unimplemented,readas"0"
Bit5 TO:WatchdogTime-Outag
0:Afterpoweruporexecutingthe"CLRWDT"or"HALT"instruction
1:Awatchdogtime-outoccurred.
Bit4 PDF:Powerdownag
0:Afterpoweruporexecutingthe"CLRWDT"instruction
1:Byexecutingthe"HALT"instruction
Bit3 OV:Overowag
0:nooverow
1:anoperationresultsinacarryintothehighest-orderbitbutnotacarryoutofthehighest-
orderbitorviceversa.
B
it2 Z:Zeroag
0:Theresultofanarithmeticorlogicaloperationisnotzero
1:Theresultofanarithmeticorlogicaloperationiszero
Bit1 AC:Auxiliaryag
0:noauxiliarycarry
1:anoperationresultsinacarryoutofthelownibblesinaddition,ornoborrowfromthehigh
nibbleintothelownibbleinsubtraction
Bit0 C:Carryag
0:nocarry-out
1:anoperationresultsinacarryduringanadditionoperationorifaborrowdoesnottakeplace
duringasubtractionoperation
Cisalsoaffectedbyarotatethroughcarryinstruction.
EEPROM Data Memory
ThesedevicescontainanareaofinternalEEPROMDataMemory.EEPROM,whichstandsfor
ElectricallyErasableProgrammableReadOnlyMemory,isbyitsnatureanon-volatileformof
memory,withdataretentionevenwhenitspowersupplyisremoved.Byincorporatingthiskind
ofdatamemory,awholenewhostofapplicationpossibilitiesaremadeavailabletothedesigner.
TheavailabilityofEEPROMstorageallowsinformationsuchasproductidenticationnumbers,
calibrationvalues,specicuserdata,systemsetupdataorotherproductinformationtobestored
directlywithintheproductmicrocontroller.TheprocessofreadingandwritingdatatotheEEPROM
memoryhasbeenreducedtoaverytrivialaffair.
EEPROM Data Memory Structure
TheEEPROMDataMemorycapacityis32×8bitsforthisseriesofdevices.UnliketheProgram
MemoryandRAMDataMemory,theEEPROMDataMemoryisnotdirectlymappedandis
thereforenotdirectlyaccessibleinthesamewayastheothertypesofmemory.ReadandWrite
operationstotheEEPROMarecarriedoutinsinglebyteoperationsusingtwoaddressregistersand
onedataregisterinBank0andasinglecontrolregisterinBank1.