
LH75400/01/10/11 (Preliminary) User’s Guide
General Purpose Input/Output
6/17/03
21-7
21.2.3.4 Port B Data Direction Register
PBDDR is the Port B Data Direction Register. The active bits used in this register are
Read/Write.
Bits set in the PBDDR Register set the corresponding PB pin to be an output:
• Bit [5] controls pin 24 when the pin is configured as PB5. It does not control pin 24 when
the pin is configured as nWAIT.
• Bit [4] controls pin 25 when the pin is configured as PB4. It does not control pin 25 when
the pin is configured as nBLE1.
• Bit [3] controls pin 27 when the pin is configured as PB3. It does not control pin 27 when
the pin is configured as nBLE0.
• Bit [2] controls pin 28 when the pin is configured as PB2. It does not control pin 28 when
the pin is configured as nCS3.
• Bit [1] controls pin 29 when the pin is configured as PB1. It does not control pin 29 when
the pin is configured as nCS2.
• Bit [0] controls pin 30 when the pin is configured as PB0. It does not control pin 30 when
the pin is configured as nCS1.
Clearing a bit configures the pin to be an input. A System Reset clears all bits.
Table 21-9. PBDDR Register
BIT
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
FIELD
///
RESET
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
RW
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
BIT
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
FIELD
///
Port B Data Direction
RESET
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
RW
R
R
R
R
R
R
R
R
R
R
RW
RW
RW
RW
RW
RW
ADDR
0xFF 0x0C
Table 21-10. PBDDR Register Definitions
BITS
NAME
FUNCTION
31:6
///
Reserved
Writing to these bits has no effect. Reading returns 0.
5:0
Port B Data Direction
Port B Output/Input
Bits set = Port B output.
Bits cleared = Port B input.