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

ENC28J60 interrupt code

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



Joined: 13 Jul 2006
Posts: 8

View user's profile Send private message

ENC28J60 interrupt code
PostPosted: Thu Mar 01, 2007 12:04 pm     Reply with quote

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








PostPosted: Thu Mar 01, 2007 12:38 pm     Reply with quote

check "tick.c"
JED



Joined: 13 Jul 2006
Posts: 8

View user's profile Send private message

PostPosted: Thu Mar 01, 2007 1:17 pm     Reply with quote

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: 1635
Location: Perth, Australia

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

PostPosted: Fri Mar 02, 2007 7:15 am     Reply with quote

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

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
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