Rev. 2.50 44 June 22, 2017 Rev. 2.50 45 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
EEPROM Data Memory
ThedevicecontainsanareaofinternalEEPROMDataMemory.EEPROM,whichstandsfor
ElectricallyErasableProgrammableReadOnlyMemory,isbyitsnatureanon-volatileform
ofre-programmablememory,withdataretentionevenwhenitspowersupplyisremoved.By
incorporatingthiskindofdatamemory,awholenewhostofapplicationpossibilitiesaremade
availabletothedesigner.TheavailabilityofEEPROMstorageallowsinformationsuchasproduct
identificationnumbers,calibrationvalues,specificuserdata,systemsetupdataorotherproduct
informationtobestoreddirectlywithintheproductmicrocontroller.Theprocessofreadingand
writingdatatotheEEPROMmemoryhasbeenreducedtoaverytrivialaffair.
EEPROM Data Memory Structure
TheEEPROMDataMemorycapacityvariesfrom32×8to256×8bits,accordingtothedevice
selected.UnliketheProgramMemoryandRAMDataMemory,theEEPROMDataMemoryisnot
directlymappedintomemoryspaceandisthereforenotdirectlyaddressableinthesamewayasthe
othertypesofmemory.ReadandWriteoperationstotheEEPROMarecarriedoutinsinglebyte
operationsusinganaddressanddataregisterinBank0andasinglecontrolregisterinBank1.
Device Capacity Address
HT66F20 32×8
00H~1FH
HT66F30 64×8 00H~3FH
HT66F40
128×8 00H~7FH
HT66F50/HT66F60 256×8 00H~FFH
EEPROM Registers
ThreeregisterscontroltheoveralloperationoftheinternalEEPROMDataMemory.Thesearethe
addressregister,EEA,thedataregister,EEDandasinglecontrolregister,EEC.AsboththeEEA
andEEDregistersarelocatedinBank0,theycanbedirectlyaccessedinthesamewasasanyother
SpecialFunctionRegister.TheEECregisterhowever,beinglocatedinBank1,cannotbedirectly
addresseddirectlyandcanonlybereadfromorwrittentoindirectlyusingtheMP1MemoryPointer
andIndirectAddressingRegister,IAR1.BecausetheEECcontrolregisterislocatedataddress40H
inBank1,theMP1MemoryPointermustrstbesettothevalue40HandtheBankPointerregister,
BP,settothevalue,01H,beforeanyoperationsontheEECregisterareexecuted.