I am puzzled.I found the overflows of time2 is not right. I set
and overflow_count=838000(my core clock is 8.38M) to check what is wrong. Then, it only 25s has passed when the overflow=0.
That means the time2 works at 8-bit.Why? The data-sheet says the time2 only can work at 16bit or baud-rate.