Skip to content

Proper way to disable the RTC/PIT once enabled? #350

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

You must be logged in to vote

Yeah, that'd be the right approach - note that if you know what you want the value tof the register to be afterwards, you can just straight up set it. And do also note the errata for some of the tinyAVR 0/1-series parts... these have a good deal of errata.

Disabling the RTC Stops the PIT
Writing RTC.CTRLA.RTCEN to ‘0’ will stop the PIT.
Writing RTC.PITCTRLA.PITEN to ‘0’ will stop the RTC.

Pretty widespread within the product line it looks like.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hamsterdave
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