<?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>multiple timers not working on nrf52832 Dev Kit</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25685/multiple-timers-not-working-on-nrf52832-dev-kit</link><description>Hello, 
 I am using the nrf52832 with SDK v12.3 and PCA10040. Not using any soft devices, nor the RTC. The program is intended such that timer0 is set to toggle a pin (P0_11) every 166us using 1MHz clock source and timer2 is set to toggle another pin</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Oct 2017 14:51:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25685/multiple-timers-not-working-on-nrf52832-dev-kit" /><item><title>RE: multiple timers not working on nrf52832 Dev Kit</title><link>https://devzone.nordicsemi.com/thread/101180?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2017 14:51:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8eea6a5-178a-456c-95b9-c542d00c1751</guid><dc:creator>Ed</dc:creator><description>&lt;p&gt;perfect -thank you for following up on this question&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multiple timers not working on nrf52832 Dev Kit</title><link>https://devzone.nordicsemi.com/thread/101178?ContentTypeID=1</link><pubDate>Wed, 11 Oct 2017 10:53:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7637efe-543f-41bf-a0ba-c8a0120aff6f</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;It have to do with interrupt latency in the ARM Cortex-M4 core. It takes time to both enter and exit the interrupt. It should be documented by ARM. See &lt;a href="http://infocenter.arm.com/help/topic/com.arm.doc.faqs/ka16366.html"&gt;this link&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multiple timers not working on nrf52832 Dev Kit</title><link>https://devzone.nordicsemi.com/thread/101179?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2017 14:55:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64f943aa-b20e-4df2-99a9-0dc635ff456b</guid><dc:creator>Ed</dc:creator><description>&lt;p&gt;Thank you for clarifying this Sigurd.  You said 1us is too fast, but what are the limits? Where are the limitations of the interrupts documented?  Furthermore, this seems like a timer peripheral limitation so it probably should be documented somewhere.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multiple timers not working on nrf52832 Dev Kit</title><link>https://devzone.nordicsemi.com/thread/101177?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2017 13:54:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66240afe-d57d-4f53-aa0a-50be6e25f805</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You need to use &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/ppi.html?cp=2_1_0_21#concept_sxf_21l_1s"&gt;PPI&lt;/a&gt; for this. 1us is too fast for regular interrupts. You can find a tutorial that shows how to configure a Timer to toggle a GPIO pin, in software and by using PPI and GPIOTE to bypass the CPU at &lt;a href="https://github.com/bjornspockeli/nRF52_ppi_timper_gpiote_example"&gt;this GitHub page&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You should also consider using the PWM for this, since the nRF52832 have dedicated PWM hardware. You can find a simple PWM example in &lt;a href="https://devzone.nordicsemi.com/question/137430/is-there-a-simple-example-how-to-set-a-pwm-driver/?answer=138420#post-id-138420"&gt;this post&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>