CHAPTER 2 PIN FUNCTIONS
52
User’s Manual U14359EJ4V0UM
(6) P50 to P52 (Port 5) ··· 3-state I/O
P50 to P52 function as a 3-bit I/O port that can be set to input or output in 1-bit units.
Besides functioning as an I/O port, in the control mode, these pins operate as I/O for the real-time pulse unit
(RPU) and external interrupt request inputs.
The operation mode can be set to port or control mode in 1-bit units, specified by the port 5 mode control
register (PMC5).
(a) Port mode
P50 to P52 can be set to input or output in 1-bit units using the port 5 mode register (PM5).
(b) Control mode
P50 to P52 can be set to port/control mode in 1-bit units using the PMC5 register.
(i)
TI030 (Timer input) ··· input
This is the external count clock input pin for timer C3.
(ii) TO03 (Timer output) ··· output
This pin outputs the pulse signal for timer C3.
(iii) INTP030, INTP031 (Interrupt request from peripherals) ··· input
These are external interrupt request input pins and the external capture trigger input pins for timer
C3.
(7) P70 to P77 (Port 7) ··· 3-state I/O
P70 to P77 function as an 8-bit input-only port in which all pins are fixed as input pins.
Besides functioning as a port, in the control mode, these pins operate as analog inputs for the A/D converter.
However, the input ports and analog input pins cannot be switched.
(a) Port mode
P70 to P77 are input-only pins.
(b) Control mode
P70 to P77 have alternate functions as pins ANI0 to ANI7, but these alternate functions are not
switchable.
(i)
ANI0 to ANI7 (Analog input) ··· input
These are analog input pins for the A/D converter.
Connect a capacitor between these pins and AV
SS
to prevent noise-related operation faults. Also, do
not apply voltage that is outside the range for AV
SS
and AV
REF
to pins that are being used as inputs
for the A/D converter. If it is possible for noise above the AV
REF
range or below the AV
SS
to enter,
clamp these pins using a diode that has a small V
F
value.