How to use the SPI module send an array in MBD?

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

How to use the SPI module send an array in MBD?

957 Views
eautopower
Contributor IV

 I want to use SPI communications to drive peripherals, but I don't know how to send an array using the SPI model in MBD, which is designed to ensure that CS cannot be pulled high before the array element is sent end。

0 Kudos
3 Replies

664 Views
dumitru-daniel_
NXP Employee
NXP Employee

Hello, 

Please check this lecture: https://community.nxp.com/thread/453727 

It is exactly about SPI communications and it includes an example as well.

Hope this helps!

Daniel

0 Kudos

664 Views
eautopower
Contributor IV

 popa:

   I saw the introduction of this video, this is every one byte, CS will pull up, but our peripherals are not allowed, and can only send all orders to pull up

0 Kudos

664 Views
dumitru-daniel_
NXP Employee
NXP Employee

Hi, 

I'm afraid i do not understand your concern.

Are you interested to know how to send more than 1 byte in a single shot over SPI ? or in how to send an entire vector - element by element over the SPI ?

Can you describe a little bit more about your application. Perhaps we can figure out a way to do that.

Thank you!

Daniel

0 Kudos