- Wed Apr 18, 2012 5:54 am
#143118
OK, I think I'm getting that.
If I understand it correctly, I can save pin 2 and pin 3 for external interrupts. The two interrupts I'm thinking of, I'm not worried about conflicting: Interrupt on pin 2 being a trigger state change (for a high speed trigger option, not for an analog read trigger). Interrupt on pin 3 being the first photo-interrupter pin. When this is triggered it starts counting until the second photo-interrupter is triggered.
I'm getting ready to futz with the code on the prototype board to incorporate a local display as well. Every time I do a major change, I want to "gravitate" the pins to where they'll eventually be on the backpack.
If I understand it correctly, I can save pin 2 and pin 3 for external interrupts. The two interrupts I'm thinking of, I'm not worried about conflicting: Interrupt on pin 2 being a trigger state change (for a high speed trigger option, not for an analog read trigger). Interrupt on pin 3 being the first photo-interrupter pin. When this is triggered it starts counting until the second photo-interrupter is triggered.
I'm getting ready to futz with the code on the prototype board to incorporate a local display as well. Every time I do a major change, I want to "gravitate" the pins to where they'll eventually be on the backpack.
Static