Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
I want to use two SPI devices on a raspberry pi 3 and Codesys V3.5 SP11.
So i connected a MCP23S17 to SPI with CE0 and a mcp3008 to SPI with CE1.
How do i add them in Codesys?
I added two SPI Masters, one with spidev0.0 and one with spidev0.1.
0.0 for the MCP23S17 with CE0 and 0.1 for the MCP3008 with CE1.
With this config, nothing worked.
If i use the MCP3008 with 0.0, i can read the analog values, but have no connection to the MCP23S17.
How can i use both SPI connections in Codesys? Only the one on CE0 works...
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi.
I want to use two SPI devices on a raspberry pi 3 and Codesys V3.5 SP11.
So i connected a MCP23S17 to SPI with CE0 and a mcp3008 to SPI with CE1.
How do i add them in Codesys?
I added two SPI Masters, one with spidev0.0 and one with spidev0.1.
0.0 for the MCP23S17 with CE0 and 0.1 for the MCP3008 with CE1.
With this config, nothing worked.
If i use the MCP3008 with 0.0, i can read the analog values, but have no connection to the MCP23S17.
How can i use both SPI connections in Codesys? Only the one on CE0 works...
Thanks.