Hi, I encountered an error using SPI on my Teensy 3.0 with the beta 9 Arduino software. Specifically, SCLK was not properly going to ground between successive reads:
SPI.transfer(byteA);
SPI.transfer(byteB);
As you can see in this image, there is a weird bounce in SCLK right after the 8th bit, where the signal only drops slightly.
View attachment IMAGE003.BMP
I was able to fix this and get correct data by adding a small delay:
SPI.transfer(byteA);
delayMicroseconds(10);
SPI.transfer(byteB);
Note that I was running the CPU at 24mhz, and had an SPI clock divisor of 128, in SPI_MODE0.
-Jordan Erenrich
SPI.transfer(byteA);
SPI.transfer(byteB);
As you can see in this image, there is a weird bounce in SCLK right after the 8th bit, where the signal only drops slightly.
View attachment IMAGE003.BMP
I was able to fix this and get correct data by adding a small delay:
SPI.transfer(byteA);
delayMicroseconds(10);
SPI.transfer(byteB);
Note that I was running the CPU at 24mhz, and had an SPI clock divisor of 128, in SPI_MODE0.
-Jordan Erenrich