Using all the Peripherals, ESP32-c6
-
- Posts: 8
- Joined: Sun Apr 16, 2023 4:40 pm
Using all the Peripherals, ESP32-c6
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?
-
- Posts: 1708
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: Using all the Peripherals, ESP32-c6
Just configure each interface to use the pins you want, see e.g. here.
-
- Posts: 8
- Joined: Sun Apr 16, 2023 4:40 pm
Re: Using all the Peripherals, ESP32-c6
Does that mean I can use any pins for any peripherals?MicroController wrote: ↑Fri Jun 09, 2023 3:58 pmJust configure each interface to use the pins you want, see e.g. here.
-
- Posts: 1708
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: Using all the Peripherals, ESP32-c6
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: Baidu [Spider] and 99 guests