![NXP Semiconductors MKL27Z128VFM4 Reference Manual Download Page 398](http://html1.mh-extra.com/html/nxp-semiconductors/mkl27z128vfm4/mkl27z128vfm4_reference-manual_1721847398.webp)
CMPx_CR0 field descriptions (continued)
Field
Description
HYSTCTR
Comparator hard block hysteresis control
Defines the programmable hysteresis level. The hysteresis values associated with each level are device-
specific. See the Data Sheet of the device for the exact values.
00
Level 0
01
Level 1
10
Level 2
11
Level 3
24.3.2 CMP Control Register 1 (CMPx_CR1)
Address: 4007_3000h base + 1h offset = 4007_3001h
Bit
7
6
5
4
3
2
1
0
Read
Write
Reset
0
0
0
0
0
0
0
0
CMPx_CR1 field descriptions
Field
Description
7
SE
Sample Enable
SE must be clear to 0 and usage of sample operation is limited to a divided version of the bus clock.
0
Sampling mode is not selected.
1
Sampling mode is selected.
6
WE
Windowing Enable
The CMP does not support window compare function and a 0 must always be written to WE.
0
Windowing mode is not selected.
1
Windowing mode is selected.
5
TRIGM
Trigger Mode Enable
CMP and DAC are configured to CMP Trigger mode when CMP_CR1[TRIGM] is set to 1. In addition, the
CMP should be enabled. If the DAC is to be used as a reference to the CMP, it should also be enabled.
CMP Trigger mode depends on an external timer resource to periodically enable the CMP and 6-bit DAC
in order to generate a triggered compare.
Upon setting TRIGM, the CMP and DAC are placed in a standby state until an external timer resource
trigger is received.
See the chip configuration for details about the external timer resource.
0
Trigger mode is disabled.
1
Trigger mode is enabled.
4
PMODE
Power Mode Select
Table continues on the next page...
Memory map/register definitions
KL27 Sub-Family Reference Manual , Rev. 5, 01/2016
398
Freescale Semiconductor, Inc.