Register Configuration - Hitachi H8S/2199 Hardware Manual

Single-chip microcomputer
Table of Contents

Advertisement

10.2.2

Register Configuration

Table 10.3 shows the port 0 register configuration.
Table 10.3 Port 0 Register Configuration
Name
Port mode register 0
Port data register 0
Note: * Lower 16 bits of the address.
(1) Port Mode Register 0 (PMR0)
Bit :
PMR07
Initial value :
R/W :
R/W
Port mode register 0 (PMR0) controls switching of each pin function of port 0. The switching is
specified in a unit of bit.
PMR0 is an 8-bit read/write enable register. When reset, PMR0 is initialized to H'00.
Bits 7 to 0    P07/AN7 to P00/AN0 Pin Switching (PMR07 to PMR00): PMR07 to PMR00 sets
whether the P0n/ANn pin is used as a P0n input pin or an ANn pin for the analog input channel of
an A/D converter.
Bit n
PMR0n
Description
0
The P0n/ANn pin functions as a P0n input pin
1
The P0n/ANn pin functions as an ANn input pin
Rev. 1.0, 02/00, page 190 of 1141
Abbrev.
PMR0
PDR0
7
6
PMR06
PMR05
0
0
R/W
R/W
R/W
Size
R/W
Byte
R
Byte
5
4
PMR04
PMR03
0
0
R/W
R/W
Initial Value
H'00
3
2
PMR02
PMR01
0
0
R/W
R/W
Address*
H'FFCD
H'FFC0
1
0
PMR00
0
0
R/W
(Initial value)
(n = 7 to 0)

Advertisement

Table of Contents
loading

Table of Contents