I will think to extract everything with flags for now.
The algorithm works now and yes the timer is to much quick. So my high level programming cannot use my settings and i need to study more advanced programs like TmrPcm library before trying to make my own settings.
Thank you much, error solved and well explained.