We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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?
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.)