Search found 3 matches

by gerard-hm
Sat Aug 14, 2021 1:01 am
Forum: Hardware
Topic: SPI clock frequency?
Replies: 0
Views: 2401

SPI clock frequency?

Is there a way to drive SPI with a frequency outside the formula: 80MHz / (pre * n) ? I would like 12MHz, but the closest I can get is either 11.4MHz or 13.3MHz Is there any way to drive SPI using an outside clock? I'm guessing not, but wanted to check. BTW. Can anyone point me to an explanation on ...
by gerard-hm
Sat Aug 14, 2021 12:46 am
Forum: Hardware
Topic: How to keep MOSI line high at idle?
Replies: 1
Views: 3113

Re: How to keep MOSI line high at idle?

To answer my own question - the way to do it is to invert signal using: esp_rom_gpio_connect_out_signal(mosi, spi_periph_signal[host_device].spid_out, invert, false); esp_rom_gpio_connect_in_signal(mosi, spi_periph_signal[host_device].spid_in, invert); and then invert again all the data bytes: buffe...
by gerard-hm
Sun Aug 01, 2021 1:00 am
Forum: Hardware
Topic: How to keep MOSI line high at idle?
Replies: 1
Views: 3113

How to keep MOSI line high at idle?

My SPI setup: SPI_DEVICE_NO_DUMMY SPI_DEVICE_3WIRE SPI_DEVICE_HALFDUPLEX no DMA no interrupts (I use polling instead) no address, no command phases, just data phase for a custom protocol I'm currently using multiple DATA phases one after another with all 1s to simulate idle logic high, but there is ...