Precautions On Input/Output Ports - Renesas M32R/ECU Series User Manual

Mitsubishi 32-bit risc single-chip microcomputers
Table of Contents

Advertisement

8

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.
INPUT/OUTPUT PORTS AND PIN FUNCTIONS
8.6 Precautions on Input/Output Ports
8-31
32180 Group User's Manual (Rev.1.0)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents