Hi,
I am using MSP430F149 controller
I have written a timer code in continuous mode, SMCLK as clock source,
TACTL = MC_2|ID_3|TASSEL_2|TACLR;
- MC- continuous mode
ID - divided by --- 8
TASSEL -- SMCLk.
I need to count no. of pulses at incoming port. I am polling the particular port for 1 sec. of time duration. BUT with this configuration i am able to get EXACT count only if the frequency is 1 Hz ( i.i 1 pulse /sec). As I go on increasing, the count doesn't give the right count. (for i/p frequency of 4 Hz. respected count is - 3 Hz. and for i/p frequency of 60Hz, the count is only 45!!!! ).
I am confused, y is it happening when My clock is SMCLK i.e. 32768Hz. i.e. approx. only 30 uSec for each instruction!!!. I need to know is, if this problem will get resolved if i use some other clock source???? and what r the possible options????
Kindly help...