Hi guys, i'm newbie, so i'm trying to learn.
I have Teensy 3.2 and I'd try to connect 8 of this chip stp16dps05 via SPI (need to manage a ledRing)
https://www.st.com/resource/en/datasheet/stp16dps05.pdf
My first idea is to use a MCP23017 connected via I2C to set the CS pin in each of stp16dps05.
So MPC and stp16dps05 will share MOSI, SCK out from teensy, and MPC will set the CS on the stp16dps05.
So the code flow will be:
1 - mcp.digitalWrite to Set the mcp23017 via I2C to enable a specific CS
2 - SPI.transfer(value);
3 - mcp.digitalWrite to Set the mcp23017 via I2C to disable a specific CS
Do you think that is the correct way or totally wrong? Can i have some synch problem?
I read something about DaisyChain, is this the case?
I'd like to implement the best practice
I have Teensy 3.2 and I'd try to connect 8 of this chip stp16dps05 via SPI (need to manage a ledRing)
https://www.st.com/resource/en/datasheet/stp16dps05.pdf
My first idea is to use a MCP23017 connected via I2C to set the CS pin in each of stp16dps05.
So MPC and stp16dps05 will share MOSI, SCK out from teensy, and MPC will set the CS on the stp16dps05.
So the code flow will be:
1 - mcp.digitalWrite to Set the mcp23017 via I2C to enable a specific CS
2 - SPI.transfer(value);
3 - mcp.digitalWrite to Set the mcp23017 via I2C to disable a specific CS
Do you think that is the correct way or totally wrong? Can i have some synch problem?
I read something about DaisyChain, is this the case?
I'd like to implement the best practice