Rev. 1.0, 09/02, page 142 of 568
9.7 Port
B
Port B is an 8-bit I/O port that also has other functions. Port B has the following registers.
•
Port B data direction register (PBDDR)
•
Port B data register (PBDR)
•
Port B register (PORTB)
•
Port B pull-up MOS control register (PBPCR)
•
Port B open-drain control register (PBODR)
9.7.1
Port B Data Direction Register (PBDDR)
PBDDR is an 8-bit write-only register, the individual bits of which specify whether the pins of
port B are used for input or output.
Bit
Bit Name
Initial Value
R/W
Description
7 PB7DDR 0
W
6 PB6DDR 0
W
5 PB5DDR 0
W
4 PB4DDR 0
W
3 PB3DDR 0
W
2 PB2DDR 0
W
1 PB1DDR 0
W
0 PB0DDR 0
W
When a pin is specified as a general purpose I/O
port, setting this bit to 1 makes the corresponding
port 1 pin an output pin. Clearing this bit to 0 makes
the pin an input pin.
Содержание H8S/2627
Страница 22: ...Rev 1 0 09 02 page xx of xxxvi Index 565 ...
Страница 30: ...Rev 1 0 09 02 page xxviii of xxxiv ...
Страница 36: ...Rev 1 0 09 02 page xxxiv of xxxiv Table 23 9 Flash Memory Characteristics 561 ...
Страница 82: ...Rev 1 0 09 02 page 46 of 568 ...
Страница 88: ...Rev 1 0 09 02 page 52 of 568 ...
Страница 98: ...Rev 1 0 09 02 page 62 of 568 ...
Страница 156: ...Rev 1 0 09 02 page 120 of 568 ...
Страница 390: ...Rev 1 0 09 02 page 354 of 568 ...
Страница 480: ...Rev 1 0 09 02 page 444 of 568 ...
Страница 512: ...Rev 1 0 09 02 page 476 of 568 ...
Страница 527: ...Rev 1 0 09 02 page 491 of 568 21 8 5 Writing to MSTPCR MSTPCR should only be written to by the CPU ...
Страница 528: ...Rev 1 0 09 02 page 492 of 568 ...
Страница 580: ...Rev 1 0 09 02 page 544 of 568 ...