Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: defragster

Search: Search took 0.01 seconds.

  1. The software solution p#9 , p#3 seems to work...

    The software solution p#9 , p#3 seems to work okay - against fixed single test incoming pin rise ...

    With 10X freq of 500 Hz to 2000 toggles and the printing gets in the way {bottom}, but the...
  2. Seemed from the OP it has to be sync'd to the...

    Seemed from the OP it has to be sync'd to the incoming 48 Hz signal?

    Code in p#9 will start on time ... but likely drift from the incoming signal without some averaging and adjustment in isrPin()....
  3. Software version for p#3 was imagined like this -...

    Software version for p#3 was imagined like this - with assumptions as incorporated.

    Changed to 50 Hz input as it fixed the math for the DEMO PWM trigger - which was only looked at once. The calc...
  4. Asked about 'other things running' - as the...

    Asked about 'other things running' - as the software approach suggested would block for some part microsecond(s) - depending on the interrupt timer rate that works while polling the clock/CYCCNT to...
  5. What does the input look like? "a square wave at...

    What does the input look like? "a square wave at ~48 Hz " - is it constant and does it need to stay timed to that?

    Seems like "ability to add a variable delay." - is a delay in starting or...
  6. What Teensy model? Is the sketch doing...

    What Teensy model?

    Is the sketch doing anything else?

    Maybe there is a better hardware solution?

    Software could set up a 1MHz (?) interrupt that normally does nothing.
    > When you know the...
Results 1 to 6 of 6