<?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>PWM frequency repeater</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32329/pwm-frequency-repeater</link><description>Hi, 
 
 I have a task to do PWM frequency repeater on nrf52832. After reading forums I decided to make it with PPI, 2 GPIOTE and 3 Timers. Here what I did: https://github.com/ArtG89/nrf52832_ppi/tree/master/Application 
 But there are 2 problems: 
 1</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Mar 2018 08:20:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32329/pwm-frequency-repeater" /><item><title>RE: PWM frequency repeater</title><link>https://devzone.nordicsemi.com/thread/125097?ContentTypeID=1</link><pubDate>Tue, 20 Mar 2018 08:20:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31bb7216-8496-4d4c-8398-8072d49638dd</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Okay, I see. To debug the problem, I would think the easiest is to use logging over UART/RTT, and for example print the value of &amp;quot;freq&amp;quot; every time it is being updated in ppi_pwm_in_measured_freq().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM frequency repeater</title><link>https://devzone.nordicsemi.com/thread/125027?ContentTypeID=1</link><pubDate>Mon, 19 Mar 2018 14:19:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10bd1018-aebe-40c9-9575-d9a87a45c32c</guid><dc:creator>ArtG89</dc:creator><description>&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=HeZ3flcHufg"&gt;Here&lt;/a&gt; how it looks like for second question&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM frequency repeater</title><link>https://devzone.nordicsemi.com/thread/125013?ContentTypeID=1</link><pubDate>Mon, 19 Mar 2018 13:47:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3b01de2-3d97-431b-a398-98105ee8a71f</guid><dc:creator>ArtG89</dc:creator><description>&lt;p&gt;Yes, it needs&amp;nbsp; external signal from&amp;nbsp;signal generator or other board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM frequency repeater</title><link>https://devzone.nordicsemi.com/thread/125003?ContentTypeID=1</link><pubDate>Mon, 19 Mar 2018 13:38:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f412910-9808-4d8a-b5a9-6d2d8a5e1dad</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;When I test here, the frequency on PPI_PWM_OUT_PIN never changes because the measured frequency in ppi_pwm_in_measured_freq() always is &amp;#39;0&amp;#39; (the value of PPI_PWM_IN_COUNTER-&amp;gt;CC[0] is always &amp;#39;0&amp;#39;).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM frequency repeater</title><link>https://devzone.nordicsemi.com/thread/124864?ContentTypeID=1</link><pubDate>Sat, 17 Mar 2018 14:02:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e19caa0a-efa7-4b4d-a3ce-a5b4d530de3a</guid><dc:creator>ArtG89</dc:creator><description>&lt;p&gt;In my email, there is message, that You &lt;span&gt;don&amp;#39;t see any toggling on pin 6 nor pin 8, even with the prescaler set to &amp;#39;1&amp;#39;. I use my own board with these pins not nrf52-dk (on nrf52-dk these pins used for something else, as I remember uart), on nrf52-dk I&amp;#39;d tried pins 30 and 31. Please inform when You can run my code. One pin is input for measure pwm, and other is output pwm.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM frequency repeater</title><link>https://devzone.nordicsemi.com/thread/124821?ContentTypeID=1</link><pubDate>Fri, 16 Mar 2018 18:55:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc469db7-0a56-48b1-ba8f-485809ba0edf</guid><dc:creator>ArtG89</dc:creator><description>&lt;p&gt;Thanks for answer.&lt;/p&gt;
&lt;p&gt;I need to control the frequency continuously. PWM peripheral based on this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/31035/how-to-change-pwm-frequency"&gt;topic&lt;/a&gt;&amp;nbsp;can change only duty, so I will &lt;span&gt;have to uninitialize and reinitialize the hardware to change the frequency and it will&amp;nbsp;cost some delay. Now I&amp;#39;m not sure will this delay be normal for the final device (more likely no than yes), so I&amp;nbsp;chose PPI.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM frequency repeater</title><link>https://devzone.nordicsemi.com/thread/124800?ContentTypeID=1</link><pubDate>Fri, 16 Mar 2018 15:19:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd3c6239-5482-4078-b689-e426af181e78</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;I&amp;#39;m testing the code here, but I&amp;nbsp;to come back to the testing on Monday.&lt;/p&gt;
&lt;p&gt;Is there a specific reason why you generate the PWM signal using PPI and GPIOTE? If not, I would recommend you to use the PWM peripheral instead, it is a lot easier to use. As a starting point, you can use the&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v14.2.0%2Fpwm_hw_example.html&amp;amp;cp=4_0_0_4_6_22"&gt; pwm_driver example&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>