<?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>Timeslot API timeslot IRQs are received 75 us late</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57122/timeslot-api-timeslot-irqs-are-received-75-us-late</link><description>I am using the timeslot API, and I have noticed that if I read Timer0 as the first thing in my timeslot, it will be at 75 us. This delay is very consistent, so my timing between timeslots are accurate, but I find it strange that I dont get to execute</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Feb 2020 16:00:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57122/timeslot-api-timeslot-irqs-are-received-75-us-late" /><item><title>RE: Timeslot API timeslot IRQs are received 75 us late</title><link>https://devzone.nordicsemi.com/thread/232896?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2020 16:00:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:200fa371-7b68-468f-8f39-f4e1033f226d</guid><dc:creator>Sigurd</dc:creator><description>[quote user="Bertram"]So this is a big improvement, much lower delay and much more stable.[/quote]
&lt;p&gt;&amp;nbsp;Great!&lt;/p&gt;
[quote user="Bertram"]Do you have an expected value for the timer when the time slot begins? Is the 14-15 us to be expected?[/quote]
&lt;p&gt;&amp;nbsp;Yes, this seems to be expected. I&amp;#39;m measuring&amp;nbsp;the same value here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timeslot API timeslot IRQs are received 75 us late</title><link>https://devzone.nordicsemi.com/thread/232568?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2020 13:05:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f281d3a-9509-48d0-b57a-e192ec333d7a</guid><dc:creator>Bertram</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I tried with the 6.1.1 softdevice, and now I read a value between 14-15 us. So this is a big improvement, much lower delay and much more stable.&lt;/p&gt;
&lt;p&gt;Do you have an expected value for the timer when the time slot begins? Is the 14-15 us to be expected?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timeslot API timeslot IRQs are received 75 us late</title><link>https://devzone.nordicsemi.com/thread/232554?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2020 12:42:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bffc39ed-4142-46bb-9549-8d8593ac3eb1</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;From the release notes for&amp;nbsp;s140_nrf52_6.1.1, the following bug-fix is mentioned:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Fixed an issue where NRF_TIMER0 may not be reset at the start of a radio timeslot (DRGN-10650).&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Please use&amp;nbsp;s140_nrf52_6.1.1_softdevice.hex instead, and see if that fixes the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timeslot API timeslot IRQs are received 75 us late</title><link>https://devzone.nordicsemi.com/thread/232394?ContentTypeID=1</link><pubDate>Mon, 03 Feb 2020 15:20:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84eed655-c5bd-48cb-a062-0f25ab95b8c5</guid><dc:creator>Bertram</dc:creator><description>&lt;p&gt;I have now created an example that demonstrates the issue.&lt;/p&gt;
&lt;p&gt;I actually see the &amp;quot;timeslot delay&amp;quot; vary quite a bit, from minimum 61 us to maximum 91 us, but its always there.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The example debug prints (100 times a second) the timer 0 value on time slot start. The code does not exit the time slot, but waits in the time slot with while loops (while transmitting some dummy data on the radio), until it ends the time slot.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;See attached .zip :&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf_5F00_ticket.zip"&gt;devzone.nordicsemi.com/.../nrf_5F00_ticket.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timeslot API timeslot IRQs are received 75 us late</title><link>https://devzone.nordicsemi.com/thread/232241?ContentTypeID=1</link><pubDate>Mon, 03 Feb 2020 08:00:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5e45a8b-345a-4c49-b671-9116f97af6b6</guid><dc:creator>Bertram</dc:creator><description>&lt;p&gt;Hi Sigurd&lt;/p&gt;
&lt;p&gt;Yes, what you describe is exactly what I am doing.&lt;/p&gt;
&lt;p&gt;Which value are you reading when you read timer0 cc0 on N&lt;span&gt;RF_RADIO_CALLBACK_SIGNAL_TYPE_START ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;what is the expected value?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If 75 us is much higher than expected, I can create an example that reproduces the issue and runs on NRF52840-DK. I just did not want to spend the time stripping away non relevant code etc. and creating a nice lean example to demonstrate the issue,&amp;nbsp; if the 75 us was to be expected.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timeslot API timeslot IRQs are received 75 us late</title><link>https://devzone.nordicsemi.com/thread/232237?ContentTypeID=1</link><pubDate>Mon, 03 Feb 2020 07:47:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afff20f0-3b0d-4ede-ba54-4f2b5d242900</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;I was not able to reproduce this.&amp;nbsp;Are&amp;nbsp;you reading back the timer0 cc0 value when you get the NRF_RADIO_CALLBACK_SIGNAL_TYPE_START ?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
static volatile uint32_t cc_start_value;

nrf_radio_signal_callback_return_param_t * radio_callback(uint8_t signal_type)
{
    switch(signal_type)
    {
        case NRF_RADIO_CALLBACK_SIGNAL_TYPE_START:

            NRF_TIMER0-&amp;gt;TASKS_CAPTURE[0];
            cc_start_value = NRF_TIMER0-&amp;gt;CC[0];
            NRF_LOG_INFO(&amp;quot;NRF_RADIO_CALLBACK_SIGNAL_TYPE_START: TIMER0_CC0: %d&amp;quot;,cc_start_value);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timeslot API timeslot IRQs are received 75 us late</title><link>https://devzone.nordicsemi.com/thread/232046?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2020 10:12:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87af9da2-746c-4d55-8d57-b37577e30d7e</guid><dc:creator>Bertram</dc:creator><description>&lt;p&gt;I choose not to include code example etc. to reproduce the issue as I am just wondering if the observed time slot delay is to be expected behaviour or if I am doing something wrong.&lt;/p&gt;
&lt;p&gt;If it is not expected behaviour, I can always spend the time to create nice reproduce examples etc. if relevant.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>