<?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>Issue with 2 Instance x 2 Channel PWMs and TWI RX</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13850/issue-with-2-instance-x-2-channel-pwms-and-twi-rx</link><description>Hi everyone, 
 I&amp;#39;m seeing a weird issue with one of my two instances of 2ch PWMs where if I receive data from TWI, my PWM1 stops functioning and TWI stops functioning as well. However, transmitting data using TWI does not show the same issue and issues</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 May 2016 14:34:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13850/issue-with-2-instance-x-2-channel-pwms-and-twi-rx" /><item><title>RE: Issue with 2 Instance x 2 Channel PWMs and TWI RX</title><link>https://devzone.nordicsemi.com/thread/52919?ContentTypeID=1</link><pubDate>Tue, 24 May 2016 14:34:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc11990e-cd76-4f67-877d-73af6ce6bc87</guid><dc:creator>Jay</dc:creator><description>&lt;p&gt;There was an issue where the PWM would reverse polarity after few minutes of running PWM in a random manner and this issue was fixed with &amp;#39;Sir Oslay&amp;#39; suggestion in this forum: &lt;a href="https://devzone.nordicsemi.com/question/39809/sometimes-pwm-signal-is-reversed/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I was using SDK 8/9.0 at the time and never checked if the issue got fixed in SDK 10.0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with 2 Instance x 2 Channel PWMs and TWI RX</title><link>https://devzone.nordicsemi.com/thread/52918?ContentTypeID=1</link><pubDate>Tue, 24 May 2016 13:39:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:123d25af-7cbb-407a-8f07-8dcf9d71b512</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I had a quick look at your code snippet and I&amp;#39;m curious why you have included the first 6 &amp;quot;paragraphs&amp;quot; of code. The PWM control block, PWMx.p_cb, will be overwritten by app_pwm_init() in the end anyway so this seems redundant. app_pwm_init() is for example allocating PPI channels from a pool of available channels to make sure that there are no conflicts with other modules using the PPIs. Have you had a look at the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/pwm_example.html?cp=5_0_0_4_5_16"&gt;pwm_library example&lt;/a&gt; in the SDK? I suggest that you have a look at that first and then the TWI examples. Then finally try to merge them.&lt;/p&gt;
&lt;p&gt;Using the software TWI drivers should only be a last resort. At least if you plan to expand your project with e.g. BLE in the future. You will not be able to run the software drivers concurrently with the BLE stack.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with 2 Instance x 2 Channel PWMs and TWI RX</title><link>https://devzone.nordicsemi.com/thread/52917?ContentTypeID=1</link><pubDate>Fri, 13 May 2016 20:37:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40dc7d4c-d15e-4375-b364-1133d5792539</guid><dc:creator>Jay</dc:creator><description>&lt;p&gt;Everything works now after changing from hardware to software TWI. I used the TWI hardware source code (i.e., twi_hw_master.c) in the beginning and I just switched to TWI software source code and everything works now! If someone can explain to me why the hardware library would cause issues, that would be great. Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>