Freescale Semiconductor MPC5200B ユーザーズマニュアル

ページ / 762
MPC5200B Users Guide, Rev. 1
7-60
Freescale Semiconductor
General Purpose Timers (GPT)
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
 
Bit
Name
Description
0:15
Prescale
Prescale amount applied to internal counter (in IP bus clocks).
BE AWARE
—The prescale field should be written prior to enabling any timer mode. A prescale 
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:
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.
Note:  Reading this register only returns the programmed value, intermediate values of the 
internal counter are not available to software.
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
msb  0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
R
WIDTH
W
RESET:
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31 lsb
R
Reserved
PWMOP
Reserved
LOAD
W
RESET:
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Bit
Name
Description
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. 
If WIDTH = 0, output is always OFF.
If WIDTH exceeds count value, output is always ON. 
ON and OFF polarity is set by the PWMOP bit.
16:22
Reserved