Hardware requirements
Mini/micro USB cable
MCX-N5XX-EVK Board
Personal Computer
Board settings
This example project uses LPCMP0 to compare the voltage signal input from channel 0(P1_0) with the voltage signal(half of VREF_OUT) output by LPCMP’s internal DAC. The voltage signal input from P1_0 corresponding J2-17 on EVK board should be changed to observe the dynamical IO state. You will see the red led toggle with the voltage change.
Prepare the Demo
Connect the micro and mini USB cable between the PC host and the USB ports on the board.
Open a serial terminal on PC for the serial device with these settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
The following lines are printed to the serial terminal when the demo program is executed.
LPCMP polling Example.