Skip to content

Alternative methods after disabling millis() and micros()? #507

Answered by SpenceKonde
dattasaurabh82 asked this question in Q&A
Discussion options

You must be logged in to vote

The millis and micros timer can be selected from the menu, defaults to TCA0 on parts with neither TCB1 nor TCD0 (like 1607). Parts with a TCD0 use that (since someone is unlikely to want to reprogram it because it;s nasty to work with), 2-series has a TCB1 and uses that (you don't want to use TCB0 if that's your only type B timer,because then tone, servo and some other basic libraries don't work)

Disabling millis likely saves a tiny amount of power while the chip is in active mode only, if it's in sleep power down or standby without run standby set, it makes no difference because it's turned off

If you want to implement your own versions of the timing functions, the only way to do that is…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@dattasaurabh82
Comment options

@grandaspanna
Comment options

Comment options

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

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