Hi, and Happy New Year to you! I see that you write SPI_transmitData(EUSCI_B0_BASE, 0xFF); just ahead of your 'while(1)' loop. That SPI_transmitData caused the SCLK to run and send the 0xFF seen in the green trace from SIMO, the ADS8699 responded with the 0x1D from SOMI and most likely cause the RX interrupt to fire off before entering the while(1) loop. In your euscib0_isr loop, you seem to be waiting for data to be received, but there is no means of clock generation that I see there. If you expect to read 4 bytes, you have to generate 32 SCLKs be putting data (0x00 for example) into the transmit buffer.
↧