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.
Содержание H8S/2111B
Страница 2: ...Rev 1 00 05 04 page ii of xxxiv...
Страница 8: ...Rev 1 00 05 04 page viii of xxxiv...
Страница 22: ...Rev 1 00 05 04 page xxii of xxxiv...
Страница 30: ...Rev 1 00 05 04 page xxx of xxxiv...
Страница 84: ...Rev 1 00 05 04 page 50 of 544...
Страница 100: ...Rev 1 00 05 04 page 66 of 544...
Страница 126: ...Rev 1 00 05 04 page 92 of 544...
Страница 180: ...Rev 1 00 05 04 page 146 of 544...
Страница 216: ...Rev 1 00 05 04 page 182 of 544...
Страница 254: ...Rev 1 00 05 04 page 220 of 544...
Страница 268: ...Rev 1 00 05 04 page 234 of 544...
Страница 382: ...Rev 1 00 05 04 page 348 of 544...
Страница 462: ...Rev 1 00 05 04 page 428 of 544...
Страница 464: ...Rev 1 00 05 04 page 430 of 544...
Страница 488: ...Rev 1 00 05 04 page 454 of 544...
Страница 496: ...Rev 1 00 05 04 page 462 of 544...
Страница 574: ...Rev 1 00 05 04 page 540 of 544...
Страница 581: ......
Страница 582: ...H8S 2111B Hardware Manual...