ADC实验 一、看原理图,找到电位器接AD的通道3 二、看芯片手册 ADCCON RES [16]: 1 = 12bit A/D conversion ECFLG[15]: 0 = A/D conversion in process 1 = End of A/D conversion PRSCEN [14]: 1 = Enable PRSCVL [13:6]:0xff STANDBY [2]: 0 = Normal operation mode READ_START [1]: A/D conversion start by read 0 = Disables start by read operation 1 = Enables start by read operation ENABLE_ST ART [0] : 0 = No operation 1 = A/D conversion starts and this bit is automatically clearedafter the start-up.
ADCDAT DATA [11:0]: ADC conversion data value Data value: 0x0 ~ 0xFFF ADCMUX SEL_MUX [3:0]: 0011 = AIN 3
#include "exynos_4412.h"
void adc_init()
{
printf("\n************ ADC Converter Value ************\n");