Hi
I have another question regarding the Timer.
I set the CCR0 to 239, however, Timer seems to kick 223 clock cycle and some for 240 clock cycle.
How can I not having an consistent clock cycle for every Timer kick.
( I also make sure that there is no other service routine interrupt timer)
Thanks
#if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
#pragma vector = TIMER0_B0_VECTOR
__interrupt void TIMER0_B0_ISR(void)
#elif defined(__GNUC__)
void __attribute__ ((interrupt(USCI_B0_VECTOR))) TIMER0_B0_ISR (void)
#else
#error Compiler not supported!
#endif
{
delta[count] = RTCCNT - pre_rtc;
pre_rtc = RTCCNT;
count++;
if (count>=120)
{
HWREG16(TIMER_B0_BASE + OFS_TBxCTL) &= ~MC;
// process data
HWREG16(TIMER_B0_BASE + OFS_TBxCTL) |= MC__UP;
}
}

