View previous topic :: View next topic |
Author |
Message |
Skirmitt
Joined: 19 May 2009 Posts: 60
|
PIC 16F vs 18F - Port B INT |
Posted: Wed May 14, 2014 6:08 am |
|
|
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
|
|
Posted: Wed May 14, 2014 6:50 am |
|
|
18f26k22 -pin compatible with 16f886 and very little cost difference
with 16f family.
46k22 is the 40 pin flavor
|
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19537
|
|
Posted: Wed May 14, 2014 8:53 am |
|
|
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 |
|
|
|