English
Language : 

GMS81C2020 Datasheet, PDF (47/92 Pages) Hynix Semiconductor – CMOS Single-Chip 8-Bit Microcontroller with A/D Converter & VFD Driver
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)
PORT
R67/AN7
R66/AN6
R65/AN5
R64/AN4
R63/AN3
R62/AN2
R61/AN1
R60/AN0
R6FUNC
[7:0]
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
Description
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 )
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).
R73~R70 ports are multiplexed with Analog Input Port
AN11~AN8 )..
R7 Data Register
ADDRESS : CEH
RESET VALUE : Undefined
R7
-
-
-
- R73 R72 R71 R70
R7 Direction Register
R7IO
INPUT / OUTPUT DATA
ADDRESS : CFH
RESET VALUE : ----0000
DIRECTION SELECT
0 : INPUT PORT
1 : OUTPUT PORT
R7 Function Selection Register
R7FUNC
ADDRESS : F8H
RESET VALUE : ----0000
-
-
-
-
ANSEL11 ANSEL10 ANSEL9 ANSEL8
0 : R70
1 : AN8
0 : R71
1 : AN9
0 : R72
1 : AN10
0 : R73
1 : AN11
Figure 12-9 Registers of Port R6
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.
PORT
R73/AN11
R72/AN10
R71/AN9
R70/AN8
R7FUNC
[7:0]
0
1
0
1
0
1
0
1
Description
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 )
Nov. 1999 Ver 0.0
preliminary
47