HT56R66 Holtek Semiconductor Inc., HT56R66 Datasheet - Page 18

no-image

HT56R66

Manufacturer Part Number
HT56R66
Description
Tinypower Tm A/d Type With Lcd 8-bit Otp Mcu
Manufacturer
Holtek Semiconductor Inc.
Datasheet
Note:
Rev. 1.10
TABRDC [m]
TABRDL [m]
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/I
When either an SPI or I
one is selected, requires data transfer, the program
will jump to this location and begin execution if the
SPI/I
Instruction
2
C interrupt is enabled and the stack is not full.
PC13~PC8: Current program counter bits
@7~@0: Table Pointer TBLP bits
Program Memory Structure
PC13 PC12 PC11 PC10
b13
1
b12
2
C bus, dependent upon which
1
b11
1
b10
1
2
C interrupt.
PC9
b9
1
Table Location
PC8
b8
1
Table Location Bits
18
@7
@7
b7
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
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:
TABRDL [m] instructions, respectively. When these in-
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.
@6
@6
b6
@5
@5
b5
@4
@4
b4
HT56R66/HT56R666
@3
@3
b3
@2
@2
b2
September 8, 2009
@1
@1
b1
@0
@0
b0

Related parts for HT56R66