eTPU FOR MPC5777C

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

eTPU FOR MPC5777C

1,177件の閲覧回数
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 件の賞賛
返信
2 返答(返信)

1,166件の閲覧回数
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,149件の閲覧回数
PENGHAN
Contributor II

Dear

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

respectly

タグ(1)
0 件の賞賛
返信