mc68hc705j2 Freescale Semiconductor, Inc, mc68hc705j2 Datasheet - Page 19

no-image

mc68hc705j2

Manufacturer Part Number
mc68hc705j2
Description
8-bit Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
3.3 Port B
PORTB — Port B Data Register
RESET:
PB5–PB0 — Port B Data Bits
DDRB — Port B Data Direction Register
RESET:
DDRB7–DDRB0 — Port B Data Direction Bits
MOTOROLA
3-4
These read/write bits are software-programmable. Data direction of each bit is
under the control of the corresponding DDRA bit.
These read/write bits control port B data direction.
Port B is a 6-bit general-purpose bidirectional I/O port. The contents of DDRB
determine whether each pin is an input or an output. Figures 3-4 and 3-5 show
the port B data register and DDRB.
1 = Corresponding port B pin configured as output
0 = Corresponding port B pin configured as input
DDRB7
Bit 7
Bit 7
0
0
Figure 3-5. Port B Data Direction Register
DDRB6
6
0
6
0
Figure 3-4. Port B Data Register
DDRB5
PB5
5
5
0
NOT CHANGED BY RESET
PARALLEL I/O
DDRB4
PB4
4
4
0
DDRB3
PB3
3
3
0
DDRB2
PB2
2
2
0
DDRB1
PB1
1
1
0
MC68HC705J2
DDRB0
Bit 0
Bit 0
PB0
0
$ 0 0 0 1
$ 0 0 0 5

Related parts for mc68hc705j2