I have a project in which I’m using multiple SPI ADCs on a single SPI bus (Microchip’s MCP3208). It works just fine with a single device on the bus, or with two devices on different buses. However, I get an error when I try to create a second SPI object on a bus.
When I try this, I get a System.InvalidOperationException on the second line. If I change the bus to SPI1 on ether the first or second line it works just fine.
Has anyone been able to run multiple SPI devices on the same bus? Any suggestions?
You can only create one SPI bus at a time but you can have many device configurations, All you do is create a config for each device. The examples on wiki and code will assist you here…