Other Parts Discussed in Thread: MSP430AFE253
Hi guys,
I'm using MSP430AFE253 and trying to understand how to control Timer_A. I got couple questions about the example code:
1) in the file MSP430AFE_ta_01.c I don't really see the role of CCR0. I commented out the lines: CCR0 = 50000; in the main and CCR0 += 50000; in the ISR and I still get the LED flashing with the same speed! I thought in continous mode, The timer repeatedly counts from zero to 0FFFFh. So we can't change its period. Am I right?
2) In the file MSP430AFE_ta_03.c it is said that the Toggle rate is approximately ~17Hz. How was this value calculated?
3) In the file MSP430AFE_ta_04.c it is said that the Toggle rate is approximately ~0.2 Hz. How was this value calculated? With the command BCSCTL3 |= LFXT1S_2; VLOCLK is selected, and in the data sheet it is said that it is a low frequency oscillator with 12-kHz typical frequency. So how do we come down to 0.2Hz?
4) What is the difference between capture and comparison mode?
Thanks in advance!