Download MCF5222x - Freescale Semiconductor
Transcript
Pulse-Width Modulation (PWM) Module 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 12, “General Purpose I/O Module”) prior to configuring the PWM module. 26.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 26-1. PWM Memory Map IPSBAR Offset1,2 Register Width Access (bits) Reset Value Section/Page Supervisor Read/Write Only Access 0x1B_0000 PWM Enable Register (PWME) 8 R/W 0x00 26.2.1/26-3 0x1B_0001 PWM Polarity Register (PWMPOL) 8 R/W 0x00 26.2.2/26-4 0x1B_0002 PWM Clock Select Register (PWMCLK) 8 R/W 0x00 26.2.3/26-4 0x1B_0003 PWM Prescale Clock Select Register (PWMPRCLK) 8 R/W 0x00 26.2.4/26-5 0x1B_0004 PWM Center Align Enable Register (PWMCAE) 8 R/W 0x00 26.2.5/26-6 0x1B_0005 PWM Control Register (PWMCTL) 8 R/W 0x00 26.2.6/26-7 0x1B_0008 PWM Scale A Register (PWMSCLA) 8 R/W 0x00 26.2.7/26-8 0x1B_0009 PWM Scale B Register (PWMSCLB) 8 R/W 0x00 26.2.8/26-9 0x1B_000C + n n = 0–7 PWM Channel n Counter Register (PWMCNTn) 8 R/W 0x00 26.2.9/26-9 0x1B_0014 + n n = 0–7 PWM Channel n Period Register (PWMPERn) 8 R/W 0xFF 26.2.10/26-10 0x1B_001C + n n = 0–7 PWM Channel n Duty Register (PWMDTYn) 8 R/W 0xFF 26.2.11/26-11 PWM Shutdown Register (PWMSDN) 8 R/W 0x00 26.2.12/26-12 0x1B_0024 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. MCF52223 ColdFire® Integrated Microcontroller Reference Manual, Rev. 4 Freescale Semiconductor 26-2
Related documents
MCF5213 ColdFire ® Integrated Microcontroller Reference Manual
MCF52235 ColdFire Integrated Microcontroller Reference Manual
MCF5282 and MCF5216 ColdFire Microcontroller User`s Manual
MCF5282 ColdFire® Microcontroller User's Manual
Freescale Semiconductor i.MX31 PDK 1.4 Network Card User Manual
MCF5235RM, MCF5235
Motorola MCF5281 Network Card User Manual
bdiGDB_UserManual_ColdFire_33106
ColdFire Technical Notes V9.12.256
HCS12 T-Board V1.00 Manual EN
CardS12 V1.10 User Manual
1.1 Introduction 1.2 Differences Overview