Does anyone know what file has the interrupt service subroutine that executes for the ENC28J60 in the CCS tcp/ip stack?I have looked for a couple of hours and I can’t seem to find anything. I have a PIC 18F4550 that I would like to interface to a ENC28J60 and am concerned about using the INT pin of the nic with INT2 of the PIC. My problem is the INT0 and SDI pin are the same on the 18F4550 and I would like to change the code to use INT2 for the ISSR. Any help would be greatly appreciated.
Regards,
JED
Guest
Posted: Thu Mar 01, 2007 12:38 pm
check "tick.c"
JED
Joined: 13 Jul 2006 Posts: 8
Posted: Thu Mar 01, 2007 1:17 pm
Thanks for the prompt reply. I see an interrupt in Tick.c but it is the counter 0 interrupt. I think the ENC28J60 causes an external interrupt to the PIC. Every hardware example I see connects INT0 of the PIC to INT (pin 4) of the ENC28J60 but I can’t since one of my spi pins is the same as the INT0 pin.
asmallri
Joined: 12 Aug 2004 Posts: 1634 Location: Perth, Australia
Posted: Fri Mar 02, 2007 7:15 am
The stack does not implement interrupts for traffic between the PIC and the ENC. For most applications it would not be needed because the ENC buffers frames internally in its 8k buffer and therefore polling the ENC from the PIC is a simpler proposition than handling stack processing at interrrupt level. _________________ Regards, Andrew
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