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.
Dear Sir,
In my project, MSP430FR5869 is connecting to CPU through SPI interface. MSP430FR5869 is the slave, CPU is the master.
Below is setting for SPI on MSP430FR5869:
void config_spi(void)
{
//select spi gpio
P2SEL1 |= BIT4 | BIT5 | BIT6;
UCA1CTLW0 |= UCSWRST;
UCA1CTLW0 |= UCMSB + UCSYNC;
// UCA1BRW = 4; // prescale
UCA1CTLW0 &= ~UCSWRST;
UCA1IE |= UCRXIE;
UCA1IE |= UCTXIE;
}
Sometime, MSP430 is incorrect working. After investigate, I find that although CPU send 0x03 code but MSP430 only receive 0x01 code. Or CPU send 0x03 but MSP430 only receive 0x30.
Please help me fix it if possible.
Hi Nathan,
Thank for your reply.
MSP430FR5869 and CPU have been build on our board. We check data that MSP430 or CPU has been received through UART debugger on MSP430 and CPU. And we also monitored data transmit on the transmission line through an oscilloscope. Sometimes, Although CPU sends 0x03 but MSP430 only receive 0x01 Or CPU send 0x03 but MSP430 only receive 0x30.
On the forum, I saw a member who also reports the issue of MSP430 as me but I didn't find any answer from TI employee to help solve it:
Could I fix it by software ? or I must to change hardware and use a new MCU?
Regards,
Son
Hi Nathan,
My issue has fixed by software with notes in the article: https://stackoverflow.com/questions/24931268/can-i-configure-gpio-pins-after-disabling-high-impedance-mode
I will only run "PM5CTL0 &= ~LOCKLPM5" after completed configure function of pin.
Thanks for your support.
**Attention** This is a public forum