I'm trying to hook up an MBI5026 shift register and a New Haven SPI display to a netduino mini. I can have one or the other work, but not both. If I have the display connected to the clock and/or mosi pins, the MBI5026 stops working, but if both are connected the display works. If I unplug the display from both the clock and mosi pins, the MBI5026 works just fine. The minute I connect the display back, the MBI5026 locks into whatever it was set to (I'm turning on LEDs on the MBI5026, and they stay on if they were on at the time I connect the display back). I'm able to do this connect/disconect while the app is running, so it's not a matter of any changing code or settings.
So, to summarize, without having to reset/redeploy, either will work, but when the display is connected to mosi or clock, the shift register stops responding. Any thoughts? Here are my settings for the two devices. I tried setting both clock rates to 100, same results. I also tried a different GPIO pin, using 19 instead of 18 for the display. No change.
SPI.Configuration Device1 = new SPI.Configuration( Pins.GPIO_PIN_17, // SS-pin false, // SS-pin active state 0, // The setup time for the SS port 0, // The hold time for the SS port false, // The idle state of the clock true, // The sampling clock edge 1000, // The SPI clock rate in KHz SPI_Devices.SPI1 // The used SPI bus (refers to a MOSI MISO and SCLK pinset) );
SPI.Configuration Device2 = new SPI.Configuration( Pins.GPIO_PIN_19, // SS-pin false, // SS-pin active state 0, // The setup time for the SS port 0, // The hold time for the SS port true, // The idle state of the clock true, // The sampling clock edge 100, // The SPI clock rate in KHz SPI_Devices.SPI1 // The used SPI bus (refers to a MOSI MISO and SCLK pinset) );
Thanks for any insight,
John
ps. I can't copy and paste any text in IE11. I had to switch to firefox. You might want to check the forum code and see what's up.