This is the documentation for the latest (main) development branch of mcuxpresso sdk. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

cns_acomp_basic

Overview

The acomp basic driver example demostrates the basic usage of the ACOMP module. This example compares the user input analog signal with interanl reference voltage(VDDIO_3 * 0.5) and will toggle the LED when the result changes. The purpose of this demo is to show how to use the ACOMP driver in SDK software. In this driver example the ‘outPinMode’ is set as ‘kACOMP_PinOutSynInverted’, so the output signal from gpio is the inversion of the comparator actual output signal.

Supported Boards