A little more work and I think I have found the problem in my code, the delay in my button debounce. The code is such that it will go through one of the loops to check the button state every time. I took the delay out and the time to go round the loop is reduced to 10ms. Now it should catch every pulse.
if (Button2Press == 0){
val = digitalRead(inputPin2);
delay(100);
bounceCheck = digitalRead(inputPin2);
if (val == bounceCheck){
if (val == LOW){
I just need to avoid checking the button states when recording pulses.
Duane, your project looks great. when I get mine working I will share with you some more detail.
Paul, that's what I thought. I am writing to EEPROM after the end of the run when recording has finished. During the run the times are held as variables. Thanks for your comment.
Graham