
GMS81508/16
55
R6 PORT I/O DIRECTION REGISTER
R6 PORT DATA REGISTER
On the initial RESET, R60 can’t be used digital input 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 0E8H). 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.
UNUSED PORTS
All unused ports should be set properly that current flow through port doesn't exist.
First consider the setting the port as an input mode. Be sure that there is no
current flow after considering its relationship with external circuit. In input mode,
the pin impedance viewing from external MCU is very high that the current doesn’t
flow.
But input voltage level should be V
SS
or V
DD
. Be careful that if unspecified voltage,
i.e. if unfirmed level voltage is applied to input pin, there can be little current ( max.
1mA at 2V) flow.
If it is not appropriate to set as an input mode, then set to output mode considering
there is no current flow. Setting to High or Low is decided considering its
relationship with external circuit. For example, if there is external pull-up resistor
then it is set to output mode, i.e. to High, and if there is external pull-down register,
it is set to low.
Port R6 output data
<00CC
H
>
R6
7
R47
6
R46
5
R45
4
R44
3
R43
2
R42
1
R41
0
R40
R/W
R/W
R/W
R
R
R/W
Determines I/O of R6 port
0 : Input
1 : Output
<00CD
H
>
R6DD
7
R6DD7
6
R6DD6
5
R6DD5
4
R6DD4
3
R6DD3
2
R6DD2
1
R6DD1
0
R6DD0
W
W
W
W
R
R