SPIMaster_LDD with frdm KE06Z

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SPIMaster_LDD with frdm KE06Z

1,826件の閲覧回数
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.

ラベル(1)
0 件の賞賛
返信
1 返信

1,685件の閲覧回数
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 件の賞賛
返信