problem on ATMega 16 + 16 Mhz Crystal + CS8900 hi all.....
i have a little project that using atmega16.
i want to connect my device to LAN by using crystal cs8900 chip.
i used crystal 16 MHz to as clock source fo uC .. for this i set l fuse to 0xef an hfuse to 0x89 (CKOPT programmed) and i use 20 Mhz of crystal for the cs8900
i connect the cs8900 to atmega16 by these:
- data port -- port A
- address port -- port C
- IOW/IOR -- pin B 0/1
- reset -- pin B 2
i use avrlib as the library and use net library..
the problem is....
my ethernet seem work on initialization... i can connect it to my computer with cross over UTP cable...
but i cant ping my device.. on the main progam i just create a loop to run netstack service (netstackService()). i think it suppose be able to respond ping request. because in netsack service also include ICMP service.
i have made some debugging i found that packet size that it retrieve from the net alway 65535 byte. (max value of short variable type) thats way my device alway drop the packet....
i dont understand why this is happened...
i hope u can help me on this....
thankyou..
Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.