<?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>Radio events clock</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23749/radio-events-clock</link><description>Hi,
I&amp;#39;m doing some measurement on the radio peripheral of the nRF52840 using the generated events and a timer which is set to run at 16MHz. Radio events and Start/Capture Tasks of the timer are managed through the PPI.
With such configuration can I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Aug 2017 15:45:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23749/radio-events-clock" /><item><title>RE: Radio events clock</title><link>https://devzone.nordicsemi.com/thread/93426?ContentTypeID=1</link><pubDate>Tue, 22 Aug 2017 15:45:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e5784e9-86c3-47e3-b044-5391e9ac17e6</guid><dc:creator>Davide</dc:creator><description>&lt;p&gt;If it can be useful: going on with the tests I found that if I use the 2M PHY for doing the same test this behavior disappears.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio events clock</title><link>https://devzone.nordicsemi.com/thread/93424?ContentTypeID=1</link><pubDate>Mon, 07 Aug 2017 09:43:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7fe7bb6-bf96-4382-9d05-385a5a265d96</guid><dc:creator>Davide</dc:creator><description>&lt;p&gt;Ok, no worries.
If you manage to get some details of what&amp;#39;s going on I&amp;#39;ll be very grateful, otherwise thanks for the support.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio events clock</title><link>https://devzone.nordicsemi.com/thread/93425?ContentTypeID=1</link><pubDate>Mon, 07 Aug 2017 08:55:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8699129d-29a2-4ecc-b7a2-9aeda05fbeaf</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Davide,&lt;/p&gt;
&lt;p&gt;I tried to reproduce what you described here and saw the same thing. The value varied but never get odd value. It looks pretty strange. I will need to talk to some one in R&amp;amp;D. But since it&amp;#39;s not really a bug, it won&amp;#39;t have high priority for now. I will get back to you when I get some more information from R&amp;amp;D.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio events clock</title><link>https://devzone.nordicsemi.com/thread/93422?ContentTypeID=1</link><pubDate>Tue, 01 Aug 2017 14:07:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9c977cb-0d61-4183-bd3e-4eaddb6b52d4</guid><dc:creator>Davide</dc:creator><description>&lt;p&gt;For what I see in the data I collected, it may be that the radio works mainly at 16MHz (because the interval between RADIO-&amp;gt;EVENTS_TXREADY and RADIO-&amp;gt;EVENTS_ADDRESS is always 627 ticks), but some time delays or some events seems to be clocked at 8 MHz (the interval between RADIO-&amp;gt;(TX)EVENTS_END and RADIO-&amp;gt;(RX)EVENTS_ADDRESS it is always even).&lt;/p&gt;
&lt;p&gt;Here I copy some of the results for the the interval between RADIO-&amp;gt;(TX)EVENTS_END and RADIO-&amp;gt;(RX)EVENTS_ADDRESS.
Keep in mind that: the values represent 16MHz ticks, and I selected the samples among all the collected ones because the last one is odd.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    4484
    4482
    4484
    4486
    4482
    4482
    4486
    4486
    4484
    4482
    4486
    4484
    4484
    4482
    4482
    4482
    4484
    4484
    4484
    4486
    4482
    4484
    4489
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio events clock</title><link>https://devzone.nordicsemi.com/thread/93423?ContentTypeID=1</link><pubDate>Tue, 01 Aug 2017 13:46:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c36d0aff-6c08-4d83-8388-b61fbef9c1ad</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Davide,
Sorry that I haven&amp;#39;t got chance to test yet, but I got some information that the radio runs on 4MHz clock (not 100% sure) so the event throwing out is actually on that resolution. This could explain why you only see even value.
Could you post some of the counter values you got ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio events clock</title><link>https://devzone.nordicsemi.com/thread/93420?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 09:31:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da786dff-7d97-4e5c-bf0d-b1bde25bda8b</guid><dc:creator>Davide</dc:creator><description>&lt;p&gt;Yes, I get odd and even values out of the timer in the general case, but the interval between RXREADY and ADDRESS is even 99% of the times: the measurement noise, which is there, doesn&amp;#39;t make odd values. I cannot change the address size because I&amp;#39;m working with Bluetooth and softdevice s140, I don&amp;#39;t think I can change address size keeping the softdevice working.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know if it can be the nature of the radio, I&amp;#39;m not into CMOS radio design actually...but it wouldn&amp;#39;t surprise me if it is (symbol rate is 1Mbit, clock is 16MHz, there may be some rounding somewhere, I don&amp;#39;t know).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio events clock</title><link>https://devzone.nordicsemi.com/thread/93418?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2017 19:56:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:367b7767-0e9f-4def-84d4-057f681213b5</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;You can create a case in support portal (my page) and note my name/ link to the case there. Or u can send me a PM with the link to your file on dropbox or google drive.&lt;/p&gt;
&lt;p&gt;As I understand , u can see both odd and even value if u test with a simple delay and gpio or other radio event. But u never get odd on that partocular READY and ADDRESS event ? Could that be the nature of the radio ? Can u change the address size and test ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio events clock</title><link>https://devzone.nordicsemi.com/thread/93416?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2017 13:26:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0fd3da9-2b1f-4aa4-9fda-4df09c5dc7f5</guid><dc:creator>Davide</dc:creator><description>&lt;p&gt;I&amp;#39;m quite sure the timer is working properly because on another RADIO event I get odd values, but this is not the event I&amp;#39;m interested in.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have any problem in giving you the source code, but I don&amp;#39;t know how to do it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio events clock</title><link>https://devzone.nordicsemi.com/thread/93421?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2017 12:53:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe6ba644-42cc-4df2-96d3-9f5fc730a8da</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Davide,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry that we are quite short in staff now because of the summer vacation period. I can&amp;#39;t to test right now.&lt;/p&gt;
&lt;p&gt;It would be very nice if you can provide the firmware so we can reproduce here. I would suggest to have something like:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Setting up PPI, connect a GPIOTE EVENT 1 to TIMER TASKS_START&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Setting up PPI, connect a GPIOTE EVENT 2 to TIMER TASKS_CAPTURE&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Start a loop, trigger GPIOTE EVENT 1, put some delay , trigger GPIOTE EVENT 2&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Print out the Captured value and go back to step 3.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;This will clearly show the strange behaviour that we only have even capture value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio events clock</title><link>https://devzone.nordicsemi.com/thread/93419?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2017 14:04:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fef2699-6aee-47e0-ad73-203d945d37c1</guid><dc:creator>Davide</dc:creator><description>&lt;p&gt;That&amp;#39;s exactly what I did with the same result. I have some noise over the measurement (due to propagation time and clock drifts on the two devices), but I (almost) never get odd number of timer ticks. With the pin toggle tecnique I see that the noise makes the transition happen only on 8MHz edges.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio events clock</title><link>https://devzone.nordicsemi.com/thread/93417?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2017 13:56:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2983f74-a184-4f4b-8aba-a5de38f9282e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;How did you verify that the granularity is 8MHz not 16MHz ? I would suggest you to test using a pin toggle where you can measure using logic analyzer and compare with the Timer count you have using PPI.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio events clock</title><link>https://devzone.nordicsemi.com/thread/93414?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2017 12:19:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:210362e7-1fbd-4a35-a5ae-ee7112d21024</guid><dc:creator>Davide</dc:creator><description>&lt;p&gt;The PPI is configured to connect the RADIO-&amp;gt;EVENTS_READY with the TIMER-&amp;gt;TASKS_START and then the counter value is captured connecting RADIO-&amp;gt;EVENTS_ADDRESS with  the TIMER-&amp;gt;TASKS_CAPTURE. Then the timer itself triggers the execution of a routine which stops and clears the timer and retrieves the captured value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio events clock</title><link>https://devzone.nordicsemi.com/thread/93415?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2017 14:18:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41cf0550-ac4f-4d5e-b8d4-50d683ba11aa</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Davide,
I think it should be 1/16MHz accuracy. At least it&amp;#39;s the frequency of the timer&amp;#39;s Tick can achieve.&lt;/p&gt;
&lt;p&gt;Could you let me know how you connect PPI between the Radio and the Timer ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>