SPI 20 clock pulses when 16 were expected
Posted: Wed Sep 11, 2024 12:49 pm
Dear,
I am not sure whether it is a bug or me (most likely me though).
I use VS code and ESP-IDF 5.3.1. The board has an ESP32-S3 WROOM-1 on a DevKitC.
I use the SPI element in master mode. I want to send an 8-bit address and in response receive 8 bit data. I have used my 4-channel oscilloscope to debug my code. Thus, I know the ESP32-S3 sends 20 clock pulses while I had expected 16 only (and so has the slave). I have tried with SPI2_HOST and SPI3_HOST, but it makes no difference.
The clock rate is 1.0 MHz
The settings of the SPI are in the file attached. I have specifically specified no dummy bits and clock pulses.
Why does the ESP32-S3 send 20 clock pulses?
Which of my settings is wrong?
Is it a bug or is it me?
Regards,
Jorgen
I am not sure whether it is a bug or me (most likely me though).
I use VS code and ESP-IDF 5.3.1. The board has an ESP32-S3 WROOM-1 on a DevKitC.
I use the SPI element in master mode. I want to send an 8-bit address and in response receive 8 bit data. I have used my 4-channel oscilloscope to debug my code. Thus, I know the ESP32-S3 sends 20 clock pulses while I had expected 16 only (and so has the slave). I have tried with SPI2_HOST and SPI3_HOST, but it makes no difference.
The clock rate is 1.0 MHz
The settings of the SPI are in the file attached. I have specifically specified no dummy bits and clock pulses.
Why does the ESP32-S3 send 20 clock pulses?
Which of my settings is wrong?
Is it a bug or is it me?
Regards,
Jorgen