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

..--

boards/03-Apr-2024-1311

src/03-Apr-2024-12899

CMakeLists.txtD03-Apr-2024230 106

README.rstD03-Apr-2024681 2820

prj.confD03-Apr-202470 54

sample.yamlD03-Apr-2024441 2019

README.rst

1.. _adc_cmp_npcx:
2
3NPCX ADC Comparator
4###################
5
6Overview
7********
8
9This sample show how to use the NPCX ADC Comparator driver. The
10sample supports the :ref:`npcx9m6f_evb`.
11
12This application is a voltage comparator with hysteresis, upper limit is
13set at 1 V while lower limit is 250 mV. Initially configured to detect
14upper limit.
15
16Building and Running
17********************
18
19Build the application for the :ref:`npcx9m6f_evb` board, and provide voltage
20to ADC channel 8, when voltages cross upper/lower limits, detection messages
21will be printed.
22
23.. zephyr-app-commands::
24   :zephyr-app: samples/sensor/adc_cmp_npcx
25   :board: npcx9m6f_evb
26   :goals: flash
27   :compact:
28