
CHAPTER 2 PIN FUNCTIONS
User’s Manual U15862EJ3V0UD
76
(iii) SCK00 (serial clock) ... I/O
This is the serial clock I/O pin for CSI00.
(5) P50 to P55 (port 5) ... I/O
Port 5 is a 6-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, P50 to P55 can also be used as 16-bit timer input, 8-bit timer I/O, and
serial interface (CSIA0) I/O pins in control mode 1, and as real-time output port pins in control mode 2.
They can also be used for key interrupt input by setting key return mode register KRM while in the input port
mode.
The port mode and control mode (alternate functions) can be selected as the operation mode in 1-bit units,
and are specified by the port 5 mode control register (PMC5).
P50 to P55 can be set to control mode 1 or control mode 2 in 1-bit units by the port 5 function control register
(PFC5).
Normal output and N-ch open-drain output can be selected for P54 and P55.
(a) Port mode
P50 to P55 can be set to input or output in 1-bit units by the port 5 mode register (PM5).
(b) Control mode (alternate function)
P50 to P55 can be set to the port mode or control mode in 1-bit units by the port 5 mode control register
(PMC5).
(i)
TI011 (timer input) ... Input
This is the external count clock input pin for the 16-bit timer.
(ii)
TI50 (timer input) ... Input
This is the external count clock input pin for the 8-bit timer.
(iii)
TO50 (timer output) ... Output
This is the pulse signal output pin for the 8-bit timer.
(iv)
SOA0 (serial output) ... Output
This is the CSIA0 serial transmit data output pin.
(v)
SIA0 (serial input) ... Input
This is the CSIA0 serial receive data input pin.
(vi)
SCKA0 (serial clock) ... I/O
This is the CSIA0 serial clock I/O pin.
(vii) RTP00 to RTP05 (real-time output port) ... Output
These pins operate as a real-time output port.
(viii) KR0 to KR5 (key return) ... Input
These are the key interrupt input pins. Their operation is specified by the key return mode register
(KRM) in the input port mode.