Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Atmega32 and Wiznet W5100
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> EASY TCP/IP
View previous topic :: View next topic  
Author Message
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1179
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Thu Apr 25, 2013 11:41 am    Post subject: PC network settings... Reply with quote

And to be complete. How is your module connected to the network, how is your PC connected to the network. What is the IP-address of your PC?
Back to top
View user's profile Visit poster's website
jakub.jnm

Bascom Member



Joined: 26 Mar 2013
Posts: 20

PostPosted: Thu Apr 25, 2013 1:12 pm    Post subject: Re: PC network settings... Reply with quote

bzijlstra wrote:
And to be complete. How is your module connected to the network, how is your PC connected to the network. What is the IP-address of your PC?


By this PDF http://www.tme.eu/cz/Document/b8f1cbb6491703b1bb14331982f52e62/wiz810mj.pdf I connect JP2 9 with VCC through resistor.

My computer has address 192.168.0.50
Modul is connected with my computer through by switch.
Back to top
View user's profile
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1179
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Thu Apr 25, 2013 5:02 pm    Post subject: Reply with quote

What about the leds on the Wiz810mj? Do you get a link? Two leds, which one is on. On the switch do you have a link? On what voltage your Atmega32 is running? Is it possible to put your pc fixed on a ip address and connect the wiz with a crosscable to your pc and do a ping? What leds are on when you do this?

There is a small led test on my homepage. Does that work? We could check with this test if SPI is running well.

Did you check your reset signal with a scope?

Ben Zijlstra
Back to top
View user's profile Visit poster's website
jakub.jnm

Bascom Member



Joined: 26 Mar 2013
Posts: 20

PostPosted: Fri May 03, 2013 11:14 am    Post subject: Reply with quote

bzijlstra wrote:
What about the leds on the Wiz810mj? Do you get a link? Two leds, which one is on. On the switch do you have a link? On what voltage your Atmega32 is running? Is it possible to put your pc fixed on a ip address and connect the wiz with a crosscable to your pc and do a ping? What leds are on when you do this?

There is a small led test on my homepage. Does that work? We could check with this test if SPI is running well.

Did you check your reset signal with a scope?

Ben Zijlstra


Both of the Leds are blinking [orange and green].
Atmega32 is on testing board with 5V.
Wiznet is running on 3,6V from laboratory power supply.
I connected wiznet and PC directly without switch and ping didn't work.


I am desperate:(

I tried
Code:
Const Board = 0  
but had same result.
Before this documentation i connected wiznet with atmega

http://www.atmel.com/Images/doc2503.pdf

PB4-PB7 as SPI interface
PB2 as Chipselect
PD3 as Reset

Is this ok?
Back to top
View user's profile
WXYZ

Bascom Member



Joined: 07 Apr 2013
Posts: 11

poland.gif
PostPosted: Fri May 03, 2013 6:51 pm    Post subject: Led's Reply with quote

You wrote: "Both of the Leds are blinking [orange and green]."
In my opinion You have periodically Reset of module. In normal work green Led should shine continuously...
And cable between PC and WIZ810MJ should be cross. Maybe that "PD3 as Reset" is responsible for trouble. Can You try working without INT1?
In your case it will be:
Code:
Config Tcpip = Noint , Mac = 00.40.66.34.56.78 , Ip = 192.168.0.50 , Submask = 255.255.255.0 , Gateway = 192.168.0.1 , Localport = 8000 , Tx = &B11 , Rx = &B11 , Chip = W5100 , Spi = 1 , Cs = Portb.2

Of course SPI_Enable must be set to 1.
Back to top
View user's profile
jakub.jnm

Bascom Member



Joined: 26 Mar 2013
Posts: 20

PostPosted: Tue May 07, 2013 10:41 am    Post subject: Re: Led's Reply with quote

WXYZ wrote:
You wrote: "Both of the Leds are blinking [orange and green]."
In my opinion You have periodically Reset of module. In normal work green Led should shine continuously...
And cable between PC and WIZ810MJ should be cross. Maybe that "PD3 as Reset" is responsible for trouble. Can You try working without INT1?
In your case it will be:
Code:
Config Tcpip = Noint , Mac = 00.40.66.34.56.78 , Ip = 192.168.0.50 , Submask = 255.255.255.0 , Gateway = 192.168.0.1 , Localport = 8000 , Tx = &B11 , Rx = &B11 , Chip = W5100 , Spi = 1 , Cs = Portb.2

Of course SPI_Enable must be set to 1.



His thanks for your advice!!
Sorry i made wrong in my previous respone. The green LED is still lighting and orange is Flashing.


As you wrote i tried this code:
Code:

$regfile = "m32def.dat"
$crystal = 16000000
$hwstack = 64
$swstack = 64
$framesize = 64
Config Tcpip = Noint , Mac = 00.40.66.34.56.78 , Ip = 10.0.1.171 , Submask = 255.255.255.0 , Gateway = 10.0.1.1 , Localport = 8000 , Tx = &B11 , Rx = &B11 , Chip = W5100 , Spi = 1 , Cs = Portb.2
 Spiinit

 


But still didn't respone on ping :O/

Yes, I have connected SPI_EN for enbable SPI. I connected Wiznet directly with computer via cross cable.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> EASY TCP/IP All times are GMT + 1 Hour
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum