![NXP Semiconductors MWCT101 S Series Reference Manual Download Page 1075](http://html1.mh-extra.com/html/nxp-semiconductors/mwct101-s-series/mwct101-s-series_reference-manual_17222101075.webp)
CMPx_C2 field descriptions (continued)
Field
Description
16
CH0F
Channel 0 input changed flag. This bit is set if the channel 0 input changed from the last comparison with
the fixed mux port.
15–14
NSAM
Number of sample clocks
For a given channel, this field specifies how many round-robin clock cycles later the sample takes place.
00
The comparison result is sampled as soon as the active channel is scanned in one round-robin clock.
01
The sampling takes place 1 round-robin clock cycle after the next cycle of the round-robin clock.
10
The sampling takes place 2 round-robin clock cycles after the next cycle of the round-robin clock.
11
The sampling takes place 3 round-robin clock cycles after the next cycle of the round-robin clock.
13–8
INITMOD
Comparator and DAC initialization delay modulus.
These values specify the round robin clock cycles used to determine the comparator and DAC initialization
delays specified by the datasheet. For example the initialization delay is 80us and the round robin clock is
100kHz, then INITMOD should be set to 80us/10us = 8.
000000
The modulus is set to 64 (same with 111111).
other values Initialization delay is set to INITMOD × round robin clock period
ACOn
The result of the input comparison for channel
n
. This field stores the latest comparison result of the input
channel
n
with the fixed mux port. Reading this bit returns the latest comparison result. Writing this field
defines the pre-set state of channel
n
.
39.9 CMP functional description
The CMP module can be used to compare two analog input voltages applied to INP and
INM. CMPO is high when the non-inverting input is greater than the inverting input, and
is low when the non-inverting input is less than the inverting input. This signal can be
selectively inverted by setting C0[INVT] = 1.
C0[IER] and C0[IEF] are used to select the condition that causes the CMP module to
assert an interrupt to the processor. C0[CFF] is set on a falling edge, and C0[CFR] is set
on a rising edge of the comparator output. The optionally filtered CMPO can be read
directly through C0[COUT].
39.9.1 Initialization
A typical startup sequence is as follows.
Chapter 39 Comparator (CMP)
MWCT101xS Series Reference Manual, Rev. 3, 07/2019
NXP Semiconductors
1075
Summary of Contents for MWCT101 S Series
Page 2: ...MWCT101xS Series Reference Manual Rev 3 07 2019 2 NXP Semiconductors...
Page 42: ...MWCT101xS Series Reference Manual Rev 3 07 2019 42 NXP Semiconductors...
Page 50: ...Conventions MWCT101xS Series Reference Manual Rev 3 07 2019 50 NXP Semiconductors...
Page 70: ...Aliased bit band regions MWCT101xS Series Reference Manual Rev 3 07 2019 70 NXP Semiconductors...
Page 78: ...Pinout diagrams MWCT101xS Series Reference Manual Rev 3 07 2019 78 NXP Semiconductors...
Page 96: ...WCT101xS safety concept MWCT101xS Series Reference Manual Rev 3 07 2019 96 NXP Semiconductors...
Page 130: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 130 NXP Semiconductors...
Page 284: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 284 NXP Semiconductors...
Page 430: ...Functional Description MWCT101xS Series Reference Manual Rev 3 07 2019 430 NXP Semiconductors...
Page 472: ...Application Information MWCT101xS Series Reference Manual Rev 3 07 2019 472 NXP Semiconductors...
Page 528: ...Module clocks MWCT101xS Series Reference Manual Rev 3 07 2019 528 NXP Semiconductors...
Page 634: ...SRAM configuration MWCT101xS Series Reference Manual Rev 3 07 2019 634 NXP Semiconductors...
Page 818: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 818 NXP Semiconductors...
Page 960: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 960 NXP Semiconductors...
Page 992: ...ADC calibration scheme MWCT101xS Series Reference Manual Rev 3 07 2019 992 NXP Semiconductors...
Page 1348: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 1348 NXP Semiconductors...
Page 1366: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 1366 NXP Semiconductors...
Page 1514: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 1514 NXP Semiconductors...
Page 1726: ...Debug and security MWCT101xS Series Reference Manual Rev 3 07 2019 1726 NXP Semiconductors...
Page 1760: ...MWCT101xS Series Reference Manual Rev 3 07 2019 1760 NXP Semiconductors...