Hi, I need to configure Timer0 interrupt to 2,5 kHz (400 us). Inside the interrupt I have a function that spends 280 us. When the interrupt is configured to 2 kHz (500 us) it works fine. Although, when I try to put it on 2,5 kHz, it only reaches 2,286 kHz and the processing (that should take 280 us) is now taking all the interrupt time (at about 875 us).
Can someone help me?