Go Down

Topic: Problem with ICSP connection of Arduino Ethernet Shield  (Read 217 times) previous topic - next topic

javad_habibi

Jan 12, 2019, 08:38 am Last Edit: Jan 12, 2019, 08:40 am by javad_habibi
Hi every one
I'm using an Arduino ethernet shield(based on w5100) with an spartan6 FPGA. I want to use SPI protocol to connect FPGA to My PC trough a LAN Cable without any usage of SD card. I am confused with connecting ethernet shield to my main board.
1- If i connect the ICSP Like the picture, the connection is true? Or anything more is needed?
2- why the SS pin is not dedicated on ICSP?

Juraj

the in-circuit-system-programming doesn't use SS pin and the ICSP header is designed for that.

for SPI you must use a SS pin

You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

pert

The W5100's SS pin is on the shield pin marked 10 on the silkscreen.

javad_habibi

#3
Jan 12, 2019, 09:41 am Last Edit: Jan 12, 2019, 09:45 am by javad_habibi
So if i connect ICSP pins + pin 10 , the connection is completely true? No excess power, Aref, ground, etc  (in addition to GND and 5V of ICSP) needed?

Juraj

So if i connect ICSP pins + pin 10 , the connection is completely true? No excess power, Aref, ground, etc  (in addition to GND and 5V of ICSP) needed?
all pins on ICSP header and some pin for CS (to pin 10 of the shield)

the ICSP header schematics is for the male connector on the dev board, so if you wire to the female pins on the bottom of the shield, mirror the schematics.
You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

javad_habibi

#5
Jan 12, 2019, 01:34 pm Last Edit: Jan 12, 2019, 01:41 pm by javad_habibi
I have connected the module So. But i cannot find out why my MISO feedback during write operation is once true and once not, as you see in the picture.(0X01 0X02 0X03 according to 6.3.3 part of w5100 datasheet).


* signals up to down in scope capture are:
SCK(not visible because of sample frequency)
MOSI
MISO
SS

Go Up