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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

285 次查看
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 回复

274 次查看
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 项奖励
回复