GMS81508B HYNIX [Hynix Semiconductor], GMS81508B Datasheet - Page 36

no-image

GMS81508B

Manufacturer Part Number
GMS81508B
Description
HYUNDAI MICRO ELECTRONICS 8-BIT SINGLE-CHIP MICROCONTROLLERS
Manufacturer
HYNIX [Hynix Semiconductor]
Datasheet
HYUNDAI MicroElectronics
R5 and R5DD register: R5 is an 8-bit CMOS bidirection-
al I/O port (address 0CA
ly used as an input or an output through the R5DD register
(address 0CB
The control register PMR5 (address D1
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)
DEC. 1999 Ver 1.04
R5 Data Register
R5
R5 Port Mode Register
PMR5
R5 Direction Register
R5DD
Port Pin
R54
R55
R57 R56 R55 R54 R53 R52 R51 R50
H
-
).
WDTO (Watchdog timer output)
BUZ (Square-wave output for buzzer)
-
BUZ
H
W DTO
). Each I/O pin can independent-
Alternate Function
R55/BUZ Selection
0: R55
1: BUZ (Output)
R54/WDTO Selection
0: R54
1: WDTO (Output)
-
Input / Output data
Port Direction
0: Input
1: Output
ADDRESS: 0CA
RESET VALUE: Undefined
ADDRESS: 0CB
RESET VALUE: 00
ADDRESS: 0D1
RESET VALUE: --00----
-
-
H
) controls the se-
-
H
H
H
H
B
R6 and R6DD register: R6 is an 8-bit CMOS bidirection-
al I/O port (address 0CC
ly used as an input or an output through the R6DD register
(address 0CD
R6DD (address CD
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.
Note: On the initial RESET, R60 can not be used digital in-
put port, because this port is selected as an analog input
port by ADCM register. To use this port as a digital I/O port,
change the value of lower 4 bits of ADCM (address 0E8
On the other hand, R6 port, all eight pins can not be used
as digital I/O port simultaneously. At least one pin is used
as an analog input.
R6 Data Register
R6
R6 Direction Register
R6DD
Port Pin
R60
R61
R62
R63
R64
R65
R66
R67
R67 R66 R65 R64 R63 R62 R61 R60
Input / Output data
H
).
AN0 (ADC input 0)
AN1 (ADC input 1)
AN2 (ADC input 2)
AN3 (ADC input 3)
AN4 (ADC input 4)
AN5 (ADC input 5)
AN6 (ADC input 6)
AN7 (ADC input 7)
H
) controls the direction of the R6 pins,
Port Direction
0: Input
1: Output
H
). Each I/O pin can independent-
Alternate Function
-
GMS81508B/16B/24B
ADDRESS: 0CC
RESET VALUE: Undefined
ADDRESS: 0CD
RESET VALUE: 0000----
-
-
R60~R63 are input
only
Input data
-
H
H
B
33
H
).

Related parts for GMS81508B