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

Detailed Description

Example description
The ADC example shows how to use the A/D converter on the LPC13XX. 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:
LPC13xx example quickstart for Code Red Xpresso
LPC13xx example quickstart for Keil uVision4
LPC13xx example quickstart for IAR EWARM

Supported boards and board setup:
NXP Xpresso LPC1347 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
 

Function Documentation

static void App_Polling_Test ( void  )
static

Definition at line 99 of file adc.c.

static void App_print_ADC_value ( uint16_t  data)
static

Definition at line 80 of file adc.c.

int main ( void  )

main routine for ADC example

Main program body.

Returns
Function should not exit.

defined(CHIP_LPC175X_6X)

Definition at line 126 of file adc.c.

Variable Documentation

ADC_Clock_Setup_T ADCSetup
static

Definition at line 69 of file adc.c.