SPIMaster_LDD with frdm KE06Z

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SPIMaster_LDD with frdm KE06Z

1,798 Views
aelma95
Contributor I

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.

Labels (1)
0 Kudos
Reply
1 Reply

1,657 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

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:

pastedImage_0.png

- There is sample demo code about SPI on"Help on component ":

pastedImage_1.png

Hope it helps


Have a great day,
Alice

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply