CAN-Bus_Shield icon indicating copy to clipboard operation
CAN-Bus_Shield copied to clipboard

Was soll diese Zeile bezwecken?

Open jh-elec opened this issue 6 years ago • 0 comments
trafficstars

` // 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?!

jh-elec avatar Jan 24 '19 17:01 jh-elec