<?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 interrupt handler not getting called, please help</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21231/timer-interrupt-handler-not-getting-called-please-help</link><description>I have enabled Timer 2 with 31250Hz frequency. I wanted to call an interrupt after 10ms, ie 312 ticks for the timer. But the interrupt is not getting called, I have spent some time finding the problem, but couldn&amp;#39;t find. 
 Please check the following</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 09 Apr 2017 08:22:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21231/timer-interrupt-handler-not-getting-called-please-help" /><item><title>RE: Timer interrupt handler not getting called, please help</title><link>https://devzone.nordicsemi.com/thread/83065?ContentTypeID=1</link><pubDate>Sun, 09 Apr 2017 08:22:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bac83588-d23f-4aaf-82a3-9889b6c09ac4</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;well you can do what you want but yes the capture captures into the same register you use for timeout which means you&amp;#39;ll never time out.
Good that you found your error. Nice debugging.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer interrupt handler not getting called, please help</title><link>https://devzone.nordicsemi.com/thread/83064?ContentTypeID=1</link><pubDate>Sun, 09 Apr 2017 06:39:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d3389be-e4e3-41be-b716-3c8ef92d4ca2</guid><dc:creator>Insaf</dc:creator><description>&lt;p&gt;I found the problem. The interrupt is not getting called because, I am also capturing the timer values from the same channel(CC_CHANNEL0). So when I changed the interrupt listen channel to CC_CHANNEL1, everything works fine. I can capture the values from CHANNEL0, and also I can listen for EVENT_COMPARE interrupt at CHANNEL1.&lt;/p&gt;
&lt;p&gt;What I learnt is, &lt;strong&gt;don&amp;#39;t capture and listen to the same timer channel&lt;/strong&gt;. Please correct me, if I am wrong.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer interrupt handler not getting called, please help</title><link>https://devzone.nordicsemi.com/thread/83063?ContentTypeID=1</link><pubDate>Sat, 08 Apr 2017 09:39:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c77da79d-4e79-497b-91c0-2829ccf244e5</guid><dc:creator>Insaf</dc:creator><description>&lt;p&gt;Thanks for replying, I have started the timer in the gpio pin handler( tsop_pin_handler function). Timer is working fine, I can capture the timer values. Also, the interrupt handler gets called when the timer values gets reset to 0 after reaching 16 bit limit.&lt;/p&gt;
&lt;p&gt;Okay, I will put _WFE in the main loop. But this program is for testing purpose, that&amp;#39;s why I didnt put that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer interrupt handler not getting called, please help</title><link>https://devzone.nordicsemi.com/thread/83062?ContentTypeID=1</link><pubDate>Sat, 08 Apr 2017 08:49:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f47fa49-4d94-42cf-80e2-a91874c393ed</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Don&amp;#39;t see anywhere you start a low frequency clock in that code. And please don&amp;#39;t just busy spin at the end, at least put a _WFE in it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>