5777C input capture doesn't work after 8388608 interrupt..

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

5777C input capture doesn't work after 8388608 interrupt..

223件の閲覧回数
rosebank
Contributor I

Hello,

I'm using input capture function provided by etpu function set by NXP.

The input capture works well at the first, but it does not work any more after 8388608 interrupts.

FYI, I left my initialize code and interrupt subroutine below:

Does anyone have an idea for this issue??

 

1. Init code

err_code = fs_etpu_ic_init(ETPU_IC0_CHAN, FS_ETPU_PRIORITY_MIDDLE, ETPU_IC_MODE_CONT, FS_ETPU_TCR1, ETPU_IC_RISING_EDGE, 1);

2. interrupt subroutine

uint32_t ic_isr_cnt = 0u;
void isr_ic_rising(void)
{
   /* Clear interrupt flag */
   fs_etpu_clear_chan_interrupt_flag(ETPU_IC0_CHAN);
   ic_isr_cnt++;
}
 

 

0 件の賞賛
1 返信

212件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hello,

What should I imagine under

The input capture works well at the first, but it does not work any more after 8388608 interrupts.

Isn't the interrupt called? Isn't the eTPU capturing. Isn't and ISR flag set in eTPU? etc...

Best regards,

Peter

0 件の賞賛