HT46R068B/HT46R069B
Enhanced A/D Type 8-bit OTP MCU
Table Read Program Example:
tempreg1
tempreg2
:
db
db
?
?
; temporary register #1
; temporary register #2
:
mov a,
mov bp,
mov a,
060h
a
06h
; select the last bank of prog. memory
; initialise table pointer - note that this address
; is referenced
mov tblp,a
; to the last page or present page
:
:
tabrdl
tempreg1
tempreg2
;
transfers value in table referenced by table pointer
; to tempregl
data at prog. memory address "7F06" transferred to
;
; tempreg1 and TBLH
; reduce value of table pointer by one
dec tblp
tabrdl
;
transfers value in table referenced by table pointer
; to tempreg2
data at prog.memory address "7F06" 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 byt
;
;
;
; register TBLH
:
:
org7F00h
; sets initial address of last page
dc 00Ah, 00Bh, 00Ch, 00Dh, 00Eh, 00Fh, 01Ah, 01Bh
:
:
Rev. 1.00
17
�anꢀaꢁꢂ ꢃꢄꢅ ꢃ011