Skip to content

Analog ADS1256 (SPI) Add-On #1619

@JRMN1

Description

@JRMN1

I have spent a good part of 3 days troubleshooting the Analog ADS1256 (SPI) add-on. I know it's currently in early beta, but I think there may be a bug in it's code. I ended up writing a test application to confirm my ADS1256 module wasn't faulty. Then I hardcoded the ADS1256 pins to confirm.

I believe the primary bug in the code is PeripheralSPI::select() using gpio_pull_down() instead of gpio_put(0). CS never actually goes LOW so the ADS1256 ignores every single command. I think this is a GP2040-CE library bug that would affect any board, with any pin configuration. Correct SCK/TX pins won't fix this.

Here are the settings I am using:
Peripheral Mapping → SPI1: RX=8, CS=9, SCK=14, TX=15, Enabled ON
Add-Ons → Analog ADS1256: spi1, CS=9, DRDY=12, 3.3v, Triggers OFF

Additionally, I have two questions about the Analog ADS1256 (SPI) add-on. After enabling it, is the intent to use the Analog ADS1256 (SPI) add-on in conjunction with the Analog and Hall-Efftect Triggers add-ons? If not, how is one supposed to properly config analog sticks and triggers?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug in the firmware - Something is not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions