[elektro] AVR SPI vs. _SS

Moravcsik Szilard levlista.mszilard at gmail.com
Mon Sep 29 12:17:58 CEST 2014


2014.09.29. 11:27 keltezéssel, Szima Gábor írta:
>
> Sziasztok!
>
> AVR-en megoldható, hogy az SPI-t bekapcsolva (master módban) ne használja
> az _SS lábat, hanem az legyen sima port (IN)?
>
> Ha bemenetre kapcsolom és az LOW, akkor leakad az SPI kommunikáció (várná
> a külső órát).
>

Bocs, lemaradt a lényeg! Az adatlap (ATmega2561) ezt írja még:

When the SPI is enabled as a master, the data direction of this pin is 
controlled by DDB0. When the pin is forced to be an input, the pull-up 
can still be controlled by the PORTB0 bit.

Tehát működnie kéne sima bemenetként.

Üdv:
Szilárd



More information about the Elektro mailing list