<?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>[Timer0] Unreasonable Behavior and NRFX nrfx_timer_extended_compare function signature</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113502/timer0-unreasonable-behavior-and-nrfx-nrfx_timer_extended_compare-function-signature</link><description>Hi Nordic, 
 
 I am implementing a micros() in the arduino using nrfx driver. 
 Below is test code and I got some questions. 
 
 
 [Question 1] 
 Timer 1 and Timer 2 works perfectly as I expected. You can check it on the Segger RTT Viewer (upper image</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Aug 2024 06:56:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113502/timer0-unreasonable-behavior-and-nrfx-nrfx_timer_extended_compare-function-signature" /><item><title>RE: [Timer0] Unreasonable Behavior and NRFX nrfx_timer_extended_compare function signature</title><link>https://devzone.nordicsemi.com/thread/496524?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 06:56:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d98eb13-ea9f-4a80-9b8d-331c337d5968</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user=""]Is there any case that 2nd&amp;nbsp;arg (=channel)&amp;nbsp;and 3rd arg (=action) not to be the&amp;nbsp;same channel?[/quote]
&lt;p&gt;No this would not work, since the fourth argument (=action) only enables the short and the second argument configures the the intterrupt on the different channel. So if the channels mismatch here, then you configure a cc channel but enable the wrong short which is&amp;nbsp;not what we intend normally to use. But like Turbo_J said, you can be always creative to use the side effects of misuse of API if you are very clear and sure to know what you are doing. But then you are on your own with the side effects.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Timer0] Unreasonable Behavior and NRFX nrfx_timer_extended_compare function signature</title><link>https://devzone.nordicsemi.com/thread/496519?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 06:46:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1262086-0acb-4afa-a3fc-b5f40da0f864</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Second question has no clear answer, its possible that you can find a very creative use case for this kind of API abuse.&lt;/p&gt;
&lt;p&gt;But I would also always expect a mistake when the channel numbers don&amp;#39;t match.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Timer0] Unreasonable Behavior and NRFX nrfx_timer_extended_compare function signature</title><link>https://devzone.nordicsemi.com/thread/496475?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2024 19:18:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8622a7f-9e7c-4d69-b131-7c80e247c223</guid><dc:creator>Robotics Gun</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1722453467541v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrfxlib/mpsl/doc/mpsl.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrfxlib/mpsl/doc/mpsl.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks &lt;a href="https://devzone.nordicsemi.com/members/turboj"&gt;Turbo J&lt;/a&gt;&amp;nbsp; &lt;a href="https://devzone.nordicsemi.com/members/aryan"&gt;Susheel Nuguru&lt;/a&gt;&amp;nbsp;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/aryan"&gt;Susheel Nuguru&lt;/a&gt;&amp;nbsp;may I get an answer for 2nd question?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Timer0] Unreasonable Behavior and NRFX nrfx_timer_extended_compare function signature</title><link>https://devzone.nordicsemi.com/thread/496213?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2024 12:37:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f01bfcc-f21c-486f-ba24-3e071dd8c140</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Fischer is right,&amp;nbsp;&lt;span&gt;&amp;nbsp;applications cannot use TIMER0 with the SoftDevice Controller (SDC) on nRF52. The SoftDevice reserves access to TIMER0 for internal timekeeping.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Softdevice reserved peripherals are listed &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrfxlib/softdevice_controller/doc/softdevice_controller.html"&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Softdevice have MPSL, that also have reserved peripherals that the application cannot use which are listed here and the TIMER0 as you can see &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrfxlib/mpsl/doc/mpsl.html"&gt;here &lt;/a&gt;is restricted to be used by application.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Timer0] Unreasonable Behavior and NRFX nrfx_timer_extended_compare function signature</title><link>https://devzone.nordicsemi.com/thread/496125?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2024 06:58:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f5f6f0a-a494-40ec-b96b-6d1c04684c4e</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;AFAIK&amp;nbsp; yes - but read those softdevice specifications yourself. I&amp;#39;ve not used NRF52x since the switch to zephyr.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Timer0] Unreasonable Behavior and NRFX nrfx_timer_extended_compare function signature</title><link>https://devzone.nordicsemi.com/thread/496123?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2024 06:49:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97f717c3-edc0-4d62-a54e-429d20f0d3d7</guid><dc:creator>Robotics Gun</dc:creator><description>&lt;p&gt;My appliction is to use BLE. Then the timer 0 is used by BLE stack?&lt;/p&gt;
&lt;p&gt;Is that what you mean?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Timer0] Unreasonable Behavior and NRFX nrfx_timer_extended_compare function signature</title><link>https://devzone.nordicsemi.com/thread/496121?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2024 06:43:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6b607cc-d373-4328-917e-91e5c8c29eca</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Careful: Timer0 is normally blocked by SoftDevice. Avoid using that even if you don&amp;#39;t use BTLE right now in&amp;nbsp; your project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>