Other Parts Discussed in Thread: MSP430G2553
Tool/software: Code Composer Studio
Hi,
I have created a UART RS485 code for MSP430G2955 by just changing the ports of MSP430G2553. The code works perfectly on 2553 , however it doesn't work on 2955. Is there any difference between the register configurations of these two ICS? I have used the following settings
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;