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.
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.
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: