keil_examples/ADC/adc.c
/*****************************************************************************
** Function name:		ADC0BurstRead
**
** Descriptions:		Use burst mode to convert multiple channels once.
**
** parameters:			None
** Returned value:		None
** 
*****************************************************************************/
Function name:         ADC0BurstRead
Descriptions:          Use burst mode to convert multiple channels once.

None
Returned value:                None
Function name : ADC0BurstRead Descriptions : Use burst mode to convert multiple channels once . None Returned value : None
void ADCBurstRead( void )
{
  if ( LPC_ADC->CR & (0x7<<24) )
  {
	LPC_ADC->CR &= ~(0x7<<24);
  }
  LPC_ADC->CR &= ~0xFF;
  LPC_ADC->CR |= 0xFF;
  LPC_ADC->CR |= (0x1<<16);		
  return;						
}
void ADCBurstRead ( void ) { if ( LPC_ADC -> CR & ( 0x7 << 24 ) ) { LPC_ADC -> CR &= ~ ( 0x7 << 24 ) ; } LPC_ADC -> CR &= ~ 0xFF ; LPC_ADC -> CR |= 0xFF ; LPC_ADC -> CR |= ( 0x1 << 16 ) ; return ; }
Function name:         ADC0BurstRead
Descriptions:          Use burst mode to convert multiple channels once.
Function name : ADC0BurstRead Descriptions : Use burst mode to convert multiple channels once .
/* Start bits need to be zero before BURST mode can be set. */ /* Read all channels, 0 through 7. */ /* Set burst mode and start A/D convert */ /* the ADC reading is done inside the 
								handler, return 0. */