<?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>center aligned PWM saadc trigger</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68639/center-aligned-pwm-saadc-trigger</link><description>Hello, 
 I would like to sample the SAADC at the center of the PWM. How can I do it ? 
 
 
 Thank you in advance.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Nov 2020 15:36:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68639/center-aligned-pwm-saadc-trigger" /><item><title>RE: center aligned PWM saadc trigger</title><link>https://devzone.nordicsemi.com/thread/282137?ContentTypeID=1</link><pubDate>Thu, 26 Nov 2020 15:36:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4b455b3-49eb-43ef-a9a6-160c8b8d2526</guid><dc:creator>Marc_O</dc:creator><description>&lt;p&gt;Many thanks for your reply.&lt;/p&gt;
&lt;p&gt;I am going to try, I succeed to generate my 6 PWMs sync with this thread, it remains me the PWM1 channel 2&amp;amp;3, and the PWM2 of free.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/68822/pwm-sync"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/68822/pwm-sync&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Now I have to try sync SAADC with all this.&lt;/p&gt;
&lt;p&gt;if you have a idea ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: center aligned PWM saadc trigger</title><link>https://devzone.nordicsemi.com/thread/282129?ContentTypeID=1</link><pubDate>Thu, 26 Nov 2020 15:03:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:895db079-e7b6-4390-8b33-2e60eb31d8bd</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;See &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/55568/how-to-set-up-pwm-dead-time-at-the-end-of-period/225233#225233"&gt;this post&lt;/a&gt; about PWM dead time.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure if you will be able to achieve this with the available instances, if you need to control all the 6 PWMs individually and you require the center signal for each to sample SAADC. There is only events for start and end of each sequence, not for each compare/output, limiting your ability to get events for the center signal. You could of course connect the output pin from the PWM to a GPIOTE input pin which will generate the events on rising signal but this will require a lot of extra GPIOs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: center aligned PWM saadc trigger</title><link>https://devzone.nordicsemi.com/thread/281483?ContentTypeID=1</link><pubDate>Tue, 24 Nov 2020 10:00:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fd01eb6-652b-4930-b230-addd013934c0</guid><dc:creator>Marc_O</dc:creator><description>&lt;p&gt;Hello Jorgen,&lt;/p&gt;
&lt;p&gt;I am new in Nordic device, and in fact, I would like to generate 6 PWMs center aligned for my BLDC with trigger ADC sampling on these PWMs.&lt;/p&gt;
&lt;p&gt;I thought to do 2 PWMs (positive and negative) with dead time per channel, and now to use a trigger as hmolesworth said, to read the current.&lt;/p&gt;
&lt;p&gt;Is it possible ? How do I have to proceed, please ?&lt;/p&gt;
&lt;p&gt;Is it the dead time is possible with Nordic device ?&lt;/p&gt;
&lt;p&gt;Thank you in advance.&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: center aligned PWM saadc trigger</title><link>https://devzone.nordicsemi.com/thread/281399?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2020 17:16:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3b3208c-4c9c-46dd-8c11-97885729ab21</guid><dc:creator>Marc_O</dc:creator><description>&lt;p&gt;Hello Hmolesworth,&lt;/p&gt;
&lt;p&gt;Have you got an example just to show me, &amp;nbsp;please ?&lt;/p&gt;
&lt;p&gt;Many thanks.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: center aligned PWM saadc trigger</title><link>https://devzone.nordicsemi.com/thread/281398?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2020 17:12:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:322eb9e7-7e12-4f21-b45b-c083690718c3</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;It is possible to create a pseudo event in the center of the PWM signal by using a very narrow pulse on one of the spare PWM channels in waveform mode, assuming only a single (or two) PWM outputs are being used, that is. For ADC sampling that would probably work well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: center aligned PWM saadc trigger</title><link>https://devzone.nordicsemi.com/thread/281324?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2020 13:27:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54a39cce-01c0-46ba-96dc-f0356ddae38a</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There is no events generated in the center of the PWM signal that can be used to trigger the SAADC sampling. If you know the timing from the edge until the center, you could use a TIMER/RTC to trigger the sampling, but this depends on your application. Are you using the &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52833/pwm.html"&gt;PWM peripheral&lt;/a&gt;? What is the configuration of the output channels?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>