HT45F12
8-Bit Flash MCU with Op Amps & Comparators
F
t
e
h
c
I
s
n
.
t
1
x
E
e
t
c
e
n
u
t
.
s
I
1
1
2
3
4
5
6
M
V
O
A
[
,
2
1
]
H
C
C
:
:
N
L
A
P
L
D
E
A
L
Y
F
t
e
h
c
I
s
n
.
t
2
E
e
x
c
u
I
s
n
t
.
t
2
e
L
[
1
2
]
H
F
t
e
h
c
I
s
n
.
t
3
F
u
l
h
s
P
p
i
i
e
e
n
l
F
t
e
h
c
I
s
n
.
t
6
E
e
x
c
u
I
s
n
t
t
e
.
6
P
O
F
t
e
h
c
I
s
n
.
t
7
D
L
E
Y
A
:
Instruction Fetching
Program Counter – PC
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.ꢀItꢀmustꢀbeꢀnotedꢀthatꢀonlyꢀtheꢀlowerꢀ8ꢀbits,ꢀknownꢀasꢀtheꢀ
ProgramꢀCounterꢀLowꢀRegister,ꢀareꢀdirectlyꢀaddressableꢀbyꢀuser.
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
PC9~PC8
PCL7~PCL0
TheꢀlowerꢀbyteꢀofꢀtheꢀProgramꢀCounter,ꢀknownꢀasꢀtheꢀProgramꢀCounterꢀLowꢀregisterꢀorꢀPCL,ꢀisꢀ
availableꢀforꢀprogramꢀcontrolꢀandꢀisꢀaꢀreadableꢀandꢀwriteableꢀregister.ꢀByꢀtransferringꢀdataꢀdirectlyꢀ
intoꢀthisꢀregister,ꢀaꢀshortꢀprogramꢀjumpꢀcanꢀbeꢀexecutedꢀdirectly,ꢀhowever,ꢀasꢀonlyꢀthisꢀlowꢀbyteꢀ
isꢀavailableꢀforꢀmanipulation,ꢀtheꢀjumpsꢀareꢀlimitedꢀtoꢀtheꢀpresentꢀpageꢀofꢀmemory,ꢀthatꢀisꢀ256ꢀ
locations.ꢀWhenꢀsuchꢀprogramꢀjumpsꢀareꢀexecutedꢀitꢀshouldꢀalsoꢀbeꢀnotedꢀthatꢀaꢀdummyꢀcycleꢀwillꢀ
beꢀinserted.ꢀ
TheꢀlowerꢀbyteꢀofꢀtheꢀProgramꢀCounterꢀisꢀfullyꢀaccessibleꢀunderꢀprogramꢀcontrol.ꢀManipulatingꢀtheꢀ
PCLꢀmightꢀcauseꢀprogramꢀbranching,ꢀsoꢀanꢀextraꢀcycleꢀisꢀneededꢀtoꢀpre-fetch.ꢀFurtherꢀinformationꢀ
onꢀtheꢀPCLꢀregisterꢀcanꢀbeꢀfoundꢀinꢀtheꢀSpecialꢀFunctionꢀRegisterꢀsection.
Rev. 0.00
17
�eꢀteꢁꢂeꢃ ꢄꢅꢆ ꢄ01ꢄ