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

NCM109 v1.x for Tubes board NCT4xx and HV5222 #4

Open
Fossdal opened this issue Mar 12, 2022 · 2 comments
Open

NCM109 v1.x for Tubes board NCT4xx and HV5222 #4

Fossdal opened this issue Mar 12, 2022 · 2 comments

Comments

@Fossdal
Copy link

Fossdal commented Mar 12, 2022

I got an MCU Board NCM109 v1.x for Tubes board NCT4xx
and it has a HV5222. but the code is not working with this chip

@CDAJoe
Copy link

CDAJoe commented Mar 20, 2023

I found the issue during compiling. It is a line of code at line 220 stating SPI_Init where there is no code to call. I copied the Spi initialization from the sample code or codes from other boards for Spi to correct this.

@CDAJoe
Copy link

CDAJoe commented Mar 20, 2023

my bad the line is at 280
delete the SPI_Init(); and copy the next into its place moving existing code down. This got my unit working
SPI.begin(); //
SPI.setDataMode (SPI_MODE2); // Mode 2 SPI // судя по данным осциллографа нужно использовать этот режим
SPI.setClockDivider(SPI_CLOCK_DIV8); // SCK = 16MHz/128= 125kHz
//Serial.println(SPCR, BIN);
//SPCR=B00111111;
//Serial.println(SPCR, BIN);

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