<?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>I2C stops working on nRF9160-DK board version 1.1.0 when SW9 is switched to non default 3V position</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/108034/i2c-stops-working-on-nrf9160-dk-board-version-1-1-0-when-sw9-is-switched-to-non-default-3v-position</link><description>I have ported a sample program and library from Arduino to Zephyr and start the code in asset_tracker_v2 main(). This is what I am testing: E-paper Display Kit - Ynvisible . The recommendation from Ynvisible is to run their hardware at 3.3 volts. It actually</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Mar 2024 18:28:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/108034/i2c-stops-working-on-nrf9160-dk-board-version-1-1-0-when-sw9-is-switched-to-non-default-3v-position" /><item><title>RE: I2C stops working on nRF9160-DK board version 1.1.0 when SW9 is switched to non default 3V position</title><link>https://devzone.nordicsemi.com/thread/473731?ContentTypeID=1</link><pubDate>Wed, 13 Mar 2024 18:28:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1318dcd4-4a14-43f2-b27e-368c69cbbaac</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;Yep, exact same behavior as nRF9160!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C stops working on nRF9160-DK board version 1.1.0 when SW9 is switched to non default 3V position</title><link>https://devzone.nordicsemi.com/thread/473518?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2024 18:42:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e92c43f-278a-4280-974e-1c066a58ab85</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;Thanks, Jonathan. Just for fun, I may try to wire up an nRF52840Dongle I have here to the Ynvisible display and see the results. A test of my soldering skills!&lt;/p&gt;
&lt;p&gt;Burt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C stops working on nRF9160-DK board version 1.1.0 when SW9 is switched to non default 3V position</title><link>https://devzone.nordicsemi.com/thread/473492?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2024 15:28:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37ee6cb0-6b99-465b-a74d-385f96a79b51</guid><dc:creator>JONATHAN LL</dc:creator><description>[quote user="Burt"]But just curious, does Nordic Semi produce any parts that use a different hardware TWIM?[/quote]
&lt;p&gt;we currently do not.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C stops working on nRF9160-DK board version 1.1.0 when SW9 is switched to non default 3V position</title><link>https://devzone.nordicsemi.com/thread/470066?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2024 15:05:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c61a592-941a-4ceb-9b78-6c35a08ce2e5</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;Thanks, Jonathan. I experimented and found that my Ynvisible hardware worked when I dropped the Baudrate register to 0x17F0000; used a scope to see 93 kHz, not realizing that the Baudrate is linear. All good. But just curious, does Nordic Semi produce any parts that use a different hardware TWIM? I know that would not help me; I just wish the hardware could be set to 100 kHz and be compatible with Ynvisible because Arduino Atmel chips work that way. You know, something about the way clock stretching is done.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C stops working on nRF9160-DK board version 1.1.0 when SW9 is switched to non default 3V position</title><link>https://devzone.nordicsemi.com/thread/469993?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2024 11:38:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ac9a75e-5ed9-49a3-91b6-b54ebb60ee57</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hi Burt,&lt;br /&gt;&lt;br /&gt;There is a older reply on a UART case but the formula is the same for TWI,&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/391/uart-baudrate-register-values/2046"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/391/uart-baudrate-register-values/2046&lt;/a&gt;&amp;nbsp;.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The formula is: Baudrate = desired baudrate * 2^32 / 16000000&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C stops working on nRF9160-DK board version 1.1.0 when SW9 is switched to non default 3V position</title><link>https://devzone.nordicsemi.com/thread/469344?ContentTypeID=1</link><pubDate>Sat, 17 Feb 2024 16:38:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97180554-1b6c-4351-beef-795b79976a6f</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;Hello DevZone, I am ready for a bit more help. The engineering team at Ynvisible recommended that I slow the I2C bus down from 100 kHz to 10 kHz. I did this using the Zephyr bitbang I2C software driver and I had SUCCESS. I would like to try this with a temporary hack to the hardware driver code in modules/hal/nordic/nrfx/mdk/nrf9160_bitfields.h: the line&lt;/p&gt;
&lt;p&gt;#define TWIM_FREQUENCY_FREQUENCY_K100 (0x01980000UL) /*!&amp;lt; 100 kbps */&lt;/p&gt;
&lt;p&gt;I would like to change the number for 0x019800000 to a number that will give a slightly slower bus. I would be grateful if you could provide me with a formula for choosing the value, given bus frequency as input. So I could try 95kHz, 90kHz,... to see how far down I have to go in order to have success. One of the hardware engineers must know a formula. I know it&amp;#39;s a bit ugly but we want something that works. Thanks, please get back to me.&lt;/p&gt;
&lt;p&gt;Burt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C stops working on nRF9160-DK board version 1.1.0 when SW9 is switched to non default 3V position</title><link>https://devzone.nordicsemi.com/thread/467502?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2024 07:23:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cfe312d-5e87-483b-875c-ebb6e481d485</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;That&amp;rsquo;s funny, I just assumed you were one of the Nordic folks. I guess our discussion should help them fill in more details. Thanks.&lt;/p&gt;
&lt;p&gt;Burt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C stops working on nRF9160-DK board version 1.1.0 when SW9 is switched to non default 3V position</title><link>https://devzone.nordicsemi.com/thread/467501?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2024 07:15:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5d33f94-42f3-4400-8bcc-ae5592d8fe7b</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;Hi Burt,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m just an other user, which used the DK with i2C and 1.8V or 3.0V. In my experience, that worked quite well. But for more details about the nRF9160-DK i2c or expert questions, I&amp;#39;m the wrong ;-). &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C stops working on nRF9160-DK board version 1.1.0 when SW9 is switched to non default 3V position</title><link>https://devzone.nordicsemi.com/thread/467480?ContentTypeID=1</link><pubDate>Sun, 04 Feb 2024 20:27:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:734eac7b-8984-4e36-9b5a-b9a048020f36</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;Hello Achim,&lt;/p&gt;
&lt;p&gt;I am getting a different result on the 0.9.0 nrf9160-DK: I do not get any I/O errors, regardless of the SW9 voltage setting. Oh, I am using pins P19 pins 9 (SDA) and 10 (SCL). They are marked P0.30 and P0.31. Note that on the 1.1.0 board this P19 is relabeled as P4 and still has P0.30 and P0.31. Although I do not get any I/O errors using the 0.9.0 board, many times the display does not change numbers (sequence -99...0...99 incrementing once every 5 seconds). Randomly it cooperates. That must be the lack of pull up resistors on that board.&lt;/p&gt;
&lt;p&gt;At one point this morning I accidentally reverse powered the Ynvisible adapter board. I thought I had toasted it but then I tried it on my 5 Arduino boards, and it is fine, everywhere. It never fails to count there. But they did trick me on the Arduino DUE by moving the standard I2C port to different pins (looking carefully one sees that the &amp;quot;regular&amp;quot; pins are no longer SCL and SDA but are SCL1 and SDA1).&lt;/p&gt;
&lt;p&gt;I see that the circuitry on the nRF9160-DK board changed for SDA and SCL between 0.9.0 and 1.1.0. I do not have a good understanding of the 1.1.0 circuitry although I tried to casually read the datasheet for the PCAL6408A. I half understand the circuitry: they added pullup resistors and an analog switch and the PCAL6408A.&lt;/p&gt;
&lt;p&gt;I am still baffled why the 1.1.0 board works only with the low VDD of 1.8 volts. Please help me understand the circuitry to the level of detail required to understand what is going on. Thanks.&lt;/p&gt;
&lt;p&gt;Burt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C stops working on nRF9160-DK board version 1.1.0 when SW9 is switched to non default 3V position</title><link>https://devzone.nordicsemi.com/thread/467477?ContentTypeID=1</link><pubDate>Sun, 04 Feb 2024 17:24:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:601d1106-f33a-49cd-a6f1-821e8a822b54</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;Hi Burt,&lt;/p&gt;
&lt;p&gt;&amp;gt; Now, before testing on the nRF9160 I had successfully tested on an Arduino board, using 3.3 volt power.&lt;/p&gt;
&lt;p&gt;That&amp;#39;s promising. So, which I/O pins on the nRF9160-DK are you using? Maybe you try, if a 10K pull-ups helps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C stops working on nRF9160-DK board version 1.1.0 when SW9 is switched to non default 3V position</title><link>https://devzone.nordicsemi.com/thread/467476?ContentTypeID=1</link><pubDate>Sun, 04 Feb 2024 15:49:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e9b7434-7742-48e3-8705-fe6dc682e3f1</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;Hello Achim,&lt;/p&gt;
&lt;p&gt;Thank you for your quick reply. But I need more help! The e-paper itself may run at 1.5 volts, but I am using their test kit that has an I2C adapter and the instructions specify 3.3 volts:&amp;nbsp;&lt;a href="https://www.ynvisible.com/getting-started"&gt;How to Set Up Ynvisible&amp;#39;s Segment Display | Ynvisible&lt;/a&gt;. That link mentions an older kit that specified a 5-volt power connection. Now, before testing on the nRF9160 I had successfully tested on an Arduino board, using 3.3 volt power.&lt;/p&gt;
&lt;p&gt;I had made one nRF9160DK error when I opened this ticket. I had programmed the nRF9160dk_nrf52840 to the hci_lpuart sample for some other work. But I used the Programmer to both realize this mistake and reprogram back to&amp;nbsp;nrf9160_dk_board_controller_fw_2.0.1.hex. Reprogramming did not help.&lt;/p&gt;
&lt;p&gt;Here is my program top level. The first number I try to display does appear, even though I cannot display more than that given the -EIO errors.&lt;/p&gt;
&lt;p&gt;Can the board be damaged by programming hci_lpuart? If so, I&amp;#39;d better work with the supplier for money back.&lt;/p&gt;
&lt;p&gt;I will have to try this using an older DK board (I have 0.9.0 and 0.8.3). And I may look around the house for other I2C devices and possibly try a small program for them.&lt;/p&gt;
&lt;p&gt;I appreciate any more help, anything you can think of that might apply.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Burt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C stops working on nRF9160-DK board version 1.1.0 when SW9 is switched to non default 3V position</title><link>https://devzone.nordicsemi.com/thread/467469?ContentTypeID=1</link><pubDate>Sun, 04 Feb 2024 08:25:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c88c9e26-899c-4177-82f1-2942ce8fa0f2</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;If you read the datasheets of the E-paper, you may get aware, that there are two versions, the old gen1 with 3v, and a new gen2 with 1.5V. If you operate a gen2 with 3V, then you&amp;#39;re out of spec.&lt;/p&gt;
&lt;p&gt;In my experience, the nRF9160-DK itself works well using i2c with either 1.8V or 3V, as long as the connected i2c device supports that as well. Sometimes you need to care, if a device uses different voltage levels for power supply and I/O, that&amp;#39;s all in the datasheets.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>