Author Topic: Inaccuracy in M5223X PIT TICK  (Read 8043 times)

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3236
    • View Profile
    • uTasker
Inaccuracy in M5223X PIT TICK
« on: April 18, 2008, 08:07:20 PM »
Hi All

Some long period accuracy measurements suggest that there is a error in the setting of the TICK period (using the PIT) up to and including SP6.

According to latest information the value TICK_DIVIDE is 1 too large to achieve the most accuracte value
PIT_PMR_0 = TICK_DIVIDE;
and so shoudl be
PIT_PMR_0 = (TICK_DIVIDE - 1);

Working with 50ms TICK (TICK_RESOLUTION) this makes a difference of about 9s in an hour.
Once this has been fully confirmed it will be corrected for ready for the next SP, but it can easily be improved if you would like to test it yourselves.

See also the following for more details of the TICK accuracy.
http://www.utasker.com/forum/index.php?topic=193.msg708#msg708

Regards

Mark