Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

MSP430 Multiple SPI Transmission Processing

$
0
0

I am using the MSP430 FR5739 to work as a 4-pin SPI slave device.  When I connect the device to an oscilloscope, I've noticed that the SPI clock has 24 clock cycles, rather than 8.  According to my understanding of SPI, I believe the SPI master is sending and receiving data to the MSP430 multiple times (without any pause in between).  Below is an example of the clock and the received data coming from the SPI master.

Where D0 is the SCLK, and D1 is the MOSI pin.  Below is my current RX Interrupt setup.


#pragma vector=USCI_A0_VECTOR
__interrupt void USCI_A0_ISR(void)
{
    RXData = UCA0RXBUF;
    UCA0IFG &= ~UCRXIFG;
    __bic_SR_register_on_exit(CPUOFF);// Wake up to setup next TX
}

Any suggestions would be appreciated.


Viewing all articles
Browse latest Browse all 262198

Trending Articles



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