Keil Logo

MON166: WATCHDOG REFRESH WHEN USING MONITOR


Information in this article applies to:

  • C166 All Versions

QUESTION

I would like store the Monitor-166 in an external Flash ROM. Both the Monitor and the user application is stored in this Flash ROM. I added a small software routine that allows (after processor reset) the selection application or Monitor. Unfortunately, the boot software enables the watchdog, but I know that the Monitor only works with the watchdog disabled.

Is it possible to add watchdog refresh instructions to the Monitor?

ANSWER

Yes, you may add watchdog refresh instructions to the file INST167.A66 in the functions INSTAT and OUTSTAT as shown below:

INSTAT:    BMOV   R4.0,S0RIR  ; INPUT STATUS OF SERIAL INTERFACE
           SRVWDT
           RET

OUTSTAT:   BMOV    R4.0,S0TIR ; OUTPUT STATUS OF SERIAL INTERFACE
           SRVWDT
           RET

This ensures that the watchdog gets refreshed during Monitor communication.

MORE INFORMATION

Last Reviewed: Tuesday, January 16, 2007


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.