<?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>Timer3 Interrupt with compare with pin toggle - time is varying</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112652/timer3-interrupt-with-compare-with-pin-toggle---time-is-varying</link><description>Hi there. 
 I&amp;#39;m using nRF5 SDK 17.1.0 with nrf52840. 
 I&amp;#39;ve configured my timer3 to interrupt by compare with 10us ticks. When it does, I toggle a pin. But when I measure the high and low periods of the pin with osciloscope, high period is shorter than</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Jul 2024 12:31:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112652/timer3-interrupt-with-compare-with-pin-toggle---time-is-varying" /><item><title>RE: Timer3 Interrupt with compare with pin toggle - time is varying</title><link>https://devzone.nordicsemi.com/thread/492454?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2024 12:31:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db53f765-6fae-4c42-9d28-b36381b80a12</guid><dc:creator>ricardo.oliveira</dc:creator><description>&lt;p&gt;thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer3 Interrupt with compare with pin toggle - time is varying</title><link>https://devzone.nordicsemi.com/thread/492444?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2024 12:15:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:954fe931-1abf-45f8-ba70-5de511db2f2b</guid><dc:creator>Sigurd</dc:creator><description>[quote user="ricardo.oliveira"]What is not clear for me is if the timer resets after compare interruption by itself or if it keeps counting until overflow it&amp;#39;s limits[/quote]
&lt;p&gt;since you are using&amp;nbsp;&lt;em&gt;NRF_TIMER_SHORT_COMPARE3_CLEAR_MASK&lt;/em&gt;&lt;span&gt;&amp;nbsp;, it&amp;#39;s configured in HW to clear/reset itself when the compare3 event happens.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer3 Interrupt with compare with pin toggle - time is varying</title><link>https://devzone.nordicsemi.com/thread/492439?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2024 12:03:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79e58dda-1615-4679-b9c6-f4e5dfd1bdcc</guid><dc:creator>ricardo.oliveira</dc:creator><description>&lt;p&gt;Hi, thanks for replying.&lt;br /&gt;What is not clear for me is if the timer resets after compare interruption by itself or if it keeps counting until overflow it&amp;#39;s limits (for example, if it&amp;#39;s set to 16 bits, will it count till 65535 even after compare interrupt?)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer3 Interrupt with compare with pin toggle - time is varying</title><link>https://devzone.nordicsemi.com/thread/491834?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2024 12:28:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a04f1369-d432-4839-b520-60b5ae1b7b14</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;IRQ latency will vary depending on if there are other interrupts happening.&lt;/p&gt;
&lt;p&gt;If you want&amp;nbsp;highest possible precision, use GPIOTE+TIMER+PPI to do the toggling.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>