If the software writes to EEPROM for 15 seconds, it is probably not writing the same byte, but different bytes. So, it's a very little chance you kill the EEPROM during just few starts.
Thanks, so each byte of the eeprom can be written 100000 times before that byte dies?...so for a 256 byte eeprom like the pic16f18856, we have 25.6 million eeprom writes before it fails?
Can you seriously not find anyone local to do the job?
I think its an EU grant, and we have to pick someone from a different EU country other than our own.
I wouldn't expect writing eeprom to draw appreciably more current than running.
Excess current draw is more likely due to selecting the wrong clock, i/o clash or floating input pins.
What is the actual current draw you're seeing in the first 15 secs, and afterwards ?
Thanks, strangely the datasheet doesnt say how much current is drawn when eeprom is writing.
Sorry i do not understand what is meant by "i/o clash", please could you possibly advise?
( i think it means an input has accidentally been declared as an output and this output is possibly soucing loads of current....this is possible with us because we have dipswitchs to inputs which go direct to ground...so if these were declared as outputs then lots of current would flow to ground from that pin....recently, our software test guy noticed that the micro rail was short-circuit, but only when one of the dipswitchs was switched to ground)
We also wonder whether he is doing repeated ADC readings of the light reading...and maybe thats drawing this excess current?
Strangely the elec specs of the micro dont tell what is the current draw of things like ADC or EEPROM writing/erasing etc.
I must admit i am surprised it can write to its EEPROM with just a 2v5 rail...i thought writing to eeprom took 9v or so?
The normal running current for the 2V5 rail is 2.2mA. Thats the micro and some really low current drawing things like SFH5711, MCP9700 and an opamp buffer with an output resistor of 100k........so the 7.5mA of current draw we see at startup is unquestionably from the micro.