Thanks, Sayzer, for this input. All three of your suggestions are logical and good. However, I implemented all three of your suggestions, and it still stops after exactly 23 interrupts on IN2.
Any other ideas from anyone as to why this is happening? Would really appreciate an input from Darrel Taylor.
John Ellis