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

当我调整第1路的输入电压时,第2、3、4路的AD值也跟着变化。 #6

Open
pangliang071 opened this issue Mar 17, 2024 · 0 comments

Comments

@pangliang071
Copy link

pangliang071 commented Mar 17, 2024

你好,我是用这个库,开发AD7606的8路模拟量采集,当我只连接第1路的时候,其他7路都接地。通过print打印出AD值,当我调整第1路的输入电压时,第2、3、4路的AD值也跟着变化。当我调整第5路的输入电压时,第6、7、8路的AD值也跟着变化。这是什么原因导致的呢?

#include "AD7606.cpp"

#define DB7 16
#define DB8 17
#define CVA_CVB 18
#define CS 19
#define RD 21
#define RESET 22
#define BUSY 23

AD7606_ESPI AD(DB7, DB8, RD, CS, CVA_CVB, CVA_CVB, BUSY, RESET);

void setup()
{
Serial.begin(115200);
}

void loop()
{
int16_t Data[8];
AD.read(Data);
for (uint8_t i = 0; i < 8; i++)
{
Serial.printf("%06d ", Data[i]);
}

Serial.println();
}

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

1 participant