Is there an code example for using a timer in count mode with compare?

Hi i am trying to configure a timer to work in count mode and when it hits a certain number ( for example 100) to activeta an interrupt, clear count and start again.

Best regards.

Related