JN5168 SPI master how to perform a continuous transfer?

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

JN5168 SPI master how to perform a continuous transfer?

592 Views
sener_yilmaz
Contributor I

Hello everyone,

I'm trying to perform continuous transfer as SPI master. In Section 14.5.2 of JN516x Integrated Peripherals API document, it says "Continuous SPI transfers can be initiated by calling the function vAHI_SpiContinuous() instead of vAHI_SpiStartTransfer()." vAHI_SpiContinuous() does not take any parameter that will be sent over SPI. Replacing vAHI_SpiStartTransfer with vAHI_SpiStartContinuous does not make sense at all. Can anyone explain to me the right way of performing full-duplex continuous SPI transfers?

0 Kudos
1 Reply

546 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi,

I hope you are doing great.

Unfortunately, This function can be used to enable/disable continuous read mode. So, in this case, you will see invalid data and waiting for the Slave data. You have to specify the data length.

Value in range 0-31 indicating data length for transfer:

Regards,

Mario

0 Kudos