View previous topic :: View next topic |
Author |
Message |
CJ
Joined: 08 Jul 2006 Posts: 7
|
18F4620 ethernet development kit |
Posted: Sat Jul 08, 2006 8:24 am |
|
|
#include <18F4620>
#fuses H4, NOWDT, NOLVP
#use delay (clock=40000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7)
The above works fine for the first example
when I change my fuse from H4 to HS and my delay from 40000000 to 20000000 as a following example requests it stops working. In the example all I have to do is change them back and it starts working. Sort of see next question.
Another question is about the Embedded Ethernet Exercise book. I am on example ex7a.c I get the simple printf message but I do not get any network information. I have the dev. board hooked into my network. Do I need it plugged into a pc directly with a cross over cable? Do I need to do something to send it a packet or is the info internal to the development board? As you may have figured I am very new to this. If there is a location I should go to find this out for my self please point me in that direction.
Thank you
Mark |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1634 Location: Perth, Australia
|
|
Posted: Sat Jul 08, 2006 8:37 am |
|
|
If you have a 10M crystal installed then changing to the HS and setting clock=20000000 is pointless. It will not work properly. _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
CJ
Joined: 08 Jul 2006 Posts: 7
|
|
Posted: Sat Jul 08, 2006 9:46 am |
|
|
does anyone know the crystal that is on the embedded ethernet development board? |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1634 Location: Perth, Australia
|
|
Posted: Sat Jul 08, 2006 9:50 am |
|
|
The CCS PICENS has a 10MHz but (unless it has changed) it has a PIC18F4520 _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
CJ
Joined: 08 Jul 2006 Posts: 7
|
|
Posted: Sat Jul 08, 2006 10:12 am |
|
|
There is a big note on the back of the Exercise book that said they changed and the chip on the board is an 18F4620. Should I be O.K. to leave the fuses and delay at H4 and 40000000? I don't mind recoding later but right now I would like to just work through the exercise book in order to get familiar with the chip. |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1634 Location: Perth, Australia
|
|
Posted: Sat Jul 08, 2006 10:18 am |
|
|
Thanks for the update.
Yes you should leave the H4 fuse set and clock=40000000 _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
CJ
Joined: 08 Jul 2006 Posts: 7
|
|
Posted: Sat Jul 08, 2006 10:21 am |
|
|
I set up with a crossover cable and a laptop instead of a regular cable into my normal network and it is working fine. Thanks for the helpwith the fuses.
I have not ever worked with this large a pic chip before. I need to pull up the data sheet and review. |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1634 Location: Perth, Australia
|
|
Posted: Sat Jul 08, 2006 8:53 pm |
|
|
I have updated the Ethernet bootloader to support the PIC18F4620 on the CCS PICENS Ethernet development board _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
|