HT82A520R HOLTEK [Holtek Semiconductor Inc], HT82A520R Datasheet - Page 11
HT82A520R
Manufacturer Part Number
HT82A520R
Description
Full Speed USB 8-Bit OTP MCU with SPI
Manufacturer
HOLTEK [Holtek Semiconductor Inc]
Datasheet
1.HT82A520R.pdf
(72 pages)
- Current page: 11 of 72
- Download datasheet (484Kb)
The following example shows how the table pointer and
table data is defined and retrieved from the
microcontroller. This example uses raw table data lo-
cated in the last page which is stored there using the
ORG statement. The value at this ORG statement is
within the 4K Program Memory of device. The table
pointer is setup here to have an initial value of 06H .
This will ensure that the first data read from the data ta-
ble will be at the Program Memory address F06H or 6
locations after the start of the last page. Note that the
value for the table pointer is referenced to the first ad-
dress of the present page if the TABRDC [m] instruc-
tion is being used. The high byte of the table data which
in this case is equal to zero will be transferred to the
TBLH register automatically when the TABRDL [m] in-
struction is executed.
tempreg1 db
tempreg2 db
mov a,06h
mov tblp,a
tabrdl
dec tblp
tabrdl
org F00h
dc
Rev.1.00
Note:
F00H which refers to the start address of the last page
TABRDC [m]
TABRDL [m]
Instruction
:
:
:
:
:
:
00Ah, 00Bh, 00Ch, 00Dh, 00Eh, 00Fh, 01Ah, 01Bh
:
:
PC11~PC8: Current Program Counter bits
@7~@0: Table Pointer TBLP bits
tempreg1
tempreg2
PC11
b11
1
?
?
; temporary register #1
; temporary register #2
; initialise table pointer - note that this address
; is referenced
; to the last page or present page
; transfers value in table referenced by table pointer
; to tempregl
; data at prog. memory address F06H transferred to
; tempreg1 and TBLH
; reduce value of table pointer by one
; transfers value in table referenced by table pointer
; to tempreg2
; data at prog.memory address F05H transferred to
; tempreg2 and TBLH
; in this example the data 1AH is transferred to
; tempreg1 and data 0FH to register tempreg2
; the value 00H will be transferred to the high byte
; register TBLH
; sets initial address of last page
PC10
b10
1
PC9
b9
1
PC8
b8
1
Table Location
@7
@7
b7
Table Location Bits
11
@6
@6
b6
TBHP register bit3~bit0 when TBHP is enabled
@5
@5
b5
@4
@4
b4
HT82A520R/HT82A620R
@3
@3
b3
@2
@2
b2
October 23, 2009
@1
@1
b1
@0
@0
b0
Related parts for HT82A520R
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Voltage Regulator
Manufacturer:
HOLTEK [Holtek Semiconductor Inc]
Datasheet:
Part Number:
Description:
0.5A General Purpose LDO
Manufacturer:
HOLTEK [Holtek Semiconductor Inc]
Datasheet:
Part Number:
Description:
Touch Key
Manufacturer:
HOLTEK [Holtek Semiconductor Inc]
Datasheet:
Part Number:
Description:
Touch Key Flash Type 8-Bit MCU with LCD/LED Driver
Manufacturer:
HOLTEK [Holtek Semiconductor Inc]
Datasheet:
Part Number:
Description:
Super I/O Controller
Manufacturer:
HOLTEK [Holtek Semiconductor Inc]
Datasheet:
Part Number:
Description:
Infrared Remote Encoder
Manufacturer:
HOLTEK [Holtek Semiconductor Inc]
Datasheet:
Part Number:
Description:
Multi-Purpose Encoders
Manufacturer:
HOLTEK [Holtek Semiconductor Inc]
Datasheet:
Part Number:
Description:
CMOS 32Kx8 Low Power SRAM
Manufacturer:
HOLTEK [Holtek Semiconductor Inc]
Datasheet:
Part Number:
Description:
LOTTO FLASH DRIVER
Manufacturer:
HOLTEK [Holtek Semiconductor Inc]
Datasheet:
Part Number:
Description:
Q-Voice
Manufacturer:
HOLTEK [Holtek Semiconductor Inc]
Datasheet:
Part Number:
Description:
Voltage Regulator
Manufacturer:
HOLTEK [Holtek Semiconductor Inc]
Datasheet:
Part Number:
Description:
0.5A General Purpose LDO
Manufacturer:
HOLTEK [Holtek Semiconductor Inc]
Datasheet:
Part Number:
Description:
Touch Key
Manufacturer:
HOLTEK [Holtek Semiconductor Inc]
Datasheet:
Part Number:
Description:
Touch Key Flash Type 8-Bit MCU with LCD/LED Driver
Manufacturer:
HOLTEK [Holtek Semiconductor Inc]
Datasheet:
Part Number:
Description:
RAM Mapping 64 x16 LCD Controller for I/O C
Manufacturer:
Holtek Semiconductor Inc
Datasheet: