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

Was soll diese Zeile bezwecken? #25

Open
jh-elec opened this issue Jan 24, 2019 · 0 comments
Open

Was soll diese Zeile bezwecken? #25

jh-elec opened this issue Jan 24, 2019 · 0 comments

Comments

@jh-elec
Copy link

jh-elec commented Jan 24, 2019

` // load CNF1..3 Register

RESET(MCP2515_CS);

spi_putc(SPI_WRITE);

spi_putc(CNF3);

/* spi_putc((1<<PHSEG21)); // Bitrate 125 kbps at 16 MHz

spi_putc((1<<BTLMODE)|(1<<PHSEG11));

spi_putc((1<<BRP2)|(1<<BRP1)|(1<<BRP0));

*/

/*

spi_putc((1<<PHSEG21));		// Bitrate 250 kbps at 16 MHz

spi_putc((1<<BTLMODE)|(1<<PHSEG11));

spi_putc((1<<BRP1)|(1<<BRP0));

*/

spi_putc((1<<PHSEG21));		// Bitrate 250 kbps at 16 MHz

spi_putc((1<<BTLMODE)|(1<<PHSEG11));

//spi_putc(1<<BRP0);

spi_putc(speed);`

"spi_putc(speed)" Was hat das Register was dort beschrieben wird mit Speed zu tun? Verstehe das nicht so ganz.. Das ist doch das Register für die Interrupts?!

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