opcode_x64
Member
Hello all,
I am using Teensy 4.1 (using Platform IO with up-to-date Teensy 4.1 library) to drive an external ADC using SPI1 (LSPI3?!).
Unfortunately, SPI1 is not working. Checking the signals with logic analyzer nothing is happening, since SCK is not working.
I am initializing SPI1 in setup() and testing it in loop() as below:
Using "bit-banging" is working, so the cable connections should be fine. Do I missing something here ?!
Thank you !
Best regards,
opcode_x64
I am using Teensy 4.1 (using Platform IO with up-to-date Teensy 4.1 library) to drive an external ADC using SPI1 (LSPI3?!).
Unfortunately, SPI1 is not working. Checking the signals with logic analyzer nothing is happening, since SCK is not working.
I am initializing SPI1 in setup() and testing it in loop() as below:
Code:
void setup(){
...
Serial.begin(...);
SPI1.begin();
SPI1.setMOSI(26);
SPI1.setSCK(27);
SPI1.setMISO(1);
SPI1.setCS(0);
...
}
void loop(){
...
delay(100);
SPI1.beginTransaction(SPISettings(1000000,MSBFIRST,SPI_MODE0));
SPI1.transfer(0x42);
SPI1.endTransaction();
...
}
Using "bit-banging" is working, so the cable connections should be fine. Do I missing something here ?!
Thank you !
Best regards,
opcode_x64
Last edited: