mc68hc908gp32 Freescale Semiconductor, Inc, mc68hc908gp32 Datasheet - Page 121

no-image

mc68hc908gp32

Manufacturer Part Number
mc68hc908gp32
Description
M68hc08 Microcontrollers Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mc68hc908gp32CF8
Manufacturer:
MOT
Quantity:
600
Part Number:
mc68hc908gp32CF8
Manufacturer:
MOT
Quantity:
1 000
Part Number:
mc68hc908gp32CFB
Manufacturer:
ON
Quantity:
11
Part Number:
mc68hc908gp32CFB
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
mc68hc908gp32CFB
Manufacturer:
MOTOROLA/摩托罗拉
Quantity:
20 000
Part Number:
mc68hc908gp32CFBE
Manufacturer:
GAIA
Quantity:
5
Part Number:
mc68hc908gp32CFBR2
Manufacturer:
FREESCALE
Quantity:
69
Part Number:
mc68hc908gp32CP
Manufacturer:
ROCKWELL
Quantity:
201
Part Number:
mc68hc908gp32CP
Manufacturer:
MOTOROLA/摩托罗拉
Quantity:
20 000
DDRB7–DDRB0 — Data Direction Register B Bits
Figure 12-8
When bit DDRBx is a logic 1, reading address $0001 reads the PTBx data latch. When bit DDRBx is a
logic 0, reading address $0001 reads the voltage level on the pin. The data latch can always be written,
regardless of the state of its data direction bit.
Freescale Semiconductor
Notes:
These read/write bits control port B data direction. Reset clears DDRB7–DDRB0], configuring all port
B pins as inputs.
DDRB Bit
1. X = Don’t care
2. Hi-Z = High impedance
3. Writing affects data register, but does not affect input.
1 = Corresponding port B pin configured as output
0 = Corresponding port B pin configured as input
0
1
shows the port B I/O logic.
Avoid glitches on port B pins by writing to the port B data register before
changing data direction register B bits from 0 to 1.
PTB Bit
X
X
(1)
READ DDRB ($0005)
WRITE DDRB ($0005)
WRITE PTB ($0001)
READ PTB ($0001)
I/O Pin Mode
Input, Hi-Z
Output
Table 12-3. Port B Pin Functions
RESET
MC68HC908GP32 Data Sheet, Rev. 10
Figure 12-8. Port B I/O Circuit
(2)
Table 12-3
Accesses to DDRB
NOTE
DDRBx
DDRB7–DDRB0
DDRB7–DDRB0
PTBx
Read/Write
summarizes the operation of the port B pins.
PTB7–PTB0
Read
Pin
Accesses to PTB
PTBx
PTB7–PTB0
PTB7–PTB0
Write
Port B
(3)
121

Related parts for mc68hc908gp32