Menu

Temporarily disabling PWM output on 18F16Q40

2024-01-31
2024-01-31
  • Terry Platt

    Terry Platt - 2024-01-31

    Hi, I have a 18F16Q40 that is sending PWM signals to RC servos. I would like to temporarily disable the pulse streams without affecting the PWM register settings, but the PWM1CON bit 7 disable command clears everything. Does anyone have a good method of avoiding having to re-load everything when enabling? Thanks!

     
  • Anobium

    Anobium - 2024-01-31

    Set the PPS for that specific PWM to 0 and reset back in the code.

     
  • Terry Platt

    Terry Platt - 2024-01-31

    Thanks Anobium - I'll give that a try.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.