|
|
|
|
|
by mishellaneous
41 days ago
|
|
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 |
|
Old computers often had a "carry flag" specifically to make this easier e.g.on Arm:
But even on RISC-V, often criticised for not having a carry flag, it's not hard: