Changing Value Of Pss And Cks2 To Cks0; Switching Between Watchdog Timer Mode And Interval Timer Mode; Internal Reset In Watchdog Timer Mode; Ovf Flag Clearing In Interval Timer Mode - Hitachi H8S/2646 Hardware Manual

Hitachi 16-bit single-chip microcomputer h8s/2646 series
Table of Contents

Advertisement

12.5.2

Changing Value of PSS and CKS2 to CKS0

If bits PSS and CKS2 to CKS0 in TCSR are written to while the WDT is operating, errors could
occur in the incrementation. Software must stop the watchdog timer (by clearing the TME bit to 0)
before changing the value of bits PSS and CKS2 to CKS0.
12.5.3

Switching between Watchdog Timer Mode and Interval Timer Mode

If the mode is switched from watchdog timer to interval timer, or vice versa, while the WDT is
operating, errors could occur in the incrementation. Software must stop the watchdog timer (by
clearing the TME bit to 0) before switching the mode.
12.5.4

Internal Reset in Watchdog Timer Mode

In watchdog timer mode, the H8S/2646 Series will not be reset internally if TCNT overflows
while the RSTE bit is cleared to 0. When this module is used as a watchdog timer, the RSTE bit
must be set to 1 beforehand.
12.5.5

OVF Flag Clearing in Interval Timer Mode

When the OVF flag setting conflicts with the OVF flag reading in interval timer mode, writing 0
to the OVF bit may not clear the flag even though the OVF bit has been read while it is 1. If there
is a possibility that the OVF flag setting and reading will conflict, such as when the OVF flag is
polled with the interval timer interrupt disabled, read the OVF bit while it is 1 at least twice before
writing 0 to the OVF bit to clear the flag.
430

Advertisement

Table of Contents
loading

Table of Contents