Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readADC2() doesn't work #13

Open
Sapphire055 opened this issue Jul 8, 2020 · 1 comment
Open

readADC2() doesn't work #13

Sapphire055 opened this issue Jul 8, 2020 · 1 comment

Comments

@Sapphire055
Copy link

Sapphire055 commented Jul 8, 2020

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.

@Molorius
Copy link
Owner

I do not have an ADS1263 to test with. I realize this is old, do you still have your setup to test? It should be fixed as part of 8ca5232.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants