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 16F vs 18F - Port B INT

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



Joined: 19 May 2009
Posts: 60

View user's profile Send private message

PIC 16F vs 18F - Port B INT
PostPosted: Wed May 14, 2014 6:08 am     Reply with quote

I have a project that I finished a few years ago that I want to improve. Is used a PIC 16F886, a great allrounder. I now want to upgrade to 18F series cause of SD card implementation. Problem is I use the port B interrupt on 3 pins. No problem for the 16F serie but 18F only has 1 INT pin.

Am I wrong or are there other ways to come around this without adding an extra IC ?
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Wed May 14, 2014 6:50 am     Reply with quote

18f26k22 -pin compatible with 16f886 and very little cost difference
with 16f family.
46k22 is the 40 pin flavor
Very Happy Very Happy Very Happy Very Happy Very Happy
Ttelmah



Joined: 11 Mar 2010
Posts: 19496

View user's profile Send private message

PostPosted: Wed May 14, 2014 8:53 am     Reply with quote

Agree this is a great chip.

The general comment, is that the "18F only has 1 INT pin" is wrong. As with the 16F parts, where chips like the 16F874 only have one INT pin, but the 16F886 has interrupt on change on the entire port, many of the PIC18's have more complex combinations of interrupts.
The xxK22, has three separate interrupts on B0, B1, & B2, then interrupt on change on B4 to B7.

Best Wishes
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