Re: Weird /KERNAL line on old boards

From: silverdr_at_wfmh.org.pl
Date: Tue, 10 Jul 2018 22:19:40 +0200
Message-Id: <1035F487-5FCD-4C8E-98A8-6D467E2B61A2@wfmh.org.pl>
> On 2018-07-10, at 20:43, Jim Brain <brain@jbrain.com> wrote:
> 
>>>> Or require a longer _KERNAL pulse than this false pulse?
>>> How? I use this pulse to interrupt an attiny85. Even if I check for
>>> the signal again in the interrupt it's all open to every kind of race
>>> conditions since this false signal pops up quite randomly (unless
>>> tamed) before and/or after intended access.
>> As long as the assumption is that valid pulse is always longer than the longest spurious one, you can use the "software debouncing" - similar to what is sometimes used to debounce relatively fast switches, without adding significant capacitance, Schmitt triggers, etc. I used it more than once with good results.
> I think it will require moving from an interrupt driven approach on the AVR (used now), to a polling approach:

Depends on the IRQ latency there but I am afraid in this situation this may be required.

> while(PINC & _BV(PIN5)) {} // or whatever
> if(!(PINC & _BV(PIN5)) {
>  // real signal.
> }
> 
> An instruction on the 16MHz AVR takes at least 62.5nS, so the next comparison will push you beyond the 42nS issue.

Which further simplifies things greatly. What would be the longest for the above?

-- 
SD! - http://e4aws.silverdr.com/
Received on 2018-07-10 23:00:04

Archive generated by hypermail 2.2.0.