Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #482532

Re: Signals and Systems for Dummies

Subject Re: Signals and Systems for Dummies
Newsgroups sci.electronics.design
References (1 earlier) <osg5k1$33f$1@dont-email.me> <ojNGB.9077$AK1.4547@fx28.iad> <oskgps$h3b$1@dont-email.me> <t3lHB.29626$Jl3.28321@fx10.am4> <oskosq$clv$1@dont-email.me>
From Chris Jones <lugnut808@spam.yahoo.com>
Message-ID <t4mHB.41811$W84.24492@fx42.am4> (permalink)
Organization usenet-news.net
Date 2017-10-24 00:24 +1100

Show all headers | View raw


On 23/10/2017 23:55, David Brown wrote:
> On 23/10/17 14:15, Chris Jones wrote:
>> On 23/10/2017 21:37, David Brown wrote:
[...]
>>> Of course interrupt jitter can be a problem on RISC processors.  How
>>> much of a problem depends on your needs, and on the cpu.  On some AVRs
>>> instructions can take as long as 7 cycles (like far calls on the big
>>> devices).  On a small ARMs (Cortex-M), such as the OP's, the variation
>>> in the interrupt response from the cpu is going to be small and
>>> deterministic - but it still varies.
>>
>> I have found on some PICs that there is not even one cycle of jitter in
>> the interrupt timing (with one source of interrupts from a timer, and
>> never disabling them). Perhaps I am lucky and the compiler avoids using
>> some multi-cycle instruction, or perhaps it is always like that.
>>
> 
> No, I think you are simply mistaken.  On all the PICs I have used (which
> is a few types, but admittedly long ago), most instructions take one
> instruction cycle (4 cpu clock cycles) - but there are some that take 2
> or perhaps more.  Typically call and return, especially "far" versions
> (for the PICs with paged memory), take a little longer.  There is very
> little jitter, certainly, but not quite zero.

I'll check this again, when I have time. It will either be no cycles of 
jitter, or it will be sometimes at least one cycle of jitter. It should 
not be half a cycle, pi-and-a-seventh cycles or something weird like 
that. Therefore I should be able to see any jitter, if I look at a pin 
that goes high at the start of each interrupt, sampled with enough 
timing resolution that I am sure that I can see one cycle of jitter. Of 
course I need to capture enough cycles that I would see some interrupts 
during each type of instruction that could be running when the timer 
causes an interrupt.

FWIW, the datasheet of the PIC18F2XK20/4XK20 says:
"For external interrupt events, such as the INT pins or the PORTB 
interrupt-on-change, the interrupt latency will be three to four 
instruction cycles. The exact latency is the same for one-cycle or 
two-cycle instructions."

Perhaps they pad out the time of one cycle instructions so that it is 
just as slow as interrupting a two-cycle instruction.

I'm not sure why they specifically mention that this applies to external 
interrupt sources and they don't specify the latency for internal timer 
interrupts. I wonder if there are chains of synchroniser D flipflops on 
the input pins (to reduce the probability of metastability) that add 
more latency for the external interrupt sources, and that this is why 
then mentioned them specifically.

Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-21 10:03 -0700
  Re: Signals and Systems for Dummies rickman <gnuarm@gmail.com> - 2017-10-21 15:01 -0400
    Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-21 15:34 -0400
      Re: Signals and Systems for Dummies rickman <gnuarm@gmail.com> - 2017-10-21 17:12 -0400
        Re: Signals and Systems for Dummies Klaus Kragelund <klauskvik@hotmail.com> - 2017-10-21 14:19 -0700
          Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-21 15:33 -0700
            Re: Signals and Systems for Dummies rickman <gnuarm@gmail.com> - 2017-10-21 19:50 -0400
            Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-23 12:58 +0200
              Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-23 10:08 -0400
                Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-23 16:44 +0200
                Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-23 09:26 -0700
                Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-23 14:07 -0400
                Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-23 19:30 -0700
                Re: Signals and Systems for Dummies rickman <gnuarm@gmail.com> - 2017-10-23 22:50 -0400
                Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-23 23:43 -0400
                Re: Signals and Systems for Dummies rickman <gnuarm@gmail.com> - 2017-10-23 23:53 -0400
                Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-23 21:50 -0700
                Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-23 08:57 -0700
                Re: Signals and Systems for Dummies antispam@math.uni.wroc.pl - 2017-10-23 16:45 +0000
                Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-23 10:09 -0700
                Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-23 18:25 +0100
                Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-24 09:44 +0000
                Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-24 11:26 +0100
                Re: Signals and Systems for Dummies rickman <gnuarm@gmail.com> - 2017-10-24 21:55 -0400
                Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-25 09:03 +0100
                Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-25 09:11 -0700
                Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-25 18:22 +0100
                Re: Signals and Systems for Dummies rickman <gnuarm@gmail.com> - 2017-10-27 18:38 -0400
                Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-28 01:05 +0100
                Re: Signals and Systems for Dummies rickman <gnuarm@gmail.com> - 2017-10-27 20:26 -0400
                Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-28 09:07 +0100
                Re: Signals and Systems for Dummies upsidedown@downunder.com - 2017-10-28 12:41 +0300
                Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-23 14:31 -0400
                Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-24 09:43 +0000
                Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-24 12:13 +0200
                Re: Signals and Systems for Dummies Jan Panteltje <pNaonStpealmtje@yahoo.com> - 2017-10-24 10:40 +0000
                Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-24 13:02 +0200
                Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-24 08:41 -0400
                Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-24 13:09 +0000
                Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-24 09:58 -0400
                Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-24 15:16 +0000
                Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-24 11:31 -0400
                Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-24 16:46 +0000
                Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-24 15:46 -0400
                Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-25 12:01 +0000
                Re: Signals and Systems for Dummies krw@notreal.com - 2017-10-25 20:28 -0400
                Re: Signals and Systems for Dummies Michael A Terrell <mike.terrell@earthlink.net> - 2017-10-25 20:52 -0400
                Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-24 10:04 -0400
                Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-24 15:16 +0000
                Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-24 16:25 +0200
                Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-24 11:14 -0400
                Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-24 16:46 +0000
                Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-24 16:02 -0400
                Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-24 16:20 -0400
                Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-24 16:28 -0400
                Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-25 12:01 +0000
                Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-24 15:16 +0000
                Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-24 11:28 -0400
                Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-25 10:33 +0200
                Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-24 13:09 +0000
                Re: Signals and Systems for Dummies rickman <gnuarm@gmail.com> - 2017-10-23 22:20 -0400
              Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-23 07:55 -0700
                Re: Signals and Systems for Dummies Klaus Kragelund <klauskvik@hotmail.com> - 2017-10-23 08:54 -0700
                Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-23 09:35 -0700
                Re: Signals and Systems for Dummies rickman <gnuarm@gmail.com> - 2017-10-23 22:25 -0400
                Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-24 10:41 +0200
                Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-24 10:23 +0100
                Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-24 02:35 -0700
                Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-24 10:51 +0100
                Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-24 12:38 +0200
                Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-24 12:03 +0100
                Re: Signals and Systems for Dummies Clifford Heath <no.spam@please.net> - 2017-10-21 10:53 +1100
                Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-25 09:04 +0100
                Re: Signals and Systems for Dummies Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2017-10-25 10:16 -0400
                Re: Signals and Systems for Dummies Clifford Heath <no.spam@please.net> - 2017-10-22 09:13 +1100
                Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-26 08:41 +0100
                Re: Signals and Systems for Dummies pcdhobbs@gmail.com - 2017-10-26 02:24 -0700
                Re: Signals and Systems for Dummies John Larkin <jjlarkin@highland_snip_technology.com> - 2017-10-26 10:30 -0700
                Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-24 12:22 +0200
                Re: Signals and Systems for Dummies "Tom Del Rosso" <fizzbintuesday@that-google-mail-domain.com> - 2017-10-25 04:05 -0400
              Re: Signals and Systems for Dummies Jasen Betts <jasen@xnet.co.nz> - 2017-10-24 18:52 +0000
        Re: Signals and Systems for Dummies Piotr Wyderski <peter.pan@neverland.mil> - 2017-10-22 11:17 +0200
          Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-22 09:36 -0700
        Re: Signals and Systems for Dummies Klaus Kragelund <klauskvik@hotmail.com> - 2017-10-22 04:25 -0700
          Re: Signals and Systems for Dummies rickman <gnuarm@gmail.com> - 2017-10-22 18:50 -0400
      Re: Signals and Systems for Dummies TTman <kraken.sankey@gmail.com> - 2017-10-21 23:00 +0100
        Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-22 08:19 +0000
      Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-23 12:37 +0200
        Re: Signals and Systems for Dummies Chris Jones <lugnut808@spam.yahoo.com> - 2017-10-23 23:15 +1100
          Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-23 14:55 +0200
            Re: Signals and Systems for Dummies Chris Jones <lugnut808@spam.yahoo.com> - 2017-10-24 00:24 +1100
              Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-23 15:54 +0200
                Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-23 16:24 +0000
                Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-23 17:43 +0100
                Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-23 17:26 +0000
                Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-23 18:40 +0100
                Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-23 17:46 +0000
                Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-23 19:01 +0100
                Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-24 11:01 +0200
                Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-24 10:36 +0100
                Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-24 12:57 +0200
                Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-24 13:09 +0100
                Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-24 14:38 +0200
                Re: Signals and Systems for Dummies Chris Jones <lugnut808@spam.yahoo.com> - 2017-10-25 16:34 +1100
                Re: Signals and Systems for Dummies kevin93 <kevin@whitedigs.com> - 2017-10-25 08:38 -0700
          Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-23 16:24 +0000
            Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-23 09:39 -0700
        Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-23 09:00 -0700
          Re: Signals and Systems for Dummies bill.sloman@ieee.org - 2017-10-24 20:45 -0700
        Re: Signals and Systems for Dummies Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2017-10-23 13:02 -0400
          Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-23 10:05 -0700
          Re: Signals and Systems for Dummies John Larkin <jjlarkin@highland_snip_technology.com> - 2017-10-23 11:18 -0700
            Re: Signals and Systems for Dummies Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-10-23 12:22 -0700
          Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-23 14:43 -0400
            Re: Signals and Systems for Dummies John Larkin <jjlarkin@highland_snip_technology.com> - 2017-10-23 12:05 -0700
              Re: Signals and Systems for Dummies Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-10-23 12:28 -0700
              Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-23 15:32 -0400
                Re: Signals and Systems for Dummies Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-10-23 12:46 -0700
                Re: Signals and Systems for Dummies John Larkin <jjlarkin@highland_snip_technology.com> - 2017-10-23 15:28 -0700
              Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-23 15:37 -0400
              Re: Signals and Systems for Dummies Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2017-10-23 15:43 -0400
          Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-24 11:10 +0200
            Re: Signals and Systems for Dummies Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-10-24 10:16 -0700
              Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-25 10:43 +0200
    Re: Signals and Systems for Dummies upsidedown@downunder.com - 2017-10-22 15:40 +0300
      Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-23 13:09 +0200
        Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-23 16:24 +0000
          Re: Signals and Systems for Dummies bitrex <bitrex@de.lete.earthlink.net> - 2017-10-23 15:44 -0400
            Re: Signals and Systems for Dummies Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-24 09:43 +0000
        Re: Signals and Systems for Dummies Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2017-10-23 13:21 -0400
          Re: Signals and Systems for Dummies John Devereux <john@devereux.me.uk> - 2017-10-23 19:40 +0100
            Re: Signals and Systems for Dummies Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2017-10-23 15:46 -0400
              Re: Signals and Systems for Dummies Klaus Kragelund <klauskvik@hotmail.com> - 2017-10-23 18:10 -0700
              Re: Signals and Systems for Dummies John Devereux <john@devereux.me.uk> - 2017-10-26 10:41 +0100
                Re: Signals and Systems for Dummies Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2017-10-26 10:52 -0400
                Re: Signals and Systems for Dummies Clifford Heath <no.spam@please.net> - 2017-10-23 08:51 +1100
                Re: Signals and Systems for Dummies pcdhobbs@gmail.com - 2017-10-26 16:03 -0700
                Re: Signals and Systems for Dummies Clifford Heath <no.spam@please.net> - 2017-10-27 10:14 +1100
                Re: Signals and Systems for Dummies John Devereux <john@devereux.me.uk> - 2017-10-27 08:28 +0100
                Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-27 10:46 +0200
                Re: Signals and Systems for Dummies Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2017-11-08 21:19 +0200
            Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-24 11:19 +0200
      Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-23 09:14 -0700
    Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-22 13:54 +0100
      Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-22 09:43 -0700
        Re: Signals and Systems for Dummies Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-22 18:11 +0100
          Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-22 10:33 -0700
            Re: Signals and Systems for Dummies John Devereux <john@devereux.me.uk> - 2017-10-22 19:09 +0100
            Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-23 13:16 +0200
          Re: Signals and Systems for Dummies Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-10-22 10:33 -0700
            Re: Signals and Systems for Dummies boB <boB@K7IQ.com> - 2017-10-22 15:09 -0700
              Re: Signals and Systems for Dummies Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-10-22 16:07 -0700
            Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-22 15:49 -0700
          Re: Signals and Systems for Dummies David Brown <david.brown@hesbynett.no> - 2017-10-23 13:14 +0200
        Re: Signals and Systems for Dummies Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-10-22 16:11 -0700
  Re: Signals and Systems for Dummies bloggs.fredbloggs.fred@gmail.com - 2017-10-24 07:41 -0700
    Re: Signals and Systems for Dummies John Larkin <jjlarkin@highlandtechnology.com> - 2017-10-24 08:41 -0700

csiph-web