HT45FH4M
Lithium Battery Backup Power ASSP MCU
Look-up Table
AnyꢀlocationꢀwithinꢀtheꢀProgramꢀMemoryꢀcanꢀbeꢀdefinedꢀasꢀaꢀlook-upꢀtableꢀwhereꢀprogrammersꢀcanꢀ
storeꢀfixedꢀdata.ꢀToꢀuseꢀtheꢀlook-upꢀtable,ꢀtheꢀtableꢀpointerꢀmustꢀfirstꢀbeꢀsetupꢀbyꢀplacingꢀtheꢀaddressꢀ
ofꢀtheꢀlookꢀupꢀdataꢀtoꢀbeꢀretrievedꢀinꢀtheꢀtableꢀpointerꢀregister,ꢀTBLPꢀandꢀTBHP.ꢀTheseꢀregistersꢀ
defineꢀ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ꢀflowꢀofꢀtheꢀlook-upꢀtable.
P
o
r
r
g
m
a
M
m
e
r
o
y
L
a
t
s
p
g
o
r
e
T
H
B
P
R
e
s
g
e
t
i
r
D
t
a
a
1
6
b
i
s
t
T
L
B
P
R
e
i
g
t
s
r
e
U
e
s
r
S
e
e
l
t
c
d
e
R
g
e
s
i
e
t
r
T
B
H
L
R
g
e
s
i
e
t
r
H
g
i
h
B
y
e
t
o
L
w
B
y
e
t
Table Location Bits
Instruction
b10
@10
1
b9
b8
@8
1
b7
b6
@6
@6
b5
@ꢃ
@ꢃ
b4
@4
@4
b3
@ꢆ
@ꢆ
b2
@ꢅ
@ꢅ
b1
@1
@1
b0
@0
@0
TABRD [m]
@9
1
@7
@7
TABRDL [m]
Table Location
Note:ꢀb10~b0:ꢀTableꢀlocationꢀbits
@7~@0:ꢀTableꢀpointerꢀ(TBLP)ꢀbits
@10~@8:ꢀTableꢀpointerꢀ(TBHP)ꢀbits
Rev. 1.10
18
�anꢀaꢁꢂ 1ꢃꢄ ꢅ01ꢆ