MC68HC908LB8CPE Freescale Semiconductor, MC68HC908LB8CPE Datasheet - Page 138

no-image

MC68HC908LB8CPE

Manufacturer Part Number
MC68HC908LB8CPE
Description
IC MCU 8K FLASH 8MHZ 20DIP
Manufacturer
Freescale Semiconductor
Series
HC08r
Datasheet

Specifications of MC68HC908LB8CPE

Core Processor
HC08
Core Size
8-Bit
Speed
8MHz
Peripherals
LVR, POR, PWM
Number Of I /o
18
Program Memory Size
8KB (8K x 8)
Program Memory Type
FLASH
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
4.5 V ~ 5.5 V
Data Converters
A/D 7x8b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
20-DIP (0.300", 7.62mm)
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Connectivity
-

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MC68HC908LB8CPE
Manufacturer:
IR
Quantity:
10
Input/Output (I/O) Ports
14.4 Port C
Port C is a 3-bit, general-purpose bidirectional I/O port. Port C shares its pins with the oscillator (OSC)
module, high resolution PWM (HRP), and the external interrupt module (IRQ). See
Functions
devices if configured as an input port.
When the IRQ function is enabled in the configuration register 2 (CONFIG2), bit 2 of the port C data
register (PTC) will always read 0. In this case, the BIH and BIL instructions can be used to read the logic
level on the PTC2 pin. When the IRQ function is disabled, these instructions will behave as if the PTC2
pin is a logic 1. However, reading bit 2 of PTC will read the actual logic level on the pin.
14.4.1 Port C Data Register
The port C data register (PTC) contains a data latch for each of the seven port C pins.
PTC2–PTC0 — Port C Data Bits
14.4.2 Data Direction Register C
Data direction register C (DDRC) determines whether each port C pin is an input or an output. Writing a
1 to a DDRC bit enables the output buffer for the corresponding port C pin; a 0 disables the output buffer.
138
These read/write bits are software-programmable. Data direction of each port C pin is under the control
of the corresponding bit in data direction register C. Reset has no effect on port C data.
for a description of the priority of these functions. Port C also has software configurable pullup
NOTES:
1. X = Don’t care
2. Hi-Z = High impedance
3. Writing affects data register, but does not affect input.
DDRB
Address:
Bit
0
1
Reset:
Read:
Write:
PTB
X
Bit
X
$0002
(1)
Bit 7
0
0
Input, Hi-Z
= Unimplemented
Figure 14-9. Port C Data Register (PTC)
I/O Pin
Output
Mode
6
0
0
Table 14-2. Port B Pin Functions
MC68HC908LB8 Data Sheet, Rev. 1
(2)
PTC2 is input only.
5
0
0
DDRB7–DDRB0
DDRB7–DDRB0
Read/Write
Accesses
to DDRB
NOTE
4
0
0
3
0
0
PTB7–PTB0
Read
Pin
PTC2
2
0
Accesses
to PTB
PTC1
PTB7–PTB0
1
0
PTB7–PTB0
Write
Freescale Semiconductor
Table 1-1 . Pin
PTC0
Bit 0
0
(3)

Related parts for MC68HC908LB8CPE