Using all the Peripherals, ESP32-c6

Aung Cho Oo
Posts: 8
Joined: Sun Apr 16, 2023 4:40 pm

Using all the Peripherals, ESP32-c6

Postby Aung Cho Oo » Fri Jun 09, 2023 3:53 pm

I'm using esp32-c6 for my project and I need to use all the peripheral such as UART, I2C and SPI. But I can't use I2C and SPI together because they share the same pins. How can I solve this problem?

MicroController
Posts: 1708
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: Using all the Peripherals, ESP32-c6

Postby MicroController » Fri Jun 09, 2023 3:58 pm

Just configure each interface to use the pins you want, see e.g. here.

Aung Cho Oo
Posts: 8
Joined: Sun Apr 16, 2023 4:40 pm

Re: Using all the Peripherals, ESP32-c6

Postby Aung Cho Oo » Fri Jun 09, 2023 5:35 pm

MicroController wrote:
Fri Jun 09, 2023 3:58 pm
Just configure each interface to use the pins you want, see e.g. here.
Does that mean I can use any pins for any peripherals?

MicroController
Posts: 1708
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: Using all the Peripherals, ESP32-c6

Postby MicroController » Fri Jun 09, 2023 6:16 pm

I believe there are some restrictions (ADC?...), but many of the pins should be usable by most of the peripherals. Check the respective API docs and/or reference manual for your SoC for details which peripherals can be mapped to which pins.

Who is online

Users browsing this forum: No registered users and 148 guests