Port Mode Register 1 (Pmr1) - Hitachi H8/3664 Hardware Manual

Table of Contents

Advertisement

PUCR1 controls whether the MOS pull-up of each of the port 1 pins P17 to P14 and P12 to P10 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'08.
9.2.6

Port Mode Register 1 (PMR1)

Bit
7
IRQ3
Initial value
0
Read/Write
R/W
PMR1 is an 8-bit read/write register, controlling the selection of pin functions for ports 1 and 2
pins.
Upon reset, PMR1 is initialized to H'0C.
Bit 7—P17/IRQ3/TRGV Pin Function Switch (IRQ3): This bit selects whether pin
P17/IRQ3/TRGV is used as P17 or as IRQ3/TRGV.
Bit 7: IRQ3
0
1
Note: Rising or falling edge sensing can be designated for IRQ3. Rising, falling, or both edge
sensing can be designated for TRGV. For details on TRGV settings, see section 11.2.5,
Timer Control Register V1 (TCRV1).
Bit 6—P16/IRQ2 Pin Function Switch (IRQ2): This bit selects whether pin P16/IRQ2 is used as
P16 or as IRQ2.
Bit 6: IRQ2
0
1
Note: Rising or falling edge sensing can be designated for IRQ2.
142
6
IRQ2
IRQ1
0
R/W
R/W
Description
Functions as P17 I/O pin
Functions as IRQ3/TRGV input pin
Description
Functions as P16 I/O pin
Functions as IRQ2 input pin
5
4
IRQ0
0
0
R/W
3
2
1
1
1
0
TXD
TMOW
0
0
R/W
R/W
(Initial value)
(Initial value)

Advertisement

Table of Contents
loading

Table of Contents