User Activity

i wrote a program and i want to turn on the led after passing a 500 and 750 , 1000ms.i use out put compare and use active on mach timer mode.but it only work one time , i realize that i should reset my timer and count value but i don't know how?plea...
i want to assign a number to parameter in program and check if my parameter is equal to my number , disable a pin after passing a 10 sec.in the other hand i want to make a off delay timer with HAL library .i use STM 32 AND KEIL IDE.