HT47C20L
10
January 18, 2000
Mode
Program Counter
*10
*9
*8
*7
*6
*5
*4
*3
*2
*1
*0
Initial reset
0
0
0
0
0
0
0
0
0
0
0
External interrupt
0
0
0
0
0
0
0
0
1
0
0
Time base interrupt
0
0
0
0
0
0
0
1
0
0
0
Real time clock interrupt
0
0
0
0
0
0
0
1
1
0
0
Timer/event counter interrupt
0
0
0
0
0
0
1
0
0
0
0
Skip
PC+2
Loading PCL
*10
*9
*8
@7
@6
@5
@4
@3
@2
@1
@0
Jump, call branch
#10
#9
#8
#7
#6
#5
#4
#3
#2
#1
#0
Return from subroutine
S10
S9
S8
S7
S6
S5
S4
S3
S2
S1
S0
Program counter
Note: *10~*0: Program counter bits
#10~#0: Instruction code bits
S10~S0: Stack register bits
@7~@0: PCL bits
the stack is not full, the program begins exe-
cution at location 004H.
Location 008H
This area is reserved for the time base inter-
rupt service program. If time base interrupt
resulting from a time base overflow, and if the
interrupt is enabled and the stack is not full,
theprogrambeginsexecutionatlocation008H.
Location 00CH
This area is reserved for the real time clock
interrupt service program. If a real time clock
interrupt occurs, and if the interrupt is en-
abled and the stack is not full, the program
begins execution at location 00CH.
Location 010H
This area is reserved for the timer/event coun-
ter interrupt service program. If timer inter-
rupt results from a timer/event counter Aor B
overflow, and if the interrupt is enabled and
the stack is not full, the program begins exe-
cution at location 010H.
Table location
Any location in the ROM space can be used as
look-up tables. The instructions TABRDC [m]
(the current page, 1 page=256 words) and
TABRDL [m] (the last page) transfer the con-
tents of the lower-order byte to the specified
data memory, and the higher-order byte to
TBLH (08H). Only the destination of the
lower-order byte in the table is well-defined,
the higher-order byte of the table word are
transferred to the TBLH. The table
higher-order byte register (TBLH) is read
only. The table pointer (TBLP) is a read/write
register (07H), which indicates the table loca-
.
5 .
- .
8(
1
(
, ( ;
% 7 @ ( 1 ( 0 = , ( 2 3
+ 4 4 .
B ( ( ' ( ( +
.
( (
1 ( ( 17 ( (
% 7 @ ( 1 ( 0 = , ( 2 3
.
4 4 .
8 (
.
Program memory