Seeed Ethernet + Mega 2560 ICSP
hi all,
i've explored number of posts related topic, i'm not able solve issue @ hand.
i first tested shield on uno stacking - worked fine. using simple code posting sensor readings plot.ly. wanted incorporate mega2560 project, first explored ability switch cs pins. able wire shield via icsp on uno, , switch cs pin modifying w5100.h file.
i tried few iterations, of successful in posting data plot.ly api.
i've since been stumped when trying work on mega. followed exact same steps - wiring through icsp, double, triple checking pin arrangement - , moving cs pin around via w5100.h file , pin mapping found here:
http://arduino.cc/en/hacking/pinmapping2560
currently cs set digital pin 48, using code in .h file:
48 connected shield digital pin 10. i've tried iterations of writing 53 output, high low, , writing 10 output, high , low.
i'm stumped. can lend me hand how can circuit functioning?
i appreciate help. have done plethora of reading on subject on past 3 days, , unable solve.
as said, im using mega 2560, seed ethernet shield:
http://www.seeedstudio.com/wiki/ethernet_shield_v1.0
i figure if successful @ uno should transferable long move cs pin right location. icsp shouldnt differ?
thanks!
-justin
i've explored number of posts related topic, i'm not able solve issue @ hand.
i first tested shield on uno stacking - worked fine. using simple code posting sensor readings plot.ly. wanted incorporate mega2560 project, first explored ability switch cs pins. able wire shield via icsp on uno, , switch cs pin modifying w5100.h file.
i tried few iterations, of successful in posting data plot.ly api.
i've since been stumped when trying work on mega. followed exact same steps - wiring through icsp, double, triple checking pin arrangement - , moving cs pin around via w5100.h file , pin mapping found here:
http://arduino.cc/en/hacking/pinmapping2560
currently cs set digital pin 48, using code in .h file:
code: [select]
#if defined(__avr_atmega1280__) || defined(__avr_atmega2560__)
inline static void initss() { ddrl |= _bv(1); };
inline static void setss() { portl &= ~_bv(1); };
inline static void resetss() { portl |= _bv(1); };
#elif defined(__avr_atmega32u4__)
48 connected shield digital pin 10. i've tried iterations of writing 53 output, high low, , writing 10 output, high , low.
i'm stumped. can lend me hand how can circuit functioning?
i appreciate help. have done plethora of reading on subject on past 3 days, , unable solve.
as said, im using mega 2560, seed ethernet shield:
http://www.seeedstudio.com/wiki/ethernet_shield_v1.0
i figure if successful @ uno should transferable long move cs pin right location. icsp shouldnt differ?
thanks!
-justin
if using icsp pins spi data lines, should same uno. d10 still w5100 slave select.
Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > Seeed Ethernet + Mega 2560 ICSP
arduino
Comments
Post a Comment