Before I get to the question, let me give you some background info.
I'm trying to make a digitally controlled power supply. I'm going to use an MCP4725 DAC to set the reference voltage for the power supply. The DAC will be controlled by an STM32 Blue Pill development board.
When I turn the PSU off, I want to store the last set output voltage in the DAC's EEPROM so that when I turn the PSU on again, it will output the same voltage as it was before I turned it off.
When I was going through this article about the DAC, I came across this statement:
You shouldn't set the flag to true unless you require it as it will take longer to do, and you could wear out the EEPROM if you write it over 20,000 times.
I went through the datasheet of the DAC twice and I did not find the above statement anywhere (Sections 5.6 and 8.2 of the datasheet talk about the DAC's EEPROM).
My questions are:
- Why does Adafruit say that the DAC's EEPROM will wear out after 20,000 write operations when there is no mention of such a thing in the DAC's datasheet?
- What do they mean by "wear out"? Will the EEPROM circuit get damaged or can it not store more than 20,000 voltage values?
- How do I erase the EEPROM so that it doesn't wear out (if running out of memory is what "wears it out")?