Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

The generation of random numbers is too important to be left to chance.


devel / comp.lang.forth / Re: SR Latch Eliminates SPST Debounce Delay

SubjectAuthor
* SR Latch Eliminates SPST Debounce DelayM. Simon
+- Re: SR Latch Eliminates SPST Debounce Delaydxf
+- Re: SR Latch Eliminates SPST Debounce Delaydxf
`* Re: SR Latch Eliminates SPST Debounce Delayminforth
 `* Re: SR Latch Eliminates SPST Debounce DelayM. Simon
  `* Re: SR Latch Eliminates SPST Debounce DelayMarcel Hendrix
   +- Re: SR Latch Eliminates SPST Debounce DelayM. Simon
   `- Re: SR Latch Eliminates SPST Debounce DelayM. Simon

1
SR Latch Eliminates SPST Debounce Delay

<c2b00acc-05b3-4f5f-af37-38406de5b2abn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24732&group=comp.lang.forth#24732

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:620a:2296:b0:774:224e:23f0 with SMTP id o22-20020a05620a229600b00774224e23f0mr62573qkh.9.1696022692689;
Fri, 29 Sep 2023 14:24:52 -0700 (PDT)
X-Received: by 2002:a05:6870:cb9a:b0:1dd:2a44:67b6 with SMTP id
ov26-20020a056870cb9a00b001dd2a4467b6mr1734229oab.5.1696022692430; Fri, 29
Sep 2023 14:24:52 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Fri, 29 Sep 2023 14:24:51 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2601:247:c400:bab0:19ef:cd1e:1d7b:ef7f;
posting-account=1wX5qwoAAAD5xSfkOmHj2PzsbDj999Bs
NNTP-Posting-Host: 2601:247:c400:bab0:19ef:cd1e:1d7b:ef7f
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c2b00acc-05b3-4f5f-af37-38406de5b2abn@googlegroups.com>
Subject: SR Latch Eliminates SPST Debounce Delay
From: msimon6808@yahoo.com (M. Simon)
Injection-Date: Fri, 29 Sep 2023 21:24:52 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1280
 by: M. Simon - Fri, 29 Sep 2023 21:24 UTC

The SR Latch is well known for doing this for an SPDT. I make it work for the much more common and single input wire SPST.

Eliminate SPST Debounce Delay with an SR Latch
https://spacetimepro.blogspot.com/2023/09/switch-debouncer.html

Re: SR Latch Eliminates SPST Debounce Delay

<uf87ss$mkgd$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24735&group=comp.lang.forth#24735

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dxforth@gmail.com (dxf)
Newsgroups: comp.lang.forth
Subject: Re: SR Latch Eliminates SPST Debounce Delay
Date: Sat, 30 Sep 2023 14:23:55 +1000
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <uf87ss$mkgd$1@dont-email.me>
References: <c2b00acc-05b3-4f5f-af37-38406de5b2abn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 30 Sep 2023 04:23:57 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="837c40b2d091cc96a3c31d05a08d4a93";
logging-data="741901"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19rQKqAgOT8mSt7kvgQwp+6"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:eEFM9mosOdGOlC4Wmb3VO2ycuUo=
In-Reply-To: <c2b00acc-05b3-4f5f-af37-38406de5b2abn@googlegroups.com>
Content-Language: en-GB
 by: dxf - Sat, 30 Sep 2023 04:23 UTC

On 30/09/2023 7:24 am, M. Simon wrote:
> The SR Latch is well known for doing this for an SPDT. I make it work for the much more common and single input wire SPST.
>
> Eliminate SPST Debounce Delay with an SR Latch
> https://spacetimepro.blogspot.com/2023/09/switch-debouncer.html

Didn't look into the logic but the redundant jumps were easy enough
to eliminate.

: SWITCH-STATE? ( what is the current state of the switch ? "1" if open or opening "0" if closed or closing )

Switch-State @ ( - SW-State )
Switch-Debouncing? ( - SW-State t/f )
IF EXIT THEN
Switch-Port @ Switch-Mask AND DUP Switch-In ! ( - SW-State SW-Port )
10uSec-Wait
Switch-Port @ Switch-Mask AND ( - SW-State SW-Port SW-Port )
10uSec-Wait
Switch-Port @ Switch-Mask AND ( - SW-State SW-Port SW-Port SW-Port )
Three=? ( - SW-State t/f )
IF
Switch-In @
=
IF
Switch-State @ EXIT
THEN
Switch-In @ DUP Switch-State !
Start-Debouncing
THEN
;

Re: SR Latch Eliminates SPST Debounce Delay

<uf87uk$mv2r$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24736&group=comp.lang.forth#24736

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dxforth@gmail.com (dxf)
Newsgroups: comp.lang.forth
Subject: Re: SR Latch Eliminates SPST Debounce Delay
Date: Sat, 30 Sep 2023 14:24:51 +1000
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <uf87uk$mv2r$1@dont-email.me>
References: <c2b00acc-05b3-4f5f-af37-38406de5b2abn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 30 Sep 2023 04:24:52 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="837c40b2d091cc96a3c31d05a08d4a93";
logging-data="752731"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18gE9vV3hp5AzcBU7v2IlX5"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:VIu9+2fm8Lnuj2qKew3B7oOruew=
Content-Language: en-GB
In-Reply-To: <c2b00acc-05b3-4f5f-af37-38406de5b2abn@googlegroups.com>
 by: dxf - Sat, 30 Sep 2023 04:24 UTC

On 30/09/2023 7:24 am, M. Simon wrote:
> The SR Latch is well known for doing this for an SPDT. I make it work for the much more common and single input wire SPST.
>
> Eliminate SPST Debounce Delay with an SR Latch
> https://spacetimepro.blogspot.com/2023/09/switch-debouncer.html

Didn't look into the logic but the redundant jumps were easy enough
to eliminate.

: SWITCH-STATE? ( what is the current state of the switch ? "1" if open or opening "0" if closed or closing )

Switch-State @ ( - SW-State )
Switch-Debouncing? ( - SW-State t/f )
IF EXIT THEN
Switch-Port @ Switch-Mask AND DUP Switch-In ! ( - SW-State SW-Port )
10uSec-Wait
Switch-Port @ Switch-Mask AND ( - SW-State SW-Port SW-Port )
10uSec-Wait
Switch-Port @ Switch-Mask AND ( - SW-State SW-Port SW-Port SW-Port )
Three=? ( - SW-State t/f )
IF
Switch-In @
=
IF
Switch-State @ EXIT
THEN
Switch-In @ DUP Switch-State !
Start-Debouncing
THEN
;

Re: SR Latch Eliminates SPST Debounce Delay

<70ee9240-9345-4792-99e6-9371ae02f664n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24737&group=comp.lang.forth#24737

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:620a:a0f:b0:76d:8856:b878 with SMTP id i15-20020a05620a0a0f00b0076d8856b878mr84315qka.5.1696053935620;
Fri, 29 Sep 2023 23:05:35 -0700 (PDT)
X-Received: by 2002:a05:6830:6a03:b0:6c6:4473:6ef8 with SMTP id
cz3-20020a0568306a0300b006c644736ef8mr764525otb.0.1696053935198; Fri, 29 Sep
2023 23:05:35 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Fri, 29 Sep 2023 23:05:34 -0700 (PDT)
In-Reply-To: <c2b00acc-05b3-4f5f-af37-38406de5b2abn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2003:f7:1f1b:4238:3059:95b5:694a:65c2;
posting-account=AqNUYgoAAADmkK2pN-RKms8sww57W0Iw
NNTP-Posting-Host: 2003:f7:1f1b:4238:3059:95b5:694a:65c2
References: <c2b00acc-05b3-4f5f-af37-38406de5b2abn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <70ee9240-9345-4792-99e6-9371ae02f664n@googlegroups.com>
Subject: Re: SR Latch Eliminates SPST Debounce Delay
From: minforth@arcor.de (minforth)
Injection-Date: Sat, 30 Sep 2023 06:05:35 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1540
 by: minforth - Sat, 30 Sep 2023 06:05 UTC

M. Simon schrieb am Freitag, 29. September 2023 um 23:24:54 UTC+2:
> The SR Latch is well known for doing this for an SPDT. I make it work for the much more common and single input wire SPST.
>
> Eliminate SPST Debounce Delay with an SR Latch
> https://spacetimepro.blogspot.com/2023/09/switch-debouncer.html

Try a zener diode, perhaps with a capacitor.

Re: SR Latch Eliminates SPST Debounce Delay

<ef6a32c9-3e95-4485-80bc-6518db94f7d6n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24750&group=comp.lang.forth#24750

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ac8:5bc5:0:b0:417:9e0f:fb30 with SMTP id b5-20020ac85bc5000000b004179e0ffb30mr103940qtb.12.1696082602935;
Sat, 30 Sep 2023 07:03:22 -0700 (PDT)
X-Received: by 2002:a05:6871:6a95:b0:1e1:46c:9ae2 with SMTP id
zf21-20020a0568716a9500b001e1046c9ae2mr2730495oab.2.1696082602656; Sat, 30
Sep 2023 07:03:22 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Sat, 30 Sep 2023 07:03:22 -0700 (PDT)
In-Reply-To: <70ee9240-9345-4792-99e6-9371ae02f664n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:247:c400:bab0:456a:d51b:30aa:4e7;
posting-account=1wX5qwoAAAD5xSfkOmHj2PzsbDj999Bs
NNTP-Posting-Host: 2601:247:c400:bab0:456a:d51b:30aa:4e7
References: <c2b00acc-05b3-4f5f-af37-38406de5b2abn@googlegroups.com> <70ee9240-9345-4792-99e6-9371ae02f664n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ef6a32c9-3e95-4485-80bc-6518db94f7d6n@googlegroups.com>
Subject: Re: SR Latch Eliminates SPST Debounce Delay
From: msimon6808@yahoo.com (M. Simon)
Injection-Date: Sat, 30 Sep 2023 14:03:22 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2049
 by: M. Simon - Sat, 30 Sep 2023 14:03 UTC

> > Eliminate SPST Debounce Delay with an SR Latch
> > https://spacetimepro.blogspot.com/2023/09/switch-debouncer.html
> Try a zener diode, perhaps with a capacitor.

You can't get zero delay with a zener and a capacitor. With this circuit you can.
Deglitch is separated from debounce. No deglitch? No delay.
It also explains (in schematic form) how to write SPST debounce software.
Does a zener and a capacitor do that? Well brute force maybe. Delay until there is no doubt.
A day or a day and a half. More is better. Them mechanics is pesky.

You are essentially correct though. This circuit is too expensive to be used everywhere unless it is done on chips.
Which is what I expect will happen. Free upgrade is a very attractive offer.
I also expect this to be the standard for software.

Re: SR Latch Eliminates SPST Debounce Delay

<bbab81b0-f0d9-466a-a0da-f1b9c241bfa8n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24751&group=comp.lang.forth#24751

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ad4:55ed:0:b0:655:d0b0:59e7 with SMTP id bu13-20020ad455ed000000b00655d0b059e7mr103527qvb.3.1696093388374;
Sat, 30 Sep 2023 10:03:08 -0700 (PDT)
X-Received: by 2002:a05:6808:2385:b0:3ad:adea:3f05 with SMTP id
bp5-20020a056808238500b003adadea3f05mr3413262oib.10.1696093388142; Sat, 30
Sep 2023 10:03:08 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Sat, 30 Sep 2023 10:03:07 -0700 (PDT)
In-Reply-To: <ef6a32c9-3e95-4485-80bc-6518db94f7d6n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:1c05:2f18:6d00:8f9f:1384:8637:5260;
posting-account=-JQ2RQoAAAB6B5tcBTSdvOqrD1HpT_Rk
NNTP-Posting-Host: 2001:1c05:2f18:6d00:8f9f:1384:8637:5260
References: <c2b00acc-05b3-4f5f-af37-38406de5b2abn@googlegroups.com>
<70ee9240-9345-4792-99e6-9371ae02f664n@googlegroups.com> <ef6a32c9-3e95-4485-80bc-6518db94f7d6n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bbab81b0-f0d9-466a-a0da-f1b9c241bfa8n@googlegroups.com>
Subject: Re: SR Latch Eliminates SPST Debounce Delay
From: mhx@iae.nl (Marcel Hendrix)
Injection-Date: Sat, 30 Sep 2023 17:03:08 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1689
 by: Marcel Hendrix - Sat, 30 Sep 2023 17:03 UTC

On Saturday, September 30, 2023 at 4:03:24 PM UTC+2, M. Simon wrote:
> > > Eliminate SPST Debounce Delay with an SR Latch
[..]
> You can't get zero delay with a zener and a capacitor. With this circuit you can.
> Deglitch is separated from debounce. No deglitch? No delay.

Isn't this just a state-machine?

-marcel

Re: SR Latch Eliminates SPST Debounce Delay

<9508d160-2fbd-4c3b-9deb-e2bdf226972fn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24752&group=comp.lang.forth#24752

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ad4:58ed:0:b0:656:160d:370 with SMTP id di13-20020ad458ed000000b00656160d0370mr101278qvb.8.1696100415543;
Sat, 30 Sep 2023 12:00:15 -0700 (PDT)
X-Received: by 2002:a05:6870:a886:b0:1d1:3ff8:9f80 with SMTP id
eb6-20020a056870a88600b001d13ff89f80mr3116753oab.8.1696100415315; Sat, 30 Sep
2023 12:00:15 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Sat, 30 Sep 2023 12:00:14 -0700 (PDT)
In-Reply-To: <bbab81b0-f0d9-466a-a0da-f1b9c241bfa8n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:247:c400:bab0:ed46:ede4:9950:57e8;
posting-account=1wX5qwoAAAD5xSfkOmHj2PzsbDj999Bs
NNTP-Posting-Host: 2601:247:c400:bab0:ed46:ede4:9950:57e8
References: <c2b00acc-05b3-4f5f-af37-38406de5b2abn@googlegroups.com>
<70ee9240-9345-4792-99e6-9371ae02f664n@googlegroups.com> <ef6a32c9-3e95-4485-80bc-6518db94f7d6n@googlegroups.com>
<bbab81b0-f0d9-466a-a0da-f1b9c241bfa8n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9508d160-2fbd-4c3b-9deb-e2bdf226972fn@googlegroups.com>
Subject: Re: SR Latch Eliminates SPST Debounce Delay
From: msimon6808@yahoo.com (M. Simon)
Injection-Date: Sat, 30 Sep 2023 19:00:15 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2328
 by: M. Simon - Sat, 30 Sep 2023 19:00 UTC

On Saturday, September 30, 2023 at 5:03:10 PM UTC, Marcel Hendrix wrote:
> On Saturday, September 30, 2023 at 4:03:24 PM UTC+2, M. Simon wrote:
> > > > Eliminate SPST Debounce Delay with an SR Latch
> [..]
> > You can't get zero delay with a zener and a capacitor. With this circuit you can.
> > Deglitch is separated from debounce. No deglitch? No delay.
> Isn't this just a state-machine?
>
> -marcel

Yes of course. The interesting thing about it is that the SPDT SR Latch Debounce has been known for decades and especially since Max Maxfield's articles 3 1/2 years ago. Yet in all that time no one ever thought to apply the principles to an SPST. Within hours of understanding the SPDT SR circuit, I was working on this SPST version. It completely explains SPST debounce with nothing extraneous added. Software gets improved from the hardware example.

Re: SR Latch Eliminates SPST Debounce Delay

<75587072-1766-499f-8a1b-913ee1c7d8c4n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24753&group=comp.lang.forth#24753

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:622a:1a8a:b0:417:971e:ab19 with SMTP id s10-20020a05622a1a8a00b00417971eab19mr98612qtc.12.1696101470873;
Sat, 30 Sep 2023 12:17:50 -0700 (PDT)
X-Received: by 2002:a05:6870:3a06:b0:1e1:683:7c59 with SMTP id
du6-20020a0568703a0600b001e106837c59mr3210373oab.1.1696101470229; Sat, 30 Sep
2023 12:17:50 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Sat, 30 Sep 2023 12:17:49 -0700 (PDT)
In-Reply-To: <bbab81b0-f0d9-466a-a0da-f1b9c241bfa8n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:247:c400:bab0:ed46:ede4:9950:57e8;
posting-account=1wX5qwoAAAD5xSfkOmHj2PzsbDj999Bs
NNTP-Posting-Host: 2601:247:c400:bab0:ed46:ede4:9950:57e8
References: <c2b00acc-05b3-4f5f-af37-38406de5b2abn@googlegroups.com>
<70ee9240-9345-4792-99e6-9371ae02f664n@googlegroups.com> <ef6a32c9-3e95-4485-80bc-6518db94f7d6n@googlegroups.com>
<bbab81b0-f0d9-466a-a0da-f1b9c241bfa8n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <75587072-1766-499f-8a1b-913ee1c7d8c4n@googlegroups.com>
Subject: Re: SR Latch Eliminates SPST Debounce Delay
From: msimon6808@yahoo.com (M. Simon)
Injection-Date: Sat, 30 Sep 2023 19:17:50 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1746
 by: M. Simon - Sat, 30 Sep 2023 19:17 UTC

On Saturday, September 30, 2023 at 5:03:10 PM UTC, Marcel Hendrix wrote:

> Isn't this just a state-machine?
>
> -marcel

I can see chip makers offering this as an input option now that the circuit is becoming known. Or chips full of debouncers.
Zero IP cost.
Simon De Bouncer is my friend. LOL.

MSimon

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor