[local]2[/local]请教高手,原理图见附件。问题是,我发出转换信号,但ads8558没有产生INT信号。测试参考输出为2.5V正常,读数据不正确,我试图初试化参考输出为3.0V(C18),但测试还是2.5V.不知原因。软件如下;
unsigned int * AD_Chip1=(unsigned int *) 0x100000;
unsigned int * AD_Chip2=(unsigned int *) 0x110000;
unsigned int * AD_Chip3=(unsigned int *) 0x120000;
unsigned int * AD_Chip4=(unsigned int *) 0x130000;
unsigned int * AD_Chip5=(unsigned int *) 0x140000;
unsigned int * AD_Chip6=(unsigned int *) 0x150000;
void Read_AD(void)
{
UA1 =*AD_Chip1;
UB1 =*AD_Chip1;
UC1 =*AD_Chip1;
UA2 =*AD_Chip1;
UB2 =*AD_Chip1;
UC2 =*AD_Chip1;
UA3 =*AD_Chip4;
UB3 =*AD_Chip4;
UC3 =*AD_Chip4;
Im = *AD_Chip4 ;
In = *AD_Chip4;
Io3 =*AD_Chip4;
adc_data_flag=1; // read data finsh flag
AD_START=0; //for next AD convert ready
} |