
GMS81508/16
53
PORT R4 MODE REGISTER
INTERRUPT EDGE SELECTION REGISTER
3.6. R5 PORT
R5 Port is composed of 8-bit programmable I/O port. R54,R55 is double functional pin.
Register Name
Symbol
R/W
Address
Initial Value
R5 I/O Direction Register
R5DD
W
00CB
H
0000 0000
R5 Port Data Register
R5
R/W
00CA
H
Not initialized
R5 Port Mode Register
PMR5
W
00D1
H
--00 ----
<00D0
H
>
PMR4
7
T3S
6
T1S
5
EC2S
4
EC0S
3
INT3S
2
INT2S
1
INT1S
0
INT0S
W
W
W
W
W
W
R45/ EC2 Selection
0 : R45 ( Input / Output )
1 : EC2 ( Input )
R44/ EC0 Selection
0 : R44 ( Input / Output )
1 : EC0 ( Input )
R47 / T3 Selection
0 : R47 ( Input / Output )
1 : T3 ( Output )
R46 / T1 Selection
0 : R46 ( Input / Output )
1 : T1 ( Output )
R40 / INT0 Selection
0 : R40 ( Input / Output )
1 : INT0 ( Input )
R41 / INT1 Selection
0 : R41 ( Input / Output )
1 : INT1 ( Input )
R42 / INT2 Selection
0 : R42 ( Input / Output )
1 : INT2 ( Input )
R43 / INT3 Selection
0 : R43 ( Input / Output )
1 : INT3 ( Input )
W
W
<00F8
H
>
IEDS
7
IED3H
6
IED3L
5
IED2H
4
IED2L
3
IED1H
2
IED1L
1
IED0H
0
IED0L
W
W
W
W
W
W
INT0 Edge Selection
01 : Falling
10 : Rising
11 : Falling & Rising
INT1 Edge Selection
01 : Falling
10 : Rising
11 : Falling & Rising
INT2 Edge Selection
01 : Falling
10 : Rising
11 : Falling & Rising
INT3 Edge Selection
01 : Falling
10 : Rising
11 : Falling & Rising
W
W