Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.

Usable as an alarm? #6

Answered by khoih-prog
notahardwareguy asked this question in Q&A
Discussion options

You must be logged in to vote

Currently, the timer clock is set at 1MHz, meaning the resolution can be in 1uS range. So 800uS-23000uS is easily achieved, certainly depending on how your code is behaving.

Just use the Timer directly, see TimerInterruptTest example

Try testing to use these functions to stop /start the timer and verify which are OK for you to use

1. void stopTimer()
2. void restartTimer()
3. void disableTimer()
4. void detachInterrupt()

In the worst case, it's also easy to program the Timers directly using one-shot feature, which this library is not designed to use.

Read more about STM32 Timers or ask in the Arduino forum if you need further help.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@notahardwareguy
Comment options

Answer selected by notahardwareguy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants