Hi, Does the 8051 based Mx2 microcontroller have a possibility to distinguish between a warm boot-up(5V dip) and a cold boot-up(power-on)? If yes, can somebody please tell me which register has this information? thanks and warm regards, Sundeep M S
The Power-On-Flag is bit 4 in the PCON register. This bit is set to 1 for a power-on reset. According to the user manual: The Power On Flag (POF) is set by on-chip circuitry when the VDD level on the P87C51Mx2 rises from 0V. The POF bit has to be cleared by software allowing a user to determine if the reset is the result of a power-on or a warm start after powerdown. Jon