Just having a think about my pin layout for this project, feeling a bit confused with the different revisions of the 40 pin chip, there seem to be so many "applies to this but not this" exceptions and new commands that work on certain versions but not others.
I have many inputs (7 or so, User Interface buttons) that I was hoping to find with interrupts due to their fairly momentary nature and not requiring immediate response, while "manually" polling 7 other inputs (which are reed position switches with relatively long "on times" and so are easier to catch with if pinX = 1.... ) Am i right in assuming you cannot have multiple port interrupts (only one interrupt essentially)? I'm confused as to how the normal setint and the new hint pins differ in "end user" operation - the normal interrupts poll every pin between each command line, the new ones do what? Is it simply to speed up the process, how long does it take to poll the pins assuming 7 pins in the mask?
One interesting "interrupt expander", I suppose, would be have the 2 banks of 7 connected in parallel through an array of diodes, each 7 commoned together and linked to a pin in a pair of "interrupt pins", then in the interrupt identify the port and read all pins on that port.
Or possibly continuously alternate between interrupting on 2 different ports, hoping this occurs fast enough to catch either set.
What are your thoughts on the matter?
I have many inputs (7 or so, User Interface buttons) that I was hoping to find with interrupts due to their fairly momentary nature and not requiring immediate response, while "manually" polling 7 other inputs (which are reed position switches with relatively long "on times" and so are easier to catch with if pinX = 1.... ) Am i right in assuming you cannot have multiple port interrupts (only one interrupt essentially)? I'm confused as to how the normal setint and the new hint pins differ in "end user" operation - the normal interrupts poll every pin between each command line, the new ones do what? Is it simply to speed up the process, how long does it take to poll the pins assuming 7 pins in the mask?
One interesting "interrupt expander", I suppose, would be have the 2 banks of 7 connected in parallel through an array of diodes, each 7 commoned together and linked to a pin in a pair of "interrupt pins", then in the interrupt identify the port and read all pins on that port.
Or possibly continuously alternate between interrupting on 2 different ports, hoping this occurs fast enough to catch either set.
What are your thoughts on the matter?