Renesas Hitachi H8S/2194 Series Hardware Manual page 270

16-bit single-chip microcomputer
Table of Contents

Advertisement

Bit 6: P16/ ,& ,& Pin Switching (PMR16)
PMR16 sets whether the P16/ ,& pin as a P16 I/O pin or an ,& pin for the input capture input of
the prescalar unit. The ,& pin has a built-in noise cancel circuit. See section 21, Prescalar Unit.
Bit 6
PMR16
Description
0
The P16/
1
The P16/
Bits 5 to 0: P15/ ,54
,54 to P10/ ,54
PMR15 to PMR10 set whether the P1n/ ,54Q pin is used as a P1n I/O pin or an ,54Q pin for the
external interrupt request input.
Bit n
PMR1n
Description
0
The P1n/
1
The P1n/
(2) Port Control Register 1 (PCR1)
Bit :
7
PCR17
Initial value :
0
R/W :
W
Port control register 1 (PCR1) controls the I/Os of pins P17 to P10 of port 1 in a unit of bit.
When PCR1 is set to 1, the corresponding P17 to P10 pins become output pins, and when it is set
to 0, they become input pins. When the relevant pin is set to a general I/O by PMR1, settings of
PCR1 and PDR1 become valid.
PCR1 is an 8-bit write-only register. When PCR1 is read, 1 is read. When reset, PCR1 is
initialized to H'00.
Bit n
PCR1n
Description
0
The P1n pin functions as an input pin
1
The P1n pin functions as an output pin
,&
pin functions as a P16 I/O pin
,&
pin functions as an
,54 Pin Switching (PMR15 to PMR10)
,54Q
pin functions as a P1n I/O pin
,54Q
pin functions as an
6
5
PCR16
PCR15
0
0
W
W
,&
input pin
,54Q
input pin
4
3
PCR14
PCR13
0
0
W
W
Rev. 2.0, 11/00, page 243 of 1037
(Initial value)
(Initial value)
(n = 5 to 0)
2
1
PCR12
PCR11
PCR10
0
0
W
W
(Initial value)
(n = 7 to 0)
0
0
W

Advertisement

Table of Contents
loading

Table of Contents