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.

  • Resolved

F417 use P1.3's Primary module function ,but no use

Intellectual 320 points

Replies: 2

Views: 818

HI, I use MSP430F417  TA1.0  to simulate UART, the way is use P1.4 to capture signal and then switch TA1.0 as timer to do onebit time count.Read the signal,and 

save it.Now,we finish the RX work. But when i use P1.3  as TA1.0  to output bit value,failed.

I look the datasheet of MSP430F417 ,in it Page7,there is a table :

IN page 38

It says unused.

So, is there any problem?   My code is below.

/***************************************/

P1DIR&=~BIT4; //P1.4--RX 输入
P1SEL|=BIT4;
P1DIR|=BIT3; //P1.3--TX 输出 第二功能
P1SEL|=BIT3;

void TA1_0_Init()
{
#if 0
TA1CCTL0=CM_2+CCIS_0+SCS+CAP+CCIE; //P1.4---CCI0A
// TA1CCTL0=CM_2+CCIS_1+SCS+CAP+CCIE; //Capture falling edge,P1.3---CCI0B,SCS,捕获模式,中断
#endif
TA1CCR0=OneBit_Time;
TA1CCTL0=OUTMOD_0|OUT;
TA1CTL=TASSEL_2+MC_2; //Source:SMCLK , 连续计数模式
}

/***************************************/

I use the code to test P1.3 output mode,but didn't reach.

  • Hello,
    Looks like the datasheet has changed since you downloaded it. It now states
    P1.3/SVSOUT 50 I/O General-purpose digital I/O / SVS: output of SVS comparator
    so the misspelling you have found has been corrected now.
    The "Timer_A, Capture: CCI0B input" function is now said to be on P1.1 in the first table, as it is the case in the 2nd table you mention ! :)

    (see www.ti.com/.../msp430f417.pdf for an up-to-date version of the datasheet ;) )
    HTH
  • The table on page 38 appears to be wrong.

    The table on page 17 shows that while both P1.3 and P1.4 can be used as inputs, only P1.4 can be used as output. You should exchange your pin functions, i.e., use P1.3 for RX and P1.4 for TX.

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.