EasyManua.ls Logo

NXP Semiconductors KL25 Series - Freescale Semiconductor, Inc

NXP Semiconductors KL25 Series
807 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
TPMx_CONF field descriptions (continued)
Field Description
27–24
TRGSEL
Trigger Select
Selects the input trigger to use for starting the counter and/or reloading the counter. This field should only
be changed when the LPTPM counter is disabled. See Chip configuration section for available options.
23–19
Reserved
This field is reserved.
This read-only field is reserved and always has the value 0.
18
CROT
Counter Reload On Trigger
When set, the LPTPM counter will reload with zero (and initialize PWM outputs to their default value) when
a rising edge is detected on the selected trigger input.
The trigger input is ignored if the LPTPM counter is paused during debug mode or doze mode. This field
should only be changed when the LPTPM counter is disabled.
0 Counter is not reloaded due to a rising edge on the selected input trigger
1 Counter is reloaded when a rising edge is detected on the selected input trigger
17
CSOO
Counter Stop On Overflow
When set, the LPTPM counter will stop incrementing once the counter equals the MOD value and
incremented (this also sets the TOF). Reloading the counter with zero due to writing to the counter register
or due to a trigger input does not cause the counter to stop incrementing. Once the counter has stopped
incrementing, the counter will not start incrementing unless it is disabled and then enabled again, or a
rising edge on the selected trigger input is detected when CSOT set.
This field should only be changed when the LPTPM counter is disabled.
0 LPTPM counter continues incrementing or decrementing after overflow
1 LPTPM counter stops incrementing or decrementing after overflow.
16
CSOT
Counter Start on Trigger
When set, the LPTPM counter will not start incrementing after it is enabled until a rising edge on the
selected trigger input is detected. If the LPTPM counter is stopped due to an overflow, a rising edge on the
selected trigger input will also cause the LPTPM counter to start incrementing again.
The trigger input is ignored if the LPTPM counter is paused during debug mode or doze mode. This field
should only be changed when the LPTPM counter is disabled.
0 LPTPM counter starts to increment immediately, once it is enabled.
1 LPTPM counter only starts to increment when it a rising edge on the selected input trigger is detected,
after it has been enabled or after it has stopped due to overflow.
15–10
Reserved
This field is reserved.
This read-only field is reserved and always has the value 0.
9
GTBEEN
Global time base enable
Configures the LPTPM to use an externally generated global time base counter. When an externally
generated timebase is used, the internal LPTPM counter is not used by the channels but can be used to
generate a periodic interrupt or DMA request using the Modulo register and timer overflow flag.
0 All channels use the internally generated LPTPM counter as their timebase
1 All channels use an externally generated global timebase as their timebase
8
Reserved
This field is reserved.
This read-only field is reserved and always has the value 0.
7–6
DBGMODE
Debug Mode
Table continues on the next page...
Memory Map and Register Definition
KL25 Sub-Family Reference Manual, Rev. 3, September 2012
560 Freescale Semiconductor, Inc.

Table of Contents

Related product manuals