c8051t602 Silicon Laboratories, c8051t602 Datasheet - Page 152

no-image

c8051t602

Manufacturer Part Number
c8051t602
Description
Mixed Signal Otp Eprom Mcu Family
Manufacturer
Silicon Laboratories
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
c8051t602-GS
Manufacturer:
Silicon Labs
Quantity:
135
C8051T600/1/2/3/4/5
17.3.1. Watchdog Timer Operation
While the WDT is enabled:
While the WDT is enabled, writes to the CR bit will not change the PCA counter state; the counter will run
until the WDT is disabled. The PCA counter run control (CR) will read zero if the WDT is enabled but user
software has not enabled the PCA counter. If a match occurs between PCA0CPH2 and PCA0H while the
WDT is enabled, a reset will be generated. To prevent a WDT reset, the WDT may be updated with a write
of any value to PCA0CPH2. Upon a PCA0CPH2 write, PCA0H plus the offset held in PCA0CPL2 is loaded
into PCA0CPH2 (See Figure 17.10).
Note that the 8-bit offset held in PCA0CPH2 is compared to the upper byte of the 16-bit PCA counter. This
offset value is the number of PCA0L overflows before a reset. Up to 256 PCA clocks may pass before the
first PCA0L overflow occurs, depending on the value of the PCA0L when the update is performed. The
total offset is then given (in PCA clocks) by Equation 17.4, where PCA0L is the value of the PCA0L register
at the time of the update.
The WDT reset is generated when PCA0L overflows while there is a match between PCA0CPH2 and
PCA0H. Software may force a WDT reset by writing a ‘1’ to the CCF2 flag (PCA0CN.2) while the WDT is
enabled.
152
PCA counter is forced on.
Writes to PCA0L and PCA0H are not allowed.
PCA clock source bits (CPS2–CPS0) are frozen.
PCA Idle control bit (CIDL) is frozen.
Module 2 is forced into software timer mode.
Writes to the module 2 mode register (PCA0CPM2) are disabled.
PCA0CPL2
C
D
L
I
Figure 17.10. PCA Module 2 with Watchdog Timer Enabled
W
D
E
T
PCA0MD
W
D
C
L
K
Equation 17.4. Watchdog Timer Offset in PCA Clocks
PCA0CPH2
C
P
S
2
Write to
C
P
S
1
Offset
C
P
S
0
E
C
F
8-bit Adder
=
(
256
Enable
Adder
×
PCA0CPL2
Enable
Rev. 0.5
PCA0CPH2
Comparator
PCA0H
8-bit
)
+
(
256 PCA0L
Match
PCA0L Overflow
)
Reset

Related parts for c8051t602