English
Language : 

M16C65 Datasheet, PDF (249/829 Pages) Renesas Technology Corp – RENESAS MCU M16C FAMILY / M16C/60
Under development
M16C/65 Group
Preliminary Specification
This is a preliminary specification and is subject to change.
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 to Table 1.11 to Table 1.12
“Pin Names, Pin Package”.) Some peripheral function I/O are affected by a port direction bit which
shares the same pin. Table 13.4 lists The Setting of Direction Bits Functioning as Peripheral Function I/
O. For peripheral function settings, see descriptions of each function.
Table 13.4 The Setting of Direction Bits Functioning as Peripheral Function I/O
Peripheral Function I/O
The 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)
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 each input signal. However, the timing of accepting the signal differs
depending on conditions (e.g. internal delay) of 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.
• When the pin functions as output for peripheral functions A and B
Peripheral function with higher priority is output. Table 13.5 lists Priority Level of Peripheral
Function Output.
Table 13.5 Priority Level of Peripheral Function Output
Priority Level
Function
High
Multi-master I2C-bus interface
PWM
Serial interface
UART0 to UART2, UART5 to UART7,
SI/O3, SI/O4
CEC
Timer
timer A, three-phase control timer
function
Low Real-time clock
D/A converter
Output Pin
SCLMM, SDAMM
PWM0, PWM1
RTSi, CLKi, TXDi, SCLi, SDAi (i = 0 to 2, 5 to 7),
CLK3, SOUT3, CLK4, SOUT4
CEC
TA0OUT, TA1OUT, TA2OUT, TA3OUT, TA4OUT
U, V, W, U, V, W
RTCOUT
DA0, DA1
REJ09B0484-0030 Rev.0.30 Sep 09, 2008
Page 214 of 791