A/D Flash Type 8-bit MCU with EEPROM
HT66F24D/HT66F25D
Table Read Program Example
tempreg1 db ? ; temporary register #1
tempreg2 db ? ; temporary register #2
:
:
mov a,06h ; initialise low table pointer - note that this address
mov tblp,a ; is referenced
mov a,07h ; initialise high table pointer
mov tbhp,a
:
:
tabrd tempreg1 ; transfers value in table referenced by table pointer data at
; program memory address 706H transferred to tempreg1 and TBLH
dec tblp ; reduce value of table pointer by one
tabrd tempreg2 ; transfers value in table referenced by table pointer data at
; program memory address 705H transferred to tempreg2 and TBLH
; in this example the data 1AH is transferred to tempreg1 and
; data 0FH to register tempreg2
:
:
org 700h ; sets initial address of program memory
dc 00Ah, 00Bh, 00Ch, 00Dh, 00Eh, 00Fh, 01Ah, 01Bh
:
:
Rev. 1.10
23
March 25, 2013