
CHAPTER 4 PORT FUNCTIONS
Preliminary User’s Manual U16541EJ1V0UM
135
4.3.6
Port 5
Port 5 is a 6-bit port that controls I/O in 1-bit units.
(1) Port 5 functions
Port input/output data specifiable in 1-bit units
Specification made by port register 5 (P5)
Port input/output specifiable in 1-bit units
Specification made by port mode register 5 (PM5)
Port mode/control mode (alternate functions) specifiable in 1-bit units
Specification made by port mode control register 5 (PMC5)
Control mode specifiable in 1-bit units
Specification made by port function control register 5 (PFC5) and port function control expansion register 5
(PFCE5)
N-ch open-drain specifiable in 1-bit units
Specification made by port function register 5 (PF5)
Port 5 includes the following alternate-function pins.
Table 4-9. Port 0 Alternate-Function Pins
Pin Name
Alternate-Function Pin Name
I/O
Remark
P50
TIQ01/KR0/TOQ01/RTP00
P51
TIQ02/KR1/TOQ02/RTP01
P52
TIQ03/KR2/TOQ03/RTP02/DDI
Note
P53
SIB2/KR3/TIQ00/TOQ00/RTP03/DDO
Note
P54
SOB2/KR4/RTP04/DCK
Note
Port 5
P55
SCKB2/KR5/RTP05/DMS
Note
I/O
Selectable as N-ch open-drain output
Note The DDI, DDO, DCK, and DMS pins are pins for on-chip debugging (flash memory version only). After
external reset, when not using these pins as on-chip debugging pins and using them instead as a port,
the following handling is required.
Input a low level to the P05/INTP2/DRST pin.
Set the ODCM0 bit of the ODCM register (special register). The handling in this case is as follows.
<1> Clear (0) the OCDM0 bit of the OCDM register.
<2> Fix the P05/INTP2/DRST pin input to low level until the handling in <1> above is completed.
If a high level is input to the DRST pin when the on-chip debug function is not used and before the above
processing is performed, malfunction (CPU deadlock) may occur. Exercise care in handling the P05 pin.
(The P05 pin has a pull-down resistor (30 k
typ.) in the buffer and does not have to be fixed to low level
by an external source. The pull-down resistor is disconnected when the OCDM0 bit is cleared (0).)