s908ey8ad4cfjer Freescale Semiconductor, Inc, s908ey8ad4cfjer Datasheet - Page 123

no-image

s908ey8ad4cfjer

Manufacturer Part Number
s908ey8ad4cfjer
Description
M68hc08 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
PTE[1:0] — Port E Data Bits
RxD — SCI Receive Data Input Bit
TxD — SCI Transmit Data Output
12.6.2 Data Direction Register E
Data direction register E determines whether each port E pin is an input or an output. Writing a 1 to a
DDRE bit enables the output buffer for the corresponding port E pin; a 0 disables the output buffer.
DDRE[1:0] — Data Direction Register E Bits
Freescale Semiconductor
These read/write bits are software programmable. Data direction of each port E pin is under the control
of the corresponding bit in data direction register E. Reset has no effect on PTE[1:0].
The PTE1/RxD pin is the receive data input for the SCI module. When the enable SCI bit, ENSCI, is
clear, the SCI module is disabled, and the PTE1/RxD pin is available for general-purpose I/O. See
13.8.1 ESCI Control Register
The PTE0/TxD pin is the transmit data output for the SCI module. When the enable SCI bit, ENSCI, is
clear, the SCI module is disabled, and the PTE0/TxD pin is available for general-purpose I/O. See
13.8.1 ESCI Control Register
These read/write bits control port E data direction. Reset clears DDRE[1:0], configuring all port E pins
as inputs.
1 = Corresponding port E pin configured as output
0 = Corresponding port E pin configured as input
Address:
Data direction register E (DDRE) does not affect the data direction of port
E pins that are being used by the ESCI. 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:
$000A
Bit 7
0
0
Figure 12-14. Data Direction Register E (DDRE)
MC68HC908EY16 • MC68HC908EY8 Data Sheet, Rev. 10
= Unimplemented
1.
1.
6
0
0
Table
5
0
0
12-5.
NOTE
NOTE
4
0
0
3
0
0
2
0
0
DDRE1
1
0
DDRE0
Bit 0
0
Port E
123

Related parts for s908ey8ad4cfjer