I’m trying to synchronize this timer module with another time source.
According to the documentation, I can restart this timer by simply disabling and re-enabling it. I've set a break point immediately before and after the code listed below. I don’t think this is working as intended because the timer’s Current Value is decremented slightly and nowhere near the Reload Value.
PIT_TCTRL_REG( PIT_BASE_PTR, 0 ) &= ~PIT_TCTRL_TEN_SHIFT;
PIT_TCTRL_REG( PIT_BASE_PTR, 0 ) |= PIT_TCTRL_TEN_SHIFT;
Note: I’m referencing Figure 38-23 of the Document K10P144M100SF2RM Rev. 6, Nov 2011
Please let me know if you have any suggestions.