Search found 2 matches
- Sat Jan 15, 2022 10:20 pm
- Forum: General Discussion
- Topic: ESP32 SPI big delay between transactions on external ADC
- Replies: 3
- Views: 6212
Re: ESP32 SPI big delay between transactions on external ADC
You probably want to use polling mode here for the SPI transaction. Also note that the SPI peripheral on the ESP32 in general isn't that good at running small transactions at high speed, as the CPU needs to handle each start and end of the packet. If I recall correctly, the S2 and later are more ca...
- Fri Jan 07, 2022 11:29 am
- Forum: General Discussion
- Topic: ESP32 SPI big delay between transactions on external ADC
- Replies: 3
- Views: 6212
ESP32 SPI big delay between transactions on external ADC
Hello, I'm using MCP3201 which is very easy to use. For this transaction I don't need to send anything, just listen to 16 bits of data. I should get 100k samples per second, but it takes a very long time, like 4 times more. SPI Clock: 111111111.png #include <stdio.h> #include <stdlib.h> #include <st...