Hi,
i am using the spi1 overlay like this.
My spi bus where it is connected is 1 and the CS 0. The INTA is connected to GPIO16.When i check now my pins with pinctrl it says that the Clockselect are output pins instead of the CE0.
What can i do that they are marked as ALT4
My GPIO Expander MCP23S18 is working with the inputs and the Interrupt pin GPIO16, but i didn't manage yet to write to the outputs and i think it has something to do with this.
I am using the the API diozero for controlling the spi bus and the inputs and outputs.
Furthermore my ADS1118 is also not working on CS1. Here i am using pi4j2 library for connecting via SPI, but it has the same result.
Thanks for your help.
i am using the spi1 overlay like this.
My spi bus where it is connected is 1 and the CS 0. The INTA is connected to GPIO16.
Code:
dtoverlay=spi1-2cs
Code:
pinctrl 16,17,18,19,20,2116: ip pd | lo // GPIO16 = input17: op -- pd | hi // GPIO17 = output18: op -- pd | hi // GPIO18 = output19: a4 pd | lo // GPIO19 = SPI1_MISO20: a4 pd | lo // GPIO20 = SPI1_MOSI21: a4 pd | lo // GPIO21 = SPI1_SCLK
Code:
pinctrl funcs 16,17,18,19,20,2116, GPIO16, -, SD8, DPI_D12, CTS0, SPI1_CE2_N, CTS117, GPIO17, -, SD9, DPI_D13, RTS0, SPI1_CE1_N, RTS118, GPIO18, PCM_CLK, SD10, DPI_D14, SPI6_CE0_N, SPI1_CE0_N, PWM0_019, GPIO19, PCM_FS, SD11, DPI_D15, SPI6_MISO, SPI1_MISO, PWM0_120, GPIO20, PCM_DIN, SD12, DPI_D16, SPI6_MOSI, SPI1_MOSI, GPCLK021, GPIO21, PCM_DOUT, SD13, DPI_D17, SPI6_SCLK, SPI1_SCLK, GPCLK1
I am using the the API diozero for controlling the spi bus and the inputs and outputs.
Furthermore my ADS1118 is also not working on CS1. Here i am using pi4j2 library for connecting via SPI, but it has the same result.
Thanks for your help.
Statistics: Posted by mistermaek — Tue Nov 19, 2024 3:06 pm