<?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 and low power</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73339/i2c-and-low-power</link><description>Hi, all 
 
 I&amp;#39;m trying to i2c(twi) in low power.. 
 
 In this case, I want to generate an interrupt through the i2c read function &amp;quot; read_touch_data &amp;quot; (under code). 
 
 Where should I define the &amp;quot;read_touch_data&amp;quot; function to generate an interrupt in low</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Apr 2021 09:51:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73339/i2c-and-low-power" /><item><title>RE: i2c and low power</title><link>https://devzone.nordicsemi.com/thread/303072?ContentTypeID=1</link><pubDate>Tue, 06 Apr 2021 09:51:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b80cf240-5615-4daf-a110-182f2d8ea842</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi again!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The TWI driver in the nRF5 SDK will enable interrupts for the necessary events if it is configured in &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/hardware_driver_twi.html?cp=7_1_2_0_17_1#hardware_driver_twi_basic"&gt;non-blocking mode&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The delay (&lt;span&gt;nrf_delay_ms(1000)) will prevent the CPU&amp;nbsp;from entering sleep for 1000 ms, which means that the TWI transfer will be done long before sleep is entered. The peripheral will still generate the interrupt in non-blocking mode though.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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><item><title>RE: i2c and low power</title><link>https://devzone.nordicsemi.com/thread/302747?ContentTypeID=1</link><pubDate>Wed, 31 Mar 2021 13:07:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27a97a7e-9bbf-4533-9a6b-94f217299fc3</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You want an interrupt that will trigger when the device goes into a low power state, is that correct? I&amp;#39;m not sure that&amp;#39;s possible but I will find out and get back to you.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Due to the Easter holidays here in Norway, you can expect an answer on Tuesday 6. april, at the earliest.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>