Good morning everyone,
I have a question, just out of curiosity.
I am talking generally.
I am at the moment using a PIC16F877A but could be any pic.
According to the data sheet it can be programmed for 100,000 times
I know that some chips have much higher and some much lower PROGRAM TIMES.
Question #1 Is this value factory set or does it depend on how the chip is treated e.g. programming voltage, programming speed, power supply voltage, port loading and input voltages, running temperature, etc?
Question #2 Is there a way to see how many times a chip has been programmed?
Question #3 Is there a way to write an ascending number, n+1, somewhere onto the chip each time a chip is programmed using MPLAB perhaps into the hex code that can be found easily?
This is just a curiosity.
BILL.
#1 It is NOT factory set. I also wonder if it can be affected by varying stuff. Temperature is a likely candidate, and maybe voltage, if stuff reduces the life still further.
#2 I don't think so. The only ways that come to mind are to continue wearing the cells out, and see how many writes were left, and/or measuring leakage currents or something, which is probably NOT practical outside of the chip and/or would not work anyway.
#3 I doubt it, but don't know enough about MPLAB to fully rule it out. But you could always write your own routines to do it, and add them to the setup. Being careful to "Wear level", the counting number. Else it may get data errors, before the end of flash life.
Maybe use EEPROM, as a counter as it has a much longer write life.
For anyone curious enough. I believe Microchip sell a reasonably cheap device, which (destructively) tests the write life of their flash/EEPROM chips.