Rev. 1.0, 02/00, page 213 of 1141
Port Mode Register 4 (PMR4)
0
0
1
1
2
1
3
1
4
1
1
5
1
7
0
R/W
6
—
—
—
—
—
PMR47
—
—
—
—
—
—
R/W
—
PMR40
Bit :
Initial value :
R/W :
Port mode register 4 (PMR4) controls switching of the P47/RPTRG pin and the P40/PWM14 pin
function. The switchings of the P46/FTOB and P45/FTOA functions are controlled by TOCR.
See section 16, Timer X1. The FTIA, FTIB, FTIC, and FTID inputs always function.
PMR4 is an 8-bit read/write enable register. When reset, PMR4 is initialized to H'7E.
Because the RPTRG input always function, the alternative pin need always be set to the high or
low level regardless of the active mode and low power consumption mode. Note that the pin level
must not reach an intermediate level.
Because the FTIA, FTIB, FTIC, and FTID inputs always function, each input uses the input edge
to the alternative general I/O pins P44, P43, P42, and P41 as input signals.
Bit 7
P47/RPTRG Pin Switching (PMR47): PMR47 sets whether the P47/RPTRG pin is used
as a P40 I/O pin or a RPTRG pin for the realtime output port trigger input.
Bit 7
PMR47
Description
0
The P47/RPTRG pin functions as a P47 I/O pin
(Initial value)
1
The P47/RPTRG pin functions as a RPTRG I/O pin
Bits 6 to 1
Reserved Bits: Reserved bits. When the bits are read, 1 is always read. The write
operation is invalid.
Bit 0
P40/PWM14 Pin Switching (PMR40): PMR40 sets whether the P40/PWM14 pin is used
as a P40 I/O pin or a PWM14 pin for the 14-bit PWM square wave output.
Bit 0
PMR40
Description
0
The P40/PWM14 pin functions as a P40 I/O pin
(Initial value)
1
The P40/PWM14 pin functions as a PWM14 output pin