PICcoder.co.uk Forum  


::post new topic::
Testing your board
Date: 2006/03/13 15:17 By: Ian Status: Moderator  
Karma: 5  
Posts: 85
graphgraph
It is easiest to get the project working by spliting the circuit in two by disconnecting the 3 SPI bus wires.

The PIC
Without the SPI bus the PIC is in one of the simplest setups you can build; a clock input and an LED on pin RD0. To simplify things further you can ignore the diode and other components on the MCLR pin just pull the pin high when you want to release the PIC from reset.

I suggest you write a very simple program in C to make the RD0 pin flash on and off. If this doesn't work then there must be something wrong with your circuit or the oscillator. Check the connections and the oscillator with an osciloscope.

The ENC
With the SPI bus disconnected, the power (3.3volts) connected and an Ethernet cable connecting to a switch I found that one of the LEDs connected to the ENC chip lit up to indicate the cable was connected and the other flashed when it recieved broadcast packets.

The Complete Circuit
With the SPI bus connected up and the 3.3volt power supply to both the PIC and the ENC the circuit should work. If I remeber correctly RD0 should flash on once a second and the ENC leds should behave as above.

Hope this helps,
Ian

Post edited by: ian, at: 2006/03/13 15:19
reply | quote

Re:Testing your board
Date: 2006/03/13 15:43 By: Ian Status: Moderator  
Karma: 5  
Posts: 85
graphgraph
I have also added a .hex file for the project to the end of the article.

It was compiled from the source code from the first "Useful Link" with the modifications listed in the article.

Microchip TCP/IP Stack Version v3.02.00
MPLab 7.31.00.00
MPLAB(R) C18, PICmicro(R) 18Cxx C Compiler v3.00 Student Edition

The C18 complier runs without optimismation, it has expired.
reply | quote

Re:Testing your board
Date: 2006/04/05 22:00 By: Suzi Status: Visitor  
 
Hi Ian,
Can I get your email since I will send for you my project to see if it will become correct and will work or not
reply | quote

Re:Testing your board
Date: 2006/04/05 22:29 By: Ian Status: Moderator  
Karma: 5  
Posts: 85
graphgraph
I have very little time at the moment. But you can email me at ian@piccoder.co.uk

Hopefully I will have more time in a month or so.
reply | quote

Re:Testing your board
Date: 2006/04/06 08:45 By: Suzi Status: Visitor  
 
thanx Ian
Can you tell me how I can fix the below error
MPLINK 4.02, Linker
Copyright (c) 2006 Microchip Technology Inc.
Error - could not find definition of symbol 'ARPIsResolved' in file 'C:Documents and SettingsAyahMy Documentsprojectsensor.o'.
Errors : 1
reply | quote

::post new topic::