LPC1769 timer change

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC1769 timer change

730件の閲覧回数
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 返信

711件の閲覧回数
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 件の賞賛
返信