lpcware

LPC1769 timer change

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
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.

Outcomes