Quantcast
Channel: MSP low-power microcontroller forum - Recent Threads
Viewing all articles
Browse latest Browse all 22173

MSP430BT5190: Error with SPI codes

$
0
0
Part Number: MSP430BT5190

Hi Team,

We would like to ask your help regarding our customer's inquiry below.

I am trying to get SPI to work on an MSP430BT5190 and for some reason the RX and TX flags are not recognized by CCS. Do you know if there is a specific init for it?

while (!(IFG2 & UCB1TXIFG)); // USCI_B1 TX buffer ready?
UCB1TXBUF = value; // Send value over SPI to Slave
while (!(IFG2 & UCB1RXIFG)); // USCI_B1 RX Received?
received_ch = UCB1RXBUF; // Store received data

all the flags show as not recognized

I found the sample codes of SPI from the MSP Academy in the link below. Are these codes applicable to all MSP430 including the MSP430BT5190?

dev.ti.com/.../node

Regards,

Danilo


Viewing all articles
Browse latest Browse all 22173

Trending Articles



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