Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 63733

Forum Post: RE: MSP430F5529 SPI not receiving data

$
0
0
Hi Paul, To know if everything is initialized correctly, I'll need to see into the functions you use in SPI_Enable: SPI_ClockMode GPIO_Set/ClearBits The values of SPI_MODE_1, SPIDOUT_MSP, SPIDIN_MSP, and SPICLK_MSP Also, I never saw you enable either the transmit or receive interrupts for the SPI module. Without these enabled, I would expect a statement like while(!(UCA0IFG & UCRXIFG)); to just spin forever. Edit: Disregard the last statement. The interrupt flag will still be set regardless of whether interrupts are enabled. Best regards, Caleb Overbay

Viewing all articles
Browse latest Browse all 63733

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>