<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to which variables for MCP23S17 inputs ?</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/896398e271/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/896398e271/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/896398e271/</id><updated>2020-02-27T15:30:54.117000Z</updated><subtitle>Recent posts to which variables for MCP23S17 inputs ?</subtitle><entry><title>which variables for MCP23S17 inputs ?</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/896398e271/?limit=25#6962" rel="alternate"/><published>2020-02-27T15:30:54.117000Z</published><updated>2020-02-27T15:30:54.117000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com476a6450c9e6aa0fb2700442722db698de319306</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; phenixrb&lt;/p&gt;
&lt;p&gt;with this configuration:&lt;br/&gt;
 - PORT B as input,&lt;br/&gt;
 - no internal pullup resistor enabled.&lt;/p&gt;
&lt;p&gt;some inputs are active at the start of the process,&lt;/p&gt;
&lt;p&gt;I think that in this configuration, it is necessary to put external resistors of pull down,&lt;br/&gt;
to put the inputs pins to the GND; in the absence of control voltage (3.3vdc) on the pin.&lt;br/&gt;
currently when I apply a +3.3 vdc on an input pin of port B,&lt;br/&gt;
the state of the input changes to 1, but remains at 1, even if there is no more control voltage.&lt;br/&gt;
the input returns to 0 only by applying a GND on the input pin.&lt;/p&gt;
&lt;p&gt;but except that, it seems to work,&lt;br/&gt;
thanks a lot to EDWIN for the help he gives me on the forum and before that in private. &lt;/p&gt;
&lt;p&gt;for information: the speed is at 50 000 Hz, I will see if it is possible to increase it once the resistors connected to the GND.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: MCP23017   inputs WITHOUT PULL UP.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3965"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: MCP23017   inputs WITHOUT PULL UP ON START.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3964"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>which variables for MCP23S17 inputs ?</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/896398e271/?limit=25#9168" rel="alternate"/><published>2020-02-27T15:30:53.431000Z</published><updated>2020-02-27T15:30:53.431000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com846b2f671bdef0670e42ea8ffba0378b58af3b42</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;should work that way,&lt;br/&gt;
with current RASBIAN we have seen problems on some boards (for example PIFACE) with SPI maxspeed. (_diMaxSpeed)&lt;br/&gt;
Could you please change the speed to 100000 and give this a try.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: SPIMaxSpeed.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3961"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>which variables for MCP23S17 inputs ?</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/896398e271/?limit=25#231b" rel="alternate"/><published>2020-02-27T15:30:51.471000Z</published><updated>2020-02-27T15:30:51.471000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com110022cb952102707e20ec19ea5d5cb60c37ca08</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; phenixrb&lt;/p&gt;
&lt;p&gt;in this configuration:&lt;br/&gt;
the input changes state when I apply the gnd to the pin of the MCP23S17&lt;br/&gt;
is there a way for the state of the input change when the + vdc is applied to the pin?&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: MCP23017   inputs3.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3960"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: MCP23017   inputs2.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3959"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>which variables for MCP23S17 inputs ?</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/896398e271/?limit=25#76d2" rel="alternate"/><published>2020-02-27T15:30:50.766000Z</published><updated>2020-02-27T15:30:50.766000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com34e5ad3c36395900c6c6c23272c6c4a030ad37f0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; phenixrb&lt;/p&gt;
&lt;p&gt;I have try this but it doesn't work&lt;/p&gt;
&lt;p&gt;if I put "2#11111111" in the spi device configuration ,MCP23S17_3.byInputsB.0 is always true&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: MCP23017   inputs.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3955"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>which variables for MCP23S17 inputs ?</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/896398e271/?limit=25#fd83" rel="alternate"/><published>2020-02-27T15:30:50.082000Z</published><updated>2020-02-27T15:30:50.082000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com0823773de2c1feffd15e35e3dc4800a2466cdc33</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
i would give this a try:&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: MCP_.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3954"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>which variables for MCP23S17 inputs ?</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/896398e271/?limit=25#5225" rel="alternate"/><published>2020-02-27T15:30:48.130000Z</published><updated>2020-02-27T15:30:48.130000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.comc810e3cbcd953de6f5c39f33b179aeeaea7b0357</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; phenixrb&lt;/p&gt;
&lt;p&gt;Hello to all ,&lt;br/&gt;
after configuring the SPI MASTER and having defined the physical addresses of the different MCP23S17 that I use,&lt;br/&gt;
I use the following lines to control the outputs:&lt;br/&gt;
for exemple:&lt;br/&gt;
MCP23S17.byOutputsA.0:=GVL.BP9;&lt;br/&gt;
MCP23S17_1.byOutputsA.6:=GVL.BP15;&lt;br/&gt;
MCP23S17_2.byOutputsA.3:=GVL.BP12;&lt;/p&gt;
&lt;p&gt;it works perfectly.&lt;/p&gt;
&lt;p&gt;however, I do not find the variables that will allow me to acquire the state of the inputs.&lt;br/&gt;
and the parameters to be defined in the SPI block MCP23S17.&lt;br/&gt;
even by setting port B as input as shown in the description, I can not find any variables that change state when I put a + vcc on the MCP23S17 PORT B pin.&lt;/p&gt;
&lt;p&gt;Thanks for your help&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: MCP23017.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3953"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>