Keil Logo

Peripheral Simulation

For Infineon C164CL — Watchdog Timer (With Additional Prescaler and EINIT Reset)

Simulation support for this peripheral or feature is comprised of:

  • Dialog boxes which display and allow you to change peripheral configuration.

These simulation capabilities are described below.

Watchdog Timer Dialog

Watchdog Timer

The Watchdog Timer dialog shows the current state of the on-chip Watchdog Timer. You can change watchdog settings using the controls in this dialog.

  • WDTCON is the watchdog configuration SFR.
  • WDT is the current watchdog timer count.
  • WDTR (when set) indicates that the watchdog timer caused the last reset.
  • WDTIN selects the input frequency of the clock for the watchdog timer.
  • WDPRE selects the clock prescaler for the watchdog timer.
  • SWR (when set) indicates that an SRST instruction caused the last reset.
  • SHWR (when set) indicates that a short hardware reset caused the last reset.
  • LHWR (when set) indicates that a long hardware reset caused the last reset.

By default, the watchdog timer is enabled and starts counting up from 0000h immediately after reset. To service the watchdog timer, your program must execute the SRVWDT instruction. In C, include the intrins.h header file and use the intrinsic function _srvwdt_. For example:

#include <INTRINS.H>
.
.
.
_srvwdt_ ();  /*Service Watchdog Timer */
.
.
.
Get more information about the
Peripheral Simulation Capabilities
of the µVision Debugger.
  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.