1.. _mcux_acmp: 2 3NXP MCUX Analog Comparator (ACMP) 4################################# 5 6Overview 7******** 8 9This sample show how to use the NXP MCUX Analog Comparator (ACMP) driver. The 10sample supports the :ref:`twr_ke18f`, :ref:`mimxrt1170_evk`. 11 12The input voltage for the negative input of the analog comparator is 13provided by the ACMP Digital-to-Analog Converter (DAC). The input voltage for 14the positive input can be adjusted by turning the on-board potentiometer for 15:ref:`twr_ke18f` board, for :ref:`mimxrt1170_evk` the voltage signal is 16captured on J25-13, need change the external voltage signal to check the 17output. 18 19The output value of the analog comparator is reported on the console. 20 21Building and Running 22******************** 23 24Building and Running for TWR-KE18F 25================================== 26Build the application for the :ref:`twr_ke18f` board, and adjust the 27ACMP input voltage by turning the on-board potentiometer. 28 29.. zephyr-app-commands:: 30 :zephyr-app: samples/sensor/mcux_acmp 31 :board: twr_ke18f 32 :goals: flash 33 :compact: 34 35Building and Running for MIMXRT1170-EVK 36======================================= 37Build the application for the MIMXRT1170-EVK board, and adjust the 38ACMP input voltage by changing the voltage input to J25-13. 39 40.. zephyr-app-commands:: 41 :zephyr-app: samples/sensor/mcux_acmp 42 :board: mimxrt1170_evk_cm7 43 :goals: flash 44 :compact: 45