Data Direction Register E (Ddre) - Freescale Semiconductor MC68HC08KH12 Datasheet

Freescale semiconductor microcontrollers data sheet
Table of Contents

Advertisement

NOTE:

12.7.2 Data Direction Register E (DDRE)

Advance Information
196
PTE[4:0] — Port E Data Bits
PTE[4:0] are read/write, software-programmable bits. Data direction
of each port E pin is under the control of the corresponding bit in data
direction register E.
TCH1-TCH0 — Timer Channel I/O Bits
The PTE2/TCH1-PTE1/TCH0 pins are the TIM input capture/output
compare pins. The edge/level select bits, ELSxB and ELSxA,
determine whether the PTE2/TCH1–PTE1/TCH0 pins are timer
channel I/O pins or general-purpose I/O pins.
Interface Module
(TIM).
Data direction register E (DDRE) does not affect the data direction of
port E pins that are being used by the TIM. However, the DDRE bits
always determine whether reading port E returns the states of the
latches or the states of the pins.
TCLK — Timer Clock Input
The PTE0/TCLK pin is the external clock input for the TIM. The
prescaler select bits, PS2-PS0, selects PE0/TCLK as the TIM clock
input. When not selected as the TIM clock, PE0/TCLK is available for
general purpose I/O.
The PEPE[3:0] bits in the port E keyboard interrupt enable register
enable individual pull-ups on port E pins PTE3–PTE0 if the respective
pin is configured as an input.
Enable
Register.)
The port-E keyboard interrupt enable bits, KBEIE3—KBEIE0, in the port-
E keyboard interrupt enable register (KBEIER), enable the port E pins as
external interrupt pins.
(KBI).
Data direction register E determines whether each port E pin is an input
or an output. Writing a logic one to a DDRE bit enables the output buffer
for the corresponding port E pin; a logic zero disables the output buffer.
See Section 11. Timer Interface Module
(See 15.5.3.2 Port-E Keyboard Interrupt
See Section 15. Keyboard Interrupt Module
See Section 11. Timer
(TIM).
MC68HC(7)08KH12
Rev. 1.1
Freescale Semiconductor

Advertisement

Table of Contents
loading

Table of Contents