
CHAPTER 2 PIN FUNCTIONS
User’s Manual U15862EJ3V0UD
86
(6) P60 to P615 (port 6) ... I/O
Port 6 is a 16-bit I/O port for which input and output can be set in 1-bit units.
In addition to functioning as an I/O port, P60 to P615 can also be used for real-time output port function, serial
interface (CSI02) I/O, and 16-bit timer I/O in control mode 1, and for 16-bit timer output in control mode 2.
The port mode and control mode (alternate functions) can be selected as the operation mode for each bit, and
are specified by the port 6 mode control register (PMC6).
P613 can be set to control mode 1 or control mode 2 in 1-bit units by the port 6 function control register
(PFC6).
Normal output or N-ch open-drain output can be selected for P67 and P68.
(a) Port mode
P60 to P615 can be set to input or output in 1-bit units by the port 6 mode register (PM6).
(b) Control mode (alternate function)
P60 to P615 can be set to the port mode or control mode in 1-bit units by the port 6 mode control register
(PMC6).
(i)
RTP10 to RTP15 (real-time output port) ... Output
These pins operate as a real-time output port.
(ii)
SO02 (serial output) ... Output
This is the serial transmit data output pin for CSI02.
(iii) SI02 (serial input) ... Input
This is the serial receive data input pin for CSI02.
(iv) SCK02 (serial clock) ... I/O
This is the serial clock I/O pin for CSI02.
(v)
TI040, TI041, TI050, TI051 (timer input) ... Input
These are the external count clock input pins for the 16-bit timer.
(vi) TO04, TO05 (timer output) ... Output
These are the pulse signal output pins for the 16-bit timer.
(7) P70 to P715 (port 7) ... Input
Port 7 is a 16-bit input-only port in which all the pins are fixed to input.
In addition to functioning as an input port, P70 to P715 can also be used as A/D converter (ADC) analog input
pins in the control mode.
Normally, when port and function pins are shared, their operation can be selected by the port mode control
register, but in the case of P70 to P715, such a register does not exist. Therefore, these pins cannot be
switched between input port and analog input pins for the A/D converter (ADC). For the state of each pin, read
the port.
(a) Port mode
P70 to P715 are input-only pins.