LPCOpen Platform  v1.03
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
LPC8xx Analog Comparator example

Example description
The ACMP example demonstrates using the analog comparator.

This example configures the positive voltage input as the voltage found on PIN0.0, which is trimmed through the potentiometer. The output of the comparator is brought out to PIN0.15 and the "operating voltage" can be measured at PIN0.0. Adjust the POT up and down to adjust the voltage into the analog comparator. When the voltage crosses the negative voltage input, a CMP IRQ is fired. Based on which side of the voltage is in reference to the bandgap, the LED state will change.

Special connection requirements
There are no special connection requirements for this example.

Build procedures:
LPC8xx example quickstart for IAR EWARM
LPC8xx example quickstart for Keil uVision4
LPC8xx example quickstart for Code Red Xpresso

Supported boards and board setup:
NXP Xpresso LPC812 board

Submitting LPCOpen issues:
Community support for LPCOpen