Page 1 of 1

SPI Burst Read/Write

Posted: Thu Sep 03, 2009 6:26 am
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

Re: SPI Burst Read/Write

Posted: Thu Sep 03, 2009 9:03 am
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.