Skip to content

readADC2() doesn't work #13

@Sapphire055

Description

@Sapphire055

I've only just received an ADS1263 and was using this library to test it.

I'm posting this now for anyone who comes across this problem. I don't have time to do more with it at the moment.

readADC2() gives back incorrect data. It appears to be written differently to readADC1() even though the chip sends 32 bits for ADC2, including padding.

I copied the ADC_BYTES structure and the "ADC_BYTES.bit.DATA1 = buff[j];" etc. code from readADC1() to readADC2() and it now works, giving 32 bits with padding. I then shift the padding out to get 24 bits.

Anyway, this gives the correct ADC2 value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions