User`s guide

Rev. 1.10 18 November 14, 2014 Rev. 1.10 19 November 14, 2014
HT66FW2230
Wireless Charger A/D Flash 8-Bit MCU


  

 



Program Memory Structure
Look-up Table
AnylocationwithintheProgramMemorycanbedenedasalook-uptablewhereprogrammerscan
storexeddata.Tousethelook-uptable,thetablepointermustrstbesetupbyplacingtheaddress
ofthelookupdatatoberetrievedinthetablepointerregister,TBLPandTBHP.Theseregisters
denethetotaladdressofthelook-uptable.
Aftersettingupthetablepointer,thetabledatacanberetrievedfromtheProgramMemoryusing
the“TABRD[m]”or“TABRDL[m]”instructions,respectively.Whentheinstructionisexecuted,
thelowerordertablebytefromtheProgramMemorywillbetransferredtotheuserdefined
DataMemoryregister[m]asspecifiedintheinstruction.Thehigherordertabledatabytefrom
theProgramMemorywillbetransferredtotheTBLHspecialregister.Anyunusedbitsinthis
transferredhigherorderbytewillbereadas“0”.
Theaccompanyingdiagramillustratestheaddressingdataowofthelook-uptable.
Register T BLH
User S electe d
Register
High B yteLow B yte
Last p age o r
TBHP R egister
TBLP R egis te r
Data
Address
16 b its
 
Instruction
Table Location Bits
b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
TABRD [m] @11 @10 @9 @8 @7 @6 @5 @4 @3 @2 @1 @0
TABRDL [m] 1 1 1 1 @7 @6 @5 @4 @3 @2 @1 @0
Table Location
Note:b11~b0:Tablelocationbits
@7~@0:Tablepointer(TBLP)bits
@11~@8:Tablepointer(TBHP)bits