18-4
MCF5272 User’s Manual
PWM Programming Model
18.3.2 PWM Width Register (PWWDn)
This register, shown in Figure 18-3, controls the width of the output pulse. When the
counter become greater than or equal to the value in this register, the output is cleared for
the remainder of the period. When the counter overflows, or wraps around, the counter
value becomes less than or equal to the value of the width register and the output is set high.
Writing to the width register while the PWM is enabled will not alter the operation of the
PWM until the end of the current output cycle. That is, the width value is not modified until
after the counter has wrapped around. The PWM must be disabled and then re-enabled to
affect its operation before the end of the current output cycle.
Figure 18-3. PWM Width Register (PWWDn)
Figure 18-4 shows example PWM waveforms and their dependence on PWWD[PW].
7
0
Field
PW
Reset
0000_0000
R/W
R/W
Address
MBAR + 0x0D0 (PWWD0); + 0x0D4 (PWWD1); + 0x0D8 (PWWD2)
Table 18-3. PWWDn Field Descriptions
Bits
Name
Description
7–0
PW
Pulse width. Range 0x00–0xFF. When the counter value become greater than PWWD[PW],
the output is cleared for the remainder of the period. When the counter overflows, or wraps
around, the counter value becomes less than or equal to PWWD[PW] and the output is set.
Содержание DigitalDNA ColdFire MCF5272
Страница 1: ...MCF5272UM D Rev 0 02 2001 MCF5272 ColdFire Integrated Microprocessor User s Manual ...
Страница 38: ...xxxviii MCF5272 User s Manual TABLES Table Number Title Page Number ...
Страница 58: ...1 10 MCF5272 User s Manual MCF5272 Specific Features ...
Страница 90: ...2 42 MCF5272 User s Manual Exception Processing Overview ...
Страница 96: ...3 6 MCF5272 User s Manual MAC Instruction Execution Timings ...
Страница 158: ...5 46 MCF5272 User s Manual Motorola Recommended BDM Pinout ...
Страница 184: ...7 12 MCF5272 User s Manual Interrupt Controller Registers ...
Страница 338: ...13 44 MCF5272 User s Manual Application Examples ...
Страница 414: ...18 6 MCF5272 User s Manual PWM Programming Model ...
Страница 452: ...19 38 MCF5272 User s Manual Power Supply Pins ...
Страница 482: ...20 30 MCF5272 User s Manual Reset Operation ...
Страница 492: ...21 10 MCF5272 User s Manual Non IEEE 1149 1 Operation ...
Страница 548: ...INDEX Index 12 MCF5272 User s Manual ...