NXP Semiconductors LPC2919 Synchronizing the PWM counters, DLPC2917/19, PWM block diagram

Models: LPC2917 LPC2919

1 68
Download 68 pages 2.51 Kb
Page 38
Image 38
Fig 10. PWM block diagram

NXP Semiconductors

DRAFT

D

D

 

AFT

RAFT

RAFT AFT

 

 

 

DR

DR

DLPC2917/19

ARM9 microcontrollerRAFT withDRAFTCANDRAFTand LINDRAFT

 

 

 

 

 

 

 

 

 

 

 

 

 

T

DRAFT

 

 

T

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DRA

 

 

 

DRA

 

DR

 

 

 

 

 

 

 

 

 

 

 

 

 

F

 

 

 

 

F

 

cycle and cycle period allows the PWM to control the amount of powerDRAFTto be

DRAFT

DRAF

Automotive dimmer controller: The flexibility of providing waves of a desired duty

 

DRAFT

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DRAFT

transferred to the load. The PWM functions as a dimmer controller in this application

 

 

Motor controller: The PWM provides multi-phase outputs, and these outputs can be

 

 

 

D

controlled to have a certain pattern sequence. In this way the force/torque of the

 

 

 

 

 

 

 

 

 

motor can be adjusted as desired. This makes the PWM function as a motor drive.DRAFT

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DRA

 

 

 

 

 

 

 

Sync_in Transfer_enable_in

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

VPB domain

 

 

 

 

 

 

 

PWM domain

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

update

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PWM

 

 

 

 

Match outputs

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

VPB system bus

 

 

 

PWM

Capture data

 

 

 

Counter,

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

prescale

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

control

PWM counter value

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

counter

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

&

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

&

 

 

 

 

 

Capture inputs

 

 

 

 

 

 

 

 

 

registers

Config data

 

 

 

 

 

 

 

 

 

 

 

IRQ pwm

 

 

 

 

 

 

 

shadow

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

IRQ’s

 

 

 

registers

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

IRQ capt_match

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Trap input

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Carier inputs

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Sync_out Transfer_enable_out

Fig 10. PWM block diagram

The PWM block diagram in Figure 10 shows the basic architecture of each PWM. PWM functionality is split into two major parts, a VPB domain and a PWM domain, both of which run on clocks derived from the BASE_MSCSS_CLK. This split into two domains affects behavior from a system-level perspective. The actual PWM and prescale counters are located in the PWM domain but system control takes place in the VPB domain.

The actual PWM consists of two counters; a 16-bit prescale counter and a 16-bit PWM counter. The position of the rising and falling edges of the PWM outputs can be programmed individually. The prescale counter allows high system bus frequencies to be scaled down to lower PWM periods. Registers are available to capture the PWM counter values on external events.

Note that in the Modulation and Sampling SubSystem, each PWM has its individual clock source CLK_MSCSS_PWMx (x runs from 0 to 3). Both the prescale and the timer counters within each PWM run on this clock CLK_MSCSS_PWMx, and all time references are related to the period of this clock. See Section 8.8 for information on generation of these clocks.

8.7.6.3Synchronizing the PWM counters

A mechanism is included to synchronize the PWM period to other PWMs by providing a sync input and a sync output with programmable delay. Several PWMs can be synchronized using the trans_enable_in/trans_enable_out and sync_in/sync_out ports. See Section 8.7.2.1 for details of the connections of the PWM modules within the MSCSS in the LPC2917/19. PWM 0 can be master over PWM 1; PWM 1 can be master over PWM 2, etc.

LPC2917_19_1

© NXP B.V. 2007. All rights reserved.

Preliminary data sheet

Rev. 1.01 — 15 November 2007

38 of 68

Page 38
Image 38
NXP Semiconductors LPC2919 user manual Synchronizing the PWM counters, DLPC2917/19, PWM block diagram