PWM ISR Firing only once

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

PWM ISR Firing only once

617 Views
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

Labels (1)
0 Kudos
Reply
2 Replies

432 Views
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 Kudos
Reply

432 Views
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 Kudos
Reply