• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

boards/04-Jan-2025-158137

src/04-Jan-2025-160119

CMakeLists.txtD04-Jan-2025227 106

README.rstD04-Jan-20252.8 KiB8769

prj.confD04-Jan-202550 32

sample.yamlD04-Jan-2025759 3130

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` and :zephyr:board:`mimxrt1180_evk`.
13
14The input voltage for the negative input of the analog comparator is
15provided by the ACMP Digital-to-Analog Converter (DAC). The input voltage for
16the positive input can be adjusted by turning the on-board potentiometer for
17:zephyr:board:`twr_ke18f` board, for :zephyr:board:`mimxrt1170_evk` the voltage signal is
18captured on J25-13, the :zephyr:board:`frdm_ke17z` and :zephyr:board:`frdm_ke17z512` boards are
19captured in J2-3, the :zephyr:board:`mimxrt1180_evk` board are captured in J45-13, need
20change the external voltage signal to check the output.
21
22The output value of the analog comparator is reported on the console.
23
24Building and Running
25********************
26
27Building and Running for TWR-KE18F
28==================================
29Build the application for the :zephyr:board:`twr_ke18f` board, and adjust the
30ACMP input voltage by turning the on-board potentiometer.
31
32.. zephyr-app-commands::
33   :zephyr-app: samples/sensor/mcux_acmp
34   :board: twr_ke18f
35   :goals: flash
36   :compact:
37
38Building and Running for MIMXRT1170-EVK
39=======================================
40Build the application for the MIMXRT1170-EVK board, and adjust the
41ACMP input voltage by changing the voltage input to J25-13.
42
43.. zephyr-app-commands::
44   :zephyr-app: samples/sensor/mcux_acmp
45   :board: mimxrt1170_evk_cm7
46   :goals: flash
47   :compact:
48
49Building and Running for FRDM-KE17Z
50===================================
51Build the application for the FRDM-KE17Z board, and adjust the
52ACMP input voltage by changing the voltage input to J2-3.
53
54.. zephyr-app-commands::
55   :zephyr-app: samples/sensor/mcux_acmp
56   :board: frdm_ke17z
57   :goals: flash
58   :compact:
59
60Building and Running for FRDM-KE17Z512
61======================================
62Build the application for the FRDM-KE17Z512 board, and adjust the
63ACMP input voltage by changing the voltage input to J2-3.
64
65.. zephyr-app-commands::
66   :zephyr-app: samples/sensor/mcux_acmp
67   :board: frdm_ke17z512
68   :goals: flash
69   :compact:
70
71Building and Running for MIMXRT1180-EVK
72=======================================
73Build the application for the MIMXRT1180-EVK board, and adjust the
74ACMP input voltage by changing the voltage input to J45-13.
75
76.. zephyr-app-commands::
77   :zephyr-app: samples/sensor/mcux_acmp
78   :board: mimxrt1180_evk/mimxrt1189/cm33
79   :goals: flash
80   :compact:
81
82.. zephyr-app-commands::
83   :zephyr-app: samples/sensor/mcux_acmp
84   :board: mimxrt1180_evk/mimxrt1189/cm7
85   :goals: flash
86   :compact:
87