<?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 2 not capturing value</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96205/timer-2-not-capturing-value</link><description>I am currently trying to set up TIMER 2 to cause a compare event near overflow. I have the default timer configurations set up, and the compare event seems to trigger as I see in the debugger. When I try to capture the value of CC[1] when it compares</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 Feb 2023 14:42:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96205/timer-2-not-capturing-value" /><item><title>RE: TIMER 2 not capturing value</title><link>https://devzone.nordicsemi.com/thread/408040?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2023 14:42:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c074daaf-d613-4d28-b300-bbeeae13f083</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Yes, Whatever that happens in the callback handler will happen after the PPI have performed the Clear mask task. The callback handler runs in the CPU while the clearing of the mask use PPI which is independent of the CPU.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TIMER 2 not capturing value</title><link>https://devzone.nordicsemi.com/thread/407627?ContentTypeID=1</link><pubDate>Wed, 01 Feb 2023 16:47:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0325047-8420-4d63-979e-4e0cd335b5e2</guid><dc:creator>inspiringdev123</dc:creator><description>&lt;p&gt;I removed the extended compare to a normal compare and am now reading in values on CC[1]. Would the Clear Mask Task clear the timer before I am able to capture the value?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TIMER 2 not capturing value</title><link>https://devzone.nordicsemi.com/thread/407612?ContentTypeID=1</link><pubDate>Wed, 01 Feb 2023 15:39:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f5bdea3-b966-4920-8ef1-98a4d1753be9</guid><dc:creator>inspiringdev123</dc:creator><description>&lt;p&gt;&lt;span&gt;An input pulse is controlling the GPIOTE event (from a car&amp;#39;s speed sensor or tachometer pin). Still early in development, so I am not concerned with this aspect yet. I want to get the Compare event on CC[1] to work first. The compare should allow me to capture a value above 60,000, but the value in the register when I capture is very low at times. The bit width is set to 16 bit in my Config&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/6406.Capture.JPG" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TIMER 2 not capturing value</title><link>https://devzone.nordicsemi.com/thread/407607?ContentTypeID=1</link><pubDate>Wed, 01 Feb 2023 15:31:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a9c039d-902c-4911-826c-08a76c796e3e</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could explain a bit more in detail what your code does?&lt;/p&gt;
&lt;p&gt;As far as I can see you&amp;#39;re setting up a PPI on channel 2 that connects the LoToHigh event on a GPIOTE pin to a CAPTURE task. Which means that when the pin is toggled from low to high, the value of the Timer will be captured in the CC2 register. At same time you&amp;#39;re setting up a COMPARE event on CC1 register for 60000. What is controlling the GPIOTE pin? And can you share a screenshot of the the Timer registers when you get the first event.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also what is&amp;nbsp;TIMER_DEFAULT_CONFIG_BIT_WIDTH set to in your config file?&lt;/p&gt;
&lt;p&gt;regards&lt;br /&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>