<?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 and PWL why doesn&amp;#39;t TASKS_CLEAR work?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10494/timer-and-pwl-why-doesn-t-tasks_clear-work</link><description>I&amp;#39;m trying to generate a 1kHz PWL and call a function every 1ms the code is below.
My initial though was to set TASKS_CLEAR once the timer reached the max pwl value.
Oddly this worked of the reset value was 32,000 but not 256. I think I have fixed it</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Dec 2015 11:43:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10494/timer-and-pwl-why-doesn-t-tasks_clear-work" /><item><title>RE: TIMER and PWL why doesn't TASKS_CLEAR work?</title><link>https://devzone.nordicsemi.com/thread/39019?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2015 11:43:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa12ddb4-a2c9-46ae-abba-23295a7d4b57</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;If the answer was correct please accept and close the case. If not, please explain why. This is important for the forum as other people will know if the answer is correct.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TIMER and PWL why doesn't TASKS_CLEAR work?</title><link>https://devzone.nordicsemi.com/thread/39020?ContentTypeID=1</link><pubDate>Thu, 26 Nov 2015 12:07:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:485ec7c5-8efa-4059-9adb-724aa57f798b</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Change&lt;code&gt;NRF_TIMER2-&amp;gt;TASKS_CLEAR;&lt;/code&gt; to &lt;code&gt;NRF_TIMER2-&amp;gt;TASKS_CLEAR = 1;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>