Gpt 0 Pwm Configuration Register—Mbar + 0X0608 - Freescale Semiconductor MPC5200B User Manual

Freescale semiconductor board users guide
Table of Contents

Advertisement

General Purpose Timers (GPT)
Bit
Name
0:15
Prescale
Prescale amount applied to internal counter (in IP bus clocks).
BE
of 0x0001 means one IP bus clock per count increment. If prescale is 0 when any timer mode is
started, it results in an effective prescale of 64K. The counter will immediately begin and an
output event will occur with the 64K prescale, rather than the desired value.
16:31
COUNT
Sets number of prescaled counts applied to reference events, as follows:
Note: Reading this register only returns the programmed value, intermediate values of the
internal counter are not available to software.
7.4.4.3
GPT 0 PWM Configuration Register—MBAR + 0x0608
GPT 1 PWM Configuration Register—MBAR + 0x0618
GPT 2 PWM Configuration Register—MBAR + 0x0628
GPT 3 PWM Configuration Register—MBAR + 0x0638
GPT 4 PWM Configuration Register—MBAR + 0x0648
GPT 5 PWM Configuration Register—MBAR + 0x0658
GPT 6 PWM Configuration Register—MBAR + 0x0668
GPT 7 PWM Configuration Register—MBAR + 0x0678
msb 0
1
R
W
RESET:
0
0
16
17
R
W
RESET:
0
0
Bit
Name
0:15
WIDTH
PWM only. Defines ON time for output in prescaled counts. Similar to count value, which defines
the period. ON time overlays the period time.
ON and OFF polarity is set by the PWMOP bit.
16:22
Reserved
7-60
AWARE—The prescale field should be written prior to enabling any timer mode. A prescale
IC—Field has no effect, internal counter starts at 0.
OC—Number of prescaled counts counted before creating output event.
PWM—Number of prescaled counts defining the PWM output period.
Internal Timer—Number of prescaled counts counted before timer (or watchdog) expires.
Table 7-49. GPT 0 PWM Configuration Register
GPT 1 PWM Configuration Register
GPT 2 PWM Configuration Register
GPT 3 PWM Configuration Register
GPT 4 PWM Configuration Register
GPT 5 PWM Configuration Register
GPT 6 PWM Configuration Register
GPT 7 PWM Configuration Register
2
3
4
5
6
0
0
0
0
0
18
19
20
21
22
Reserved
0
0
0
0
0
If WIDTH = 0, output is always OFF.
If WIDTH exceeds count value, output is always ON.
MPC5200B Users Guide, Rev. 1
Description
7
8
9
10
WIDTH
0
0
0
0
23
24
25
26
PWMOP
Reserved
0
0
0
0
Description
11
12
13
14
15
0
0
0
0
0
27
28
29
30
31 lsb
LOAD
0
0
0
0
0
Freescale Semiconductor

Advertisement

Table of Contents
loading

Table of Contents