39.1.5 CMP trigger mode
The CMP and 8-bit DAC sub-block supports trigger mode operation when the chip is in
STOP1 or VLPS mode. When trigger mode is enabled, the trigger source will provide a
low power clock and the triggers to the CMP. The trigger event will initiate a compare
sequence that must first enable the CMP and DAC prior to performing a CMP operation
and capturing the output. In this device, control for this two staged sequencing is
provided from the LPTMR. The LPTMR triggering output is always enabled when the
LPTMR is enabled. LPTMR trigger output is used as the trigger event and LPTM
prescaler clock acts as the low power clock to the CMP in trigger mode. The first signal
is supplied to enable the CMP and DAC and is asserted at the same time as the TCF flag
is set. The delay to the second signal that triggers the CMP to capture the result of the
compare operation is dependent on the LPTMR configuration. In Time Counter mode
with prescaler enabled, the delay is 1/2 Prescaler output period. In Time Counter mode
with prescaler bypassed, the delay is 1/2 Prescaler source clock period.
The delay between the first signal from LPTMR and the second signal from LPTMR
must be greater than the Analog comparator initialization delay as defined in the device
datasheet.
NOTE
When used in Round Robin mode, CMP0 outputs the enable
signal of comparator on CMP0_RRT pin, on each cycle of
comparator circuit. See IO Signal Description Input
Multiplexing sheet(s) attached to the Reference Manual for the
pins on which CMP0_RRT function is available.
39.1.6 Programming recommendation
Following sequence to be followed for CMP round robin operation:
1. Configure the comparator for round robin mode. (Fields in same register can be
configured at one time)
a. Configure the comparison cycles by C2[NSAM].
NOTE
It is a mandatory request that the round robin cycling
period must be set longer than the time that all the
active channels complete the specified comparison
cycles set by C2[NSAM].
b. Configure CMP initialization delay by C2[INITMOD].
Chapter 39 Comparator (CMP)
MWCT101xS Series Reference Manual, Rev. 3, 07/2019
NXP Semiconductors
1049
Содержание MWCT101 S Series
Страница 2: ...MWCT101xS Series Reference Manual Rev 3 07 2019 2 NXP Semiconductors...
Страница 42: ...MWCT101xS Series Reference Manual Rev 3 07 2019 42 NXP Semiconductors...
Страница 50: ...Conventions MWCT101xS Series Reference Manual Rev 3 07 2019 50 NXP Semiconductors...
Страница 70: ...Aliased bit band regions MWCT101xS Series Reference Manual Rev 3 07 2019 70 NXP Semiconductors...
Страница 78: ...Pinout diagrams MWCT101xS Series Reference Manual Rev 3 07 2019 78 NXP Semiconductors...
Страница 96: ...WCT101xS safety concept MWCT101xS Series Reference Manual Rev 3 07 2019 96 NXP Semiconductors...
Страница 130: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 130 NXP Semiconductors...
Страница 200: ...Initialization application information MWCT101xS Series Reference Manual Rev 3 07 2019 200 NXP Semiconductors...
Страница 284: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 284 NXP Semiconductors...
Страница 430: ...Functional Description MWCT101xS Series Reference Manual Rev 3 07 2019 430 NXP Semiconductors...
Страница 472: ...Application Information MWCT101xS Series Reference Manual Rev 3 07 2019 472 NXP Semiconductors...
Страница 508: ...Reset memory map and register descriptions MWCT101xS Series Reference Manual Rev 3 07 2019 508 NXP Semiconductors...
Страница 528: ...Module clocks MWCT101xS Series Reference Manual Rev 3 07 2019 528 NXP Semiconductors...
Страница 634: ...SRAM configuration MWCT101xS Series Reference Manual Rev 3 07 2019 634 NXP Semiconductors...
Страница 696: ...Initialization and application information MWCT101xS Series Reference Manual Rev 3 07 2019 696 NXP Semiconductors...
Страница 818: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 818 NXP Semiconductors...
Страница 960: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 960 NXP Semiconductors...
Страница 970: ...Memory Map and Register Definition MWCT101xS Series Reference Manual Rev 3 07 2019 970 NXP Semiconductors...
Страница 992: ...ADC calibration scheme MWCT101xS Series Reference Manual Rev 3 07 2019 992 NXP Semiconductors...
Страница 1118: ...Application information MWCT101xS Series Reference Manual Rev 3 07 2019 1118 NXP Semiconductors...
Страница 1294: ...Initialization Procedure MWCT101xS Series Reference Manual Rev 3 07 2019 1294 NXP Semiconductors...
Страница 1348: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 1348 NXP Semiconductors...
Страница 1366: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 1366 NXP Semiconductors...
Страница 1514: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 1514 NXP Semiconductors...
Страница 1726: ...Debug and security MWCT101xS Series Reference Manual Rev 3 07 2019 1726 NXP Semiconductors...
Страница 1740: ...Initialization application information MWCT101xS Series Reference Manual Rev 3 07 2019 1740 NXP Semiconductors...
Страница 1760: ...MWCT101xS Series Reference Manual Rev 3 07 2019 1760 NXP Semiconductors...