Hi , i think the problem with your watch dog reset is as soon when you mov the value of CH into ccap4h register this will reset the uC as both will get matched
And this was a response to what post in what thread???
If it was a response to a old locked thread, you could at least have added a link to the thread...