<?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>nrf52840 ds18b20</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50529/nrf52840-ds18b20</link><description>hi, team. 
 I&amp;#39;ve got a question. I use nrf52840 dev board. There is a connection between nrf52840 and ds18b20. I tried to use dedicated HW timer to count delay according to 1-wire spec. And i faced 2 problems: 
 1. i&amp;#39;d like to setup HW timer to generate</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Aug 2019 15:52:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50529/nrf52840-ds18b20" /><item><title>RE: nrf52840 ds18b20</title><link>https://devzone.nordicsemi.com/thread/201965?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2019 15:52:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:092421fb-8d82-4c2a-89f6-4be3b6275895</guid><dc:creator>awneil</dc:creator><description>[quote userid="80955" url="~/f/nordic-q-a/50529/nrf52840-ds18b20"]i&amp;#39;d like to setup HW timer to generate 1us, but instead i got only 13us (1us expected).[/quote]
&lt;p&gt;Show your code&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/4274._5F00_Insert-Code-_2D00_-Nordic-2.png" /&gt;&lt;/p&gt;
[quote userid="80955" url="~/f/nordic-q-a/50529/nrf52840-ds18b20"]Is it possible to use dedicated HW timer to count delay for ds18b20[/quote]
&lt;p&gt;I don&amp;#39;t know for sure, but I suspect not.&lt;/p&gt;
&lt;p&gt;As noted in your other thread, you&amp;#39;d probably be better off either using an external chip to do the timing, or faking it on the UART or SPI&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/50426/nrf52840-ds18b20"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/50426/nrf52840-ds18b20&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;One thing to note is that the 1-Wire timing is only critical &lt;em&gt;within&lt;/em&gt; a bit timeslot&amp;nbsp; - the timing &lt;em&gt;between&lt;/em&gt; bits is completely non-critical.&lt;/p&gt;
&lt;p&gt;The SoftDevice has a Timeslot API - which might be useful to schedule the 1-Wire&amp;nbsp;&lt;span&gt;bit timeslot into places where the &lt;span style="font-size:12px;"&gt;radio&lt;/span&gt;&amp;nbsp;won&amp;#39;t interrupt...?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/concurrent_multiprotocol_tsl_api/radio_tsl_api.html"&gt;https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/concurrent_multiprotocol_tsl_api/radio_tsl_api.html&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>