HT46R064D/065D/066D
Enhanced A/D Type 8-Bit OTP MCU with LED Driver
Timer/Event 0/1 Counter Interrupt Vector
This internal vector is used by the Timer/Event Counters. If a Timer/Event Counter overflow occurs,
the program will jump to its respective location and begin execution if the associated Timer/Event
Counter interrupt is enabled and the stack is not full.
A/D Interrupt Vector
This vector is used by the A/D Converter. If a completion of A/D conversion occurs, the program will
jump to this locaton and begin execution if the A/D converter interrupt is enabled and the stack is not
full.
Time Base Interrupt Vector
This internal vector is used by the internal Time Base. If a Time Base overflow occurs, the program
will jump to this location and begin execution if the Time Base counter 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 instructions are executed, the lower order table byte from the Program
Memory will be transferred to the user defined Data Memory register [m] as specified in the
instruction. 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:
Table Location Bits
Instruction
b11
b10
b9
b8
PC8
1
b7
@7
@7
b6
@6
@6
b5
@5
@5
b4
@4
@4
b3
@3
@3
b2
@2
@2
b1
@1
@1
b0
@0
@0
TABRDC [m]
TABRDL [m]
PC11 PC10 PC9
1
1
1
Table Location
Note: PC11~PC8: Current Program Counter bits
@7~@0: Table Pointer TBLP bits
For the HT46R064D, the Table address location is 10 bits, i.e. from b9~b0.
For the HT46R065D, the Table address location is 11 bits, i.e. from b10~b0.
For the HT46R066D, the Table address location is 12 bits, i.e. from b11~b0
Rev. 1.00
17
January 12, 2011