<?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>Exact pulse timing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63695/exact-pulse-timing</link><description>Hi, 
 With the S132 SoftDevice running, is there a way I can ask it to temporarily pause interrupts for a small segment of time so that I can execute extremely time critical code? 
 Alternatively, is there a hardware assist way to time exact highs and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 19 Jul 2020 02:37:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63695/exact-pulse-timing" /><item><title>RE: Exact pulse timing</title><link>https://devzone.nordicsemi.com/thread/260699?ContentTypeID=1</link><pubDate>Sun, 19 Jul 2020 02:37:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa9b32ec-1128-4381-abc7-628b97be7f00</guid><dc:creator>kevy</dc:creator><description>&lt;p&gt;&lt;span&gt;Thanks Dmitry. In case anyone wants to do the same, I was able to get SPIM2 to output the correct pulse widths using 0x01 for a 0-bit and 0x0F for a 1-bit with the speed set to 4MHz.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Exact pulse timing</title><link>https://devzone.nordicsemi.com/thread/259622?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2020 07:53:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7f5b137-8016-4f50-ac23-872b6b4335a5</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;Hi Kevin,&lt;/p&gt;
[quote userid="89253" url="~/f/nordic-q-a/63695/exact-pulse-timing"]With the S132 SoftDevice running, is there a way I can ask it to temporarily pause interrupts for a small segment of time so that I can execute extremely time critical code?[/quote]
&lt;p&gt;You can achieve this with &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/software-development-kit/posts/setting-up-the-timeslot-api"&gt;timeslot api&lt;/a&gt;.&lt;/p&gt;
[quote userid="89253" url="~/f/nordic-q-a/63695/exact-pulse-timing"]Alternatively, is there a hardware assist way to time exact highs and lows out a digital pin in order to drive a WS2812C RGB LED string? The timing for the bits need to be exact and this device requires timing&amp;nbsp;NRZ output pulses.[/quote]
&lt;p&gt;The simplest way is to use UARTE - you can configure it for about 800 kbps, that gives 1.25 usec for one-bit cycle, then program TX buffer with a pattern of 0x7&amp;#39;s as 0 / 0x3f&amp;#39;s as 1 (that&amp;#39;s for 2812B, I don&amp;#39;t know whether 2812C has the same timings).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>