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

Test serial example on Arduino H7 with breakout board #3

Open
cuu123 opened this issue Jul 22, 2023 · 1 comment
Open

Test serial example on Arduino H7 with breakout board #3

cuu123 opened this issue Jul 22, 2023 · 1 comment

Comments

@cuu123
Copy link

cuu123 commented Jul 22, 2023

All zero, it seems no data was collected?why?
Attache the code as follows:

#include <AD7606.h>
#include <Arduino_PortentaBreakout.h>

#define DB7 SPI1_CIPO
#define CS SPI1_CS
#define RD SPI1_CK

#define DB8 GPIO_0
#define CVA_CVB GPIO_4
#define RESET GPIO_3
#define BUSY GPIO_5

AD7606_Serial 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.println(Data[i]);
	}
}
@leollo98
Copy link
Owner

what's the microcontroller are you using?
The arduino family was really problematic because I set the clock divider of the SPI wrong. The Dev branch was updated and is possibly working.

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