Other Parts Discussed in Thread: MSP430F5437
Hi,
I'm using an MSP430f5437 as modbus master and using a MAX3471 as RS485 transceiver.
and this is how I set the uart:
P3SEL = (BIT4+BIT5); // P3.4,5 = USCI_A0 TXD/RXD
UCA0CTL1 |= UCSWRST; // **Put state machine in reset**
UCA0CTL1 |= UCSSEL_2; // SMCLK
UCA0BR0 = 6; // 1MHz 9600 (see User's Guide)
UCA0BR1 = 0; // 1MHz 9600
UCA0MCTL = UCBRS_0 + UCBRF_13 + UCOS16; // Modln UCBRSx=0, UCBRFx=0,
// over sampling
/* XXX Clear pending interrupts before enable */
UCA0IE &= ~UCRXIFG;
UCA0IE &= ~UCTXIFG;
UCA0CTL1 &= ~UCSWRST; // **Initialize USCI state machine**
UCA0IE |= UCRXIE; // Enable USCI_A1 RX interrupt
Sniffing the packet through an USB - RS 485 cable , I can send the pakcet in the right way, but when I tested on the slave, it was not able to control it. the problem should be as below:
With the left one (USB - RS485 cable) I am able to control my salve, while using the msp430 (on the left), i cannot.
Any suggestion?
Thanks,
Filippo


