<?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>A rproblem on PPI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2136/a-rproblem-on-ppi</link><description>I want to generate a pulse signal with PPI, timer2 and gpiote. But it doesn&amp;#39;t work. Anything wrong with my code?
void init_timer1()
{
NRF_TIMER1-&amp;gt;PRESCALER = 1;
NRF_TIMER1-&amp;gt;TASKS_CLEAR = 1;
NRF_TIMER1-&amp;gt;BITMODE = TIMER_BITMODE_BITMODE_16Bit;
NRF_TIMER1</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Apr 2014 22:55:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2136/a-rproblem-on-ppi" /><item><title>RE: A rproblem on PPI</title><link>https://devzone.nordicsemi.com/thread/9096?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2014 22:55:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a99b2c2f-0b73-4e96-93c7-b942d77d3a12</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;You can&amp;#39;t have more than one GPIOTE channel controlling the same pin. If you want to both set and clear a pin through the GPIOTE you have to use the toggle polarity configuration, and use the same GPIOTE channel both for clearing and setting the pin.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know exactly what type of application you are developing, but for an example of PWM on the nrF51822 please have a look at the following thread:
&lt;a href="https://devzone.nordicsemi.com/index.php/is-there-an-example-code-for-using-pwm-on-the-nrf51822-with-a-softdevice"&gt;devzone.nordicsemi.com/.../is-there-an-example-code-for-using-pwm-on-the-nrf51822-with-a-softdevice&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards
Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>