S32 Studio ETPU PPA Example

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

S32 Studio ETPU PPA Example

875 Views
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.

Labels (1)
2 Replies

781 Views
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.

781 Views
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