Imagine 8 Hall Effect sensors in each one of the slots below. There will be a disk spinning above the slots. The disk contains the magnet. I need to know when each one is tripped but I don't want to have to use 8 external interrupts. I was thinking maybe an 8 to 1 multiplexer but I have none on hand. Would there be another way to do this?
Also can't I use the CCP to interrupt say on the 4th interrupt? Is this the Compare mode, toggle output on match bit? And the CCPRxL...
8 sensors to one external interupt with count on a pic?
Also can't I use the CCP to interrupt say on the 4th interrupt? Is this the Compare mode, toggle output on match bit? And the CCPRxL...
8 sensors to one external interupt with count on a pic?