137
3. Port pull-up control register 1 (PUCR1)
Bit
Initial value
Read/Write
7
PUCR1
0
R/W
6
PUCR1
0
R/W
5
PUCR1
0
R/W
4
PUCR1
0
R/W
3
PUCR1
0
R/W
0
PUCR1
0
R/W
2
PUCR1
0
R/W
1
PUCR1
0
R/W
7
6
5
4
3
2
1
0
PUCR1 controls whether the MOS pull-up of each of the port 1 pins P1
7
to P1
0
is on or off. When
a PCR1 bit is cleared to 0, setting the corresponding PUCR1 bit to 1 turns on the MOS pull-up for
the corresponding pin, while clearing the bit to 0 turns off the MOS pull-up.
Upon reset, PUCR1 is initialized to H'00.
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 9.4.2.