Extract Philip MCU P87C752 Memory Code

Extract Philip MCU P87C752 Memory Code needs to knows more details related to the watchdog.

When EA is high (internal ROM access), the watchdog parameters are taken from the mask programmed values. If the watchdog is mask programmed to the timer mode, then the autoload values and the pre-scaler taps are taken from the SFRs.

When EA is low (external access), the watchdog parameters are taken from the SFRs. The user should be able to leave code in his program which initializes the watchdog SFRs even though he has migrated to the mask ROM part. This allows no code changes from EPROM prototyping to ROM coded production parts to facilitate the process of Clone Philip Chip P87C751 Source Code.

EPROM Device (and ROMless Operation: EA = 0)
In the ROMless operation (ROM part, EA = 0) and in the EPROM device, the watchdog operates in the following manner (see
Figure 14).
Whether the watchdog is in the watchdog or timer mode, when external RESET is applied, the following takes place:
• Watchdog mode bit set to watchdog mode.
• Watchdog run control bit set to ON.
• Autoload register set to 00 (min. count).
• Watchdog time-out flag cleared.
• Prescaler is cleared.
• Prescaler tap set to the highest divide.
• Autoload takes place.
The watchdog can be fed even though it is in the timer mode.
Note that the operational concept is for the watchdog mode of operation, when coming out of a hardware reset, the software should load the autoload registers, set the mode to watchdog, and then feed the watchdog (cause an autoload). The watchdog will now be starting at a known point.

Extract Philip MCU P87C752 Memory Code

Extract Philip MCU P87C752 Memory Code

If the watchdog is in the watchdog mode and running and happens to underflow at the time the external RESET is applied, the watchdog time-out flag will be cleared.