English
Language : 

GMS81C2020 Datasheet, PDF (46/92 Pages) Hynix Semiconductor – CMOS Single-Chip 8-Bit Microcontroller with A/D Converter & VFD Driver
GMS81C2020/GMS81C2120
Hyundai Micro Electro nics
12.7 R5 and R5IO registers
R5 is an 8-bit bidirectional I/O port (address CAH). Each
pin can be set individually as input and output through the
R5IO register (address CBH).In addition, Port R5 is multi-
plexed with Serial Peripheral Interface (SPI). The control
register R5FUNC (address F6H) controls to select Serial
Peripheral Interface function.After reset, the R5IO register
value is "0", port may be used as general I/O ports. To se-
lect Serial Peripheral Interface function, write "1" to the
corresponding bit of R5FUNC.
R5 Data Register
ADDRESS : CAH
RESET VALUE : Undefined
R5
R57 R56 R55 R54 R53 R52 R51 R50
R5 Direction Register
R5IO
INPUT / OUTPUT DATA
ADDRESS : CBH
RESET VALUE : 00000000
R5 Function Selection Register
R5FUNC
DIRECTION SELECT
0 : INPUT PORT
1 : OUTPUT PORT
ADDRESS : F6H
RESET VALUE : -0000---
- PWM1O SOUT SIN SCLK
-
-
-
0 : R56
1 : PWM1O/T1O
0 : R55
1 : SOUT
0 : R53
1 : SCLK
0 [R5IO.3] : SCLKO
0 : R54 1 [R5IO.3] : SCLKI
1 : SIN
Figure 12-7 Registers of Port R5
PORT
R56/
PWM1O/
T1O
R55/SOUT
R54/SIN
R53/SCLK
R5FUNC
[6:3]
0
1
0
1
0
1
0
0 [R5IO.3]
SCLKO
1 [R5IO.3]
SCLKI
Description
R56 (Normal I/O Port)
PWM1 Data Output / Timer
1 Data Output
R55 (Normal I/O Port)
SPI Serial Data Output
R54 (Normal I/O Port)
SPI Serial Data Input
R53 (Normal I/O Port)
SPI Synchronous Clock
Output
SPI Synchronous Clock
Input
Table 12-1 Registers of Port R5FUNC
12.8 R6 and R6IO registers
R6 is an 8-bit bidirectional I/O port (address CCH). Each
port can be set individually as input and output through the
R6IO register (address CDH).
R67~R60 ports are multiplexed with Analog Input Port
( AN7~AN0 )..
R6 Data Register
ADDRESS : CCH
RESET VALUE : Undefined
R6
R67 R66 R65 R64 R63 R62 R61 R60
R6 Direction Register
R6IO
INPUT / OUTPUT DATA
ADDRESS : CDH
RESET VALUE : 00000000
DIRECTION SELECT
0 : INPUT PORT
1 : OUTPUT PORT
R6 Function Selection Register
R6FUNC
ADDRESS : F7H
RESET VALUE : 00000000
ANSEL7 ANSEL6 ANSEL5 ANSEL4 ANSEL3 ANSEL2 ANSEL1 ANSEL0
0 : R64
1 : AN4
0 : R65
1 : AN5
0 : R66
1 : AN6
0 : R67
1 : AN7
0 : R60
1 : AN0
0 : R61
1 : AN1
0 : R62
1 : AN2
0 : R63
1 : AN3
Figure 12-8 Registers of Port R6
46
preliminary
Nov. 1999 Ver 0.0