Sandro
Well-known member
Hi all, in my application I would connect n.6 MCP23S17 to my T4.1, with SPI1 bus, using these pins:
CS1: 38
MISO1: 39
MOSI1: 26
SCK1: 27
The purpose is reading Encoders and pushbutton; here is a sample of my schematics:
My requirement are: 1) using the SPI1 bus; 2) read all 16 GPxy pins of a single chip with a single read. (i.e., a full 16-bit read).
I found two libraries, but none of them offers both functionalities:
Can anyone suggest another library, or how to make a custom version with one of the previous libraries?
Thank in advance
CS1: 38
MISO1: 39
MOSI1: 26
SCK1: 27
The purpose is reading Encoders and pushbutton; here is a sample of my schematics:
My requirement are: 1) using the SPI1 bus; 2) read all 16 GPxy pins of a single chip with a single read. (i.e., a full 16-bit read).
I found two libraries, but none of them offers both functionalities:
- with gpio_MCP23S17 library I can read all GPxy pins of a shifter chip with a single read, but I cannot configure the SPI bus;
- with Adafruit_MCP23X17 library I can configure the SPI bus, but I cannot read all GPxy pins of a shifter with a single read.
Can anyone suggest another library, or how to make a custom version with one of the previous libraries?
Thank in advance