![NXP Semiconductors MKL27Z128VFM4 Reference Manual Download Page 472](http://html1.mh-extra.com/html/nxp-semiconductors/mkl27z128vfm4/mkl27z128vfm4_reference-manual_1721847472.webp)
TPMx_CONF field descriptions (continued)
Field
Description
27–24
TRGSEL
Trigger Select
Selects the input trigger to use for starting, reloading and/or pausing the counter. The source of the trigger
(external or internal to the TPM) is configured by the TRGSRC field. This field should only be changed
when the TPM counter is disabled.
Refer to the chip configuration section for available external trigger options.
The available internal trigger sources are listed below.
0001
Channel 0 pin input capture
0010
Channel 1 pin input capture
0011
Channel 0 or Channel 1 pin input capture
0100
Channel 2 pin input capture
0101
Channel 0 or Channel 2 pin input capture
0110
Channel 1 or Channel 2 pin input capture
0111
Channel 0 or Channel 1 or Channel 2 pin input capture
1000
Channel 3 pin input capture
1001
Channel 0 or Channel 3 pin input capture
1010
Channel 1 or Channel 3 pin input capture
1011
Channel 0 or Channel 1 or Channel 3 pin input capture
1100
Channel 2 or Channel 3 pin input capture
1101
Channel 0 or Channel 2 or Channel 3 pin input capture
1110
Channel 1 or Channel 2 or Channel 3 pin input capture
1111
Channel 0 or Channel 1 or Channel 2 or Channel 3 pin input capture
23
TRGSRC
Trigger Source
Selects between internal (channel pin input capture) or external trigger sources.
When selecting an internal trigger, the channel selected should be configured for input capture. Only a
rising edge input capture can be used to initially start the counter using the CSOT configuration; either
rising edge or falling edge input capture can be used to reload the counter using the CROT configuration;
and the state of the channel input pin is used to pause the counter using the CPOT configuration. The
channel polarity register can be used to invert the polarity of the channel input pins.
This field should only be changed when the TPM counter is disabled.
0
Trigger source selected by TRGSEL is external.
1
Trigger source selected by TRGSEL is internal (channel pin input capture).
22
TRGPOL
Trigger Polarity
Selects the polarity of the external trigger source. This field should only be changed when the TPM
counter is disabled.
0
Trigger is active high.
1
Trigger is active low.
21–20
Reserved
This field is reserved.
This read-only field is reserved and always has the value 0.
19
CPOT
Counter Pause On Trigger
When enabled, the counter will pause incrementing while the trigger remains asserted (level sensitive).
This field should only be changed when the TPM counter is disabled.
18
CROT
Counter Reload On Trigger
Table continues on the next page...
Memory Map and Register Definition
KL27 Sub-Family Reference Manual , Rev. 5, 01/2016
472
Freescale Semiconductor, Inc.