28.10.2014 Views

MMC2107 - Freescale Semiconductor

MMC2107 - Freescale Semiconductor

MMC2107 - Freescale Semiconductor

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Freescale</strong> <strong>Semiconductor</strong>, Inc.<br />

Timer Modules (TIM1 and TIM2)<br />

Memory Map and Registers<br />

15.7.8 Timer Control Register 1<br />

Address: TIM1 — 0x00ce_0009<br />

TIM2 — 0x00cf_0009<br />

Bit 7 6 5 4 3 2 1 Bit 0<br />

Read:<br />

Write:<br />

OM3 OL3 OM2 OL2 OM1 OL1 OM0 OL0<br />

Reset: 0 0 0 0 0 0 0 0<br />

nc...<br />

<strong>Freescale</strong> <strong>Semiconductor</strong>, I<br />

Read: Anytime<br />

Write: Anytime<br />

= Writes have no effect and the access terminates without a transfer error exception.<br />

Figure 15-11. Timer Control Register 1 (TIMCTL1)<br />

OMx/OLx — Output Mode/Output Level Bits<br />

These bit pairs select the output action to be taken as a result of a<br />

successful output compare. When either OMx or OLx is set and the<br />

IOSx bit is set, the pin is an output regardless of the state of the<br />

corresponding DDR bit.<br />

Table 15-3. Output Compare Action Selection<br />

OMx:OLx Action on Output Compare<br />

00 Timer disconnected from output pin logic<br />

01 Toggle OCx output line<br />

10 Clear OCx output line<br />

11 Set OCx line<br />

Channel 3 shares a pin with the pulse accumulator input pin. To use<br />

the PAI input, clear both the OM3 and OL3 bits and clear the OC3M3<br />

bit in the output compare 3 mask register.<br />

<strong>MMC2107</strong> – Rev. 2.0<br />

Technical Data<br />

MOTOROLA Timer Modules (TIM1 and TIM2) 307<br />

For More Information On This Product,<br />

Go to: www.freescale.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!