English
Language : 

K60P100M100SF2RM Datasheet, PDF (1070/1809 Pages) Freescale Semiconductor, Inc – K60 Sub-Family Reference Manual
Functional Description
Timer Enabled
Start Value = p1
Disable
Timer
Re-Enable
Timer
Trigger
Event
p1
p1
p1
p1
Figure 40-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
Start Value = p1
Disable
Timer,
Set new
Re-Enable
Timer
Load Value
Trigger
Event
p2
p2
p2
p1
p1
Figure 40-24. Modifying Running Timer Period
It is also possible to change the counter period without restarting the timer by writing the
LDVAL register with the new load value. This value will then be loaded after the next
trigger event (see the following figure).
Timer Enabled
Start Value = p1
New Start
Value p2 set
Trigger
Event
p1
p1
p1
p2
p2
Figure 40-25. Dynamically Setting a New Load Value
40.4.1.2 Debug Mode
In debug mode, the timers will be frozen based on FRZ bit in PIT module control
register. 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.
1070
K60 Sub-Family Reference Manual, Rev. 6, Nov 2011
Freescale Semiconductor, Inc.