Changed from CTC to normal mode in timer 3

Some functions have been rewritten