8
8-31
INPUT/OUTPUT PORTS AND PIN FUNCTIONS
32180 Group User’s Manual (Rev.1.0)
8.6 Precautions on Input/Output Ports
• When using input/output ports in output mode
Because the value of the Port Data Register is undefined after reset, the Port Data Register must have its initial
value set in it before the Port Direction Register can be set for output. Conversely, if the Port Direction Register
is set for output before setting data in the Port Data Register, the Port Data Register outputs an undefined value
until any data is written into it.
• About the port input disable function
Because the input/output ports are disabled against input after reset, they must be enabled for input by setting
the Port Input Enable (PIEN0) bit to "1" before their input functions can be used.
When disabled against input, the input/output ports are in a state equivalent to a situation where the pin has a
low-level input applied. Consequently, if a peripheral input function is selected for any port (uncontrolled pin)
while disabled against input by using the Port Operation Mode Register, the port may operate unexpectedly due
to the low-level input on it.
8.6 Precautions on Input/Output Ports