Datasheet

Section 7 I/O Ports
Rev. 3.00 Sep. 28, 2009 Page 161 of 910
REJ09B0350-0300
7.2.6 Port 6
(1) P67/KIN7/IRQ7
When the KMIM7 bit in KMIMR of the interrupt controller is cleared to 0, this pin can be used as
the KIN7 input pin. When the ISS7 bit in ISSR is cleared to 0 and the IRQ7E bit in IER of the
interrupt controller is set to 1, this pin can be used as the IRQ7 input pin.
The pin function is switched as shown below according to the state of the P67DDR bit.
Setting
I/O Port
Module
Name
Pin Function
P67DDR
I/O port P67 output 1
P67 input
(initial setting)
0
(2) P66/KIN6/IRQ6
When the KMIM6 bit in KMIMR of the interrupt controller is cleared to 0, this pin can be used as
the KIN6 input pin. When the EIVS bit in SYSCR3 is cleared to 0 and the IRQ6E bit in IER of the
interrupt controller is set to 1, this pin can be used as the IRQ6 input pin.
The pin function is switched as shown below according to the state of the P66DDR bit.
Setting
I/O Port
Module
Name
Pin Function P66DDR
I/O port P66 output 1
P66 input
(initial setting)
0