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 and CCPRxH for the count? Never used CCP before except for PWM.
P.S. I will also have a "home sensor" to reset the "slot" counter.

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 and CCPRxH for the count? Never used CCP before except for PWM.
P.S. I will also have a "home sensor" to reset the "slot" counter.

Attachments
-
5.3 KB Views: 4
-
5.3 KB Views: 6
Last edited:
