HT46R63 Holtek Semiconductor Inc., HT46R63 Datasheet - Page 8

no-image

HT46R63

Manufacturer Part Number
HT46R63
Description
Ht46r63/ht46c63 -- A/d With Lcd Type 8-bit Mcu
Manufacturer
Holtek Semiconductor Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
HT46R63
Manufacturer:
VXIS
Quantity:
3 621
Part Number:
HT46R63
Manufacturer:
HOLTEK/合泰
Quantity:
20 000
4096 15 bits, addressed by the program counter and ta-
ble pointer.
Certain locations in the program memory are reserved
for special usage:
Note:
Rev. 2.30
TABRDC [m]
TABRDL [m]
Location 000H
This area is reserved for program initialization. After
chip reset, the program always begins execution at lo-
cation 000H.
Location 004H
This area is reserved for the external interrupt 0 ser-
vice program. If the INT0 input pin is activated, the in-
terrupt is enabled and the stack is not full, the program
begins execution at this location.
Location 008H
This area is reserved for the external interrupt 1 ser-
vice program. If the INT1 input pin is activated, the in-
terrupt is enabled and the stack is not full, the program
begins execution at this location.
Location 00CH
This area is reserved for the timer/event counter inter-
rupt service program. If a timer interrupt results from a
timer/event counter overflow, and the interrupt is en-
abled and the stack is not full, the program begins ex-
ecution at location 00CH.
Location 010H
This area is reserved for the time base interrupt ser-
vice program. If the a time base time-out occurs, the
interrupt is enabled and the stack is not full, the pro-
gram begins execution at this location.
Location 014H
This area is reserved for the A/D converter interrupt
service program. If the interrupt is activated (when the
A/D conversion is completed), the interrupt is enabled
and the stack is not full, the program begins execution
at this location.
Location 018H
This area is reserved for the RTC interrupt service
program. When the RTC time-out occurs, the interrupt
is enabled and the stack is not full, the program begins
execution at this location.
Table location
Any location in the program memory 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
Instruction
*11~*0: Table location bits
@7~@0: Table pointer bits
P11
*11
1
P10
*10
1
P9
*9
1
P8
*8
1
Table Location
@7
@7
*7
8
Table Location
@6
@6
Stack Register - STACK
This is a special part of memory, which is used to save
the contents of the program counter only. The stack is
organized into 8 levels and is neither part of the data not
programmable space, and is not accessible. The acti-
*6
P11~P8: Current program counter bits
higher-order byte to lower portion of TBLH(08H) and
the remaining bits (1 bits) of TBLH are read as 0 .
The table pointer (TBLP) is read/write register (07H),
which indicates the table location. Before accessing
the table, the location has to be placed in TBLP. The
TBLH is read only and cannot be restored. If the main
routine and the ISR(interrupt service routine) both em-
ploy the table read instruction, the contents of TBLH in
the main routine are likely to be changed by the table
read instruction used in the ISR. Errors are thus
brought about. Given this, using the table read in-
struction in the main routine and the ISR simulta-
neously should be avoided. However, if the table read
instruction has to be applied in both main routine and
the ISR, the interrupt is supposed to be disabled prior
to the table read instruction. It will not be enabled until
the TBLH in the main routine has been backup. All ta-
ble related instructions require two cycles to complete
the operation. These areas may function as normal
program memory depending upon the requirements.
@5
@5
*5
@4
@4
*4
Program Memory
@3
@3
*3
HT46R63/HT46C63
@2
@2
*2
March 22, 2006
@1
@1
*1
@0
@0
*0

Related parts for HT46R63