Post Go back to editing

Connecting ADGS2414D to RP2040 and Toggling Channels

Category: Software
Product Number: ADGS2414D
Software Version: MicroPython v1.23
I have a RP2040 microcontroller connected, via SPI, to the ADGS2414D high density switch. I am using MicroPython on the RP2040 to initiate the SPI channel (0) and communicate with the switch. I have the switch set up with 7 channels connected to rows and columns of a keyboard matrix. When I close channel 5, for example, I should have signals to a header for R3 and C4, but I don't. 
 

The switch has been set up with 5V of current and the RESET pin pulled high (have tried permanently connected and temporarily on boot). I also have the chip select for the switch pulled high when sending commands. I have used burst mode to send multiple SPI commands, and pulled the chip select line high and low between commands when in address mode.

To my understanding, to toggle channel 5, I should be sending a 16 bit message that contains 1) the read/write bit 2) the register location and 3) the register data. I have a function, in a MicroPython script, that sends '0x01 and 0xFF' to the switch to close all the channels. I have also sent '0x01 and 0x10' to target channel 5 individually. The SPI interface has a baud rate of 1000000, polarity of 0, phase of 0 and uses the most significant bit as its first bit.

Has anyone used the switch with Python/MicroPython before? Does anyone know if I am sending the correct message and in the correct format?

The switch uses the same column for 5 channels. Would it be a problem to have a trace over two or more of the drain pins that connect to the same column?


Updated post to have more verbose questions
[edited by: Spud6y at 8:17 AM (GMT -4) on 20 Sep 2024]
Parents Reply Children
No Data