PWM ISR Firing only once

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

PWM ISR Firing only once

656 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by abhavi on Thu Apr 17 10:42:50 MST 2014
Hi

I have configured LPC2129 to generate PWM4 output (Single edge) at the required rate as seen in the code.I have set up a ISR for MR0 register reset.I see that Interrupt is firing only once and thereafter no more interrupts.I see on the scope prperly thePWM4 output

Atatched is the code.Please tell me why the interrupt is firing only once .

Best Regards
Anand

Original Attachment has been moved to: PWM.c.zip

Original Attachment has been moved to: blinky.c.zip

标签 (1)
0 项奖励
回复
2 回复数

471 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by abhavi on Fri Apr 18 18:06:24 MST 2014
I have cleared the interrpt in ISR as seen in PWM.c file(Attached in first mail)
I suspect any particular.compiler option to be set. I am using ARM GCC compiler set up

Have attached my crt0.s and LD file.Please guide me.
0 项奖励
回复

471 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Thu Apr 17 11:09:02 MST 2014
Clear the interrupt?
0 项奖励
回复