• Home
  • Annotate
  • current directory
Name Date Size #Lines LOC

..22-Aug-2025-

boards/22-Aug-2025-

src/22-Aug-2025-

CMakeLists.txt A D22-Aug-2025236 106

README.rst A D22-Aug-20253 KiB10079

prj.conf A D22-Aug-202552 32

sample.yaml A D22-Aug-2025873 3332

README.rst

1.. zephyr:code-sample:: mcux_acmp
2   :name: NXP MCUX Analog Comparator (ACMP)
3   :relevant-api: sensor_interface
4
5   Get analog comparator data from an NXP MCUX Analog Comparator (ACMP).
6
7Overview
8********
9
10This sample show how to use the NXP MCUX Analog Comparator (ACMP) driver. The
11sample supports the :zephyr:board:`twr_ke18f`, :zephyr:board:`mimxrt1170_evk`, :zephyr:board:`frdm_ke17z`
12, :zephyr:board:`frdm_ke17z512`, :zephyr:board:`mimxrt1180_evk` and :zephyr:board:`mimxrt700_evk`.
13
14The input voltage for the negative input of the analog comparator is
15provided by the ACMP Digital-to-Analog Converter (DAC). The output value
16of the analog comparator is reported on the console.
17
18Building and Running
19********************
20
21Building and Running for TWR-KE18F
22==================================
23Build the application for the :zephyr:board:`twr_ke18f` board, and adjust the
24ACMP input voltage by turning the on-board potentiometer.
25
26.. zephyr-app-commands::
27   :zephyr-app: samples/sensor/mcux_acmp
28   :board: twr_ke18f
29   :goals: flash
30   :compact:
31
32Building and Running for MIMXRT1170-EVK
33=======================================
34Build the application for the MIMXRT1170-EVK board, and adjust the
35ACMP input voltage by changing the voltage input to J25-13.
36
37.. zephyr-app-commands::
38   :zephyr-app: samples/sensor/mcux_acmp
39   :board: mimxrt1170_evk/mimxrt1176/cm7
40   :goals: flash
41   :compact:
42
43Building and Running for FRDM-KE17Z
44===================================
45Build the application for the FRDM-KE17Z board, and adjust the
46ACMP input voltage by changing the voltage input to J2-3.
47
48.. zephyr-app-commands::
49   :zephyr-app: samples/sensor/mcux_acmp
50   :board: frdm_ke17z
51   :goals: flash
52   :compact:
53
54Building and Running for FRDM-KE17Z512
55======================================
56Build the application for the FRDM-KE17Z512 board, and adjust the
57ACMP input voltage by changing the voltage input to J2-3.
58
59.. zephyr-app-commands::
60   :zephyr-app: samples/sensor/mcux_acmp
61   :board: frdm_ke17z512
62   :goals: flash
63   :compact:
64
65Building and Running for MIMXRT1180-EVK
66=======================================
67Build the application for the MIMXRT1180-EVK board, and adjust the
68ACMP input voltage by changing the voltage input to J45-13.
69
70.. zephyr-app-commands::
71   :zephyr-app: samples/sensor/mcux_acmp
72   :board: mimxrt1180_evk/mimxrt1189/cm33
73   :goals: flash
74   :compact:
75
76.. zephyr-app-commands::
77   :zephyr-app: samples/sensor/mcux_acmp
78   :board: mimxrt1180_evk/mimxrt1189/cm7
79   :goals: flash
80   :compact:
81
82Building and Running for MIMXRT700-EVK
83=======================================
84Build the application for the MIMXRT700-EVK board, and adjust the
85ACMP input voltage by changing the voltage input to J7-9.
86
87Note:
88
89.. zephyr-app-commands::
90   :zephyr-app: samples/sensor/mcux_acmp
91   :board: mimxrt700_evk/mimxrt798s/cm33_cpu0
92   :goals: flash
93   :compact:
94
95.. zephyr-app-commands::
96   :zephyr-app: samples/sensor/mcux_acmp
97   :board: mimxrt700_evk/mimxrt798s/cm33_cpu1
98   :goals: flash
99   :compact:
100