Hello,I am using MTRCKTSBNZVM128 evaluation board.I have to generate PWM interrupt configuring the PMF.I tried it but interrupt is not generating.Could you please suggest me how to do this?
Hi Pratibha,
The PMF block may generate 5 types of interrupt (PMF Reload A, PMF Reload B, PMF Reload C, PMF Fault, PMF Reload Overrun).
For example, the PMF Reload A interrupt may be enabled by PMFENCA_PWMRIEA = 1; command with enabled I-bit maskable interrupts (EnableInterrupts;).
The PMF Reload A ISR may be defined for example as:
Interrupt VectorNumber_Vpmfra void PMF_Reload_A_ISR(void)
{
PMFFQCA |= PMFFQCA_PWMRFA_MASK; //clear PWMRFA flag
//your code
}
Please look at our application note AN5190 S12ZVM Derivatives Configuring PMF Module for your inspiration.
http://www.nxp.com/files/microcontrollers/doc/app_note/AN5190.pdf
http://www.nxp.com/files/microcontrollers/doc/app_note/AN5190SW.zip
I hope it helps you.
Have a great day,
Radek
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------