SPI driver - configured 2 MHz, but 1 Mhz on the wire
Posted: Fri May 08, 2026 3:42 pm
Hi guys!
I have configured my SPI driver with 2 MHz clock. But on the wire I see just 1 MHz. Why?
I have configured my SPI driver with 2 MHz clock. But on the wire I see just 1 MHz. Why?
Code: Select all
spi_device_interface_config_t devcfg_bme = {
.clock_speed_hz = 2 * 1000 * 1000,
.mode = 0,
.spics_io_num = GPIO_NUM_5, // CS Pin
.queue_size = 1,
.flags = 0,
.command_bits = 0,
.address_bits = 0,
.dummy_bits = 0
};