hello am using pic16f819

my problem is i use DTMFOUT function inside (for) loop this causes some times process hung after almost 9 or 10 min working time
is there any why to make pic self reset if it hung



regards