AnsweredAssumed Answered

MKE04Z64 family and accurate periodic timer

Question asked by Ricard Comas on Apr 5, 2019
Latest reply on May 14, 2019 by Kerry Zhou

Hello mates, what's up?


We are developing a kind of timer, it counts from 1.200 minutes until 0, I need that component timer of Processor Expert called (TimeInt) was very accurate because of deviation of time, for instance if timer is counting for an hour it loss a second (it's only an example, but really loss some time).


To make counter we use uint16_t variables, and they goes in to event of timer periodic interrupt decreasing.

My base time is 1 ms (timer component was configured with 1 ms tick)


We use a quartz oscillator of 16 Mhz, but we think that CPU isn't take the accurate that quartz offers.


In the CPU component I have got next settings:






And in the timer component I've got:





Could you help me?¿


Thanks so much!