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.

[参考译文] CCS/MSP430G2955:G2955 UART与G2553不一样工作

Guru**** 2582405 points
Other Parts Discussed in Thread: MSP430G2955, MSP430G2553

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/615280/ccs-msp430g2955-g2955-uart-not-working-like-g2553

部件号:MSP430G2955
主题中讨论的其他部件: MSP430G2553

工具/软件:Code Composer Studio

您好,
通过更改MSP430G2553的端口,我为MSP430G2955创建了UART RS485代码。 该代码2553上工作正常,但在2955上不工作。 这两个ICS的寄存器配置之间是否有任何区别? 我使用了以下设置

   P3SEL   || RS485RXD+RS485TXD;                  
   P3SEL2  || RS485RXD+RS485TXD;                  
   RS485TE_SEL   &=~(RS485TE);        
   RS485TE_SEL2  &=~(RS485TE);          
   RS485TE_DIR   || (RS485TE);                
   RS485TE_OUT   ~(RS485TE);           
   UCA0CTL1 |= UCSWRST;          
   UCA0CTL0 = 0xC0;                
   UCA0CTL1 || UCSSEL_2| UCRXEIE;         
   UCA0BR0 =0x71;         
   UCA0BR1 =0x02;            
   UCA0MCTL || UCBRS_0;
   UCA0CTL1 &=~UCSWRST;   
   IE2     |= UCA0RXIE;    
   RS485_Rx_head=0;             
   RS485_Rx_TAIL=0;               

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    是的,SEL2配置位必须为零;请参阅MSP430G2955数据表的表22。