Hi all,
I'm progressing slowly on my project (not much time to work), and I've hit a roadblock. I'm trying to move the WIZ820io's SCLK pin from 13 (as used in the adapter board) to pin 14 (as used in the audio board).
Close to the top of my setup() I have the following:
Earlier in the code I have:
This is clearly working, as I can change the definition from 13 to 14 and it works...but not as well. When I use 13, the ArtNet receive code I'm testing with works great. When I change SCLK to 14 it will initialize, receive some values (the number of packets seems to be a bit random), then freeze. Usually it glitches right before the freeze and shows the wrong value (I'm dumping 8 channel values to serial just to verify it's receiving correctly).
I have already moved RESET to pin 5 and CS to pin 6. I am using 12 as MISO and 11 as MOSI.
Is there some reason why pin 14 would act differently than pin 13? I'm a bit stuck on this one.
Thank you!
Josh
I'm progressing slowly on my project (not much time to work), and I've hit a roadblock. I'm trying to move the WIZ820io's SCLK pin from 13 (as used in the adapter board) to pin 14 (as used in the audio board).
Close to the top of my setup() I have the following:
Code:
SPI.setSCK(SPI_SCK_PIN);
Earlier in the code I have:
Code:
#define SPI_SCK_PIN 14
This is clearly working, as I can change the definition from 13 to 14 and it works...but not as well. When I use 13, the ArtNet receive code I'm testing with works great. When I change SCLK to 14 it will initialize, receive some values (the number of packets seems to be a bit random), then freeze. Usually it glitches right before the freeze and shows the wrong value (I'm dumping 8 channel values to serial just to verify it's receiving correctly).
I have already moved RESET to pin 5 and CS to pin 6. I am using 12 as MISO and 11 as MOSI.
Is there some reason why pin 14 would act differently than pin 13? I'm a bit stuck on this one.
Thank you!
Josh