mc68hc908jw32 Freescale Semiconductor, Inc, mc68hc908jw32 Datasheet - Page 178

no-image

mc68hc908jw32

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

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mc68hc908jw32FAE
Manufacturer:
FREESCALE
Quantity:
20 000
Input/Output (I/O) Ports
D– and D+ — USB Data Pins
SS, MISO, MOSI, and SPSCK — SPI Functional Pins
13.6.2 Data Direction Register E
Data direction register E determines whether each port E pin is an input or an output. Writing a logic 1 to
a DDRE bit enables the output buffer for the corresponding port E pin; a logic 0 disables the output buffer.
DDRE[7:2] — Data Direction Register E Bits
178
PTE3 pin functions as an external interrupt when PTE3IE=1 in the IRQ option control register (IOCR)
and USBEN=0 in the USB address register (USB disabled). (See
Register.)
PTE2 pin also muxed with PS2 clock generator module. (See
(PS2CLK).)
D– and D+ are the differential data lines used by the USB module. (See
Module.)
When the USB module is enabled, PTE2/D+ and PTE3/D– function as USB data pins D– and D+.
When the USB module is disabled, PTE2/D+ and PTE3/D– function as open drain high current pins
for PS/2 clock and data use.
These are the chip select, master-input-slave-output, master-output-slave-input and clock pins for the
SPI module. The SPI enable bit, SPE, in the SPI control register, SPCR, enables these pins as the SPI
functional pins and overrides any control from port I/O logic. See
Module
These read/write bits control port E data direction. Reset clears DDRE[7:2], configuring all port E pins
as inputs.
1 = Corresponding port E pin configured as output
0 = Corresponding port E pin configured as input
(SPI).
Address:
PTE2/D+ pin has two programmable pullup resistors. One is used for PTE2
when the USB module is disable and another is used for D+ when the USB
module is enabled.
Data direction register E (DDRE) does not affect the data direction of port E
pins that are being used by the SPI module. However, the DDRE bits
always determine whether reading port E returns the states of the latches
or the states of the pins. (See
Avoid glitches on port E pins by writing to the port E data register before
changing data direction register E bits from 0 to 1.
Reset:
Read:
Write:
DDRE7
$0009
Bit 7
0
Figure 13-15. Data Direction Register E (DDRE)
= Unimplemented
DDRE6
6
0
MC68HC908JW32 Data Sheet, Rev. 5
DDRE5
5
0
Table 13-5. Port C Pin
NOTE
NOTE
DDRE4
4
0
DDRE3
3
0
Chapter 12 PS2 Clock Generator
Chapter 10 Serial Peripheral Interface
DDRE2
Functions.)
14.7 IRQ Status and Control
2
0
Chapter 11 USB 2.0 FS
1
0
Freescale Semiconductor
Bit 0
0

Related parts for mc68hc908jw32