LPC1769 timer change

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LPC1769 timer change

719 次查看
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 项奖励
回复
1 回复

700 次查看
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 项奖励
回复