DS80C320-ECD DALLAS [Dallas Semiconductor], DS80C320-ECD Datasheet - Page 156

no-image

DS80C320-ECD

Manufacturer Part Number
DS80C320-ECD
Description
High-Speed Microcontroller User Guide
Manufacturer
DALLAS [Dallas Semiconductor]
Datasheet
This is regardless of whether any bits were modified. Figure 13-1 illustrates a number of examples of
correct and incorrect use of the Timed Access procedure.
TIMED ACCESS EXAMPLES Figure 13-1
*Second write to TA register does not occur within 3 cycles of first write.
*Modification of protected bit did not occur with 3 cycles of second write to TA register.
*Modification of second protected bit did not complete within 3 cycles of second write to TA register.
TIMED ACCESS PROTECTS WATCHDOG
Any microcontroller-based system can be faced with environmental conditions that are beyond its
designed abilities. These include external signal transients due to component failure, fluctuating power
conditions, massive electrostatic discharge (ESD), and other unexpected system events.
microcontroller is exposed to such conditions, program execution can become corrupted. Members of the
High-Speed Microcontroller family which incorporate a Watchdog Timer can initiate a reset to recover
from these conditions. The primary function of the Timed Access feature is to protect against accidental
disabling of the watchdog timer by an “out-of-control” device. This will allow the watchdog timer to
reset the system in the event of program execution failure.
The following hypothetical example demonstrates how a single bit change can corrupt program
execution. The Timed Access procedure protects against an accidental write to the EWT bit by the errant
code, allowing the watchdog timer reset function to reset the device. While this is a purely fictitious
example, it illustrates how the watchdog timer and Timed Access feature make the High-Speed
Microcontroller minimize the effect of accidental code corruption. Note: Timed Access is not optional
and must be supported if the protected bits are used. This example simply helps explain the category of
problem that the Timed Access prevents.
three machine cycles
three machine cycles
three machine cycles
three machine cycles
three machine cycles
three machine cycles
MOV 0C7h, #0AAh
MOV 0C7h, #0AAh
MOV 0C7h, #0AAh
MOV 0C7h, #0AAh
MOV 0C7h, #0AAh
MOV 0C7h, #0AAh
three machine cycles
three machine cycles
three machine cycles
three machine cycles
three machine cycles
one machine cycles
MOV 0C7h, #55H
MOV 0C7h, #55h
MOV 0C7h, #55h
MOV 0C7h, #55h
MOV 0C7h, #55h
VALID TIMED ACCESS PROCEDURES
INVALID TIMED ACCESS PROCEDURES
NOP
156 of 175
MOV WDCON, #02h
three machine cycles
three machine cycles
MOV 0C7h, #55H
three machine cycle
one machine cycle
one machine cycle
two machine cycle
SETB EWT
SETB EWT
NOP
NOP
High-Speed Microcontroller User’s Guide
three machine cycles
MOV WDCON, #02h
two machine cycles
two machine cycles
two machine cycles
SETB EWT
SETB EWT
SETB EWT
When a

Related parts for DS80C320-ECD