HT46C62 Holtek Semiconductor, HT46C62 Datasheet - Page 8

no-image

HT46C62

Manufacturer Part Number
HT46C62
Description
A/D with LCD Type 8-Bit MCU
Manufacturer
Holtek Semiconductor
Datasheet
The lower byte of the PC (PCL) is a readable and
writeable register (06H). Moving data into the PCL per-
forms a short jump. The destination is within 256 loca-
tions.
When a control transfer takes place, an additional
dummy cycle is required.
Program Memory - EPROM
The program memory (EPROM) is used to store the pro-
gram instructions which are to be executed. It also con-
tains data, table, and interrupt entries, and is organized
into 2048 14 bits which are addressed by the program
counter and table pointer.
Certain locations in the ROM are reserved for special
usage:
Note: *10~*0: Table location bits
Rev. 1.60
TABRDC [m]
TABRDL [m]
Location 000H
Location 000H is reserved for program initialization.
After chip reset, the program always begins execution
at this location.
Location 004H
Location 004H is reserved for the external interrupt
service program. If the INT0 input pin is activated, and
the interrupt is enabled, and the stack is not full, the
program begins execution at location 004H.
Instruction(s)
@7~@0: Table pointer bits
Program Memory
P10
*10
1
P9
*9
1
P8
*8
1
@7
@7
*7
Table Location
@6
@6
8
*6
Table Location
P10~P8: Current program counter bits
Location 008H
Location 008H is reserved for the external interrupt
service program also. If the INT1 input pin is activated,
and the interrupt is enabled, and the stack is not full,
the program begins execution at location 008H.
Location 00CH
Location 00CH is reserved for the Timer/Event Coun-
ter interrupt service program. If a timer interrupt re-
sults from a Timer/Event Counter overflow, and if the
interrupt is enabled and the stack is not full, the pro-
gram begins execution at location 00CH.
Location 014H
Location 014H is reserved for the Time Base interrupt
service program. If a Time Base interrupt occurs, and
the interrupt is enabled, and the stack is not full, the
program begins execution at location 014H.
Location 018H
Location 018H is reserved for the real time clock inter-
rupt service program. If a real time clock interrupt oc-
curs, and the interrupt is enabled, and the stack is not
full, the program begins execution at location 018H.
Table location
Any location in the ROM can be used as a look-up ta-
ble. 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 contents of the
higher-order byte to TBLH (Table Higher-order byte
register) (08H). Only the destination of the lower-order
byte in the table is well-defined; the other bits of the ta-
ble word are all transferred to the lower portion of
TBLH and the remaining 1 bit is read as 0 . The
TBLH is read only, and the table pointer (TBLP) is a
read/write register (07H), indicating the table location.
Before accessing the table, the location should be
placed in TBLP. All the table related instructions re-
quire 2 cycles to complete the operation. These areas
may function as a normal ROM depending upon the
user s requirements.
@5
@5
*5
@4
@4
*4
@3
@3
*3
HT46R62/HT46C62
@2
@2
*2
@1
@1
*1
July 14, 2005
@0
@0
*0

Related parts for HT46C62