HT46R47
Rev. 1.40
7
July 18, 2001
Certain locations in the program memory are
reserved for special usage:
Location 000H
This area is reserved for program initializa-
tion. After chip reset, the program always be-
gins execution at location 000H.
Location 004H
This area is reserved for the external inter-
rupt service program. If the INT input pin is
activated, the interrupt is enabled and the
stackisnotfull,theprogrambeginsexecution
at location 004H.
Location 008H
This area is reserved for the timer/event coun-
ter interrupt service program. If a timer inter-
rupt results from a timer/event counter
overflow,andiftheinterruptisenabledandthe
stack is not full, the program begins execution
at location 008H.
Location 00CH
This area is reserved for the A/D converter in-
terrupt service program. If an A/D converter
interrupt results from an end of A/D conver-
sion, and if the interrupt is enabled and the
stackisnotfull,theprogrambeginsexecution
at location 00CH.
Table location
Any location in the PROM 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 contents 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
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
Timer/Event Counter Overflow
0
0
0
0
0
0
0
1
0
0
0
A/D Converter Interrupt
0
0
0
0
0
0
0
1
1
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
S10~S0: Stack register bits
#10~#0: Instruction code bits
@7~@0: PCL bits
> 0 . $
-
-
" ) * " & +
# + ) " 1
# 8 0 % #- 0 . 0 & ' 0 @ & . 0 ) - " ) * " & +
; . # " - & ' - . # " " , / . , > " ) , . 0 - #
0 + # "8 # - .) , - . # " . # " " , / ., > " ) , . 0 - #
) ) = 7 , / & > ' # 9A ) " 2 $ :
) ) = 7 , / & > ' # 9A ) " 2 $ :
) . # B " & - * # $ ( " ) + . )
) - 8 # " . # " . # " " , / ., > " ) , . 0 - #
Program memory