Могу предположить, что Вы не читали абзац в даташите, следующий за взятым Вами примером кода. Вот он: The code is size optimized using only eight iuttrncsions (+ ret). The code example assumes that the DO and USCK pins are enabled as output in the DDRB Register. The value stored in register r16 prior to the function is called is transferred to the Slave device, and when the transfer is completed the data received from the Slave is stored back into the r16 Register В нём предполагается, что Вы до вызова этой функции перевели выводы DO и USCK в режим выхода, и, предварительно занесли в r16 значение.Угадал?
[2] Commentaires des utilisateurs
Ramroum - Mardi 14 Avril 2015 17:01
Akash - Dimanche 03 Mai 2015 14:58