LPC1769 timer change

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC1769 timer change

166 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by timer on Sat Jul 14 08:24:57 MST 2012
Hi,

I try to use the timer for a Delta-Modulation to drive a Motor-Controller.
As the LPC has only 1 PWM I can't use it because I need four different frequencys.

I implement 1 Timer and all works fine with a constant frequency, but if I change it up to a sensor value suddenly (but not immediately, so I can change the speed of the motor) the Pulse is away.
Up to the debugger nothing change but the IR:MR0I is constant 0. The TC and PC are still counting but the interrupt routine is not anymore entering.


Have anyone an idea what this could cause?
Are you need my code?

Thanks, Tim

EDIT:
I found a solution. Everytime I  change the frequency I reset, init and enable the timer.
Maybe this help someone else.
0 Kudos
1 Reply

147 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Polux rsv on Sat Jul 14 15:12:51 MST 2012
RTFM. :D
There is 1 pwm, but with 6 outputs. And each timer could also generate several pwm.

Angelo
0 Kudos