C2[FXMXCH]. 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].
The active channels selected by C1[CHNn] are then routed to the non-fixed channel mux
and compared with the reference input in a round-robin manner. In order to meet the
comparator stabilization time, after the configurable number of operation clocks defined
by C2[NSAM], the comparison result is sampled for the selected channel. A software
pre-programmed state for each channel is configured by writing to C2[ACOn] field. After
all the active channels are sampled, if the comparison result changes from its pre-
programmed state, the corresponding flag in C2[CHnF] is set. If C2[RRIE] is set, an
asynchronous reset is asserted to bring the MCU out of STOP mode.
NOTE
These flags do not support generating a DMA transfer event.
This mode is active when the MCU is in STOP mode, so none of the window/filter
functions are available. A basic assumption of this mode is that the selected inputs are
changing at a much slower rate than the operation clock. It is suggested to configure the
comparator in low power comparison mode as well. In programming the C2[INITMOD]
registers, the INITMOD × round-robin clock period must be longer than the initialization
delay, which can be referred from the chip datasheet.
The following diagram shows the basic flow of this mode. In the diagram, C1[CHN1],
C1[CHN3], and C1[CHN7] are set, so channels #1, #3, and #7 are selected for round-
robin. C2[NSAM] is set to 2'b01, so one clock later the comparison result of the selected
channel is sampled. When channel #7 is compared, the result is sampled, and round-robin
ends. If any of the comparison results from channel #1, #3, or #7 changed from their
programmed value (written to C2[ACO1], C2[ACO3], and C2[ACO7]), an interrupt is
generated to wake up the MCU from the STOP mode. Software can then poll the
C2[CHnF] to see which channel input(s) changed value during the STOP mode.
NOTE
In round-robin mode, it should be ensured that the RTC_CLK
period is greater than the comparison time corresponding to the
value of C0[PMODE]. It is also required to not select the
internal reserved channels for round-robin by INPSEL and
INNSEL.
NOTE
In round-robin mode, it is suggested to always configure the
DAC output as the fixed port reference.
Trigger mode
Kinetis KE1xZ256 Sub-Family Reference Manual, Rev. 3, 07/2018
814
NXP Semiconductors
Summary of Contents for Kinetis KE1xZ256
Page 2: ...Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 2 NXP Semiconductors...
Page 178: ...Usage Guide Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 178 NXP Semiconductors...
Page 356: ...Usage Guide Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 356 NXP Semiconductors...
Page 410: ...Interrupts Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 410 NXP Semiconductors...
Page 604: ...Usage Guide Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 604 NXP Semiconductors...
Page 634: ...Usage Guide Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 634 NXP Semiconductors...
Page 674: ...Usage Guide Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 674 NXP Semiconductors...
Page 820: ...Usage Guide Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 820 NXP Semiconductors...
Page 1030: ...Usage Guide Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 1030 NXP Semiconductors...
Page 1052: ...Usage Guide Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 1052 NXP Semiconductors...
Page 1066: ...Usage Guide Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 1066 NXP Semiconductors...
Page 1268: ...Usage Guide Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 1268 NXP Semiconductors...
Page 1314: ...Usage Guide Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 1314 NXP Semiconductors...
Page 1316: ...Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 1316 NXP Semiconductors...