GMS82512/16/24
HYUNDAI MicroElectronics
R5 and R5DD register:
R6 and R6DD register:
R5 is an 2-bit CMOS bidirection-
R6 is an 4-bit CMOS bidirection-
al I/O port (address 0CCH). Each I/O pin can independent-
ly used as an input or an output through the R6DD register
(address 0CDH).
al I/O port (address 0CAH). Each I/O pin can independent-
ly used as an input or an output through the R5DD register
(address 0CBH).
ADDRESS: 0CC
RESET VALUE: Undefined
H
R6 Data Register
ADDRESS: 0CA
RESET VALUE: Undefined
H
R5 Data Register
-
-
-
-
R67 R66 R65 R64
R6
-
-
R55 R54
-
-
-
-
R5
Input / Output data
Input / Output data
ADDRESS: 0CD
RESET VALUE: 0000----
H
R6 Direction Register
R6DD
B
ADDRESS: 0CB
H
R5 Direction Register
-
-
-
-
RESET VALUE: 00
H
-
-
-
-
-
-
R5DD
Port Direction
0: Input
1: Output
Port Direction
0: Input
1: Output
R6DD (address CDH) controls the direction of the R6 pins,
even when they are being used as analog inputs. The user
must make sure to keep the pins configured as inputs when
using them as analog inputs.
ADDRESS: 0D1
RESET VALUE: --00----
H
R5 Port Mode Register
B
BUZ W DTO
-
-
-
-
-
-
PMR5
R54/WDTO Selection
0: R54
1: WDTO (Output)
Alternate Function
AN4 (ADC input 4)
AN5 (ADC input 5)
AN6 (ADC input 6)
AN7 (ADC input 7)
Port Pin
R64
R65
R66
R67
R55/BUZ Selection
0: R55
1: BUZ (Output)
The control register PMR5 (address D1H) controls the se-
lection alternate function. After reset, this value is “0”, port
may be used as general I/O ports. To use buzzer function,
write “1” to the PMR5 and the pin R55 must be defined as
output mode (the bit 5 of R5DD=1)
Alternate Function
Port Pin
R54
R55
WDTO (Watchdog timer output)
BUZ (Square-wave output for buzzer)
30
FEB. 2000 Ver 1.00