Skip to content

Commit c1283b0

Browse files
committed
Adjust timing diagrams for debouncing.
Diagrams were still work-in-progress.
1 parent 5a7837b commit c1283b0

4 files changed

Lines changed: 12 additions & 23 deletions

File tree

lib/3rd_party_adapters/FreeRTOS/bouncing-classic-normal.puml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@startuml
2-
title debouncing by post-event filtering
2+
title debouncing by post-event filtering: not too short
33
caption debouncing normal pulse
44
hide time-axis
55
scale 1 as 250 pixels

lib/3rd_party_adapters/FreeRTOS/bouncing-classic-too-short.puml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@startuml
2-
title debouncing by post-event filtering
2+
title debouncing by post-event filtering: too short
33
caption too short pulse leads to wrong state
44
hide time-axis
55
scale 1 as 250 pixels
@@ -12,11 +12,11 @@ note top of B : debounced
1212
B is low
1313
@+1
1414
D is {low,high}
15-
D@+0 <-> @+0.8 : bouncing
15+
D@+0 <-> @+0.9 : bouncing
1616
D -> B : rising edge detected
1717
highlight +0 to +1 : state changes ignored
1818
B is high
19-
@+0.8
19+
@+0.9
2020
D is low
2121
D -> B : state change ignored
2222

lib/3rd_party_adapters/FreeRTOS/bouncing-delay-normal.puml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@startuml
2-
title debouncing based on delay
2+
title debouncing based on delay: not too short
33
caption debouncing normal pulse
44
hide time-axis
55
scale 1 as 250 pixels
@@ -21,6 +21,7 @@ W@+0 <-> @+0.1 : delay
2121
D is high
2222
@+0.1
2323
W is low
24+
W -> D : read state
2425
W -> B : rising edge detected
2526
B is high
2627
@+0.5
@@ -33,6 +34,7 @@ D is low
3334
W@+0 <-> @+0.1 : delay
3435
@+0.1
3536
W is low
37+
W -> D : read state
3638
W -> B : falling edge detected
3739
B is low
3840

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@startuml
2-
title debouncing based on delay
2+
title debouncing based on delay: too short
33
caption too short pulse will be completely ignored
44
hide time-axis
55
scale 1 as 250 pixels
@@ -14,26 +14,13 @@ B is low
1414
@+1
1515
D is {low,high}
1616
W is high
17-
note bottom of D : button pressed
18-
D@+0 <-> @+0.8 : bouncing
19-
@+0.8
20-
W@+0 <-> @+0.1 : delay
21-
D is high
22-
@+0.1
23-
W is low
24-
W -> B : rising edge detected
25-
B is high
26-
@+0.5
27-
note bottom of D : button released
28-
D is {low,high}
29-
W is high
30-
D@+0 <-> @+0.8 : bouncing
31-
@+0.8
17+
D@+0 <-> @+0.9 : bouncing
18+
@+0.9
3219
D is low
3320
W@+0 <-> @+0.1 : delay
3421
@+0.1
22+
W -> D : read state
3523
W is low
36-
W -> B : falling edge detected
37-
B is low
24+
note top of B : state has not been adopted
3825

3926
@enduml

0 commit comments

Comments
 (0)