Hello,
I'm using a teensy 3 together with a WIZ820io module, I use the Ethernet library for controlling the WIZ820io. When I use the WIZ820io alone, I'm able to send UDP packet without problem.
My problem comes when I use a second SPI slave on my teensy (the first SPI slave is the WIZ820io), for controling the second SPI slave, I need to send/receive 2Bytes command like that :
This code works fine when I disconnect the MOSI pin on the WIZ820io, but when I connect it, my second slave does not respond.
Moreover, if I send 1Byte to my second slave, it works fine, for example :
Thank you for your support.
Cheers.
Julien.
I'm using a teensy 3 together with a WIZ820io module, I use the Ethernet library for controlling the WIZ820io. When I use the WIZ820io alone, I'm able to send UDP packet without problem.
My problem comes when I use a second SPI slave on my teensy (the first SPI slave is the WIZ820io), for controling the second SPI slave, I need to send/receive 2Bytes command like that :
Code:
digitalWrite(CSPin, LOW);
SPI.transfer (0x10);
SPI.transfer (ControlReg >> 8);
SPI.transfer (ControlReg & 0xFF);
digitalWrite(CSPin, HIGH);
This code works fine when I disconnect the MOSI pin on the WIZ820io, but when I connect it, my second slave does not respond.
Moreover, if I send 1Byte to my second slave, it works fine, for example :
Code:
digitalWrite(CSPin, LOW);
SPI.transfer (0x07);
SPI.transfer (div);
rxw=SPI.transfer(0);
digitalWrite(CSPin, HIGH);
Thank you for your support.
Cheers.
Julien.