<?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>Nrf52810&amp;#39;s Timer input capture, can I use DMA transfer?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53558/nrf52810-s-timer-input-capture-can-i-use-dma-transfer</link><description>RT，Nrf52810&amp;#39;s Timer input capture, can I use DMA transfer?I want to save some time, see the manual, input capture is not possible to use DMA transfer</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Oct 2022 16:04:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53558/nrf52810-s-timer-input-capture-can-i-use-dma-transfer" /><item><title>RE: Nrf52810's Timer input capture, can I use DMA transfer?</title><link>https://devzone.nordicsemi.com/thread/391727?ContentTypeID=1</link><pubDate>Thu, 20 Oct 2022 16:04:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28a8140b-2f3b-4fce-9e8e-7bbca59cf04a</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="cwiesener"]I&amp;#39;ve tried to used another capture channel of the same timer but somehow the NRF_TIMER_TASK_CAPTURE4 of timer4 is permanent at the same value. But I have to admit that I am not sure if the event is correctly configured since the code in the header is always greyed out . And I do not know where TIMER_INTENSET_COMPARE4_Msk is defined.&lt;br /&gt;[/quote]
&lt;p&gt;Please make a new ticket for this issue.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/support/add"&gt;https://devzone.nordicsemi.com/support/add&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52810's Timer input capture, can I use DMA transfer?</title><link>https://devzone.nordicsemi.com/thread/391715?ContentTypeID=1</link><pubDate>Thu, 20 Oct 2022 14:26:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:569f6faf-6b91-433d-8f5e-498f8fc64695</guid><dc:creator>Constantin</dc:creator><description>&lt;p&gt;I am facing a similar problem. Two sensors are triggering with data_ready pins and a timer value is captured upon the event. But the value can be stored only in RAM if I have a context switch. But this depends on the processor usage. Therefore, it can be that one sensor triggers a capture event, but the interrupt routine is delayed due to softdevice processing etc. and in the meantime the other sensor triggers a more recent capture. In this case the timing is screwed. &lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried to used another capture channel of the same timer but somehow the NRF_TIMER_TASK_CAPTURE4 of timer4 is permanent at the same value. But I have to admit that I am not sure if the event is correctly configured since the code in the header is always greyed out . And I do not know where TIMER_INTENSET_COMPARE4_Msk is defined.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/** @brief Timer tasks. */
typedef enum
{
    NRF_TIMER_TASK_START    = offsetof(NRF_TIMER_Type, TASKS_START),      ///&amp;lt; Task for starting the timer.
    NRF_TIMER_TASK_STOP     = offsetof(NRF_TIMER_Type, TASKS_STOP),       ///&amp;lt; Task for stopping the timer.
    NRF_TIMER_TASK_COUNT    = offsetof(NRF_TIMER_Type, TASKS_COUNT),      ///&amp;lt; Task for incrementing the timer (in counter mode).
    NRF_TIMER_TASK_CLEAR    = offsetof(NRF_TIMER_Type, TASKS_CLEAR),      ///&amp;lt; Task for resetting the timer value.
    NRF_TIMER_TASK_SHUTDOWN = offsetof(NRF_TIMER_Type, TASKS_SHUTDOWN),   ///&amp;lt; Task for powering off the timer.
    NRF_TIMER_TASK_CAPTURE0 = offsetof(NRF_TIMER_Type, TASKS_CAPTURE[0]), ///&amp;lt; Task for capturing the timer value on channel 0.
    NRF_TIMER_TASK_CAPTURE1 = offsetof(NRF_TIMER_Type, TASKS_CAPTURE[1]), ///&amp;lt; Task for capturing the timer value on channel 1.
    NRF_TIMER_TASK_CAPTURE2 = offsetof(NRF_TIMER_Type, TASKS_CAPTURE[2]), ///&amp;lt; Task for capturing the timer value on channel 2.
    NRF_TIMER_TASK_CAPTURE3 = offsetof(NRF_TIMER_Type, TASKS_CAPTURE[3]), ///&amp;lt; Task for capturing the timer value on channel 3.
#if defined(TIMER_INTENSET_COMPARE4_Msk) || defined(__NRFX_DOXYGEN__)
    NRF_TIMER_TASK_CAPTURE4 = offsetof(NRF_TIMER_Type, TASKS_CAPTURE[4]), ///&amp;lt; Task for capturing the timer value on channel 4.
#endif
#if defined(TIMER_INTENSET_COMPARE5_Msk) || defined(__NRFX_DOXYGEN__)
    NRF_TIMER_TASK_CAPTURE5 = offsetof(NRF_TIMER_Type, TASKS_CAPTURE[5]), ///&amp;lt; Task for capturing the timer value on channel 5.
#endif
} nrf_timer_task_t;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52810's Timer input capture, can I use DMA transfer?</title><link>https://devzone.nordicsemi.com/thread/350612?ContentTypeID=1</link><pubDate>Tue, 01 Feb 2022 10:09:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02ee863a-9d76-4ea1-abec-ffd93f80967d</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;No&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52810's Timer input capture, can I use DMA transfer?</title><link>https://devzone.nordicsemi.com/thread/350597?ContentTypeID=1</link><pubDate>Tue, 01 Feb 2022 09:31:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68138eae-dbd4-491b-8ba6-c22b11a16fe9</guid><dc:creator>David Reimondez Garcia</dc:creator><description>&lt;p&gt;HI&lt;/p&gt;
&lt;p&gt;But is it possible to get the CC register values copied automatically to memory by DMA, without the processor doing that in a ISR?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52810's Timer input capture, can I use DMA transfer?</title><link>https://devzone.nordicsemi.com/thread/216449?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 17:37:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f10f120f-a2e9-47fc-b801-afa734e72af0</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can use PPI to trigger the TIMER task TASKS_CAPTURE[n]. When&amp;nbsp;&lt;span&gt;this CAPTURE[n] task is triggered, the Counter value is copied to the CC[n] register.&lt;/span&gt;&lt;span&gt;&amp;nbsp;So with PPI you can e.g. connected a GPIOTE event to trigger the TIMER CAPTURE task.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>