Skip to content

Timer 1 & Timer 3 issues: Timer 1 never triggers | Timer 3 crashes 100% of time #14235

Answered by robert-hh
githubtrey asked this question in ESP32
Discussion options

You must be logged in to vote

Reading the C3 manual and looking into the ESP port code reveals:

  • the ESP32C3 has just 2 general purpose timers in a single group.
  • the generic ESP32 and the S2/S3 devices have 4 timers in 2 groups.
  • at the ESP32 port, the timer index is timer_nr *2 + timer_group. So the even numbered timers ar in group 0, the odd ones in group 1.

Thus, on C3, you can use timer(0) and timer(2). Anything else is odd and should be prevented by the code. Maybe it's better on a C3 to just allow timer 0 and 1 and set the group always to 0.

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@githubtrey
Comment options

@robert-hh
Comment options

@robert-hh
Comment options

@robert-hh
Comment options

Answer selected by githubtrey
Comment options

You must be logged in to vote
1 reply
@robert-hh
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ESP32
Labels
None yet
3 participants