Hello,
I need to transfer via SPI many bytes at once and without delay between every byte.
If I do:
I have a delay of aprox 500ns between every bytes... with follow SPISettings settingsA(30000000, MSBFIRST, SPI_MODE0) and 96MHz
if I try follow:
result is as follow: 5,6,3 0,0,0 0,0,0 etc.....
but I need:
5,6,3 5,6,3 5,6,3 5,6,3 etc...
Why the bytes are cleared after the first cycle?
I don't understand that....
thank you very much
I need to transfer via SPI many bytes at once and without delay between every byte.
If I do:
Code:
SPI.transfer(byte1);
SPI.transfer(byte2);
SPI.transfer(byte3);
etc..
I have a delay of aprox 500ns between every bytes... with follow SPISettings settingsA(30000000, MSBFIRST, SPI_MODE0) and 96MHz
if I try follow:
Code:
uint8_t rgb[]={5,6,3};
for(x=0; x<=76800; x++)
{
SPI.transfer(rgb, sizeof(rgb));
}
result is as follow: 5,6,3 0,0,0 0,0,0 etc.....
but I need:
5,6,3 5,6,3 5,6,3 5,6,3 etc...
Why the bytes are cleared after the first cycle?
I don't understand that....
thank you very much