You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/info.md
+16-8Lines changed: 16 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,13 +11,21 @@ You can also include images in this folder and reference them in the markdown. E
11
11
12
12
This is a watchdog timer with a 32-bit counter and optional window feature.
13
13
14
-
WINDOW_CLOSE is how many cycles until the watchdog timer pulls the output interrupt high either low or high respectively. WINDOW_OPEN < WINDOW_CLOSE. WINDOW_OPEN can be 0.
14
+
WINDOW_CLOSE is how many cycles until the watchdog timer triggers an interrupt.
15
+
WINDOW_OPEN must be less than WINDOW_CLOSE. WINDOW_OPEN can be 0.
15
16
16
-
Remember to ENABLE the timer after setting WINDOW_CLOSE if you want the watchdog to start working.
17
+
Remember to ENABLE the timer after setting WINDOW_CLOSE if you want the watchdog to start.
17
18
18
-
out[0] is an interrupt line pulled high
19
-
out[1] is an interrupt line pulled low
20
-
out[2] is a line pulled high for 1 cycle when PAT is set 1
19
+
You can cancel a timer by setting ENABLE to 0. This can be done either before or after the timer has tripped.
20
+
21
+
`out[0]` is an interrupt line pulled high
22
+
`out[1]` is an interrupt line pulled low
23
+
`out[2]` is a line pulled high for 1 cycle when PAT is set 1
24
+
`out[3]` is high if the watchdog is enabled
25
+
`out[4]` is high if we're after the Start time of the window.
26
+
`out[5]` is high if we're after the End time of the window.
27
+
`out[6]` is unused
28
+
`out[7]` is unused
21
29
22
30
## Register map
23
31
@@ -36,8 +44,8 @@ The following registers are used to interact with the watchdog
36
44
Set `WINDOW_CLOSE` to 100
37
45
Set `ENABLE` to 1
38
46
Wait 101 cycles
39
-
`out[0]` should be high until reset
40
-
`out[1]` should be low until reset
47
+
`out[0]` should be high
48
+
`out[1]` should be low
41
49
42
50
Set WINDOW_CLOSE to 100
43
51
Set ENABLE to 1
@@ -50,7 +58,7 @@ The watchdog should not have triggered so check `out[0]` and `out[1]`
50
58
51
59
Notes:
52
60
53
-
*You can't configure the window open and close while the watchdog is enabled.
61
+
You can set `WINDOW_OPEN` and `WINDOW_CLOSE` while the timer is running but that's untested and thus could result in a rip in the space time continuum. Set `ENABLE` to 0 first to safely change the window parameters with predictable behavior.
0 commit comments