hi Is there a chance of code erase in flash during operation of C8051F120 .If so how to prevent it.my code is not working properly during extreme temperature around -40 (i thounght some flash memory has erased in it all the hardware are working properly). thanks in advance
Is there a chance of code erase in flash during operation of C8051F120
Yes. if MONEN is not connected correctly, If there is a flash write routine that can be accessed when the uC is in a certain state at power up/power down, if the power is not rock solid, if...
However, with proper design (such as the above and proper circuit layout, 4 or more layer board, 100% decoupling) the answer is NO.
This should ALWAYS be done correctly, but you running the chip at the edge of its range makes it more likely that only 99% adherence to the 'rules' will give a burp.
Erik
PS for those that may see it fit to disagree with the above, be aware that the f120 ia a 100MHz one-clocker
Certain devices can also corrupt their internal flash memory areas when improper reset circuits (i.e. RC reset) are used.