ETPU PWM - Interrupts

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

ETPU PWM - Interrupts

1,818 Views
kylesch
Contributor I

Hey all,

 

So I am trying to integrate the ETPU PWM (from set1) into a basic structure to set a new duty cycle with an EMIOS mod counter. However, whenever I run the initialization function fs_etpu_init (which is included in the MPC55XX cookbook) an interrupt is generated continuously, nothing else can function. Specifically, it is the interrupt that corresponds to the Loss of Lock. However, I have disabled this option in the PLL config and when I monitor the PLL register it doesn't lose lock.

 

I am using the MPC5553 with CodeWarrior 5.9. Any help would be appreciated.

 

Thanks

0 Kudos
3 Replies

552 Views
dayve
NXP Employee
NXP Employee

Hey,

 

Does your hardware run other applications without this issue? Can you use the PLL to gen system clock with out any issues without this code?

 

Regards, 

dayve

0 Kudos

552 Views
kylesch
Contributor I

Yes, I had a fully functional program that has just about every component, Clock / EMIOS / EQADC / ESCI / etc. All I did was initalize the ETPU and the ETPU PWM and set a duty cycle based on a change in ADC value and the error occured. 

0 Kudos

552 Views
dayve
NXP Employee
NXP Employee

Can you please create a Service Request and we should be able to get an eTPU expert to help you.

 

Thanks .

0 Kudos