# Problem with the PWM program

**URL:** <https://forum.xod.io/t/problem-with-the-pwm-program/7083>\
**Category:** XOD Programming Questions\
**Created:** [February 14, 2025, 9:01am UTC](https://forum.xod.io/t/problem-with-the-pwm-program/7083 "2025-02-14T09:01:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elmagnet](https://avatars.discourse-cdn.com/v4/letter/e/ebca7d/32.png) [@elmagnet](https://forum.xod.io/u/elmagnet)\
**Post date:** [February 14, 2025, 9:01am UTC](https://forum.xod.io/t/problem-with-the-pwm-program/7083/1 "2025-02-14T09:01:06Z")

</div>

Need to run a PWM program on an “Outside” interrupt at a specific frequency? Can anyone help?

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [February 14, 2025, 4:39pm UTC](https://forum.xod.io/t/problem-with-the-pwm-program/7083/2 "2025-02-14T16:39:45Z")

</div>

Not sure what you mean by “on an outside interrupt”. Normally PWM is concerned with duty cycle (what percentage of the time the pin is HIGH vs LOW). I don’t think XOD has nodes for changing PWM frequency, but it can be done. [https://www.etechnophiles.com/change-frequency-pwm-pins-arduino-uno/](https://www.etechnophiles.com/change-frequency-pwm-pins-arduino-uno/) is one example of sites providing information on doing that. You would have to create your own node with C++ code to implement in XOD.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [March 16, 2025, 4:40pm UTC](https://forum.xod.io/t/problem-with-the-pwm-program/7083/3 "2025-03-16T16:40:35Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
