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

Search:

Type: Posts; User: kdharbert

Search: Search took 0.00 seconds.

  1. Working perfectly as near as I can see. Thanks!

    Working perfectly as near as I can see. Thanks!
  2. Interrupts in general or just interrupts...

    Interrupts in general or just interrupts pertaining to those pins?
    I'll be using Intervaltimer objects, and the PWM adjustments may need to be made within one of those ISRs, so it looks like I'll...
  3. Absolutely wonderful! I'll confirm myself when I...

    Absolutely wonderful!
    I'll confirm myself when I sit down tomorrow.
  4. Here's slimmer code: Pressing enter in the...

    Here's slimmer code:
    Pressing enter in the serial interface executes the attempted timer reset on pins 22 and 23. If that works, you should observe the phase difference between their waveforms reset...
  5. As I said, only 23 and 22 are under test...

    As I said, only 23 and 22 are under test presently and they are both on FlexPWM4.
    I'll trim the code down and post it, but at the same I'll still need syntax for the register writes eventually. Any...
  6. Ok...the full program is below. The two pins...

    Ok...the full program is below.
    The two pins I'm seeking to reset are 22 and 23 which are both on FlexPWM4.

    The attempt to resync PWM happens after this line:
    if((command_buf & ...
  7. I need code examples for the FlexPWM register...

    I need code examples for the FlexPWM register manipulation. I don't have any code for that yet. I posted a link to stuff I found online above, but it is for a different NXP part. I've pasted a code...
  8. Excellent. This appears to be exactly what I...

    Excellent. This appears to be exactly what I need, especially with the motor commutator explanation included.

    I'll need some help with the code. I poked around the Teensy4 core files and for code...
  9. I took another run at the documentation and I'm...

    I took another run at the documentation and I'm still short of a solution for what I thought would be a simple problem of resetting a timer count to zero.

    I asked about pinmode and analogwrite...
  10. Thanks for the replies. My use case is simple: I...

    Thanks for the replies. My use case is simple: I need to have a pin output a square wave at a particular frequency and be able to restart the duty cycle so I can sync its phase based on external...
  11. I already found the Teensy PWM page and chose my...

    I already found the Teensy PWM page and chose my pins specifically to have different timers. I was able to measure perfect behavior, so I'm over pin\timer conflicts. I just need to phase-correct the...
  12. How to reset Teensy4.0 timers for phase syncing PWM signals

    The Teensy4.0 has far more timers than the 3.6 which enables some neat use cases I'm pursuing. However, I need to be able to resync the PWM phase (with respect to an external source) by restarting...
Results 1 to 12 of 12