SPC5746R,SPI function using SDK Don't know how to receive data.

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

SPC5746R,SPI function using SDK Don't know how to receive data.

Jump to solution
263 Views
Jasting
Contributor I

I need to use SPI to communicate with EEPROM, SPC5746R as the Master to send and receive, the timing of EEPROM is as follows:

Jasting_0-1714272822356.png

However, after I finish sending data using "SPI_MasterTransferBlocking" in SDK, the Master does not provide the clock signal for the slave to transfer data back. How should I operate and set up to correctly read the data returned by the EEPROM?

Jasting_4-1714273570713.png

Did I call the read function wrong?

 

0 Kudos
Reply
1 Solution
236 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

send 2 bytes using SPI_MasterTransferBlocking function, first byte is instruction, second is dummy byte.

BR, Petr

View solution in original post

0 Kudos
Reply
1 Reply
237 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

send 2 bytes using SPI_MasterTransferBlocking function, first byte is instruction, second is dummy byte.

BR, Petr

0 Kudos
Reply