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
SPI Burst Read/Write
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel