转换值读出之后通过串口打印出来转换值的读取程序如下:
/* start up converting every 500ms */
INTERRUPT_HANDLER(ADC1_IRQHandler, 22)
{
/* In order to detect unexpected events during development,
it is recommended to set a breakpoint on the following instruction.
*/
/* Debug code */
if(ADC1_GetFlagStatus(ADC1_FLAG_EOC) == 0x80)
{
printf("ADC CH1 VALUE IS:%d\n\r",ADC1_GetConversionValue());
// printf("%d\n\r",ADC1_AIN1_Value);