HT56R66/HT56R666
· 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.
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
01C H
700H
7FFH
800H
FFFH
1000H
1FFFH
1 6 b its
N o t Im p le m e n te d
Program Memory Structure
· Location 018H
This internal vector is used by the Multi-function Inter-
rupt. The Multi-function Interrupt vector is shared by
several internal functions such as a Time Base over-
flow, a Real Time Clock overflow, an A/D converter
conversion completion, a falling edge appearing on
the External Peripheral interrupt pin, a Timer/Event
Counter 2 or a Timer/Event Counter 3 overflow. The
program will jump to this location and begin execution
if the relevant interrupt is enabled and the stack is not
full.
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
Table Location Bits
Instruction
b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
TABRDC [m] PC13 PC12 PC11 PC10 PC9 PC8 @7 @6 @5 @4 @3 @2 @1 @0
TABRDL [m]
1
1
1
1
1
1 @7 @6 @5 @4 @3 @2 @1 @0
Table Location
Note: PC13~PC8: Current program counter bits
@7~@0: Table Pointer TBLP bits
Rev. 1.40
18
May 11, 2012