Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] PWM with 60MHz?

2005-01-24 by 42Bastian Schick

No real idea, just some questions:

> the max resolution witch i can get is 1.350us
> I have PLL multiplier enabled (5) and Cristal is 12MHz
> code is:

Do you write 5 or 4 into MSEL ?
With 5, you get 84MHz.

VPBDIV = 0 ?

> PWMPR=0x0000; //no prescaler - one cpu clk is one PWM clk
> PWMMCR=0x0002; //Reset timer counter register on match0
> PWMPCR=0x7E00; //enable each individual PWM, single edge
> PWMTCR=0x000A; //Reset TC counter
> PWMMR0=0x00001; //set up the PWM period
> PWMLER|=0x0000; //Latch the value
         ^^
  |= ????


-- 
42Bastian Schick

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.