Search found 2 matches
- Mon Jul 27, 2020 12:12 pm
- Forum: ESP-IDF
- Topic: Change SPI speed on the fly?
- Replies: 2
- Views: 4740
Re: Change SPI speed on the fly?
Thanks for the quick reply. As I understood: void setupSPI() { esp_err_t ret; spi_bus_config_t buscfg={ .miso_io_num=PIN_NUM_MISO, .mosi_io_num=PIN_NUM_MOSI, .sclk_io_num=PIN_NUM_CLK, .quadwp_io_num=-1, .quadhd_io_num=-1, .max_transfer_sz=PARALLEL_LINES*320*2+8 }; spi_device_interface_config_t devcf...
- Sun Jul 26, 2020 10:40 pm
- Forum: ESP-IDF
- Topic: Change SPI speed on the fly?
- Replies: 2
- Views: 4740
Change SPI speed on the fly?
Is it possible to change the clock speed of the SPI after initializing the interface?
Something like: write to the first device at 80Mhz, change to 40Mhz, write to a second device, then change back to 80Mhz...
Thanks!
Something like: write to the first device at 80Mhz, change to 40Mhz, write to a second device, then change back to 80Mhz...
Thanks!