eTPU FOR MPC5777C

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

eTPU FOR MPC5777C

1,045 Views
PENGHAN
Contributor II

Dear:

       I use the MPC5777C chip eTPU module to collect the externally input frequency signal.

      When I use ETPUB22 pin to collect external frequency signal,The PCR configuration is as follows:

SIU.PCR[169].R = 0x0512.The ETPU module can detect the falling edge of the frequency signal.

       Similarly, I input the same frequency signal, by configuring ETPUB23,  SIU.PCR[170].R = 0x0512,the frequency signal can also be collected through etpu.

         However, the same frequency signal input, I collect the signal by configuring ETPUB0,ETPUB1 and ETPUA0,ETPUA1, the configuration is as follows: SIU.PCR[147].R = 0x0512,SIU.PCR[148].R = 0x0512,SIU.PCR[114].R = 0x0512,SIU.PCR[115].R = 0x0512. The ETPU module cannot detect the falling edge of the frequency signal.

         By configuring the 147 pin as GPIO and reading the register GPDI, the frequency signal can be determined to be input to the CPU.But the frequency signal cannot be collected by ETPU.

        What is the difference between ETPUB0 ,ETPUB1and ETPUB22 and ETPUB23?Can you help me with some ideas, the compiler I use for ETPU is BYTECRAFT ETPU_C version 1.0.7.85.Thank you very much for your help Sincerely.

   respectly.

       

0 Kudos
2 Replies

1,034 Views
johndiener
Contributor IV

On the MPC5777C the reset default of the IGF module filters all input to ETPUA0-14, ETPUB0-14 and ETPUC0-14.  You must configure or disable glitch filtering for those eTPU channels to process input signals.  I've attached some code that disables all IGF module filtering as an example.

John Diener

1,017 Views
PENGHAN
Contributor II

Dear

Your help has solved the problem, thank you for your help.

respectly

Tags (1)
0 Kudos