Physically connect the pause button in the same way as the other two button. Use e.g. PD2, so you can use the interrupt INT0 to pause the counter.
I tried to load your code. I get an error when loading the project
Anyway I managed to read the C source file "gfuhgj.c" Where did you get it from? It is so ugly formatted no comments to explain what's going on, cryptic filenames ...
"delay()" is used for timing: doesn't make for a precise stopwatch.
Regardless of that: to pause the counter you can insert this code (replace the existing code without if:
Code:
while (1)
{
ww();
dg();
if(PIND.2==1)
sd();
}
Then the counter will pause while the pause button is pressed.