English
Language : 

HD64F2168 Datasheet, PDF (272/874 Pages) Renesas Technology Corp – Renesas 16-Bit Single-Chip Microcomputer
8.11 Port B
Port B is an 8-bit multi-function input/output port that can also be used event counter input pin.
Port B has the following registers.
• Port B data direction register (PBDDR)
• Port B output data register (PBODR)
• Port B input data register (PBPIN)
8.11.1 Port B Data Direction Register (PBDDR)
PBDDR is used to specify the input/output attribute of each pin of port B.
Bit Bit Name Initial Value R/W Description
7
PB7DDR 0
6
PB6DDR 0
5
PB5DDR 0
W The corresponding port B pins are output ports when
W the PBDDR bits are set to 1, and input ports when
cleared to 0.
W
4
PB4DDR 0
W
3
PB3DDR 0
W
2
PB2DDR 0
W
1
PB1DDR 0
W
0
PB0DDR 0
W
8.11.2 Port B Output Data Register (PBODR)
PBODR stores output data for the port B pins.
Bit Bit Name Initial Value R/W Description
7
PB7ODR 0
6
PB6ODR 0
R/W The PBODR register stores the output data for the
R/W pins that are used a general output port.
5
PB5ODR 0
R/W
4
PB4ODR 0
R/W
3
PB3ODR 0
R/W
2
PB2ODR 0
R/W
1
PB1ODR 0
R/W
0
PB0ODR 0
R/W
Rev. 3.00, 03/04, page 232 of 830