Rev. 1.71 22 April 11, 2017 Rev. 1.71 23 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
Flash Program Memory
TheProgramMemoryisthelocationwheretheusercodeorprogramisstored.Forthesedevicesthe
ProgramMemoryareFlashtype,whichmeansitcanbeprogrammedandre-programmedalarge
numberoftimes,allowingtheusertheconvenienceofcodemodificationonthesamedevice.By
usingtheappropriateprogrammingtools,theseFlashdevicesofferuserstheexibilitytoconveniently
debuganddeveloptheirapplicationswhilealsoofferingameansofeldprogrammingandupdating.
Device Capacity
HT66F002/HT66F003 1K
×
14
HT66F0025 2K
×
14
HT66F004 2K
×
15
Structure
TheProgramMemoryhasacapacityof1K×14,2K×14or2K×15bits.TheProgramMemoryis
addressedbytheProgramCounterandalsocontainsdata,tableinformationandinterruptentries.Table
data,whichcanbesetupinanylocationwithintheProgramMemory,isaddressedbyaseparatetable
pointerregister.
000H
Initialisation Vector
004H
3FFH
14 bits
Interrupt Vectors
Look-up Table
n00H
nFFH
HT66F002
Initialisation Vector
14 bits
Interrupt Vectors
Look-up Table
Initialisation Vector
15 bits
Interrupt Vectors
Look-up Table
7FFH
01CH
HT66F003 HT66F004
018H
Initialisation Vector
14 bits
Interrupt Vectors
Look-up Table
HT66F0025
7FFH
Program Memory Structure
Special Vectors
WithintheProgramMemory,certainlocationsarereservedfortheresetandinterrupts.Thelocation
000Hisreservedforusebythesedevicesresetforprograminitialisation.Afteradeviceresetis
initiated,theprogramwilljumptothislocationandbeginexecution.
Look-up Table
AnylocationwithintheProgramMemorycanbedenedasalook-uptablewhereprogrammerscan
storexeddata.Tousethelook-uptable,thetablepointermustrstbesetupbyplacingtheaddress
ofthelookupdatatoberetrievedinthetablepointerregister,TBLP.Thisregisterdenesthetotal
addressofthelook-uptable.
Aftersettingupthetablepointer,thetabledatacanberetrievedfromtheProgramMemoryusing
the“TABRD[m]”or“TABRDL[m]”instructions,respectively.Whentheinstructionisexecuted,
thelowerordertablebytefromtheProgramMemorywillbetransferredtotheuserdefined
DataMemoryregister[m]asspecifiedintheinstruction.Thehigherordertabledatabytefrom
theProgramMemorywillbetransferredtotheTBLHspecialregister.Anyunusedbitsinthis
transferredhigherorderbytewillbereadas“0”.