Regarding MTRCKTSBNZVM128 board

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

Regarding MTRCKTSBNZVM128 board

1,433 次查看
pratibhasurabhi
Contributor V

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?

标签 (1)
2 回复数

1,225 次查看
RadekS
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

1,225 次查看
jgerhardy
Contributor III

Hello Radek,

thanks for the link to the software. I found the AN5190 but searching for AN5190SW give no results until, so I was happy to find this post. It helped me a lot.

Thanks again.

John

0 项奖励
回复