Page 1 of 1

Bit-banging SPI on ESP32

Posted: Thu Jul 22, 2021 6:37 am
by dallim30
Dear all

I'm trying to drive an external ADC via SPI interface using ESP32 Wrover-E
Can I get the code examples for SPI communication via bit banging in ESP32-IDF.
I can't find some example provided to see how it is done

Thanks

Re: Bit-banging SPI on ESP32

Posted: Thu Jul 22, 2021 9:26 pm
by WiFive
Why would you want to bit bang it when esp32 has 2 dedicated spi peripherals?

Re: Bit-banging SPI on ESP32

Posted: Fri Jul 23, 2021 1:25 am
by dallim30
Because the built-in SPI peripherals are used by a high-bandwidth device that we have to continuously communicate with.
So I need to use bit bang to another SPI device.
I am trying to use an ESP32 connected via SPI to communicate with the ADC127L11 (24bit ADC)

Help is much appreciated.

Kind regards,

Re: Bit-banging SPI on ESP32

Posted: Fri Jul 23, 2021 10:20 am
by WiFive