R01UH0092EJ0110 Rev.1.10
Page 186 of 807
Jul 31, 2012
M16C/64C Group
13. Programmable I/O Ports
13.4
Peripheral Function I/O
13.4.1
Peripheral Function I/O and Port Direction Bits
Programmable I/O ports can share pins with peripheral function I/O (see Table 1.5 to Table 1.6 “Pin
Names, Pin Package”). Some peripheral function I/O are affected by a port direction bit which shares
the same pin. Table 13.13 lists Setting of Direction Bits Functioning as Peripheral Function I/O. For
peripheral function settings, see descriptions of each function.
13.4.2
Priority Level of Peripheral Function I/O
Multiple peripheral functions can share the same pin.
For example, when peripheral function A and peripheral function B share a pin, input and output are as
follows:
•
When the pin functions as input for peripheral functions A and B
The same signal is input as an input signal for each function. However, the timing of accepting the
signal differs depending on conditions (e.g. internal delay) of peripheral functions A and B.
•
When the pin functions as output for peripheral function A and as input for peripheral function B
Peripheral function A outputs a signal from the pin, and peripheral function B inputs the signal.
Table 13.13
Setting of Direction Bits Functioning as Peripheral Function I/O
Peripheral Function I/O
Setting of the Port Direction Bit Sharing the Same Pin
Input
Set to 0 (input mode).
Output
PWM
Set to 1 (output mode).
D/A converter
Set to 0 (input mode).
Others
Set to either 0 or 1 (outputs regardless of the direction bit setting).
Содержание M16C Series
Страница 846: ...M16C 64C Group R01UH0092EJ0110...