HT48CU80 Holtek Semiconductor, HT48CU80 Datasheet - Page 8

no-image

HT48CU80

Manufacturer Part Number
HT48CU80
Description
(HT48RU80 / HT48CU80) I/O Type 8-Bit MCU
Manufacturer
Holtek Semiconductor
Datasheet
www.DataSheet4U.com
8192 16 bits 2 banks, addressed by the Program
Counter and table pointer.
The BP register bit5 is used to select the ROM bank.
When the BP s bit5=0, the ROM bank 0 ranges from
0000H to 1FFFH. When the BP s bit5=1, the ROM
bank1 ranges from 2000H to 3FFFH.
The CALL and JMP instruction provide only 13 bits
of address to allow branching within any 8K program
memory bank. When doing a CALL or JMP instruc-
tion, the upper 1 bit of the address is provided by BP5.
When doing a CALL or JMP instruction, user must
ensure that the bank select bit is programmed so that
the desired program memory bank is addressed. If a re-
turn from CALL instruction (or interrupt) is executed,
the entire 14-bit Program Counter is popped off the
stack.
Certain locations in the program memory are reserved
for special usage:
Note: *13~*0: Table location bits
Rev. 1.00
TABRDC [m]
TABRDL [m]
Instruction
@7~@0: Table pointer bits
P13
Program Memory
*13
1
P12
*12
1
P11
*11
1
P10
*10
1
P9
*9
1
Table Location
P8
*8
1
8
Table Location
@7
@7
P13~P8: Current program counter bits
*7
Location 000H
This area is reserved for program initialization. After a
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 interrupt pin is activated, the
interrupt enabled and the stack is not full, the program
begins execution at location 004H.
Location 008H
This area is reserved for the Timer/Event Counter 0 in-
terrupt service program. If a timer interrupt results from a
Timer/Event Counter 0 overflow, and if the interrupt is
enabled and the stack is not full, the program begins ex-
ecution at location 008H.
Location 00CH
This location is reserved for the Timer/Event Counter
1 interrupt service program. If a timer interrupt results
from a Timer/Event Counter 1 overflow, and the inter-
rupt is enabled and the stack is not full, the program
begins execution at location 00CH.
Location 010H
This area is reserved for the external interrupt 1 ser-
vice program. If the INT1 interrupt pin is activated, the
interrupt enabled and the stack is not full, the program
begins execution at location 010H.
Location 014H
This area is reserved for the UART interrupt service
program. If a UART interrupt results from a UART TX
or RX, and the interrupt is enabled and the stack is not
full, the program begins execution at location 014H.
Location 018H
This location is reserved for the Timer/Event Counter
2 interrupt service program. If a timer interrupt results
from a Timer/Event Counter 2 overflow, and the inter-
rupt is enabled and the stack is not full, the program
begins execution at location 018H.
Table location
Any location in the program memory can be used as
look-up tables. The instructions TABRDC [m] (the
current page, one 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). The Table
@6
@6
*6
@5
@5
*5
HT48RU80/HT48CU80
@4
@4
*4
@3
@3
*3
@2
@2
*2
April 12, 2006
@1
@1
*1
@0
@0
*0

Related parts for HT48CU80