News:

  • August 17, 2026, 11:01:43 PM

Login with username, password and session length

Author Topic: How to get best repeatability on input response  (Read 11995 times)

ATU

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 2126
  • YKPAIHA
    • ATU, Inc.
How to get best repeatability on input response
« on: February 01, 2018, 09:09:03 AM »
if I wanted to trigger an output on the response of an input after a desired period of time in the order of microseconds, what would be the best approach to get the highest repeatability?  I was thinking either using an interrupt, wait a period of time and then fire the output or using the highspeed timer function tied to a table driven output. I need to be able to vary that time based on transmitted data or inputs.  Trying to get a comfortable feeling for what I could expect to base my calculations on for a job.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6172
  • Yes Pinky, Do-more will control the world!
Re: How to get best repeatability on input response
« Reply #1 on: February 01, 2018, 10:44:17 AM »
I'd use a high speed timer and a tab;e driven output. Should be good to 1us, every time.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

ATU

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 2126
  • YKPAIHA
    • ATU, Inc.
Re: How to get best repeatability on input response
« Reply #2 on: February 01, 2018, 11:02:51 AM »
Wow!   :o

pbw

  • Hero Member
  • *****
  • Posts: 127
Re: How to get best repeatability on input response
« Reply #3 on: February 01, 2018, 02:57:32 PM »
I'd use a high speed timer and a tab;e driven output. Should be good to 1us, every time.
Sometimes I wonder if its my Do-More code with the bugs, or BobO's missed keystrokes in the inner workings of the machine. :D

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6172
  • Yes Pinky, Do-more will control the world!
Re: How to get best repeatability on input response
« Reply #4 on: February 01, 2018, 03:17:25 PM »
I'd use a high speed timer and a tab;e driven output. Should be good to 1us, every time.
Sometimes I wonder if its my Do-More code with the bugs, or BobO's missed keystrokes in the inner workings of the machine. :D

BobO should probably spend less time on forums and more time coding...but it's become a bad habit. That I can quit any time. Seriously.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

pbw

  • Hero Member
  • *****
  • Posts: 127
Re: How to get best repeatability on input response
« Reply #5 on: February 01, 2018, 04:54:48 PM »
How else does a guy break free from writer's block?
I see you're using a FPGA as a CPU, how fast is that clocked at? just curious.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6172
  • Yes Pinky, Do-more will control the world!
Re: How to get best repeatability on input response
« Reply #6 on: February 01, 2018, 05:17:03 PM »
I see you're using a FPGA as a CPU, how fast is that clocked at? just curious.

There are multiple processors and many different clocks, but the prevailing rate is 75Mhz.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO