Hardware requirements
Micro USB cable
LPC845 Breakout board
Personal Computer
Board settings
ADC CH0 input signal 32(PIO0-7).
Prepare the demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port on the board.
Open a serial terminal with the following settings:
9600 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
Adjust the potentiometer and press any key from keyboard to trigger the conversion. The log below shows the output of the ADC interrupt driver example in the terminal window:
ADC interrupt example.
ADC Calibration Done.
Configuration Done.
gAdcResultInfoStruct.result = 547
gAdcResultInfoStruct.channelNumber = 0
gAdcResultInfoStruct.overrunFlag = 0
gAdcResultInfoStruct.result = 549
gAdcResultInfoStruct.channelNumber = 0
gAdcResultInfoStruct.overrunFlag = 0
gAdcResultInfoStruct.result = 551
gAdcResultInfoStruct.channelNumber = 0
gAdcResultInfoStruct.overrunFlag = 0
...