# Additional PWM - using XBAR inside Plecs Coder

**URL:** <https://forum.plexim.com/t/additional-pwm-using-xbar-inside-plecs-coder/2669>\
**Category:** TI C2000\
**Tags:** c2000\
**Created:** [November 1, 2025, 12:46pm UTC](https://forum.plexim.com/t/additional-pwm-using-xbar-inside-plecs-coder/2669 "2025-11-01T12:46:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MRB](https://avatars.discourse-cdn.com/v4/letter/m/c2a13f/32.png) [@MRB](https://forum.plexim.com/u/MRB)\
**Post date:** [November 1, 2025, 12:46pm UTC](https://forum.plexim.com/t/additional-pwm-using-xbar-inside-plecs-coder/2669/1 "2025-11-01T12:46:26Z")

</div>

Hi, Is there any way I could use additional PWM from XBAR through Plecs Coder?

I know I can initialize it with Native Code block, but how to change PWM value during run?

![image](https://europe1.discourse-cdn.com/flex006/uploads/plecs/original/2X/6/67565be2d32478ab6999f7bd184ccfc3225c3a8f.png)

Could you help me, how to refer to the input and output inside block?

Best Regards, MRB

---

<div class="post-metadata">

**Author:** ![Beat\_Arnet](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/beat_arnet/32/9_2.png) [@Beat\_Arnet](https://forum.plexim.com/u/Beat_Arnet)\
**Post date:** [November 3, 2025, 2:10pm UTC](https://forum.plexim.com/t/additional-pwm-using-xbar-inside-plecs-coder/2669/2 "2025-11-03T14:10:02Z")

</div>

Hello - you don’t need the Native Code block to assign PWM peripherals to alternate pins.

This can be done directly from Coder options… → Target → PWM.

Kind regards,

Beat
