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.
hello Everyone,
before i explain my issue, i have some difficulties to unerstand the difference between the TA0CLK,TA0.0, TA0.1 and TA0.2 and their functionalities.according to what i know there are only 3 timers in my MSP430G2955 timer0.A3, timer1.A3 and timer0.B3 so i don't find any relation between them
my conern why only the P1.0 is counting the external clock(PIN Oscillator) ,is it becaue it has TA0CLK or something i don't know? please halp me out because none of the documantation say anything about it.below you find the pictures of what it is given by the data sheet
Hello Ryan,
thank you for your answer,
-i am still having trouble to undesrand what is TA0.0 TA0.1 and TA0.2 i mean what are they? i understood from your comment that they are pins but i don't find them in the Figure 12-1. Timer_A Block Diagram of slau144j.pdf, i understand that the 3 refers to 03 capture/compare channel that the timer has.
-according to what you said (TA0CLK: Optional input clock source for TA0, selectable through the TASSELx bits of the TACTL register.) how can i connect the pin P1.1 to timer0_A3 using the TASSELx bits of the TACTL register? ihave done it for pin P1.0 and works perfecly as you can sse in the code below but have no idea for P1.1, because in Table 12. Timer0_A3 Signal Connections i see that there are difference between them .
-thank you for the link of the library, i am on it now but i want to understand the routing of signla for the pins so i understand ver well the library without using it blindly and not understanding how the registers are set an their roles.
TA0CTL =TASSEL_0|ID_3|MC_2|TACLR; TA0CCTL0 =CM_3|CCIS_2|CAP;
thank you of the advice for the timer,it was helpfull. so to make sure that i am not in understand it. it is not only the pin P1.0 which can be assigned as clock input for the timer0_A3 (TAR). so what are they doing in the capacitive touch library is first set the timer input clock to external as shown below:
TA0CTL =TASSEL_0|ID_3|MC_2|TACLR;
secondly setting the P1SEL and P2SEL like following:
P1DIR &= ~ BIT1; //P1.1
P1SEL &= ~ BIT1;
P1SEL2 |= BIT1; // activating the pin oscillation
this should feed the timer0_A3 by the pin oscillation
here i have a pic of what i understood
**Attention** This is a public forum