Renesas HD64F2111B Network Card User Manual


 
Rev. 1.00, 05/04, page 100 of 544
7.1 Port 1
Port 1 is an 8-bit I/O port. Port 1 pins also function as PWM output pins. Port 1 has the following
registers.
Port 1 data direction register (P1DDR)
Port 1 data register (P1DR)
Port 1 pull-up MOS control register (P1PCR)
7.1.1 Port 1 Data Direction Register (P1DDR)
P1DDR specifies input or output for the pins of port 1 on a bit-by-bit basis.
Bit Bit Name
Initial
Value R/W Description
7 P17DDR 0 W
6 P16DDR 0 W
5 P15DDR 0 W
4 P14DDR 0 W
3 P13DDR 0 W
2 P12DDR 0 W
1 P11DDR 0 W
0 P10DDR 0 W
The corresponding port 1 pins are output ports when
the P1DDR bits are set to 1, and input ports when the
P1DDR bits are cleared to 0.
7.1.2 Port 1 Data Register (P1DR)
P1DR stores output data for the port 1 pins.
Bit Bit Name
Initial
Value R/W Description
7 P17DR 0 R/W
6 P16DR 0 R/W
5 P15DR 0 R/W
4 P14DR 0 R/W
3 P13DR 0 R/W
2 P12DR 0 R/W
1 P11DR 0 R/W
0 P10DR 0 R/W
If a port 1 read is performed while the P1DDR bits are
set to 1, the P1DR values are read. If a port 1 read is
performed while the P1DDR bits are cleared to 0, the
pin states are read.