English
Language : 

HT98R068-1 Datasheet, PDF (21/116 Pages) Holtek Semiconductor Inc – Two Way Radio 8-Bit MCU
HT98R068-1
Two Way Radio 8-Bit MCU
execution of any main routine table-read instructions. Note that all table related instructions require
two instruction cycles to complete their operation.
Table Location
Instruction(s)
b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
TABRDC [m] PC13 PC12 PC11 PC10 PC9 PC8 @7 @6 @5 @4 @3 @2 @1 @0
TABRDL [m] 1
1
1
1
1
1 @7 @6 @5 @4 @3 @2 @1 @0
Table Location
Note: PC13~PC8: Current Program Counter bits.
@7~@0: Table Pointer TBLP bits.
b13~b0: Table address location bits.
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
tbhp,a
:
:
tabrdl tempreg1
;transfers value in table referenced by table
;pointer data at program
;memory address “3F06H” transferred to tempreg1
;and TBLH
dec tblp
;reduce value of table pointer by one
tabrdl tempreg2
;transfers value in table referenced by table
;pointer data at program
;memory address “3F05H” transferred to tempreg2
;and TBLH in this
;example the data “1AH” is transferred to
;tempreg1 and data “0FH” to
;register tempreg2
:
:
org 3F00h
;sets initial address of program memory
dc 00Ah, 00Bh, 00Ch, 00Dh, 00Eh, 00Fh, 01Ah, 01Bh
Rev. 1.10
21
February 13, 2012