
17
CHAPTER 2 PIN FUNCTIONS
2.3 Pin Function
(1) P00 to P07 (Port 0) ... 3-state I/O
These pins constitute an 8-bit I/O port, port 0. They also serves as control signal pins.
P00 to P07 function not only as I/O port pins, but also as the I/O pins of the real-time pulse unit (RPU) and
external interrupt request input pins. Each bit of port 0 can be specified in the port or control mode, by using
port 0 mode control register (PMC0).
(a) Port mode
P00 to P07 can be set in the input or output mode in 1-bit units by using port 0 mode register (PM0).
(b) Control mode
P00 to P07 can be set in the port or control mode in 1-bit units by the PMC0 register.
(i)
TO110, TO111 (Timer Output) ... output
These pins output pulse signals from timer 1.
(ii)
TCLR11 (Timer Clear) ... input
This pin inputs an external clear signal to timer 1.
(iii) TI11 (Timer Input) ... input
This pin inputs an external count clock to timer 1.
(iv) INTP110 to INTP113 (Interrupt Request from Peripherals) ... input
These pins are the external interrupt request input pins of timer 1.
(v)
ADTRG (AD Trigger Input) ... input
This pin inputs external trigger to A/D converter.
(2) P10 to P17 (Port 1) ... 3-state I/O
These pins constitute an 8-bit I/O port, port 1, which can be set in the input or output mode in 1-bit units.
P10 to P17 function as ports, as well as RPU inputs/outputs, external interrupt request inputs, and serial
interface (CSI2) inputs/outputs. In the operation mode, port control can be selected in 1-bit units, and is
specified by the port 1 mode control register (PMC1).
(a) Port mode
P10 to P17 can be set in the input or output mode in 1-bit units by using port 1 mode register (PM1).
(b) Control mode
P10 to P17 can be set in the port or control mode in 1-bit units by the PMC1 register.
(i)
TO120, TO121 (Timer Output) ... output
These pins output pulse signals from timer 1.
(ii)
TCLR12 (Timer Clear) ... input
This pin inputs an external clear signal to timer 1.