Ethernet module and Microchip developement board

General discussion relating to the library modules supplied with the compiler

Moderators: David Barker, Jerry Messina

Post Reply
garryp4
Posts: 126
Joined: Mon May 21, 2007 7:18 am
Location: Loveland, CO USA

Ethernet module and Microchip developement board

Post by garryp4 » Sun Mar 23, 2008 10:22 pm

I have Microchips development board DM183022 http://www.microchip.com/stellent/idcpl ... t=DM183022 and the PicTail Ethernet board http://www.microchip.com/stellent/idcpl ... t=AC164121. I have loaded the Ethernet module and changed the CS and RESET pins to RB3 and RB5 to match the hardware in ENC28J60.bas

Code: Select all

/ default module option - user options will override these values...
#if IsOption(ENC28J60_RST) And Not IsValidPortPin(ENC28J60_RST) 
   #error ENC28J60_RST, "Invalid option. RST must be a valid port pin."
#endif
#option ENC28J60_RST = PORTB.5
#if IsOption(ENC28J60_CS) And Not IsValidPortPin(ENC28J60_CS) 
   #error ENC28J60_CS, "Invalid option. CS must be a valid port pin."
#endif
#option ENC28J60_CS = PORTB.3
as well as the device and clock in the lisiting from "Testing the Library Code" on the Swordfishwiki Ethernet page to match the 18F8722 and the 20mhz crystal (I swapped out the 10mhz one). The output to hyperterm is
Waiting for DHCP...
MAC Address : $FF $FF $FF $FF $FF $FF
IP address : 192.168.1.5
Mask : 255.255.255.0
Gateway : 192.168.1.1
.

Has anyone else tried this module with the Microchip development boards? I can't seem to get the MAC address to work correctly. Could this be why I also can not get the EthernetSMTP to display any output to hyperterm? I'm just starting with Ethernet so any help would be greatly appreciated.

Post Reply