Datasheet

Section 8 I/O Ports
Rev. 6.00 Aug 04, 2006 page 207 of 680
REJ09B0145-0600
4. Port Mode Register 1 (PMR1)
Bit
Initial value
Read/Write
7
IRQ3
0
R/W
6
IRQ2
0
R/W
5
IRQ1
0
R/W
4
IRQ4
0
R/W
3
TMIG
0
R/W
0
TMOW
0
R/W
2
TMOFH
0
R/W
1
TMOFL
0
R/W
PMR1 is an 8-bit read/write register, controlling the selection of pin functions for port 1 pins.
Upon reset, PMR1 is initialized to H'00.
Bit 7: P1
7
/IRQ
3
/TMIF pin function switch (IRQ3)
This bit selects whether pin P1
7
/IRQ
3
/TMIF is used as P1
7
or as IRQ
3
/TMIF.
Bit 7
IRQ3 Description
0 Functions as P1
7
I/O pin (initial value)
1 Functions as IRQ
3
/TMIF input pin
Note: Rising or falling edge sensing can be designated for IRQ
3
/TMIF. For details on TMIF
settings, see 3. Timer Control Register F (TCRF) in section 9.4.2.
Bit 6: P1
6
/IRQ
2
pin function switch (IRQ2)
This bit selects whether pin P1
6
/IRQ
2
is used as P16 or as IRQ
2
.
Bit 6
IRQ2 Description
0 Functions as P1
6
I/O pin (initial value)
1 Functions as IRQ
2
input pin
Note: Rising or falling edge sensing can be designated for IRQ
2
.