<?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>sine wave generation with nrf51822 without softdevice</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8052/sine-wave-generation-with-nrf51822-without-softdevice</link><description>Hi, 
 I am trying to generate a 128Hz sine wave using the nrf_pwm library . First I tried this with SD110 enabled but ran into some problems that turned out to be a known issue with the nrf51 chip. So I tried generating my sine wave with the nrf_pwm</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 11 Jul 2015 15:46:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8052/sine-wave-generation-with-nrf51822-without-softdevice" /><item><title>RE: sine wave generation with nrf51822 without softdevice</title><link>https://devzone.nordicsemi.com/thread/28872?ContentTypeID=1</link><pubDate>Sat, 11 Jul 2015 15:46:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9746919-da37-4f39-b843-52e74022797a</guid><dc:creator>gammarui</dc:creator><description>&lt;p&gt;Hi John, thanks for your reply!&lt;/p&gt;
&lt;p&gt;I have given up on running this code with SD. I will run it without SD for now and hope that nordic fixes this problem to the nrf52. I thought that the problem was caused by the SD and that my approach would work if SD is not used. Is nordic&amp;#39;s hardware really that glitchy that generation of a sine wave requires your workaround even without SD?&lt;/p&gt;
&lt;p&gt;Thanks for the advice on time consuming calculations, I have moved that code to after the cc value update.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sine wave generation with nrf51822 without softdevice</title><link>https://devzone.nordicsemi.com/thread/28871?ContentTypeID=1</link><pubDate>Wed, 08 Jul 2015 07:38:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13fc3d45-5380-4840-99d8-46c22dc52a20</guid><dc:creator>JohnBrown</dc:creator><description>&lt;p&gt;Is it your ultimate goal to run this code while the SD is running? If so, good luck.&lt;/p&gt;
&lt;p&gt;If you can live with no SD running, then I have discussed this in other threads. The problem is that there is no double buffering of the CC values, but my solution is to only use a subset of the maximum duty cycle, which means you cam update the CC value in a &amp;quot;dead period&amp;quot;. The other thing to note is that you are making some probably time-consuming calculations during the IRQ before updating the CC, you might be better off to first write the CC with a value calculated in the previous IRQ.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>