← Back to context

Comment by raverbashing

8 hours ago

"Trivial" But then you realize you forgot to account for a 32 bit counter wrapping up. Or potential failures in the power supply or other capacitors

somewhere else they were discussing how to use a 555 to time 55 years, and how for such a long period you'd need impractical resistance and capacitance values. easy workaround would be to set a more reasonable period, say, 1 sec, and use a counter to know when you hit 55 years. coincidentally, 55 years is 2 ** 30.7 seconds, so it'd just fit in a 32 bit register.

though i take you were thinking about counting clock cycles or something in which case surely your register would overflow