<?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>Using Timer 2 in GPIOTE sample on NRF SDK 11</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12258/using-timer-2-in-gpiote-sample-on-nrf-sdk-11</link><description>I was playing around with the gpiote example under exaples/peripheral/gpiote. The example uses a timer, ppi, and gpiote to blink an led. By default, the app uses Timer 0 and that works well. If i were to change switch to Timer 1 or Timer 2 it doesn&amp;#39;t</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Mar 2016 13:24:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12258/using-timer-2-in-gpiote-sample-on-nrf-sdk-11" /><item><title>RE: Using Timer 2 in GPIOTE sample on NRF SDK 11</title><link>https://devzone.nordicsemi.com/thread/46362?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2016 13:24:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b6cfea2-7de1-4443-927f-2b109a6bc5c9</guid><dc:creator>Ron</dc:creator><description>&lt;p&gt;Great thanks. I did try changing that count to adjust for 16 bits but I didn&amp;#39;t think to change the frequency.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Timer 2 in GPIOTE sample on NRF SDK 11</title><link>https://devzone.nordicsemi.com/thread/46361?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2016 08:40:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6a096d8-21be-420d-be4d-a156a0b93a54</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;The value given in
led_blinking_setup:nrf_drv_timer_extended_compare -&amp;gt;200 *1000 = 30D40 does not fit into 16-bit timer1 and timer2.&lt;/p&gt;
&lt;p&gt;Change the values in nrf_drv_config.h to&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define TIMER1_CONFIG_FREQUENCY    NRF_TIMER_FREQ_125kHz
#define TIMER2_CONFIG_FREQUENCY    NRF_TIMER_FREQ_125kHz
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and instead of writing 200 *1000 in led_blinking_setup:nrf_drv_timer_extended_compare
you need to write 125000/2 = 0Xf424. So your LED will blink every half second.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>