<?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>Timer1 Only Firing at 250Hz</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6026/timer1-only-firing-at-250hz</link><description>Not sure why but my time is only firing at 250Hz with the prescaler set to 0. Not sure why. Shouldn&amp;#39;t it be going at 16Mhz at these settings? (Running on the PCA10028 Board) 
 namespace drv {

void Timer::Init() {
	// Start 16 MHz crystal oscillator</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Mar 2015 10:36:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6026/timer1-only-firing-at-250hz" /><item><title>RE: Timer1 Only Firing at 250Hz</title><link>https://devzone.nordicsemi.com/thread/21066?ContentTypeID=1</link><pubDate>Fri, 13 Mar 2015 10:36:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c95b4695-f0b1-43d3-8ac6-a179fe0909cb</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Thank you for answering  your own question!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer1 Only Firing at 250Hz</title><link>https://devzone.nordicsemi.com/thread/21065?ContentTypeID=1</link><pubDate>Thu, 12 Mar 2015 20:10:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c073994-0796-48b1-a238-31b65496b4ac</guid><dc:creator>mbush91</dc:creator><description>&lt;p&gt;Figured it out!&lt;/p&gt;
&lt;p&gt;Needed to set the TASKS_CLEAR bit. Hope this helps somebody else!&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;void TIMER1_IRQHandler() {
		NRF_TIMER1-&amp;gt;TASKS_CLEAR = 1;

		nrf_gpio_pin_toggle(21);
		svc::TimerManager::IncrementTime();

		NRF_TIMER1-&amp;gt;EVENTS_COMPARE[0] = 0; // Clear INT
	}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>