Memory Map/Register Definition
MCF548x Reference Manual, Rev. 3
Freescale Semiconductor 11-3

11.3.1 GPT Enable and Mode Select Register (GMSn)

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
R OCPW 0 0 OCT 0 0 ICT
W
Reset0000000000000000
1514131211109876543210
RWDE
N
00CE 0 SC OD IEN 0 0 GPIO 0 TMS
W
Reset0000000000000000
Reg
Addr
MBAR + 0x800 (GMS0), 0x810 (GMS1), 0x820 (GMS2), 0x830 (GSM3)

Figure 11-1. GPT Enable and Mode Select Register (GMSn)

Table 11-2. GMSn Field Descriptions

Bits Name Description
31–24 OCPW Output capture pulse width. Applies to OC pulse types only. This field specifies the number of clocks
(non-prescaled) to create a short output pulse at each output event. This pulse is generated at the
end of the output capture period and overlays the next OC period (rather than adding to the period).
This field is alternately used as the watchdog reset field if watchdog timer mode is enabled.
23–22 Reserved, should be cleared.
21–20 OCT Output capture type. Describes action to occur at each output capture event, as follows:
00 Special case, output is immediately forced low without respect to each output capture event.
01 Output pulses highs, initial value is low (OCPW field applies).
10 Output pulses low, initial value is high (OCPW field applies).
11 Output toggles.
GPIO modalities can be used to achieve an initial output state prior to enabling OC mode. It is
important to move directly from GPIO output mode to OC mode and not to pass through the
TMS=000 state.
To prevent the internal timer mode from engaging during the GPIO state, CE bit should be cleared
during the configuration steps.
GPIO initialization is needed when presetting the I/O to 1 in conjunction with a simple toggle OCT
setting.
19–18 Reserved, should be cleared.
17–16 ICT Input capture type. Describes the input transition type required to trigger an input capture event, as
follows:
00 Any input transition causes an IC event.
01 IC event occurs at input rising edge.
10 IC event occurs at input falling edge.
11 IC event occurs at any input pulse (i.e., at the second input edge).