Information

23.8.1 General Guideline
When performing 8-bit accesses to the watchdog's 16-bit registers where the intention is
to access both the bytes of a register, you must try to place the two 8-bit accesses one
after the other in your code.
23.8.2 Refresh and Unlock operations with 8-bit access
One exception condition that generates a reset to the system, is the write of any value
other than those required for a legal refresh/update sequence to the respective refresh and
unlock registers.
For an 8-bit access to these registers, writing a correct value requires at least two bus
clock cycles that means there is an invalid value in the registers for one cycle. Therefore,
the system is reset even if the intention is to write a correct value to the refresh/unlock
register. Keeping this in mind the exception condition for 8-bit accesses is slightly
modified. Whereas the match for a correct value for a refresh/unlock sequence is as per
the original definition, the match for an incorrect value is done byte-wise on the refresh/
unlock rather than for the whole 16-bit value. This means that if the high byte of the
refresh/unlock register contains any value other than high bytes of the two values making
up the sequence, it is treated as an exception condition, leading to a reset or interrupt-
then-reset. The same holds true for the lower byte of the refresh or unlock register. Let us
take the refresh operation that expects a write of 0xA602 followed by 0xB480 to the
refresh register, as an example.
Table 23-14. Refresh for 8-bit Access
WDOG_REFRESH[15:8] WDOG_REFRESH[7:0]
Sequence value1 or
value2 match
Mismatch
exception
Current Value 0xB4 0x80 Value2 match No
Write 1 0xB4 0x02 No match No
Write 2 0xA6 0x02 Value1 match No
Write 3 0xB4 0x02 No match No
Write 4 0xB4 0x80 Value2 match.
Sequence complete.
No
Write 5 0x02 0x80 No match Yes
As shown in the preceding table, the refresh register holds its reset value initially.
Thereafter, two 8-bit accesses are performed on the register to write the first value of the
refresh sequence. No mismatch exception is registered on the intermediate write, Write1.
The sequence is completed by performing two more 8-bit accesses, writing in the second
value of the sequence for a successful refresh. It must be noted that the match of value2
Chapter 23 Watchdog Timer (WDOG)
K10 Sub-Family Reference Manual, Rev. 6, Nov 2011
Freescale Semiconductor, Inc. 517