Frederik Krämer schrieb:
> Ich nehme auch bei beiden die Spannung weg.
Und in welcher Reihenfolge klemmst du sie wieder an?
Zuerst Empfänger dann Sender
> Zur Synchronisation ist doch eigentlich die SS Leitung Verantwortlich,
> oder wie läuft das ?
Aus dem Datenblatt des Mega16
Data is always shifted from Master to Slave on the Master Out – Slave
In, MOSI, line, and from Slave to Master on the Master In – Slave Out,
MISO, line. After each data packet, the Master will synchronize the
Slave by pulling high the Slave Select, SS, line.
When configured as a Master, the SPI interface has no automatic control
of the SS line. This must be handled by user software before
communication can start.
Ich seh davon nichts in deinem Code.