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

external vref #7

Open
nydahl98 opened this issue Jan 3, 2019 · 1 comment
Open

external vref #7

nydahl98 opened this issue Jan 3, 2019 · 1 comment
Assignees

Comments

@nydahl98
Copy link

nydahl98 commented Jan 3, 2019

How do i set external vref?

@joicetm
Copy link

joicetm commented Jan 4, 2019

Hi,
you can set analog supply, REFP0-REFN0 or REFP1-REFN1 as your voltage reference. please refer to datasheet section8.3.6 on page number 29 for more information.

you can set this by writing to the config2 register, bits 6,7 selects the external source.

00 : Internal 2.048-V reference
01 : External reference REFP0 and REFN0
10 : External reference AIN0/REFP1 and AIN3/REFN1
11 : Analog supply (AVDD – AVSS)

You can use void Protocentral_ADS1220::writeRegister() function to write the value to config2 reg.

also you should change the macro #define VREF 2.048 in .ino file to the correct value you have used.

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

3 participants