Is there a list of which pins can be used for PWM on the XIAO-ESP32C3?
Also, what interrupts/counters are used for them?
Is there a list of which pins can be used for PWM on the XIAO-ESP32C3?
Also, what interrupts/counters are used for them?
Hi shmorgan,
“\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32\esp32-hal-ledc.c and .h”
is useful to you?
[EDIT]
I checked and 6 channels of Ledc:0-5 are available. However, since there are only 3 Timers
Timer:0-2, 3 different frequencies can be set; 6 PWM can be assigned to any port of D0-D10 at the same time.
\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32\esp32-hal-ledc.c : 35
/*
* LEDC Chan to Group/Channel/Timer Mapping
** ledc: 0 => Group: 0, Channel: 0, Timer: 0
** ledc: 1 => Group: 0, Channel: 1, Timer: 0
** ledc: 2 => Group: 0, Channel: 2, Timer: 1
** ledc: 3 => Group: 0, Channel: 3, Timer: 1
** ledc: 4 => Group: 0, Channel: 4, Timer: 2
** ledc: 5 => Group: 0, Channel: 5, Timer: 2
** ledc: 6 => Group: 0, Channel: 6, Timer: 3
** ledc: 7 => Group: 0, Channel: 7, Timer: 3
** ledc: 8 => Group: 1, Channel: 0, Timer: 0
** ledc: 9 => Group: 1, Channel: 1, Timer: 0
** ledc: 10 => Group: 1, Channel: 2, Timer: 1
** ledc: 11 => Group: 1, Channel: 3, Timer: 1
** ledc: 12 => Group: 1, Channel: 4, Timer: 2
** ledc: 13 => Group: 1, Channel: 5, Timer: 2
** ledc: 14 => Group: 1, Channel: 6, Timer: 3
** ledc: 15 => Group: 1, Channel: 7, Timer: 3
*/
Hi, so Check this Out . I was wondering that same thing, I looked at the Specifications comparison and it’s there about halfway down the page. 4 Analog pins too. Don’t want to ruin the fun or be a spoiler alert for you.
HTH
GL:-)