English
Language : 

PXD20RM Datasheet, PDF (1194/1628 Pages) Freescale Semiconductor, Inc – PXD20 Microcontroller
The counter period can be restarted, by first disabling, then enabling the timer with the TEN bit (see
Figure 32-7).
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 Figure 32-8).
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 Figure 32-9).
Timer Enabled
Start Value = p1
Disable
Timer
Trigger
Event
p1
p1
p1
Re-Enable
Timer
p1
Figure 32-7. Stopping and Starting a Timer
Timer Enabled
Start Value = p1
Trigger
Event
Disable
Timer,
Set new
Re-Enable
Timer
Load Value
p2
p2
p2
p1
p1
Figure 32-8. Modifying Running Timer Period
Timer Enabled
Start Value = p1
New Start
Value p2 set
Trigger
Event
p1
p1
p1
p2
p2
Figure 32-9. Dynamically Setting a New Load Value
32.4.1.2 Debug Mode
In Debug Mode the timers will be frozen - this is intended to aid software development, allowing the
developer to halt the processor, investigate the current state of the system (e.g. the timer values) and then
continue the operation.
32.4.2 Interrupts
All of the timers support interrupt generation. Refer to the MCU specifications for related vector addresses
and priorities.
32-8
PXD20 Microcontroller Reference Manual, Rev. 1
Preliminary—Subject to Change Without Notice
Freescale Semiconductor