[sdiy] Retaining button state after power off?

Terry Shultz thx1138 at earthlink.net
Sun Feb 2 08:06:34 CET 2014

Hi Guys,

If the device starts to fail in your lifetime, the chance of finding a replacement part 20 years later after you build the circuit is really more to the point I would think.

I never thought many of my analog parts would last as long as they have in many of my old oberheim SEM’s.

They probably will outlast me .

Still, flash memory does have a lifetime limit and it does wear out.

We tested the heck out of it when I worked at Freescale on the Kinetis part to see when the failure point would happen.

Good to see you guys have a keen sense of humor .

best regards to you 


On Feb 1, 2014, at 10:46 PM, cheater00 . <cheater00 at gmail.com> wrote:

> Hi Ove,
> On Sun, Feb 2, 2014 at 1:56 AM, Ove Ridé <nitro2k01 at gmail.com> wrote:
>> On 1 February 2014 08:34, Ullrich Peter <Peter.Ullrich at kapsch.net> wrote:
>>> Yes, an ATTiny35, 45 oder even 12 or 13 could do the job also quite nice, but you have to take care of the maximum write endurance... If you have lots of writes then the FRAM based MSP430 types could help... Nearly unlimited writes possible there...
>> The ATTiny EEPROM is speced at 100k write/erase cycles, possibly more
>> than the switch. With some clever programming, you could also program
>> one byte at a time, so you'll only consume one write/erase cycle per,
>> say 256 writes, for a 256 byte EEPROM device. You start from the fully
>> erased state, then for each button press, you write 00 to the next
>> available byte in EEPROM. The state is the number of 00 bytes mod 4.
>> When all bytes are 00 and the user presses the button again, the
>> program issues an erase. That should give you an expected 25.6 million
>> button presses.
> You're really high-balling it here. If he only ever uses the 4th
> setting, then it's going to be 256/4 * 100000 = 6.4 million. What if
> the user presses the button 6400001 times and it suddenly doesn't work
> - are you going to fix his synth, Ove? Such irresponsible advice.
> ;-)
> D.
> _______________________________________________
> Synth-diy mailing list
> Synth-diy at synth-diy.org
> http://synth-diy.org/mailman/listinfo/synth-diy

More information about the Synth-diy mailing list