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

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

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

202 Views
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 Kudos
1 Reply

191 Views
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 Kudos