<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Codesys on raspberry pi - I2C with interupt</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/13e4ab24d3/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/13e4ab24d3/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/13e4ab24d3/</id><updated>2021-01-14T15:44:22.961000Z</updated><subtitle>Recent posts to Codesys on raspberry pi - I2C with interupt</subtitle><entry><title>Codesys on raspberry pi - I2C with interupt</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/13e4ab24d3/?limit=25#3989/c8bb" rel="alternate"/><published>2021-01-14T15:44:22.961000Z</published><updated>2021-01-14T15:44:22.961000Z</updated><author><name>Morberis</name><uri>https://forge.codesys.com/u/morberis/</uri></author><id>https://forge.codesys.com65158d3511ed0fc6409003c11258e4fd0844cb57</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Sorry yes that could work.&lt;/p&gt;
&lt;p&gt;I was assuming it was a hardware interrupt that was wanted though if that's not required it could definately trigger a read through a variety of methods. &lt;/p&gt;
&lt;p&gt;My reference for hardware interrupts not being supported is &lt;a class="" href="https://forge.codesys.com/forge/talk/Runtime/thread/c3f96559b4/#2ea5"&gt;this post here&lt;/a&gt;.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Codesys on raspberry pi - I2C with interupt</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/13e4ab24d3/?limit=25#3989" rel="alternate"/><published>2021-01-14T06:41:16.560000Z</published><updated>2021-01-14T06:41:16.560000Z</updated><author><name>ojz0r</name><uri>https://forge.codesys.com/u/ojz0r/</uri></author><id>https://forge.codesys.comb8ae20b440e7734b23feba06a72c59342cecc8ba</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Do you perform a cyclic I2C already and it is not enough?&lt;br/&gt;
Or do you only want to read I2C only when there is a change (interrupt) in the slave?&lt;br/&gt;
If its the latter then you can use a GPIO as input to trigger a I2C read as Morberis said.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Codesys on raspberry pi - I2C with interupt</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/13e4ab24d3/?limit=25#f113/9d21" rel="alternate"/><published>2021-01-13T23:40:53.905000Z</published><updated>2021-01-13T23:40:53.905000Z</updated><author><name>Morberis</name><uri>https://forge.codesys.com/u/morberis/</uri></author><id>https://forge.codesys.com0c5be7580fa33a18ef92450fdeb0ca98782e6e13</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You're talking about pulling one of the GPIO pins high/low to trigger an interrupt and read something over the i2c bus? I don't believe that interrupts triggered from the GPIO are supported.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Codesys on raspberry pi - I2C with interupt</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/13e4ab24d3/?limit=25#f113" rel="alternate"/><published>2021-01-13T08:39:27.313000Z</published><updated>2021-01-13T08:39:27.313000Z</updated><author><name>pavel-entry</name><uri>https://forge.codesys.com/u/pavel-entry/</uri></author><id>https://forge.codesys.com83097c60b7d7556748bbbc3a9916bb617e0f0339</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am trying to connect STM32 (slave) and raspberry pi (master) via I2C. I need Codesys running on raspberry pi to be able to read data from I2C using an interrupt.&lt;/p&gt;
&lt;p&gt;Is it possible? Is there any example? I would appreciate any help.&lt;/p&gt;
&lt;p&gt;I currently use the I2C_master.read library to read data in Codesys.&lt;/p&gt;
&lt;p&gt;Thanks &lt;br/&gt;
Pavel&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>