Hallo Zusammen,
Ich versuche gerate meinen DOGM162-a per SPI (5V) in Betrieb zu nehmen.
Kann mir vielleicht jemand erklären, wie ich herausfinde, an welchen Pin
der Slave-select liegt?
Code Axel Düsendieb:
1 | ...
|
2 | #define PORT_SS PORTB // Port an dem SPI Slave select ist ??
|
3 | #define PIN_SS PB2 // Pin an dem SPI Slave select ist ??
|
4 | #define DD_SS DDB2 // Port/Pin des SS SPI Slave select ??
|
Code Tino Kühn:
1 | #define DOGM163_MOSI PB3 // MOSI, Master out slave in, am Atmega8 PORTB3
|
2 | #define DOGM163_SCK PB5 // SCK am Atmega8 PORTB5
|
3 | #define DOGM163_SS PB2 // SS am Atmega ??
|
Slave In (SI) liegt bei meinem ATMEGA328p auf PORTB3
CLK auf PORTB5
/CSB auf PORTB2
RS auf PORTB1
PS: Was ist nun der Unterschied zw. Slave Select und Chip Select?
Wäre eine große Hilfe !
LG
Darko