CSTART和FS管脚都没用,直接通过电阻拉高,测试时采用延时测试,没有检测EOC引脚状态。下面是测试代码:
static int adc_init(void);
static int adc_write_data(unsigned int cmd);
static int adc_get_data(unsigned int cmd);
static int adc_get_analog(unsigned int cmd);
static int adc_get_sfr(void);
ADCSPI_T…