Other Parts Discussed in Thread: MSP430FG4618
Hi All,
I'm trying to implement an embedded project using the MSP430fg4618. I have an identical isolation layout as the one on the experimenter's board utilizing the same chip. I notice that communication using Docklite and the MATLAB code I'm currently using behaves differently (not exactly sure what it happening though). Basically Docklite works perfectly and Matlab doesn't. I was wondering if anyone could give me some advice after looking at the code below:
The following is the setup for the microcontroller. I'm sending 3 ascii bytes 8-N-1 at 128kBaud (CPU is configured at 7.99 MHz). First byte is basically an identifier for what the input means, while the last two are data bytes (i.e. LSB and MSB of whatever data it corresponds to).
P2SEL |= 0x030;
UCA0CTL1 |= UCSSEL_2; // SMCLK 8MHz
UCA0BR0 = 64; //
UCA0BR1 = 0; //
UCA0MCTL = 0x08; // Modulation
UCA0CTL1 &= ~UCSWRST; // **Initialize USCI state machine**
IE2 |= UCA0RXIE; // Enable USCI_A0 RX interrupt