Search results

  1. H

    Teensy 4.0 eFlexPWM delay/phase shift

    here is the basic project. I currently have a teensy 4.0. 1. Ultrasonic Instrument pulses a transducer. Every time the transducer is pulsed the instrument outputs a trigger signal from its IO port. This signal is consistent but can be changed in the settings. Will range from about 1 to 30 kHz...
  2. H

    Teensy 4.0 eFlexPWM delay/phase shift

    I've tried both the same and separate timers but haven't been able to figure it out. I can use any pins for this as it is the priority.
  3. H

    Teensy 4.0 eFlexPWM delay/phase shift

    I need fine control in nanoseconds unfortunately. As a proof of concept I used digitalwritefast and delaymicroseconds to view a wave being delayed on an oscilloscope. I run into a wall when I move to hardware based functions and trying to achieve tunable control in nanoseconds.
  4. H

    Teensy 4.0 eFlexPWM delay/phase shift

    this code is the closest I've got using separate timers. When viewing on an oscilloscope I see 2 waves in phase when I should be seeing a 90 degree shift. I tried a simple analogwrite phase shift to verify and could see a phase shift no problem on the scope. #include <Arduino.h> #include...
  5. H

    Teensy 4.0 eFlexPWM delay/phase shift

    Okay thank you. I am setting up a controller to modulate the input for an ultrasonic photo elastic imaging camera. A variable delay would allow to view an ultrasonic wave propagate through a glass sample. Delaying the rise of the signal compared to that of when the ultrasonic wave is created...
  6. H

    Teensy 4.0 eFlexPWM delay/phase shift

    Trying to create a 30kHz square wave with a variable phase shift or delay in the signal rise using Teensy 4.0. I am able to see a signal using eFlexPWM on an oscilloscope however can't get the phase shift to work correctly. Is there a better option for creating a variable delayed square wave...
Back
Top