AnsweredAssumed Answered

MPC5646C EMIOS IPF

Question asked by Sandrine Labois on May 12, 2017
Latest reply on May 16, 2017 by Petr Stancik

Hello,

 

I want to use the IPF function of the eMIOS to filter my entries.

 

I initialized my channel :

    EMIOS_0.CH[u8TorId].CCR.B.BSL = 0x0;          /* Use counter bus A (default) */
    EMIOS_0.CH[u8TorId].CCR.B.EDPOL = 1;        /* positive edge */
    EMIOS_0.CH[u8TorId].CCR.B.MODE = 0x00;    /* GPIO mode (input) */
    EMIOS_0.CH[u8TorId].CCR.B.UCPRE=0;         /* Set channel prescaler to divide by 1 */
    EMIOS_0.CH[u8TorId].CCR.B.UCPEN = 1;       /* Enable prescaler; uses default divide by 1 */
    EMIOS_0.CH[u8TorId].CCR.B.IF = 0x02;

 

Then to recover the level of my entry :

   val = EMIOS_0.CH[u8TorId].CSR.B.UCIN;

 

It is correct or not?

 

Thanks for your help.

Outcomes