English
Language : 

HT56R64 Datasheet, PDF (12/90 Pages) Holtek Semiconductor Inc – TinyPower A/D Type with LCD 8-Bit OTP MCU
HT56R64
· Location 010H
This internal vector is used by the Timer/Event Coun-
ter 1. If a Timer/Event Counter 1 overflow occurs, the
program will jump to this location and begin execution
if the timer/event counter interrupt is enabled and the
stack is not full.
· Location 014H
This internal vector is used by the SPI/I2C interrupt.
When either an SPI or I2C bus, dependent upon which
one is selected, requires data transfer, the program
will jump to this location and begin execution if the
SPI/I2C interrupt is enabled and the stack is not full.
· Location 018H
This internal vector is used by the Multi-function Inter-
rupt. When the Time Base overflows, the Real Time
Clock overflows, the A/D converter completes its con-
version process, or an active edge appears on the Ex-
ternal Peripheral interrupt pin, the program will jump to
this location and begin execution if the relevant inter-
rupt is enabled and the stack is not full.
000H
In itia lis a tio n
V e c to r
004H
E x te rn a l IN T 0
In te rru p t V e c to r
008H
E x te rn a l IN T 1
In te rru p t V e c to r
00C H
T im e r C o u n te r 0
In te rru p t V e c to r
010H
T im e r C o u n te r 1
In te rru p t V e c to r
014H
S P I/I2C
In te rru p t V e c to r
018H
M u lti_ F u n c tio n
In te rru p t V e c to r
Look-up Table
Any location within the Program Memory can be defined
as a look-up table where programmers can store fixed
data. To use the look-up table, the table pointer must
first be setup by placing the lower order address of the
look up data to be retrieved in the table pointer register,
TBLP. This register defines the lower 8-bit address of
the look-up table.
After setting up the table pointer, the table data can be
retrieved from the current Program Memory page or last
Program Memory page using the ²TABRDC[m]² or
²TABRDL [m]² instructions, respectively. When these in-
structions are executed, the lower order table byte from
the Program Memory will be transferred to the user de-
fined Data Memory register [m] as specified in the in-
struction. The higher order table data byte from the
Program Memory will be transferred to the TBLH special
register. Any unused bits in this transferred higher order
byte will be read as ²0².
The following diagram illustrates the addressing/data
flow of the look-up table:
P ro g ra m C o u n te r
H ig h B y te
TB LP
P ro g ra m
M e m o ry
TB LH
T a b le C o n te n ts H ig h B y te
S p e c ifie d b y [m ]
T a b le C o n te n ts L o w B y te
FFFH
1 5 b its
N o t Im p le m e n te d
Program Memory Structure
Table Location Bits
Instruction
b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
TABRDC [m] PC11 PC10 PC9 PC8 @7 @6 @5 @4 @3 @2 @1 @0
TABRDL [m]
1
1
1
1 @7 @6 @5 @4 @3 @2 @1 @0
Table Location
Note: PC11~PC8: Current program counter bits
@7~@0: Table Pointer TBLP bits
Rev. 1.40
12
September 8, 2009