SPI Maximum speed

Posts: 2054
Joined: Thu Nov 26, 2015 4:08 am

Re: SPI Maximum speed

Postby ESP_Sprite » Thu Oct 11, 2018 2:43 am

Note the crystal doesn't really matter; the ESP32 normally uses a PLL to derive the CPU frequency from this, then divides the CPU frequency by an applicable number to get the 80MHz APB clk.

User avatar
Posts: 221
Joined: Tue Dec 05, 2017 8:28 pm
Location: Hungary

Re: SPI Maximum speed

Postby Vader_Mester » Thu Oct 11, 2018 10:41 am

anakyr wrote:I'm 100% sure that I have a 40MHz crystal. Check attachment too. I will try first to include SPI_DEVICE_NO_DUMMY in order to ignore this checking, as the error message in red is saying. If it doesn't work, I will go to the registers :)
Why did I forget about the GPIO MUX?

You can route your SPI directly to pins without using the GPIO MUX matrix, so with it you can achieve higher speeds. I think all your answers are in fact in the red warning message.
There are 2 types of programmer people: The Expert programmer and The Smart programmer

The Expert programmer easily writes any code from scratch.
The Smart programmer uses his google/github powers first ;)

Posts: 22
Joined: Fri Jun 15, 2018 12:09 pm

Re: SPI Maximum speed

Postby anakyr » Thu Oct 11, 2018 12:15 pm

Thanks a lot for the answers. Using this dummy flag I was able to produce 40 MHz at the MOSI.

Who is online

Users browsing this forum: albertmbt, Bing [Bot] and 13 guests