Rev. 1.50 36 August 28, 2017 Rev. 1.50 37 August 28, 2017
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
EEPROM Data Memory
ThesedevicescontainanareaofinternalEEPROMDataMemory.EEPROM,whichstandsfor
ElectricallyErasableProgrammableReadOnlyMemory,isbyitsnatureanon-volatileform
ofre-programmablememory,withdataretentionevenwhenitspowersupplyisremoved.By
incorporatingthiskindofdatamemory,awholenewhostofapplicationpossibilitiesaremade
availabletothedesigner.TheavailabilityofEEPROMstorageallowsinformationsuchasproduct
identificationnumbers,calibrationvalues,specificuserdata,systemsetupdataorotherproduct
informationtobestoreddirectlywithintheproductmicrocontroller.Theprocessofreadingand
writingdatatotheEEPROMmemoryhasbeenreducedtoaverytrivialaffair.
EEPROM Data Memory Structure
TheEEPROMDataMemorycapacityisupto128×8bitsfortheseriesofdevices.Unlikethe
ProgramMemoryandRAMDataMemory,theEEPROMDataMemoryisnotdirectlymapped
intomemoryspaceandisthereforenotdirectlyaddressableinthesamewayastheothertypesof
memory.ReadandWriteoperationstotheEEPROMarecarriedoutinsinglebyteoperationsusing
anaddressanddataregisterinbank0andasinglecontrolregisterinbank1.
Device Capacity Address
HT66F0175 64 × 8 00H ~ 3FH
HT66F0185 128 × 8 00H ~ 7FH
EEPROM Registers
ThreeregisterscontroltheoveralloperationoftheinternalEEPROMDataMemory.Thesearethe
addressregister,EEA,thedataregister,EEDandasinglecontrolregister,EEC.AsboththeEEA
andEEDregistersarelocatedinbank0,theycanbedirectlyaccessedinthesamewasasanyother
SpecialFunctionRegister.TheEECregister,however,beinglocatedinbank1,canbereadfrom
orwrittentoindirectlyusingtheMP1MemoryPointerandIndirectAddressingRegister,IAR1.
BecausetheEECcontrolregisterislocatedataddress40Hinbank1,theMP1MemoryPointer
registermustrstbesettothevalue40HandtheBankPointerregister,BP,settothevalue,01H,
beforeanyoperationsontheEECregisterareexecuted.
Register Name
Bit
7 6 5 4 3 2 1 0
EEA (HT66F0175) — — EEA5 EEA4 EEA3 EEA2 EEA1 EEA0
EEA (HT66F0185) — EEA6 EEA5 EEA4 EEA3 EEA2 EEA1 EEA0
EED D7 D6 D5 D4 D3 D2 D1 D0
EEC — — — — WREN WR RDEN RD
EEPROM Registers List
EEA Register – HT66F0175
Bit 7 6 5 4 3 2 1 0
Name — — EEA5 EEA4 EEA3 EEA2 EEA1 EEA0
R/W — — R/W R/W R/W R/W R/W R/W
POR — — 0 0 0 0 0 0
Bit7~6 Unimplemented,readas“0”
Bit5~0 EEA5~EEA0:DataEEPROMaddressbit5~bit0