SPI Burst Read/Write

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
cruzxia
Posts: 88
Joined: Wed Jan 04, 2006 7:34 am
Been thanked: 8 times

SPI Burst Read/Write

Post by cruzxia »

I understand the principals of SPI communication, I am trying to communicate to a new device.
The device setup is simple 8 bit address followed by an 8 bit command. - no problem here

The device then calls for a burst SPI read to read the data from 1 address, but there are several bytes of data.
To write to the device calls for a burst SPI write. in the same manner.

I read that burst SPI mode requires the CS/SS pin to be held low for the length of the SPI Burst, I not sure if this is correct.

Can you please explane how to do a Burst SPI Read or write. I want to load/save the data from separate variables.

cruzxia

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: SPI Burst Read/Write

Post by Benj »

Hello Cruzxia

As far as I am aware a SPI burst would be done by clearing the chip select line and then performing several read or write operations before setting the chip select line again. You can control the chip select line via an output icon in single bit mode and you can perform the read / write operations by using the Send_Byte or Get_Byte component macros. The device datasheet should be able to give you more information regarding this.

Post Reply