S32 Studio ETPU PPA Example

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

S32 Studio ETPU PPA Example

1,192件の閲覧回数
matthiaslenz
Contributor I

Can somebody provide me with a *complete* S32 Studio example project for using the ETPU PPA function on an MPC5777c?

What I've tried so far is porting the AN2858SW example to the MPC5777c. I see the ETPUA8 output behaving as expected, I've connected it to the ETPUA10 input, but the PPA interrupt flag is never set ("wait for PPA0 to finish").

I assume that I'm missing some option in Processor Expert, but I have no idea what that might be.

I'm a complete ETPU beginner, so please be patient with me.

Attached is my project for reference.

ラベル(1)
2 返答(返信)

1,098件の閲覧回数
matthiaslenz
Contributor I

The missing piece was this:

I have to call

IGF_1->CHa[10].MCR |= IGF_MCR_FGEN(1);

during initialization.

This enables the input glitch filter in bypass mode, which otherwise won't let the signal through to the ETPU A channel 10.

See Table 39-2 and Table 39-3 of the MPC5777C reference manual.

1,098件の閲覧回数
davidtosenovjan
NXP TechSupport
NXP TechSupport

Hi, just before I was able to answer, you have answered yourself.

I have published two example for eTPU and MPC5777C, IGF mentioning in the description:

Example MPC5777C-eTPU_GPIO_test GHS714 

https://community.nxp.com/docs/DOC-343522