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.
NOTE
In round-robin mode, current injection or over-voltage is not
supported on the input channels.
MCU
Round robin clock
(See chip specific info )
MCU
STOP
Trigger
(See chip specific info)
CMP_C2[INITMOD]
Must be longer than the initialization delay
Round Robin Starts
CMP(and possible DAC)
enable
CH1
Idle
CH3
CH7
enable
Active channel selection
states
(using channel 1, 3, 7 for
example)
Sample Channel comparison result
example)
ACO1
ACO1, ACO3
ACO1, ACO3, ACO7
Channel Results
Possible interrupt
Interrupt asserts here if any of the comparison
results is different from the values programmed to ACOn.
This will wake up MCU from stop mode.
Figure 38-16. Trigger mode
Chapter 38 Comparator (CMP)
Kinetis KE1xF Sub-Family Reference Manual, Rev. 4, 06/2019
NXP Semiconductors
901
Содержание KE1xF Series
Страница 2: ...Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 2 NXP Semiconductors...
Страница 60: ...SysTick Clock Configuration Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 60 NXP Semiconductors...
Страница 114: ...Initialization application information Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 114 NXP Semiconductors...
Страница 138: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 138 NXP Semiconductors...
Страница 320: ...Private Peripheral Bus PPB memory map Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 320 NXP Semiconductors...
Страница 342: ...Functional Description Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 342 NXP Semiconductors...
Страница 360: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 360 NXP Semiconductors...
Страница 490: ...Interrupts Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 490 NXP Semiconductors...
Страница 550: ...Memory map and register definition Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 550 NXP Semiconductors...
Страница 562: ...Boot Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 562 NXP Semiconductors...
Страница 662: ...Power supply supervisor Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 662 NXP Semiconductors...
Страница 694: ...On chip resource access control mechanism Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 694 NXP Semiconductors...
Страница 706: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 706 NXP Semiconductors...
Страница 724: ...Application Information Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 724 NXP Semiconductors...
Страница 736: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 736 NXP Semiconductors...
Страница 750: ...Debug and Security Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 750 NXP Semiconductors...
Страница 798: ...Functional description Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 798 NXP Semiconductors...
Страница 808: ...Functional description Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 808 NXP Semiconductors...
Страница 866: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 866 NXP Semiconductors...
Страница 1164: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 1164 NXP Semiconductors...
Страница 1178: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 1178 NXP Semiconductors...
Страница 1380: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 1380 NXP Semiconductors...
Страница 1472: ...Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 1472 NXP Semiconductors...
Страница 1482: ...Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 1482 NXP Semiconductors...