Hi Dear @Omar_Anguiano ,
That is exactly what I am trying to do. I watch some of the tutorials on STM but I did not know the unit of output compare value is Tick. I just looked for the interrupt method that system calls when every tick is occured. I will try your suggestions.
EDIT:
Dear @Omar_Anguiano Hi again,
I have three more question.
Q1:Is the unit of delay_time second in the equation that you attach your answer?
Q2: What is the relationship between base->CNT increasion and output compare value? So What is the time between the value of base->CNT when it pass form n to n+1 for example 0 to 1.
Q3:When should I use base->CNT value if I can obtain delay with your equation?
Thanks and Regards.