Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 226926

Forum Post: RE: MSP430F5310 SPI Problem ---- RXBUF is emtpy(0x00) why?

$
0
0

[quote user="David Martens"]I have a connetion with my rfm70, but the data that the slave sends mir isn't stored in the RXBUF ? Why?[/quote]P3.1 on the MSP430F5310 is UCB0SOMI, i.e. the output from the slave. However, the spi_init function isn't setting the P3SEL.1 bit:

[quote] P3SEL |= BIT0 |BIT2 |BIT3; // P3.0,1 option select[/quote]This means the UCB0 SPI module isn't configured to read from the P3.1 pin. Try changing the spi_init function to set P3SEL.1. i.e.:

 [quote] P3SEL |= BIT0 |BIT1|BIT2 |BIT3; // UCB0SIMO, UCB0SOMI, UCB0CLK, UCA0TXD option select[/quote]


Viewing all articles
Browse latest Browse all 226926

Trending Articles



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