-
Notifications
You must be signed in to change notification settings - Fork 30
SPI Wiring
ENC28J60 communicates with MCU over SPI. SPI wiring is MISO to MISO, MOSI to MOSI and 'clock' to 'clock'. See the description of your Arduino board to determine the SPI pins. On ENC28J60 modules labels for MISO ans MOSI pins can be SO/SI or DO/DI. Label for the clock pin is usually SCK.
To select a SPI device on the SPI bus a slave select pin is used. It can be any digital pin. Set the slave select (SS or CS) pin in sketch with Ethernet.init(ETH_CS_PIN);
before calling Ethernet.begin().
Note: on classic ATmega (Uno, Nano, Mini, Mega) the slave select pin for the MCU as SPI slave must be an output if the MCU is SPI master. For that reasom it is usually used as slave select pin for one of the SPI devices. For that reason the default CS pin in the EthernetENC library is the SS pin.
The reset pin can be wired to reset pin of the MCU or to a digital pin of the MCU if the sketch should control the reset of the ENC28J60.