Other Parts Discussed in Thread: MSP430F5529, MSP430F5438A
Hello TI Forum,
I've noticed a difference between TA1 and TB0 when running in UP mode, and TOGGLE ouput pin mode.
Both timers use identical configurations (exactly as shown below), but the output pin frequencies I get from these two timers are not identical.
TA1CCR0 = 9;
TA1CCTL1 = 0x0080; //TA1.1 in compare mode and TOGGLE output pin mode
TA1CCR1 = 5;
TA1EX0 = 0x0000; //TMRA1 input divider expansion set to 1
TA1CTL = 0x0114;
TB0CCR0 = 9;
TB0CCTL5 = 0x0080; //TB0.5 in compare mode and TOGGLE output pin mode
TB0CCR5 = 5;
TB0EX0 = 0x0000; //TMRB0 input divider expansion set to divide by 1
TB0CTL = 0x0114;
Both timers are clocked from ACLK, which is in my case 14.7456MHz.
TA1.1 output pin frequency (measured) is in line with the equation Fout = ACLK / ((TA1CCR0 + 1) * 2) = 737.28KHz
However, TB0.5 output pin frequency (measured) is higher and equals 819.2KHz, which is in line with Fout = ACLK / (TB0CCR0 * 2) = 819.2KHz
If I configure TB0CCR0 = 10, then both timers generate identical frequencies (737.28KHz) on respective output pins.
Can you please explain this behavior?