Quantcast
Channel: Data converters
Viewing all articles
Browse latest Browse all 27635

Forum Post: RE: CCS/ADS8699: ADS8699 SPI DMA example c code

$
0
0
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.

Viewing all articles
Browse latest Browse all 27635

Trending Articles



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