Information
p1
Timer enabled
Disable
timer
p1 p1
Start value = p1
Trigger
event
p1
Re-enable
timer
Figure 36-23. Stopping and starting a timer
The counter period of a running timer can be modified, by first disabling the timer,
setting a new load value, and then enabling the timer again. See the following figure.
Timer enabled
Disable timer,
p1
p1
Re-enable
timer
Start value = p1
Trigger
event
Set new load value
p2
p2
p2
Figure 36-24. Modifying running timer period
It is also possible to change the counter period without restarting the timer by writing
LDVAL with the new load value. This value will then be loaded after the next trigger
event. See the following figure.
Timer enabled
p1
p1
Start value = p1
Trigger
event
p2
p2
p1
New start
Value p2 set
Figure 36-25. Dynamically setting a new load value
36.4.1.2 Debug mode
In Debug mode, the timers will be frozen based on MCR[FRZ]. This is intended to aid
software development, allowing the developer to halt the processor, investigate the
current state of the system, for example, the timer values, and then continue the
operation.
Functional description
K20 Sub-Family Reference Manual, Rev. 2, Feb 2012
826 Freescale Semiconductor, Inc.
