Hey guys, I'm having a little problem understanding how the SPIMaster_LDD works or if its will actually work for what I'm trying to do. to keep it as short as possible. I'm trying to communicate with an external ADC chip using SPI. The chip is a TI ads131e08 ADC. I set up the SPIMaster_LDD in accordance with the ADC datasheet. I'm using an external pin for the CS pin (basically i'm just grounding the pin, as i'm only prototyping, it is possible to just ground the CS as it say on the datasheet). the problem im having is when i'm receiving data. I can send out commands to the adc using send_block function. when i only just use the send_block function i do receive data from the adc (I know this because i used scope for the ADC MISO pin). but when I use send block inconjuction with receive block the communication seem to fail and nothing happens. I dont understand this part, I basically just want to send a command and receive data from the chip. for example to read specfication register value, read data from adc inputs. I've attached a picture of clocking required for reading register value as simple example and my adc setting.
Hello ,
- Do you meaning in the scope you can see the signal from ADC chip to KE06 ,
while in the receive function , you have not received the data?
If yes, please check the SPI_D register to check , whether it received the data .
Also check the SPI Read Bufferr Full Flag SPRF:
- There is sample demo code about SPI on"Help on component ":
Hope it helps
Have a great day,
Alice
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------