NXP P89LPC936 Embedded Firmware Restoration

An on-board Watchdog timer is available with the PCA to improve the reliability of the system without increasing chip count which can also be applied on NXP P89LPC936 Embedded Firmware Restoration.

Watchdog timers are useful for systems that are susceptible to noise, power glitches, or electrostatic discharge. Module 4 is the only PCA module that can be programmed as a Watchdog.

However, this module can still be used for other modes if the Watchdog is not needed to Read MCU Code. See below Figure shows a diagram of how the Watchdog works. The user pre-loads a 16-bit value in the compare registers.

PCA PWN MODE

PCA PWN MODE

Just like the other compare modes, this 16-bit value is compared to the PCA timer value. If a match is allowed to occur, an internal reset will be generated to facilitate the process of Clone NXP P89LPC901 Microcontroller Embedded Firmware. This will not cause the RST pin to be driven high.

User’s software then must periodically change (CCAP4H,CCAP4L) to keep a match from occurring with the PCA timer (CH,CL). This code is given in the WATCHDOG routine shown above.

NXP P89LPC936 Embedded Firmware Restoration

NXP P89LPC936 Embedded Firmware Restoration

In order to hold off the reset, the user has three options:

Periodically change the compare value so it will never match the PCA timer.

Periodically change the PCA timer value so it will never match the compare values.

Disable the Watchdog by clearing the WDTE bit before a match occurs and then re-enable it.