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

PIC with 4 external interrupts

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



Joined: 16 Aug 2005
Posts: 37
Location: Fredericton,NB

View user's profile Send private message Send e-mail MSN Messenger

PIC with 4 external interrupts
PostPosted: Fri Feb 16, 2007 10:00 am     Reply with quote

Hello,

Just a quick question. i am curious if there is any PIC's with at least 4 external interrupts.. I saw an old datasheet of the PIC 18F4431 with 4 ineterrupts..but when i go on the microchip site, it only shows 3 external interrupts like most PICs. I need it to be a 40 pin DIP..

Thanks,
Josh
Ttelmah
Guest







PostPosted: Fri Feb 16, 2007 10:37 am     Reply with quote

Remember you can use CCP inputs potentially as an interrupt. You can program these to capture on every falling, or rising edge, and simply ignore the count involved. Using one of these (or both!), allows any PIC with three external interrupts to behave as if it has four.

Best Wishes
newguy



Joined: 24 Jun 2004
Posts: 1907

View user's profile Send private message

PostPosted: Fri Feb 16, 2007 11:18 am     Reply with quote

You can also use the RB interrupt as well. Since it fires whenever there is a change in B4 - B7, it's up to you to keep track of what happened (i.e. rise, fall, on which pin, etc.) Not overly simple, but not impossible.
joshkeys



Joined: 16 Aug 2005
Posts: 37
Location: Fredericton,NB

View user's profile Send private message Send e-mail MSN Messenger

PostPosted: Fri Feb 16, 2007 11:22 am     Reply with quote

Perfect! I did not feel like multiplexing the interrupts or using the portB interrupt on change as these are critical time constraining interrupts and real estate and extra hardware are an issue.

Thanks!

Josh
joshkeys



Joined: 16 Aug 2005
Posts: 37
Location: Fredericton,NB

View user's profile Send private message Send e-mail MSN Messenger

PostPosted: Fri Feb 16, 2007 11:25 am     Reply with quote

Thanks also newguy, the only problem with that is the extra overhead involved, and the system i am using this on is a critical system that needs immediate response, so determining which pin went may affect performance.

Thanks
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