9 gpt control register 2 (gptctl2), 10 gpt interrupt enable register (gptie) – Motorola ColdFire MCF5281 User Manual

Page 378

Advertising
background image

General Purpose Timer Modules (GPTA and GPTB)

20-10

Freescale Semiconductor

20.5.9

GPT Control Register 2 (GPTCTL2)

20.5.10 GPT Interrupt Enable Register (GPTIE)

Table 20-11. GPTCL1 Field Descriptions

Bit(s)

Name

Description

7–0

OMx/OLx

Output mode/output level. Selects the output action to be taken as a result of a
successful output compare on each channel. When either OMn or OLn is set and the
IOSn bit is set, the pin is an output regardless of the state of the corresponding DDR
bit. These bits are read anytime, write anytime.
00 GPT disconnected from output pin logic
01 Toggle OCn output line
10 Clear OCn output line
11 Set OCn line
Note: Channel 3 shares a pin with the pulse accumulator input pin. To use the PAI
input, clear both the OM3 and OL3 bits and clear the OC3M3 bit in the output compare
3 mask register.

7

6

5

4

3

2

1

0

Field

EDG3B

EDG3A EDG2B EDG2A EDG1B EDG1A EDG0B

EDG0A

Reset

0000_0000

R/W

R/W

Address

IPSBAR + 0x1A_000B, 0x1B_000B

Figure 20-11. GPT Control Register 2 (GPTCTL2)

Table 20-12. GPTLCTL2 Field Descriptions

Bit(s)

Name

Description

7–0

EDGn[B:A]

Input capture edge control. Configures the input capture edge detector circuits for
each channel. These bits are read anytime, write anytime.
00 Input capture disabled
01 Input capture on rising edges only
10 Input capture on falling edges only
11 Input capture on any edge (rising or falling)

7

6

5

4

3

0

Field

CI

Reset

0000_0000

R/W

R/W

Address

IPSBAR + 0x1A_000C, 0x1B_000C

Figure 20-12. GPT Interrupt Enable Register (GPTIE)

MCF5282 and MCF5216 ColdFire Microcontroller User’s Manual, Rev. 3

Advertising
This manual is related to the following products: