MC68HC908QT1VDW Freescale Semiconductor, MC68HC908QT1VDW Datasheet - Page 101

no-image

MC68HC908QT1VDW

Manufacturer Part Number
MC68HC908QT1VDW
Description
8-bit Microcontrollers - MCU 8 Bit 8MHz
Manufacturer
Freescale Semiconductor
Datasheet

Specifications of MC68HC908QT1VDW

Product Category
8-bit Microcontrollers - MCU
Core
HC08
Data Bus Width
8 bit
Maximum Clock Frequency
8 MHz
Program Memory Size
1.5 KB
Data Ram Size
128 B
On-chip Adc
No
Operating Supply Voltage
3.3 V to 5.5 V
Operating Temperature Range
- 40 C to + 85 C
Package / Case
SOIC-8
Mounting Style
SMD/SMT
Maximum Operating Temperature
+ 85 C
Minimum Operating Temperature
- 40 C
Number Of Programmable I/os
6
Number Of Timers
2
Program Memory Type
Flash
Factory Pack Quantity
96
Supply Voltage - Max
5.5 V
Supply Voltage - Min
2.7 V
12.3.2 Data Direction Register B
Data direction register B (DDRB) determines whether each port B pin is an input or an output. Writing a 1
to a DDRB bit enables the output buffer for the corresponding port B pin; a 0 disables the output buffer.
DDRB[7:0] — Data Direction Register B Bits
When DDRBx is a 1, reading address $0001 reads the PTBx data latch. When DDRBx is a 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
These read/write bits control port B data direction. Reset clears DDRB[7:0], configuring all port B pins
as inputs.
1 = Corresponding port B pin configured as output
0 = Corresponding port B pin configured as input
Address: $0005
1. X = don’t care
2. Hi-Z = high impedance
3. Writing affects data register, but does not affect the input.
DDRB
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.
port B I/O logic.
Reset:
Read:
Write:
Bit
0
1
READ DDRB ($0005)
WRITE DDRB ($0005)
WRITE PTB ($0001)
READ PTB ($0001)
DDRB7
Bit 7
PTB
X
0
Bit
X
(1)
Figure 12-6. Data Direction Register B (DDRB)
Table 12-2
DDRB6
Input, Hi-Z
MC68HC908QY/QT Family Data Sheet, Rev. 6
6
0
I/O Pin
Output
RESET
Mode
Table 12-2. Port B Pin Functions
Figure 12-7. Port B I/O Circuit
DDRB5
(2)
summarizes the operation of the port B pins.
5
0
Accesses to DDRB
DDRB7–DDRB0
DDRB7–DDRB0
DDRBx
DDRB4
NOTE
PTBx
Read/Write
4
0
DDRB3
3
0
Figure 12-7
DDRB2
Read
2
0
Pin
Pin
PTBPUEx
Accesses to PTB
DDRB1
PTB7–PTB0
PTB7–PTB0
1
0
shows the
Write
30 k
DDRB0
Bit 0
PTBx
0
(3)
Port B
101

Related parts for MC68HC908QT1VDW