This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Configuring Watchdog Timer

In MSC1210 i want to use watchdog timer to reset the system. How do i achieve this?? HOw can HCR0 be handled and in which part of the code?? Or can it be?

Parents
  • According to the data sheet, you'll need to enable the WDT both in HCR0 and in the extended interrupt enable register.

    The description of HCR0 notes that it can be programmed only in "flash programming mode", but is normally read-only. Apparently you configure the hardware options to have a WDT when you program the flash. But it didn't seem like code could later enable the feature. (That's why there's another interrupt enable. Program the flash to allow the WDT; write the code to use the EIE register to actually turn it on and off at run time.)

Reply
  • According to the data sheet, you'll need to enable the WDT both in HCR0 and in the extended interrupt enable register.

    The description of HCR0 notes that it can be programmed only in "flash programming mode", but is normally read-only. Apparently you configure the hardware options to have a WDT when you program the flash. But it didn't seem like code could later enable the feature. (That's why there's another interrupt enable. Program the flash to allow the WDT; write the code to use the EIE register to actually turn it on and off at run time.)

Children
No data