<?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 handler function is not called</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85376/timer-handler-function-is-not-called</link><description>Hi, devzone! 
 
 I&amp;#39;m trying to use a timer to periodically change the digital output but it seems that the handler function is not called. 
 
 The whole code is based on the ble_peripheral/ble_app_uart and I added all the other functions and timer into</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 Mar 2022 09:28:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85376/timer-handler-function-is-not-called" /><item><title>RE: Timer handler function is not called</title><link>https://devzone.nordicsemi.com/thread/356219?ContentTypeID=1</link><pubDate>Fri, 04 Mar 2022 09:28:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3404afef-3c26-4a1d-8203-05cc1cedba13</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;I am happy to hear that it is working as intended now!&lt;/p&gt;
[quote user="DL_November"]So if I want to use timer handler functions, do I always need to enable interrupt with nrf_drv_timer_extended_compare() function?[/quote]
&lt;p&gt;No, it is only if you use the nrf_drv_timer_extended_compare that you need to specify whether the interrupt handler should be called or not.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer handler function is not called</title><link>https://devzone.nordicsemi.com/thread/356163?ContentTypeID=1</link><pubDate>Fri, 04 Mar 2022 00:43:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59a1da68-fd7b-42c5-bfe4-98927b64c340</guid><dc:creator>DL_November</dc:creator><description>&lt;p&gt;now it is working well, thanks! So if I want to use timer handler functions, do I always need to enable interrupt with nrf_drv_timer_extended_compare() function?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer handler function is not called</title><link>https://devzone.nordicsemi.com/thread/355975?ContentTypeID=1</link><pubDate>Thu, 03 Mar 2022 09:40:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9700a39-0587-45a5-9deb-bb454e937420</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;Please change the enable interrupt parameter of the nrf_drv_timer_extended_compare function call to true and see if it resolves your issue:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;..
    nrf_drv_timer_extended_compare(&amp;amp;TIMER_INJECTOR,
                                   NRF_TIMER_CC_CHANNEL1,
                                   ticks,
                                   NRF_TIMER_SHORT_COMPARE1_CLEAR_MASK,
                                   true);
..&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>