<?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>SPI with LS7366R</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83695/spi-with-ls7366r</link><description>Hi 
 I&amp;#39;m working with an nrf52840-dk on NCS 1.8.0. 
 I&amp;#39;m attempting to interface the board with an LS7366R quadrature counter over SPI; however, I&amp;#39;m not receiving any count information when it is requested. I&amp;#39;m an auditor, not an engineer, so I may be</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 31 Jan 2022 16:07:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83695/spi-with-ls7366r" /><item><title>RE: SPI with LS7366R</title><link>https://devzone.nordicsemi.com/thread/350499?ContentTypeID=1</link><pubDate>Mon, 31 Jan 2022 16:07:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17d62e51-4ad3-4061-a75c-b9d51f2b2959</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;You can probably do something like what is done in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/38308/high-drive-capability"&gt;this case&lt;/a&gt;, where the pin is configured to H0D1 (high drive 0, disconnect 1).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI with LS7366R</title><link>https://devzone.nordicsemi.com/thread/349379?ContentTypeID=1</link><pubDate>Mon, 24 Jan 2022 21:40:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47c66d40-7e97-4121-9797-f67eac70275c</guid><dc:creator>jopayne24</dc:creator><description>&lt;p&gt;Thanks Hakon.&lt;/p&gt;
&lt;p&gt;I see Zephyr GPIO documentation related to pin voltage flags - nothing about pin amperes or high-drive specifically . &amp;nbsp;Is there a standard method for setting SPI pins to high drive through zephyr APIs/device tree configs given nrf_gpio_cfg is not available with my current approach? &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI with LS7366R</title><link>https://devzone.nordicsemi.com/thread/349296?ContentTypeID=1</link><pubDate>Mon, 24 Jan 2022 14:17:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d6ebb49-ff0e-49f1-8159-8a7d30f5134c</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Perhaps you can try setting all the pins to high drive (SCK/MISO/MOSI). Also, you can consider doing a logic trace when using 2MHz or greater frequency, to see what it looks like.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI with LS7366R</title><link>https://devzone.nordicsemi.com/thread/349040?ContentTypeID=1</link><pubDate>Sat, 22 Jan 2022 00:08:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e5a9d76-b9a5-4ef9-8344-37ff838843bf</guid><dc:creator>jopayne24</dc:creator><description>&lt;p&gt;To update, I did get this working. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;I moved away from &amp;quot;standard drive&amp;quot; GPIOs (which I don&amp;#39;t believe made a difference, as it seems using those at frequencies above 10kHz isn&amp;#39;t a limitation, but rather, a recommendation due to potential radio interference), but more importantly, I reduced the SPI frequency from the attempted 2MHz down to the minimum 125kHz and worked my way up. &amp;nbsp;I did move from SPI1 to SPI3, but I think that only makes a difference if you&amp;#39;re looking for SPI frequencies greater than 8MHz (i.e., I was just trying different things).&lt;/p&gt;
&lt;p&gt;This leads to my follow-up question: &amp;nbsp;&lt;/p&gt;
&lt;p&gt;The counter reads/writes over the bus without issue if I compile with a SPI frequency of 1.99MHz or less. &amp;nbsp;If I attempt 2MHz or greater, the LS7366r stops responding to my count calls (assumedly my writes to the configuration registers don&amp;#39;t take either) just as it did in my main post above.&lt;/p&gt;
&lt;p&gt;Obviously this sounds like a limitation of the counter, but I slapped together an app on esp-idf that had no trouble at 2-4MHz, and the breadboards manufacturer&amp;#39;s Arduino library for the chip runs at 4MHz without issue. &amp;nbsp;The manufacturer also states that the breadboard the LS7366r is on can handle 20MHz due to the particular oscillator they mounted (the IC itself can go up to 40MHz when powered via 5v). &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is there a limitation with Zephyr regarding the SPI frequency or, again, something screwy with my configure? &amp;nbsp;I read the nrf52840 isn&amp;#39;t supported by Nordic re: Zephyr. &amp;nbsp;Is that true? &amp;nbsp;If so, I can close this ticket and stop hassling everyone.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI with LS7366R</title><link>https://devzone.nordicsemi.com/thread/348380?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 19:58:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01cf26ea-5575-44ed-bce4-ff64a0f923ee</guid><dc:creator>jopayne24</dc:creator><description>&lt;p&gt;Hi. &amp;nbsp;I&amp;#39;m powering on&amp;nbsp;J2, J-link USB.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI with LS7366R</title><link>https://devzone.nordicsemi.com/thread/348315?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 14:15:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06a7ed36-d2eb-4c53-b93e-03ee9cdf8110</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Are you powering the board through J-Link USB, or VDDH?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>