<?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 event handler problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17761/timer-event-handler-problem</link><description>Hello, 
 I am reading mpu9250 and providing timestamping with events. I want to create timer so that when the timer will be called reading of mpu9250 will begin and when timer stops reading should stop. I gave the mpu reading function in timer event</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Nov 2016 16:54:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17761/timer-event-handler-problem" /><item><title>RE: Timer event handler problem</title><link>https://devzone.nordicsemi.com/thread/68397?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2016 16:54:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:580b2fa7-373f-4fc8-9e1a-fc3e4e961298</guid><dc:creator>Sven</dc:creator><description>&lt;p&gt;The timestamp variable will be incremented in the interrupt function? If not did you check with a break point that the interrupt function is called more than once?
If that is working i would guess that something is not reseted during the first data request what keeps you back from reading it again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer event handler problem</title><link>https://devzone.nordicsemi.com/thread/68396?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2016 16:43:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c40fb27c-ed42-493c-89d6-d013abdeed6f</guid><dc:creator>Swapnil</dc:creator><description>&lt;p&gt;i used nordic&amp;#39;s function to read sensor with i2c communication. Its on github.
github.com/Martinsbl/nrf5-mpu-examples/tree/master/nrf5-mpu-simple&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer event handler problem</title><link>https://devzone.nordicsemi.com/thread/68395?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2016 16:41:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b746ba9-d1eb-4558-a831-3f5e4d2ede48</guid><dc:creator>Sven</dc:creator><description>&lt;p&gt;What did you use for the communication to the mpu9250? Your own code or the Motion Driver from InvenSense?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer event handler problem</title><link>https://devzone.nordicsemi.com/thread/68401?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2016 16:36:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:992456fd-73d2-46d4-956f-7a329d6295f5</guid><dc:creator>Swapnil</dc:creator><description>&lt;p&gt;There is no problem with timestamping but i want to read mpu with timer event handler continuously. But is reads only once. So that if timer starts it will read data and when stops it will stop. Other than that i am getting correct timestamping for other events.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer event handler problem</title><link>https://devzone.nordicsemi.com/thread/68400?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2016 16:33:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:566e57ee-c7a5-4609-b6e6-560aabf233d5</guid><dc:creator>Sven</dc:creator><description>&lt;p&gt;For this i used the SysTick. This timer is counting only globally my sickticks. So if i understand you right, you have a timer interrupt function which increments a timestamp variable and starts reading sensordata. If so it increments only for each reading? Then is only a reading increment not a timestamp?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer event handler problem</title><link>https://devzone.nordicsemi.com/thread/68399?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2016 16:14:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a97cbb5-0916-4ce0-a914-40040cc440c4</guid><dc:creator>Swapnil</dc:creator><description>&lt;p&gt;Thank you for your suggestion but i want to use the timer with reading data so that i can get the time intervals during reading. I am very close to that and if you have any suggestion with which i can read sensor with timer that would helpful&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer event handler problem</title><link>https://devzone.nordicsemi.com/thread/68398?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2016 16:07:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f127460c-10ea-440c-88d6-806e1ffe841a</guid><dc:creator>Sven</dc:creator><description>&lt;p&gt;I used the mpu9250 interrupt pin for reading the data. The interrupt pin is configurable. You can set the frequency and enable/disable the pin. With this you can save the timer for something else.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>