Michael Rigby-Jones [mrjones at NORTELNETWORKS.COM] says:
You could probably implement multiple external interupts with just some diode OR logic if the interrupt pulse wasn't too quick. Just set a port as inputs, and wire a diode from each port pin to B0. I the interrupt handler you would then read the port to decide which pin had caused the interrupt. You could also consider using the interrupt on change feature of PORT B on the mid range devices.
Soren Knudsen [PIC at KNUDSEN.CJB.NET] says:
[If you wire a second interrupt input to whatever pin you have set as the] source for the timer increement and at every finished INT write 0xFF to the timer you have an alternative to the PORTB, 0 pin INT.
Timer tutorial (incl prescalers) by Andrew Warren
|file: /Techref/microchip/isrmultipin.htm, 2KB, , updated: 2010/10/16 19:39, local time: 2017/10/19 09:53,
|©2017 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?|
<A HREF="http://www.piclist.com/techref/microchip/isrmultipin.htm"> Multiple source interrupts</A>
|Did you find what you needed?|
PICList 2017 contributors:
o List host: MIT, Site host massmind.org, Top posters @20171019 RussellMc, Van Horn, David, James Cameron, Sean Breheny, IVP, alan.b.pearce, Neil, David C Brown, Bob Blick, Denny Esterline,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
Welcome to www.piclist.com!