I have a problem with the overflow time in TC0 timer. here's my code:
interrupt [PORTH_INT0_vect] void porth_int0_isr(void)
This interrupt will be triggered in every falling_edge of an input signal (19 KHz clock). TCE0.PER initial value is 132 and the Xmega clock is 4332 KHz. I have another interrupt which is related to TCE0 overflow:
interrupt [TCE0_OVF_vect] void timer_int0_isr(void)
s57 and s19 initial values are 191 and 0, respectively. My question is how many times interrupt [TCE0_OVF_vect] will be triggered in a 19 KHz input clock cycle? and what is the reason of assigning 131, 132 and 133 to TCE0.PERBUF with respect to s19.