MMCCMB2107 Freescale, MMCCMB2107 Datasheet - Page 325

no-image

MMCCMB2107

Manufacturer Part Number
MMCCMB2107
Description
Manufacturer
Freescale
Datasheet

Specifications of MMCCMB2107

Lead Free Status / RoHS Status
Not Compliant
15.8.5 General-Purpose I/O Ports
MMC2107 – Rev. 2.0
MOTOROLA
An I/O pin used by the timer defaults to general-purpose I/O unless an
internal function which uses that pin is enabled.
The timer pins can be configured for either an input capture function or
an output compare function. The IOSx bits in the timer IC/OC select
register configure the timer port pins as either input capture or output
compare pins.
The timer port data direction register controls the data direction of an
input capture pin. External pin conditions trigger input captures on input
capture pins configured as inputs.
To configure a pin for input capture:
TIMDDR does not affect the data direction of an output compare pin. The
output compare function overrides the data direction register but does
not affect the state of the data direction register.
To configure a pin for output compare:
Data Direction
1. Clear the pin’s IOS bit in TIMIOS.
2. Clear the pin’s DDR bit in TIMDDR.
3. Write to TIMCTL2 to select the input edge to detect.
1. Set the pin’s IOS bit in TIMIOS.
2. Write the output compare value to TIMCxH/L.
3. Clear the pin’s DDR bit in TIMDDR.
4. Write to the OMx/OLx bits in TIMCTL1 to select the output action.
Freescale Semiconductor, Inc.
Register
For More Information On This Product,
0
0
1
1
Timer Modules (TIM1 and TIM2)
Go to: www.freescale.com
In
Output Compare
Table 15-7. TIMPORT I/O Function
Action
0
1
1
0
Port data register
Port data register
at Data Bus
Reading
Pin
Pin
Timer Modules (TIM1 and TIM2)
Out
Output compare action
Output compare action
Functional Description
Port data register
Reading at Pin
Technical Data
Pin
325