<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>zephyr pwm sequence</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90757/zephyr-pwm-sequence</link><description>In SDK 15 I was able to build a 3 output arbitrary waveform generator using a pwm module in sequence mode. 
 Is this possible with the Zephyr pwm API? 
 If so Is there an example of this somewhere using the Zephyr API? 
 Or do I need to bypass zephyr</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 20 Aug 2022 11:01:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90757/zephyr-pwm-sequence" /><item><title>RE: zephyr pwm sequence</title><link>https://devzone.nordicsemi.com/thread/382521?ContentTypeID=1</link><pubDate>Sat, 20 Aug 2022 11:01:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a20f70c-3093-48ae-8961-7a268e8bc632</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;The interrupt priority comes from the devicetree file. For PWM0 on the nRF52833 you have this section in&amp;nbsp;zephyr/dts/arm/nordic/nrf52833.dtsi (there are also similar for the other PWM instances):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;		pwm0: pwm@4001c000 {
			compatible = &amp;quot;nordic,nrf-pwm&amp;quot;;
			reg = &amp;lt;0x4001c000 0x1000&amp;gt;;
			interrupts = &amp;lt;28 NRF_DEFAULT_IRQ_PRIORITY&amp;gt;;
			status = &amp;quot;disabled&amp;quot;;
			label = &amp;quot;PWM_0&amp;quot;;
			#pwm-cells = &amp;lt;3&amp;gt;;
		};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The default priority is 1. If you want to change the interrupt priority, you can make an overlay file for your board where you set a different priority. The PWM related part would then be something like this (here the priority is set to 0, adjust as needed):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;pwm0 {
	interrupts = &amp;lt;28 0&amp;gt;;
};&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr pwm sequence</title><link>https://devzone.nordicsemi.com/thread/382334?ContentTypeID=1</link><pubDate>Thu, 18 Aug 2022 18:40:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31f5249e-a39a-4a24-8467-d9b8db245871</guid><dc:creator>Jay</dc:creator><description>&lt;p&gt;In the old SDK the irq defines such as APP_IRQ_PRIORITY_LOWEST&amp;nbsp;were defined in the&amp;nbsp; in the file&amp;nbsp;app_util_platform.h.&lt;/p&gt;
&lt;p&gt;In the new ncs SDK where can I find the irq defines?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr pwm sequence</title><link>https://devzone.nordicsemi.com/thread/380676?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2022 20:30:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7f3cacd-59b8-4400-a7a2-b3849969a220</guid><dc:creator>Jay</dc:creator><description>&lt;p&gt;That is what I thought. But I had to check.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr pwm sequence</title><link>https://devzone.nordicsemi.com/thread/380635?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2022 13:45:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e603ff6-40cc-4c3f-b79d-1830d0445651</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The Zephyr PWM API does not allow you to play out waveforms. Using the nrfx PWM driver (nrfx_pwm) directly as you mention is probably most sensible in this case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>