This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
HI there,
I'm using cc430 TimerA0 to capture a external 10MHz signal. I'm using TA0CCR2 input with 16KHz ACLK and TA0CCR3 input with 135KHz INCLK.
I incresed the MCLK to 10MHz to capture the 135KHz interrupt.
It seems like the 135KHz capture interrupt will preempt the 16KHz, I'm not geting correct capture from either TA0CCR2 or TA0CCR3.
How can I solve this problem or make the two interrupts work in turn?
Thanks in advance,
Bob
Hello Bob,
I cannot help any further without knowing which MSP430 you are using. Each Timer has its own INCLK that map out to different pins (TAOCLK, TA1CLCK, TB0CLK, etc.). Depending on the device and/or package of the device you are using, not all Timer INCLCKs maybe pinned out.
In your above scenario, you would need to separate pins for different Timer external clock inputs. their si no way to fix it in software as they are direct hardware connection to the clocking of their respective Timer. In your above configuration you have TA0 clocked from external clock and TA1 clocked from internal ACLK which is fine.
I'm using cc430F5137. The INCLK for TimerA0 and TimerA1 for this chip is pinned from the RF transceiver crystal(RFCLK/192). The following is the signal connection from the datasheet:To be clearer, my scenario is: The input of TimerA0 is TACLK(PM_TA0CLK), the input of TA0CCR3 is GDO1from radio.
The input of TimerA1 is TACLK(PM_TA1CLK), the input of TA0CCR2 is ACLK.
The application of this scenario is using GDO1 and ACLK to capture the external CLK, where the frequency of GDO1 and ACLK can be measured with respect to the external CLK. As you explained, now I have to spearate the input pin of external CLK for each timer to solve this situation.
Bob,
As seen above Aclck can be an input of TA0CCR2. TA0CCR2 is no way connected or related to TimerA1 for it is a different timer instance. If you want to relate ACLK to the external input you have for TimerA1, you need to use a TA1CCRx that supports ACLK input.
**Attention** This is a public forum