In this report, I'm going to show the sequences in HSPI of this simple test code:
Code: Select all#include <SPI.h>
uint8_t data;
void setup() {
SPI.begin(HSPI); // selected HSPI
data = 0x04;
}
void loop() {
SPI.spi_tx8(data);
}
The picture below represents digital signals of data 0x4.
The picture below represents a data manipulation of same logging data sequences (for a better resolution).
As you can see, the SPI driver works properly (with a bit of noice on data MOSI). My only doubt is for the delay after clock stop, just at the ending. There is a CS delay of about 625ns at 4Mhz. I don't know if it can be a problem or not, but it seems that the HSPI works like this.
I posted original logging files directly on my
github.
Some your considerations (about working) would be useful.