CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Problems with the RTL8019AS?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Tirtho



Joined: 12 Oct 2007
Posts: 5
Location: Canada

View user's profile Send private message Send e-mail

Problems with the RTL8019AS?
PostPosted: Fri Oct 12, 2007 8:41 am     Reply with quote

Hi,

I am a new programmer and designer. I designed my board based on the CCS internet board. After implementing the design and compiling the codes in a project. My board does not work. It seems there are colllissions while transmitting packets.

Can any one help me on this?

thanks
asmallri



Joined: 12 Aug 2004
Posts: 1634
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Fri Oct 12, 2007 8:49 am     Reply with quote

How are you connecting it to the network?

By default, 10M Ethernet devices will connect to the network in half duplex mode, if the Realtek is configured for half duplex and is being connected to a device that is configured full duplex, or visa versa, then collisions will occur.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
Tirtho



Joined: 12 Oct 2007
Posts: 5
Location: Canada

View user's profile Send private message Send e-mail

PostPosted: Fri Oct 12, 2007 9:02 am     Reply with quote

Well, I am using the same code as used by the CCS for their internet prototype board. I just changed the hardware settings for my PIC 18F8722. Since the original code was written for 18f6722. I just changed the port settings and direction based on the design.

So the RTL is specified to work on the 10 mb ethernet
asmallri



Joined: 12 Aug 2004
Posts: 1634
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Fri Oct 12, 2007 10:05 am     Reply with quote

Are you connecting to a hub, switch or cross-over cable to a PC?

Do the duplex settings match?
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
Guest








PostPosted: Fri Oct 12, 2007 2:30 pm     Reply with quote

Yes the ethernet cable is connected to a hub, for this.
Tirtho



Joined: 12 Oct 2007
Posts: 5
Location: Canada

View user's profile Send private message Send e-mail

PostPosted: Fri Oct 12, 2007 2:41 pm     Reply with quote

The problem is that the CCS internet board is pre loaded with a hex file to make the protocol based files run on the board. I have that hex file, but since my hardware is different I cant use that hex file. I used couple of their programs in a project file and then uploaded the hex file, but still it does not work.

In the status LED's of the RTL, the LED_COL blinks concurrently with the LED_TX.
I have checked the hardware connections and they are all good.
The only difference is that I have used PORT J instead of PORT F used in their board. I have made the changes in the code accordingly.

But still it does not seem to work.
Tirtho



Joined: 12 Oct 2007
Posts: 5
Location: Canada

View user's profile Send private message Send e-mail

PostPosted: Wed Oct 17, 2007 1:08 pm     Reply with quote

Well the good news is that the board is working!..but when it sends packets to the network, the frame check sequence is incorrect...any suggestions how to improve on that. Because of this it is not getting detected in the network.

Any suggestions?

Thanks in advance

Tirtho
asmallri



Joined: 12 Aug 2004
Posts: 1634
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Wed Oct 17, 2007 3:02 pm     Reply with quote

There are a few of reasons this can happen.

The controller is set to not automatically produce the CRC
The frame is being corrupted which could be due to collisions or, more likely, tx pair polarity reversal.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
Guest








PostPosted: Thu Oct 18, 2007 8:37 am     Reply with quote

Ok. Resolved!..But still the speed issue remains. The CCS board in comparison to my board is much faster in sending out arp requests. When I connect my board to the network it is very slow compared to the CCS board.

Any suggestions as to how to improve on this?

Regards

Tirtho
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
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


Powered by phpBB © 2001, 2005 phpBB Group