
22.
Extension Register Access
KING BILLION ELECTRONICS CO., LTD
駿
億
電
子
股
份
有
限
公
司
HE84G761B
HE80004 Series
April 25, 2005
This specification is subject to change without notice. Please contact sales person for the latest version before use.
52
V0.92
The extension registers can be accessed through the extension port control registers EXTAS and
EXTDA. User can read/write the extension register easily and the control timing is generated by
hardware automatically. The following code shows how to access the extension registers.
Read Extension Register:
LDA
#0x00h ; load #0x00h data to A Register
STA
EXTAS
; store A register data to the extension port address register.
LDA
EXTDA
; store the extension register (0x00h) data to A Register.
Write Extension Register:
LDA
#0x03h ; load #0x03h data to A Register
STA
EXTAS
; store A register data to the extension port address register.
LDA
#0x18h ; load #0x18h data to A Register
STA
EXTDA
; store A register data to the extension port data register.
23.
Summary of Registers and Mask Options
All the registers and mask options used in this chip are listed in the following tables.
Address NAME
00H
TPL
01H
TPH
02H
IER
-
-
INT_EX
03H
T1L
04H
T1H
05H
T2L
06H
T2H
07H
SP
08H
DP
09H
OP1
DRDY
STOP
SLOW
0AH
OP2
IDLE
PNWK
TCWK
0BH
PP
0CH
PRTC
0DH
PRTD
0EH
PWMC*
0FH
LCDC
-
-
CLR_GP
10H
PRT10
11H
PRT11
12H
DTMF
13H
VOC*
-
PWM O/P driver
14H
PRT14
15H
PRT15
16H
TPP
Field
Mode
R/W
R/W
R/W
W
W
W
W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
W
W
R/W
R/W
R/W
W
R/W
R/W
R/W
RESET
xxxx xxxx
xxxx xxxx
--00 0000
xxxx xxxx
xxxx xxxx
xxxx xxxx
xxxx xxxx
1111 1111
xxxx xxxx
1000 00xx
0xx- ----
0000 0000
1111 1111
1111 1111
0000 0000
xx1x xx10
1111 1111
xxxx xxxx
xxxx xxxx
x000 0000
xxxx xxxx
---- --11
0000 0000
Table pointer low byte
Table pointer high byte
TB
Timer 1 low byte
Timer 1 high byte
Timer 2 low byte
Timer 2 high byte
stack pointer
data RAM pointer
INTE
TBE
RAM page pointer
I/O port C
I/O port D
PWM data
INT1
T1
T2
INT2
T2E
T1E
Z
C
TBS[3..0]
GRAY
BLANK
LCDE
I/O port 10
Reserved
Reserved
PWME
PWM
DAC
OP
Reserved
I/O port 15
ROM table page pointer