HT45FH4M
Lithium Battery Backup Power ASSP MCU
f
S
S
Y
(
y
S
t
s
m
e
C
o
c
l
k
)
P
P
P
P
a
a
a
a
h
h
h
h
e
e
e
e
s
s
s
s
C
C
C
C
o
o
o
o
c
c
c
c
l
l
l
l
T
T
T
T
k
k
k
k
1
2
3
4
P
o
r
g
a
r
m
C
o
u
e
n
r
t
P
C
P
+
C
1
P
+
C
2
F
t
e
h
c
I
s
n
t
(
.
C
P
)
P
p
i
l
e
n
i
i
n
g
E
e
x
c
e
u
I
s
t
t
n
.
P
-
C
(
)
1
F
t
e
h
c
I
s
n
.
t
(
C
P
1
+
)
E
e
x
c
e
u
I
s
n
t
t
.
P
)
C
(
F
t
e
h
c
I
s
n
.
t
(
C
P
2
+
)
E
e
x
c
e
u
I
s
t
t
n
.
P
+
C
(
)
1
System Clock and Pipelining
Forꢀinstructionsꢀinvolvingꢀbranches,ꢀsuchꢀasꢀjumpꢀorꢀcallꢀinstructions,ꢀtwoꢀmachineꢀcyclesꢀareꢀ
requiredꢀtoꢀcompleteꢀinstructionꢀexecution.ꢀAnꢀextraꢀcycleꢀisꢀrequiredꢀasꢀtheꢀprogramꢀtakesꢀoneꢀ
cycleꢀtoꢀfirstꢀobtainꢀtheꢀactualꢀjumpꢀorꢀcallꢀaddressꢀandꢀthenꢀanotherꢀcycleꢀtoꢀactuallyꢀexecuteꢀtheꢀ
branch.ꢀTheꢀrequirementꢀforꢀthisꢀextraꢀcycleꢀshouldꢀbeꢀtakenꢀintoꢀaccountꢀbyꢀprogrammersꢀinꢀtimingꢀ
sensitiveꢀapplications.
F
t
e
h
c
I
s
n
.
t
1
x
E
c
e
t
u
e
n
t
s
I
.
1
1
2
3
4
5
6
M
V
O
A
[
2
1
,
]
H
F
t
e
h
c
I
s
t
n
2
.
E
e
x
c
e
u
I
s
n
t
t
.
2
C
C
:
:
N
L
A
P
L
D
E
L
A
Y
F
t
e
h
c
I
s
t
n
3
.
F
u
l
h
s
P
p
i
l
e
n
i
e
L
[
1
2
]
H
F
t
e
h
c
I
s
n
.
t
6
E
e
x
c
e
u
I
s
t
t
n
.
6
F
t
e
h
c
I
s
n
t
7
.
D
L
E
A
Y
:
P
O
Instruction Fetching
Program Counter
Duringꢀprogramꢀexecution,ꢀtheꢀProgramꢀCounterꢀisꢀusedꢀtoꢀkeepꢀtrackꢀofꢀtheꢀaddressꢀofꢀtheꢀ
nextꢀinstructionꢀtoꢀbeꢀexecuted.ꢀItꢀisꢀautomaticallyꢀincrementedꢀbyꢀoneꢀeachꢀtimeꢀanꢀinstructionꢀ
isꢀexecutedꢀexceptꢀforꢀinstructions,ꢀsuchꢀasꢀ“JMP”ꢀorꢀ“CALL”ꢀthatꢀdemandꢀaꢀjumpꢀtoꢀaꢀnon-
consecutiveꢀProgramꢀMemoryꢀaddress.ꢀOnlyꢀtheꢀlowerꢀ8ꢀbits,ꢀknownꢀasꢀtheꢀProgramꢀCounterꢀLowꢀ
Register,ꢀareꢀdirectlyꢀaddressableꢀbyꢀtheꢀapplicationꢀprogram.
Whenꢀexecutingꢀinstructionsꢀrequiringꢀjumpsꢀtoꢀnon-consecutiveꢀaddressesꢀsuchꢀasꢀaꢀjumpꢀinstruction,ꢀ
aꢀsubroutineꢀcall,ꢀinterruptꢀorꢀreset,ꢀetc.,ꢀtheꢀmicrocontrollerꢀmanagesꢀprogramꢀcontrolꢀbyꢀloadingꢀtheꢀ
requiredꢀaddressꢀintoꢀtheꢀProgramꢀCounter.ꢀForꢀconditionalꢀskipꢀinstructions,ꢀonceꢀtheꢀconditionꢀhasꢀ
beenꢀmet,ꢀtheꢀnextꢀinstruction,ꢀwhichꢀhasꢀalreadyꢀbeenꢀfetchedꢀduringꢀtheꢀpresentꢀinstructionꢀexecution,ꢀ
isꢀdiscardedꢀandꢀaꢀdummyꢀcycleꢀtakesꢀitsꢀplaceꢀwhileꢀtheꢀcorrectꢀinstructionꢀisꢀobtained.
Program Counter
Program Counter High byte
PCL Register
PC10~PC8
PCL7~PCL0
Rev. 1.10
1ꢃ
�anꢀaꢁꢂ 1ꢃꢄ ꢅ01ꢆ