Bit-banging SPI on ESP32

dallim30
Posts: 22
Joined: Thu Apr 29, 2021 1:35 am

Bit-banging SPI on ESP32

Postby dallim30 » Thu Jul 22, 2021 6:37 am

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

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Bit-banging SPI on ESP32

Postby WiFive » Thu Jul 22, 2021 9:26 pm

Why would you want to bit bang it when esp32 has 2 dedicated spi peripherals?

dallim30
Posts: 22
Joined: Thu Apr 29, 2021 1:35 am

Re: Bit-banging SPI on ESP32

Postby dallim30 » Fri Jul 23, 2021 1:25 am

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,

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Bit-banging SPI on ESP32

Postby WiFive » Fri Jul 23, 2021 10:20 am


Who is online

Users browsing this forum: Bing [Bot] and 141 guests