<?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>Control peripherals (nRF52840 and Zephyr)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92251/control-peripherals-nrf52840-and-zephyr</link><description>Hi, 
 
 I am a novice in the Nordic world. I have to say it is really new conception for me. I am used to work with STM32 and freeRTOS. 
 If I understand corectly, when I want to control any of peripherals (like TIMER, SPI, UART,..) it is controlled via</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Sep 2022 11:22:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92251/control-peripherals-nrf52840-and-zephyr" /><item><title>RE: Control peripherals (nRF52840 and Zephyr)</title><link>https://devzone.nordicsemi.com/thread/387671?ContentTypeID=1</link><pubDate>Fri, 23 Sep 2022 11:22:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:783b7897-cfcc-49a3-8775-13d57a5645fa</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]It means all peripherals are like some software tasks, or just only &amp;quot;unusal&amp;quot; name of registers is confusing me and still it is &amp;quot;normal&amp;quot; hardware peripherals?[/quote]
&lt;p&gt;The TASKS_* registers are used for PPI: &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/ppi.html"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf52840/ppi.html&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;It has nothing to do with RTOS tasks.&lt;/p&gt;
&lt;p&gt;However, while you can control the peripherals via the registers directly, I recommend using a driver instead. There are several layers of drivers, where each layer generally trades fine control versus convenience.&lt;/p&gt;
&lt;p&gt;We have a NCS fundamentals course which amongst other things covers how to use Zephyr&amp;#39;s drivers (which is generally the recommended approach): &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;We also have an older guide (it was written for NCS v1.5.0), which goes deeper into some of the details of NCS, including the drivers: &amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/getting-started/posts/nrf-connect-sdk-tutorial"&gt;nRF Connect SDK Tutorial series - Part 0 | NCS v1.5.0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There has been a lot of changes in NCS since v1.5.0, so don&amp;#39;t expect all the details and examples to work in the newer versions, but the general ideas and concepts should still be applicable.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>