![]() |
LPCOpen Platform
v1.03
LPCOpen Platform for NXP LPC Microcontrollers
|
Example description
The ADC example shows how to use the A/D converter on the LPC11XX. The example is setup to get the ADC values periodically and print it out via UART.
To use this example, build and program it and then run it on the LPCXpresso board with LPCXpresso Base Board rev A. Turn potentiometer on Base board to change ADC signal input.Converted ADC values is displayed periodically via the UART.
Special connection requirements
Connect the Jumper J27 on the LPCXpresso Base Board rev A. Connect the UART to display ADC value on your computer
Build procedures:
LPC11xx example quickstart for Code Red Xpresso
LPC11xx example quickstart for Keil uVision4
LPC11xx example quickstart for IAR EWARM
Supported boards and board setup:
NXP Xpresso LPC11U14 board
NXP Xpresso LPC11C24 board
Submitting LPCOpen issues:
Community support for LPCOpen
Functions | |
| static void | App_print_ADC_value (uint16_t data) |
| static void | App_Polling_Test (void) |
| int | main (void) |
| main routine for ADC example | |
Variables | |
| static ADC_Clock_Setup_T | ADCSetup |
| int main | ( | void | ) |
|
static |