Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4923

program getting stuck in PWM interrupt (tools- lpc1768, keil)

$
0
0
I am generating Sine PWM using pwm of lpc1768 . My program is getting stuck in pwm interrupt even when i am clearing the interrupt at the end of handler .


void PWM1_IRQHandler (void)
{
NVIC_DisableIRQ (EINT3_IRQn);

NVIC_DisableIRQ (PWM1_IRQn);

regVal = LPC_PWM1->IR;



LPC_PWM1->MR6 = sineLookupTable[amp][pwmoffset];
LPC_PWM1->LER = LER6_EN;

if(sineLookupTable[amp][pwmoffset]==0)
{
pwmoffset=0;...

program getting stuck in PWM interrupt (tools- lpc1768, keil)

Viewing all articles
Browse latest Browse all 4923

Trending Articles