<?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>TIMER+PPI+ADC on nrf52</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12814/timer-ppi-adc-on-nrf52</link><description>Hi, 
 I am looking for some assistance to choose the best way using the nrf52832 processor in a correct way. 
 The main task is to generate a 1KHz PWM Signal with changeable Duty-Ciclye during the runtime. On every cycle (Signal change high/low - low</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 30 Mar 2016 11:05:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12814/timer-ppi-adc-on-nrf52" /><item><title>RE: TIMER+PPI+ADC on nrf52</title><link>https://devzone.nordicsemi.com/thread/48699?ContentTypeID=1</link><pubDate>Wed, 30 Mar 2016 11:05:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f0a0d08-8721-4ba4-b8c5-3d358b6c6fbf</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Hardware PWM described &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.0/pwm.html?cp=1_2_0_45#concept_pzc_1pw_nr"&gt;here&lt;/a&gt;. EVENTS_PWMPERIODEND (sorry for the typo) is found in the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.0/pwm.html?cp=1_2_0_45_4#topic"&gt;register description&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TIMER+PPI+ADC on nrf52</title><link>https://devzone.nordicsemi.com/thread/48698?ContentTypeID=1</link><pubDate>Tue, 29 Mar 2016 20:06:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef4be427-a12f-4e0f-8f13-e3f19642388d</guid><dc:creator>Nils Minor</dc:creator><description>&lt;p&gt;Hey Ole,&lt;/p&gt;
&lt;p&gt;thanks for your assistance :)&lt;/p&gt;
&lt;p&gt;with ppm peripheral do you mean the hardware pwm? I am sorry i can not find EVENTS_PERIODEND ? If this is possible i think it could be a could solution for my problem. I could also connect the PWM output to an input and get interrupted on pin change, how does that sound to you?&lt;/p&gt;
&lt;p&gt;i will have a look into ppi, i got the saadc working with normal handling but not triggered by ppi.&lt;/p&gt;
&lt;p&gt;Kindly,
Nils&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TIMER+PPI+ADC on nrf52</title><link>https://devzone.nordicsemi.com/thread/48700?ContentTypeID=1</link><pubDate>Tue, 29 Mar 2016 15:06:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30f7fa91-4f51-42e8-ab56-51423a596f75</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;You want to measure with saadc twice every pwm cycle, i.e. when the pwm signal goes low and when it goes high? With the pwm peripheral you can only get a signal at the end of the pwm period (EVENTS_PERIODEND). You can start a timer at this signal with a timeout equal to the duty cycle to get an additional event at the duty cycle.&lt;/p&gt;
&lt;p&gt;If you use timer + ppi + gpiote you should use set and clr tasks. You need to update the duty cycle at the timer clear event to avoid some periods to be constant (for example if duty cycle is updated to a lower value before the last duty cycle was reached), this can be done with ppi group enable/disable tasks. I can explain better if you chose this method.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>