English
Language : 

K60P100M100SF2RM Datasheet, PDF (533/1809 Pages) Freescale Semiconductor, Inc – K60 Sub-Family Reference Manual
23.8.1 General Guideline
Chapter 23 Watchdog Timer (WDOG)
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
Current Value
Write 1
Write 2
Write 3
Write 4
Write 5
WDOG_REFRESH[15:8]
0xB4
0xB4
0xA6
0xB4
0xB4
0x02
WDOG_REFRESH[7:0]
0x80
0x02
0x02
0x02
0x80
0x80
Sequence value1 or
value2 match
Value2 match
No match
Value1 match
No match
Value2 match.
Sequence complete.
No match
Mismatch
exception
No
No
No
No
No
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
K60 Sub-Family Reference Manual, Rev. 6, Nov 2011
Freescale Semiconductor, Inc.
533