
Software Watchdog Timer (SWT)
PXN20 Microcontroller Reference Manual, Rev. 1
Freescale Semiconductor
20-7
20.3.2.7
SWT Service Key Register (SWT_SK)
The SWT Service Key (SWT_SK) register holds the previous (or initial) service key value. This register
is read-only if either the SWT_CR[HLK] or SWT_CR[SLK] bits are set.
20.4
Functional Description
The SWT is a 32-bit timer designed to enable the system to recover in situations such as software getting
trapped in a loop or if a bus transaction fails to terminate. It includes a a control register (SWT_CR), an
interrupt register (SWT_IR), time-out register (SWT_TO), a window register (SWT_WN), a service
register (SWT_SR), a counter output register (SWT_CO), and a service key register (SWT_SK).
The SWT_CR includes bits to enable the timer, set configuration options, and lock configuration of the
module. The watchdog is enabled by setting the SWT_CR[WEN] bit. The reset value of the
SWT_CR[WEN] bit is 1. Since the reset value of this bit is 1, the watchdog starts operation automatically
after reset is released. Some devices can be configured to clear this bit automatically during the boot
process.
Table 20-7. SWT_CO Register Field Descriptions
Field
Description
CNT
Watchdog Count. When the watchdog is disabled (SWT_CR[WEN] = 0) this field shows the value of the internal
down counter. When the watchdog is enabled the value of this field is 0x0000_0000. Values in this field can lag
behind the internal counter value for as many as 6 system plus 8 counter clock cycles. Therefore, the value read from
this field immediately after disabling the watchdog may be higher than the actual value of the internal counter.
Offset: SW 0x0018
Access: User read/write
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
R
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
W
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
R
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
W
SK
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Figure 20-7. SWT Service Register (SWT_SR)
Table 20-8. SWT_SR Field Descriptions
Field
Description
SK
Service Key.This field is the previous (or initial) service key value used in keyed service mode. If SWT_CR[KEY] is
set, the next key value to be written to the SWT_SR is (17*SK+3) mod 2
16
.
Summary of Contents for PXN2020
Page 1: ...PXN20 Microcontroller Reference Manual Devices Supported PXN2020 PXN2120 PXN20RM Rev 1 06 2011...
Page 42: ...PXN20 Microcontroller Reference Manual Rev 1 lxiv Freescale Semiconductor...
Page 64: ...Introduction PXN20 Microcontroller Reference Manual Rev 1 1 22 Freescale Semiconductor...
Page 112: ...Signal Description PXN20 Microcontroller Reference Manual Rev 1 3 44 Freescale Semiconductor...
Page 118: ...Resets PXN20 Microcontroller Reference Manual Rev 1 4 6 Freescale Semiconductor...
Page 372: ...e200z6 Core Z6 PXN20 Microcontroller Reference Manual Rev 1 13 8 Freescale Semiconductor...
Page 412: ...e200z0 Core Z0 PXN20 Microcontroller Reference Manual Rev 1 14 14 Freescale Semiconductor...
Page 821: ...Media Local Bus MLB PXN20 Microcontroller Reference Manual Rev 1 Freescale Semiconductor 27 49...
Page 822: ...Media Local Bus MLB PXN20 Microcontroller Reference Manual Rev 1 27 50 Freescale Semiconductor...
Page 1376: ...Memory Map PXN20 Microcontroller Reference Manual Rev 1 A 118 Freescale Semiconductor...