11 / 27 page

SCG9864
8-BIT MICROCONTROLLER
Score Concept Semiconductor Ltd.
11
Sept 2000
Control Registers
Summary
Table 3. Summary of Control Registers
Hex
Mnemonic
Control Registers Name
R/W
00H
P0DIR
Port 0 Direction Control Register
W
01H
-
(Reserved)
-
02H
P0RW
Port 0 Read/Write Port
R/W
03H
P1DIR
Port 1 Direction Control Register
W
04H
P1RW
Port 1 Read/Write Port
R/W
05H
P2W
Port 2 Output Port
W
06H
-
(Reserved)
-
07H
-
(Reserved)
-
08H
-
(Reserved)
-
09H
TCONG
Timer Configuration Port
W
0AH
INTR
Interrupt Control Register
W
0BH
TFLAG
Timer Flag Status Register/Watch-dog Reset
R/W
0CH
T0VAL
Timer 0 Preset Value Register
W
0DH
T1VAL
Timer 1 Preset Value Register
W
0EH
SPHEN
D/A Output Control Register
W
0FH
-
(Reserved)
-
Descriptions
P0DIR and P1DIR
Bit
7654
321
0
R/W
W
WWWW
WW
W
Figure 11. Port 0 and Port 1 Direction Control Registers
P0RW and P1RW
Bit
7654
321
0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Figure 12. Port 0 and Port 1 Read/Write Port
0 : Input mode
1 : Output mode
Write to output latch.
Read from input pin. Read value of Output pin
will be the output latch value.