AnsweredAssumed Answered

MPC5748G STM

Question asked by yankuang on Apr 7, 2017
Latest reply on Apr 12, 2017 by yankuang

I encountered the following two problems when testing the System Timer Module,the test code is shown in the figure.

1.After each interrupt is generated, the CNT register must be configured in addition to clearing the CLR register.If the CNT register is not reconfigured, the next interrupt will not be generated.Is this the correct way to operate SMT?

 

2.I found that the timers generated by SMT were not accurate.For example, I configured the timer to 1000 milliseconds,after executing an interrupt function, the next timer time becomes 1030 milliseconds.

Outcomes