
HYUNDAI MicroElectronics
54
R5 PORT I/O DIRECTION REGISTER
R5 PORT DATA REGISTER
PORT R5 MODE REGISTER
3.7. R6 PORT
R6 Port consists of 4-bit Programmable I/O ports and 4-bit input only ports and this port can be
used as a analog input port for A/D conversion by program.
Register Name Symbol R/W Address Initial Value
R6 I/O Direction Register R6DD W 00CD
H
0000 ----
R6 Port Data Register R6 R/W 00CC
H
Not initialized
A/D Converter Mode Register ADCM W 00E8
H
--00 000
1
Port R5 Output Data
<00CA
H
>
R5
7
R57
6
R56
5
R55
4
R54
3
R53
2
R52
1
R51
0
R50
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Determines I/O of R5 port
0 : Input
1 : Output
<00CB
H
>
R5DD
7
R5DD7
6
R5DD6
5
R5DD5
4
R5DD4
3
R5DD3
2
R5DD2
1
R5DD1
0
R5DD0
W
W
W
W
W
W
W
<00D1
H
>
PMR5
7
-
6
-
5
BUZ
4
WDTON
3
-
2
-
1
-
0
-
W
W
R55 / BUZ Selection
0 : R55 ( Input / Output )
1 : BUZ ( Output )
R54 / WDTON Selection
0 : R54 ( Input / Output )
1 : WDTON ( Output )
W