Skip to main content
parth kothiya
Associate III
March 2, 2020
Question

TIMER one pulse mode with variable time delay?

  • March 2, 2020
  • 5 replies
  • 1124 views

i want to generate pulse which on time is fix(100us) but off time is variable(between 0-10ms) and it is synchronous with external interrupt how can i do this using HAL libraries ?

This topic has been closed for replies.

5 replies

n2wx
Senior
March 6, 2020

@parth kothiya​, did you ever get this working? I'm attempting the same thing for an R/C controller to perform the ancient PPM modulation scheme. If so how did you do it?

I have my first pass 12 channel working a combination of software timers that kick off the single 100uS pulse but it's hacky and unsatisfying. Thanks!

berendi
Principal
March 6, 2020
n2wx
Senior
March 6, 2020

I didn't see it - thank you for the pointer. I'll work it once I fix the complementary channel output. Assuming I can fix the complementary output on TIM17 in OPM comparison mode.