By manipulate the Power Supply to Philip P87C51 microcontroller and effectively Unlock Philips P87C51 Encrypted Flash Memory and read its content out from it, below we will introduce the monitoring functions of its internal mechanism for better understanding this power glitch method:
The P87C51 incorporates power monitoring functions designed to prevent incorrect operation during initial power up and power loss or reduction during operation. This is accomplished with two hardware functions: Power-On Detect and Brownout Detect.
Brownout Detection
The Brownout Detect function allows preventing the processor from failing in an unpredictable manner if the power supply voltage drops below a certain level when Unlock Philips P87C51 Encrypted Flash Memory. The default operation is for a brownout detection to cause a processor reset when break IC, however it may alternatively be configured to generate an interrupt by setting the BOI bit in the AUXR1 register (AUXR1.5).
The P87C51 allows selection of two Brownout levels: 2.5 V or 3.8 V. When VDD drops below the selected voltage, the brownout detector triggers and remains active until VDD is returns to a level above the Brownout Detect voltage. When Brownout Detect causes a processor reset, that reset remains active as long as VDD remains below the Brownout Detect voltage.
When Brownout Detect generates an interrupt, that interrupt occurs once as VDD crosses from above to below the Brownout Detect voltage which can be applied for Philip P87C52 Memory Program cloning. For the interrupt to be processed, the interrupt system and the BOI interrupt must both be enabled (via the EA and EBO bits in IEN0). When Brownout Detect is activated, the BOF flag in the PCON register is set so that the cause of processor reset may be determined by software. This flag will remain set until cleared by software.