MCL908QY2CDTE Freescale Semiconductor, MCL908QY2CDTE Datasheet - Page 101

IC MCU 8BIT 1.5K FLASH 16-TSSOP

MCL908QY2CDTE

Manufacturer Part Number
MCL908QY2CDTE
Description
IC MCU 8BIT 1.5K FLASH 16-TSSOP
Manufacturer
Freescale Semiconductor
Series
HC08r
Datasheet

Specifications of MCL908QY2CDTE

Core Processor
HC08
Core Size
8-Bit
Speed
2MHz
Peripherals
LVD, POR, PWM
Number Of I /o
13
Program Memory Size
1.5KB (1.5K x 8)
Program Memory Type
FLASH
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
2.4 V ~ 3.6 V
Data Converters
A/D 4x8b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
16-TSSOP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Connectivity
-
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
1. X = don’t care
2. Hi-Z = high impedance
3. Writing affects data register, but does not affect the input.
These read/write bits control port B data direction. Reset clears DDRB[7:0], configuring all port B pins
as inputs.
DDRB
Bit
0
1
1 = Corresponding port B pin configured as output
0 = Corresponding port B pin configured as input
Address: $0005
PTB
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.
X
Bit
Reset:
X
Read:
Write:
(1)
READ DDRB ($0005)
WRITE DDRB ($0005)
WRITE PTB ($0001)
READ PTB ($0001)
DDRB7
Bit 7
0
Input, Hi-Z
Figure 12-6. Data Direction Register B (DDRB)
I/O Pin
Output
Mode
Table 12-2
DDRB6
MC68HLC908QY/QT Family Data Sheet, Rev. 3
6
0
(2)
Table 12-2. Port B Pin Functions
RESET
Figure 12-7. Port B I/O Circuit
summarizes the operation of the port B pins.
DDRB5
5
0
Accesses to DDRB
NOTE
DDRB7–DDRB0
DDRB7–DDRB0
DDRB4
DDRBx
PTBx
Read/Write
4
0
DDRB3
3
0
Figure 12-7
DDRB2
2
0
PTBPUEx
Read
Pin
Pin
DDRB1
shows the
1
0
Accesses to PTB
30 k
DDRB0
Bit 0
PTBx
PTB7–PTB0
0
PTB7–PTB0
Write
(3)
Port B
101

Related parts for MCL908QY2CDTE