AnsweredAssumed Answered

interrupts

Question asked by SLA on Jul 19, 2011
Latest reply on Jul 19, 2011 by MMA

Hi,

I got a simple system, on INT0 and INT1 I have squarewave wiht different f, from 2 independent sources.  I got 2 variable count_int0 and count_int1, I increment them everytime event(s) occure. Timer2 is generating my timestamp let say it is 100ms, every 100ms I reseting count_int0, count int1 and data are send to UART, therefore if I have f1=1kHz, I should have every 100ms around 100 counts, so   after 10 timestamps total count should be equal 1000 but in real life I am loosing 40% of counts why?

Regards

Slawek

Outcomes