Regarding MTRCKTSBNZVM128 board

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Regarding MTRCKTSBNZVM128 board

1,191件の閲覧回数
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 返答(返信)

983件の閲覧回数
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!
-----------------------------------------------------------------------------------------------------------------------

983件の閲覧回数
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 件の賞賛
返信