Hyundai Micro Electronics
GMS81C2020/GMS81C2120
The control register R6FUNC (address F7H) controls to se-
lect alternate function. After reset, this value is "0", port
may be used as general I/O ports. To select alternate func-
tion such as Analog Input, write "1" to the corresponding
bit of R6FUNC. Regardless of the direction register R6IO,
R6FUNC is selected to use as alternate functions, port pin
can be used as a corresponding alternate features
(AN7~AN0)
AN11~AN8 )..
ADDRESS : CEH
RESET VALUE : Undefined
R7 Data Register
-
-
-
-
R7
R73 R72 R71 R70
INPUT / OUTPUT DATA
ADDRESS : CFH
RESET VALUE : ----0000
R7 Direction Register
R7IO
R6FUNC
PORT
Description
[7:0]
0
R67 ( Normal I/O Port )
AN7 ( ADS3~0=0111 )
R66 ( Normal I/O Port )
AN6 ( ADS3~0=0110 )
R65 ( Normal I/O Port )
AN5 ( ADS3~0=0101 )
R64 ( Normal I/O Port )
AN4 ( ADS3~0=0100 )
R63 ( Normal I/O Port )
AN3 ( ADS3~0=0011 )
R62 ( Normal I/O Port )
AN2 ( ADS3~0=0010 )
R61 ( Normal I/O Port )
AN1 ( ADS3~0=0001 )
R60 ( Normal I/O Port )
AN0 ( ADS3~0=0000 )
R67/AN7
1
DIRECTION SELECT
0 : INPUT PORT
1 : OUTPUT PORT
0
R66/AN6
R65/AN5
R64/AN4
R63/AN3
R62/AN2
R61/AN1
R60/AN0
1
R7 Function Selection Register
R7FUNC
ADDRESS : F8H
RESET VALUE : ----0000
0
-
-
-
-
ANSEL11 ANSEL10 ANSEL9
ANSEL8
1
0
0 : R70
1 : AN8
0 : R71
1 : AN9
1
0
0 : R72
1 : AN10
0 : R73
1 : AN11
1
0
1
Figure 12-9 Registers of Port R6
0
1
The control register R7FUNC (address F8H) controls to se-
lect alternate function. After reset, this value is "0", port
may be used as general I/O ports. To select alternate func-
tion such as Analog Input, write "1" to the corresponding
bit of R7FUNC. Regardless of the direction register R7IO,
R7FUNC is selected to use as alternate functions, port pin
can be used as a corresponding alternate features.
0
1
12.9 R7 and R7IO registers
R7 is an 4-bit bidirectional I/O port (address CEH). Each
port can be set individually as input and output through the
R7IO register (address CFH).
R7FUNC
PORT
Description
[7:0]
R73~R70 ports are multiplexed with Analog Input Port
0
1
0
1
0
1
0
1
R73 ( Normal I/O Port )
AN11 ( ADS3~0=1011 )
R72 ( Normal I/O Port )
AN10 ( ADS3~0=1010 )
R71 ( Normal I/O Port )
AN9 ( ADS3~0=1001 )
R70 ( Normal I/O Port )
AN8 ( ADS3~0=1000 )
R73/AN11
R72/AN10
R71/AN9
R70/AN8
Nov. 1999 Ver 0.0
preliminary
47