ADC/INTERRUPT/adc_interrupt_test.c File Reference

#include "lpc17xx_adc.h"
#include "lpc17xx_uart.h"
#include "lpc17xx_timer.h"
#include "lpc17xx_libcfg.h"
#include "lpc17xx_pinsel.h"
#include "lpc17xx_nvic.h"
#include "debug_frmwrk.h"

Functions

void print_menu (void)
 Print menu.
void Timer_Wait (uint32_t time)
 Delay millisecond.
void ADC_IRQHandler (void)
 Main ADC Interrupt handler.
int c_entry (void)
 Main Program body.
int main (void)
void check_failed (uint8_t *file, uint32_t line)

Variables

uint8_t menu1 []
TIM_TIMERCFG_Type TIM_ConfigStruct
TIM_MATCHCFG_Type TIM_MatchConfigStruct
uint32_t adc_value

Detailed Description

: A simple adc driver example
Version:
: 1.0
Date:
: 3. April. 2009
Author:
: HieuNguyen ---------------------------------------------------------------------------- Software that is described herein is for illustrative purposes only which provides customers with programming information regarding the products. This software is supplied "AS IS" without any warranties. NXP Semiconductors assumes no responsibility or liability for the use of the software, conveys no license or title under any patent, copyright, or mask work right to the product. NXP Semiconductors reserves the right to make changes in the software without notification. NXP Semiconductors also make no representation or warranty that such application will be suitable for the specified use without further testing or modification.

Function Documentation

void print_menu ( void   ) 

Print menu.

Print menu.

Parameters:
[in] none 
Returns:
none
Print Welcome Screen Menu subroutine.

print_menu

Print Welcome menu.

print menu

Parameters:
[in] none 
Returns:
none
Parameters:
[in] none 
Returns:
None
Parameters:
[in] None 
Returns:
None
Parameters:
None 
Returns:
None
Print menu.

Parameters:
[in] none 
Returns:
none

void Timer_Wait ( uint32_t  time  ) 

Delay millisecond.

Parameters:
[in] time (ms)
Returns:
None


Variable Documentation

uint8_t menu1[]

Initial value:

"********************************************************************************\n\r"
"Hello NXP Semiconductors \n\r"
" ADC demo \n\r"
"\t - MCU: LPC17xx \n\r"
"\t - Core: ARM CORTEX-M3 \n\r"
"\t - Communicate via: UART0 - 115200 bps \n\r"
" Use ADC with 12-bit resolution at freq = 1MHz, read in interrupt mode\n\r"
" To get ADC0 value on channel 2 and display via UART0\n\r"
" Turn the potentiometer to see how ADC value changes\n\r"
"********************************************************************************\n\r"


Generated on Thu Apr 22 11:13:08 2010 for CMSISExampleCode by  doxygen 1.5.8