fast pwm lpc2148

is this possible? has anyone done it? i have brushless esc modified to handle fast pwm rates and want to be sure i can do this with lpc2148. i’ve tried to determine from the documentation, and google aint helping with this particular query.

maybe its my lack of understanding of the terminology.

maybe it has to do with this

from another member’s post:

(begin)

I calculate PWMMR0 as follows:

1st way:

60.000.000 = PCLK = 60Mhz for 1sec = 1000ms

60.000 = 1ms so a 20ms cycle = 60.000 x 20 = 1.200.000(dec) = 00124f80(hex)

2nd way:

60.000.000 / 50(Hz) = 1.200.000(dec) = 00124f80 (hex)

(end)

So, if I wanted to run at 400Hz and my lpc is running at 48Mhz

the PWMMR0 should be:

48.000.000 / 400 = 120.000 = 0001D4C0

Can someone verify?

That looks right. You would then maybe use a lower value in MR1 for your pulse width, and set EMR so that the output is set on MR0 and cleared on MR1, or vice versa.