Part Number: MSP430FR6047
Hi, I am trying to send the capture data via UART, I am using the same method that is used in "MSP430FR6047EVM_USS_Water_Demo" app. I am trying to implement this in "FR6047_USSSWLib_template_example", At a baud rate 4800. However after configuring UART transmission as in "MSP430FR6047EVM_USS_Water_Demo", I am getting dtof results fine but the capture data in gibberish.
Is the UART setting in MSP430FR6047EVM_USS_Water_Demo is different from FR6047_USSSWLib_template_example?
My UART configuration is as follows.
// GPIO Configuration for UART mode
P1SEL0 |= (BIT2 | BIT3);
P1SEL1 &= ~(BIT2 | BIT3);
// Configure USCI_A0 for UART mode, 8-bit data, 1 stop bit
UCA1CTLW0 = UCSWRST; // Put eUSCI in reset
UCA1CTLW0 |= UCSSEL__SMCLK; // CLK = SMCLK
// // For BRCLK = SMCLK = 8MHz, and Baud rate = 115200 (See UG)
// UCA1BRW = 4;
// // UCBRSx (bits 7-4) = 0x55, UCBRFx (bits 3-1) = 5, UCOS16 (bit 0) = 1
// UCA1MCTLW = 0x5551;
// Baud Rate Setting 115200
// Use Table 30-5 in Family User Guide
// UCA0BR0 = 8;
// UCA0BR1 = 0;
// UCA0MCTLW |= UCOS16 | UCBRF_10 | 0xF700; //0xF700 is UCBRSx = 0xF7
// Baud Rate Setting SMCLK 9600
// Use Table 30-5 in Family User Guide
UCA1BR0 = 104;
UCA1BR1 = 0;
UCA1MCTLW |= UCOS16 | UCBRF_2 | 0xD600; //0xD600 is UCBRSx = 0xD6
UCA1CTLW0 &= ~UCSWRST; // release from reset
//--SETUP IRQ A1 RXIFG
UCA1IE |= UCRXIE; // Enable USCI_A0 RX interrupt
__enable_interrupt();
This what I get when I try to get capture data
´üÿûÿþÿ²Uª>Àÿÿÿÿÿÿÿÿþÿÿÿýÿþÿýÿþÿýÿüÿþÿüÿýÿýÿúÿýÿýÿüÿûÿýÿûÿþÿûÿ�2Uª>Àÿþÿüÿûÿüÿüÿýÿûÿþÿüÿüÿþÿüÿüÿüÿûÿüÿþÿúÿÿÿýÿûÿûÿûÿýÿüÿüÿb6Uª>ÀÿüÿýÿüÿúÿúÿýÿüÿûÿüÿþÿüÿúÿýÿûÿýÿûÿüÿÿÿûÿüÿüÿüÿúÿüÿúÿüÿV6Uª>ÀÿþÿúÿúÿüÿýÿûÿûÿüÿýÿúÿýÿþÿúÿûÿüÿúÿúÿþÿûÿýÿúÿüÿûÿûÿûÿýÿR6Uª>Àÿµûÿüÿýÿ²Uª>Áÿÿÿÿÿÿÿÿþÿþÿþÿýÿýÿþÿüÿþÿûÿüÿüÿýÿýÿüÿüÿþÿüÿüÿüÿþÿûÿ‚2Uª>Áÿûÿþÿúÿüÿüÿýÿûÿüÿýÿüÿúÿþÿûÿþÿüÿûÿûÿüÿüÿýÿüÿûÿüÿüÿûÿüÿ\6Uª>ÁÿþÿûÿüÿùÿýÿúÿýÿüÿüÿûÿûÿûÿýÿûÿýÿúÿúÿÿÿüÿýÿúÿûÿûÿüÿúÿþÿS6Uª>ÁÿüÿûÿüÿüÿûÿüÿþÿùÿüÿüÿøÿþÿûÿýÿûÿüÿüÿüÿûÿþÿùÿûÿúÿûÿÿÿüÿT6Uª>Á
Any help is appreciated, thanks.
Joshua
