I use timer2 as my main clock. i need 1000 ticks per 1s. so i can confirm the value of TLDR .
I use timer2 auto-reload mode, so when TCRR = 0xffff ffff ,the timer2 will generate a interrupt ,and next time TCRR will automatically equal to the value of TLDR and then added itself one by one according to the crystal's work. so ,the value of TCRR is always between TLDR and 0xffff ffff.
However when i use the auto-reload mode, i find that when TCRR=0xffff ffff, and then the TCRR is between 0x0 and TLDR randomly. and then the program is suspended.
My CPU is am3358bzcza100, i change this to am3358bzcza80. this phenomenon is still exist.
if i change prescale clock ratio value(PS) according to TRM.pdf from 1 to 16, the timer2 works normally.
so does TI encounter this trouble? Does the hardware of timer2 have a bug?