<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Use two spi devices</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/d39aaaf517/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/d39aaaf517/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/d39aaaf517/</id><updated>2020-02-27T17:12:32.002000Z</updated><subtitle>Recent posts to Use two spi devices</subtitle><entry><title>Use two spi devices</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/d39aaaf517/?limit=25#b4d9" rel="alternate"/><published>2020-02-27T17:12:32.002000Z</published><updated>2020-02-27T17:12:32.002000Z</updated><author><name>LMDaniel999</name><uri>https://forge.codesys.com/u/lmdaniel999/</uri></author><id>https://forge.codesys.coma2336f1aa2e1cc643db5117531a6cd8a26cd129a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I want to use two SPI devices on a raspberry pi 3 and Codesys V3.5 SP11.&lt;/p&gt;
&lt;p&gt;So i connected a MCP23S17 to SPI with CE0 and a mcp3008 to SPI with CE1.&lt;br/&gt;
How do i add them in Codesys?&lt;br/&gt;
I added two SPI Masters, one with spidev0.0 and one with spidev0.1.&lt;br/&gt;
0.0 for the MCP23S17 with CE0 and 0.1 for the MCP3008 with CE1.&lt;/p&gt;
&lt;p&gt;With this config, nothing worked.&lt;br/&gt;
If i use the MCP3008 with 0.0, i can read the analog values, but have no connection to the MCP23S17.&lt;/p&gt;
&lt;p&gt;How can i use both SPI connections in Codesys? Only the one on CE0 works...&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>