|
1. 我开启十通道内部测温
ADC12MCTL0 = 0x10; // Ref = ××ss, VREF; Input = A0 Ia
ADC12MCTL1 = 0x11; // Ref = ××ss, VREF; Input = A1 ia*2
ADC12MCTL2 = 0x12; // Ref = ××ss, VREF; Input = A2 Ib
ADC12MCTL3 = 0x13; //Ic
ADC12MCTL4 = 0x14; // Ic*2
ADC12MCTL5 = 0x15; // Ua
ADC12MCTL6 = 0x16; //Ub
ADC12MCTL7 = 0x17; // Uc
ADC12MCTL8 = 0x9a; //温度
ADC12IE = BIT8;
ADC12CTL1 = SHS_1 + SHP + ADC12DIV_1 + ADC12SSEL_2 + CONSEQ_1
ADC12CTL0 = SHT0_7 + MSC + REF2_5V + REFON + ADC12ON;
2. 得到AD采样室温18度时AD值为 2203 换算电压为 1.3449V ,按DATASHEET公式计算 Vtmp=0.00355*Temc+0.986 Temc=101
误差怎么这么大,是我配置不对,还是其他原因?特此求助,谢谢上次给我帮助的人
|
|