<?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>TIMER2 NOT working properly FOR 1MS interrupt with SD enable</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5699/timer2-not-working-properly-for-1ms-interrupt-with-sd-enable</link><description>hello Nordics, 
 i am trying to configure 1ms timer along with BLE_STACK is enable
and same time i am sending 3byte data for every 500ms . and 1ms timer is very important for me bcoz entire projects depends on this timer and BLE COMMUNICATION also necessary</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Feb 2015 12:52:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5699/timer2-not-working-properly-for-1ms-interrupt-with-sd-enable" /><item><title>RE: TIMER2 NOT working properly FOR 1MS interrupt with SD enable</title><link>https://devzone.nordicsemi.com/thread/19962?ContentTypeID=1</link><pubDate>Tue, 24 Feb 2015 12:52:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d9ecdc8-a1a3-48b8-a0fe-0428a8eb5b4a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@twinkal: Yes it&amp;#39;s a correct way. You can get XLR3 chip on our nRF51 DK or nRF51 Dongle. For example &lt;a href="http://no.mouser.com/ProductDetail/Nordic-Semiconductor/nRF51-DK/?qs=sGAEpiMZZMvQbgrkdfEa0llNT2KXyRh4IfnQqjiSV9g%3d"&gt;here&lt;/a&gt;.&lt;br /&gt;
Please contact our distributors of your area for more information. The distributors list can be found on our website (at the bottom of the page).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TIMER2 NOT working properly FOR 1MS interrupt with SD enable</title><link>https://devzone.nordicsemi.com/thread/19961?ContentTypeID=1</link><pubDate>Tue, 24 Feb 2015 12:10:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:830b3269-6277-44ce-b15c-88db8989b511</guid><dc:creator>twinkal</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thank u somuch for ur consultation , I am toggling a pin to measure time ( capturing to Pico scope  and    Tektronix both) ,is it a correct way to do?
and one more thing from where I have to get this  XLR3  chip (means from where I have to buy or in my case which is the best chip I should use ?)&lt;/p&gt;
&lt;p&gt;Once again thank you very much !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TIMER2 NOT working properly FOR 1MS interrupt with SD enable</title><link>https://devzone.nordicsemi.com/thread/19960?ContentTypeID=1</link><pubDate>Tue, 24 Feb 2015 10:01:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4522472-ad98-4c4e-9528-b97a68b577f7</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@twinkal: How do you measure the 1.5ms error ? Could you toggle a pin and have a trace with the logic analyzer.
Please be noted that since your chip is XLR2, the CPU is blocked by the radio, so you could have upto 6ms interrupt latency for the timer handler.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TIMER2 NOT working properly FOR 1MS interrupt with SD enable</title><link>https://devzone.nordicsemi.com/thread/19959?ContentTypeID=1</link><pubDate>Tue, 24 Feb 2015 06:38:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb470f38-f69c-4ea1-b03a-d71fc736df4f</guid><dc:creator>twinkal</dc:creator><description>&lt;p&gt;Hi  Hung bui,
Thank you somuch for ur rply,
My IC Packet/variant code is QFAAGO and I am using s110_nrf51822_7.1.0_softdevice .
I measured  interrupt handler time its taking around 800us (around 250us for ADC + 500us algorithm ).
now I removed algorithm function from timer handler , So its taking around 240us.
Bt now I am getting new problem for every 20ms I am getting around 1.5ms error in timer handler and I have no idea how its coming ?
I sated Connection interval time for min = 10ms and max = 75ms.
and advertising interval = 40ms&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TIMER2 NOT working properly FOR 1MS interrupt with SD enable</title><link>https://devzone.nordicsemi.com/thread/19958?ContentTypeID=1</link><pubDate>Mon, 23 Feb 2015 15:30:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6825266-0632-450c-ad70-b3ac11a8eec0</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Twinkal,&lt;/p&gt;
&lt;p&gt;Could you let me know which chip version you are testing on ? (you can match the version of the chip with the laser marking you can read on top of it &lt;a href="https://www.nordicsemi.com/eng/nordic/Products/nRF51822/ATTN-51/41917"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you are using XLR2 and earlier chip, the interrupt latency is expected as described at chapter 11 in the S110 Specification v1.3. As the CPU is blocked when the radio is active, the maximum latency could get to 5960us.&lt;/p&gt;
&lt;p&gt;On the current version of the chip, XLR3, the CPU is not blocked if you use S110 v7.1 and set the option with sd_ble_opt_set() (please the release note of S110 v7.1.0) , the interrupt latency with our calculation is 80us average, maximum 250us in most case, and in the worst case by theory it is about 510us.&lt;/p&gt;
&lt;p&gt;If the latency is limited to 510us and you have your interrupt handler takes less than 490us you should be fine with the 1ms timer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>