Page 1 of 1
Using all the Peripherals, ESP32-c6
Posted: Fri Jun 09, 2023 3:53 pm
by Aung Cho Oo
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?
Re: Using all the Peripherals, ESP32-c6
Posted: Fri Jun 09, 2023 3:58 pm
by MicroController
Just configure each interface to use the pins you want, see e.g.
here.
Re: Using all the Peripherals, ESP32-c6
Posted: Fri Jun 09, 2023 5:35 pm
by Aung Cho Oo
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?
Re: Using all the Peripherals, ESP32-c6
Posted: Fri Jun 09, 2023 6:16 pm
by MicroController
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.