在程序PWR027的init_adc12.c中写到:
AdcRegs.ADCSEQSEL0.bit.SEQ0 = 2; //VO_SENSE_1
AdcRegs.ADCSEQSEL0.bit.SEQ1 = 13; //IO_SENSE
AdcRegs.ADCSEQSEL0.bit.SEQ2 = 13; //for Io_sense //2 //Ishare
AdcRegs.ADCSEQSEL0.bit.SEQ3 = 3; //for Ishare//8; //VIN_MON
AdcRegs.ADCSEQSEL1.bit.SEQ4 = 8; //for Vin_mon//7; //Temp
AdcRegs.ADCSEQSEL1.bit.SEQ5 = 7; //for temp//9; //VO OVP
AdcRegs.ADCSEQSEL1.bit.SEQ6 = 9; //for Vout//6; //Ipri
AdcRegs.ADCSEQSEL1.bit.SEQ7 = 6; //for Ipri//14; //DEVICE TEMP
AdcRegs.ADCSEQSEL2.bit.SEQ8 = 14; //for devcie_temp //IO_SENSE
上面的说明有些乱,不是很理解,和实际电路图的配置有出路。另外027官方手册的AD引脚说明也有错误。
大神能否详细说明下?
jinping cai:
回复 Neil Li:
TI工作人员你好,请问有UCD3138的资料吗,库函数等