Hello,
I wanted to test the mIP stack on my FEZ Hydra with the ENC28 connected to socket 3. The biggest problem so far is the InterfaceProfile which I have created for the Hydra.
case InterfaceProfile.FEZHydra_Socket3_ENC28:
//Adopted from DriverENC28.cs
Cpu.Pin cs = (Cpu.Pin)45;
Cpu.Pin interrupt = (Cpu.Pin)40;
Start(MacAddress, name, SPI.SPI_module.SPI1, interrupt, cs);
I think my pin assignments are not correct because later when creating the interrrupt port I get an exception.
public ENC28J60Driver(Cpu.Pin irqPin, Cpu.Pin csPin, SPI.SPI_module spiModule)
{
irq = new InterruptPort(irqPin, true, Port.ResistorMode.PullDown, Port.InterruptMode.InterruptEdgeLevelLow);
irq.OnInterrupt += new NativeEventHandler(irq_OnInterrupt);
// http://www.mikroe.com/forum/viewtopic.php?f=91&p=192252
var cfg = new SPI.Configuration(csPin, false, 0, 0, false, true, 8000, spiModule);
spi = new MultiSPI(cfg);
}
Exception: An unhandled exception of type ‘System.ArgumentException’ occurred in Microsoft.SPOT.Hardware.dll
Can anybody tell me the right pin numbers? The schematics is not very clear for me as there are no numbers…
Thank you.