Freescale Semiconductor MCF52212 Network Card User Manual


 
Pulse-Width Modulation (PWM) Module
MCF52211 ColdFire® Integrated Microcontroller Reference Manual, Rev. 2
27-2 Freescale Semiconductor
Main features include the following:
Double-buffered period and duty cycle
Left- or center-aligned outputs
Eight independent PWM modules
Byte-wide registers provide programmable duty cycle and period control
Four programmable clock sources
NOTE
The GPIO module must be configured to enable the peripheral function of
the appropriate pins (refer to Chapter 13, “General Purpose I/O Module”)
prior to configuring the PWM module.
27.2 Memory Map/Register Definition
This section describes the registers and control bits in the PWM module. There are eight independent
PWM modules, each with its own control and counter registers. The memory map for the PWM is shown
below.
Table 27-1. PWM Memory Map
IPSBAR Offset
1,2
1
Addresses not assigned to a register and undefined register bits are reserved for expansion. Write accesses to these
reserved address spaces and reserved register bits have no effect.
2
A 32-bit access to any of these registers results in a bus transfer error.
Register
Width
(bits)
Access Reset Value Section/Page
0x1B_0000 PWM Enable Register (PWME) 8 R/W 0x00 27.2.1/27-3
0x1B_0001 PWM Polarity Register (PWMPOL) 8 R/W 0x00 27.2.2/27-4
0x1B_0002 PWM Clock Select Register (PWMCLK) 8 R/W 0x00 27.2.3/27-4
0x1B_0003 PWM Prescale Clock Select Register (PWMPRCLK) 8 R/W 0x00 27.2.4/27-5
0x1B_0004 PWM Center Align Enable Register (PWMCAE) 8 R/W 0x00 27.2.5/27-6
0x1B_0005 PWM Control Register (PWMCTL) 8 R/W 0x00 27.2.6/27-7
0x1B_0008 PWM Scale A Register (PWMSCLA) 8 R/W 0x00 27.2.7/27-8
0x1B_0009 PWM Scale B Register (PWMSCLB) 8 R/W 0x00 27.2.8/27-9
0x1B_000C + n
n =07
PWM Channel n Counter Register (PWMCNTn) 8 R/W 0x00 27.2.9/27-9
0x1B_0014 + n
n =07
PWM Channel n Period Register (PWMPERn) 8 R/W 0xFF 27.2.10/27-10
0x1B_001C + n
n =07
PWM Channel n Duty Register (PWMDTYn) 8 R/W 0xFF 27.2.11/27-11
0x1B_0024 PWM Shutdown Register (PWMSDN) 8 R/W 0x00 27.2.12/27-12