|
求香版主赐教AD多路采样
vu16 TempvalueCh17 = ADC_DualConvertedValueTab[7] & 0xffff; vu16 TempvalueCh10 = ADC_DualConvertedValueTab[8] >> 16; 为什么17路是在ADC_DualConvertedValueTab[7]中读取的,通道10在ADC_DualConvertedValueTab[8]中读取 while (1) { /*Show Channel17 (Vintref) and Channel10 (Vpontentiometer) on LCD*/ vu16 TempvalueCh17 = ADC_DualConvertedValueTab[7] & 0xffff; vu16 TempvalueCh10 = ADC_DualConvertedValueTab[8] >> 16; displayconvert(TempvalueCh17); write_string(display); delay(); delay(); displayconvert(TempvalueCh10); write_string(display); delay(); delay(); } 循环中外面的模拟量改变显示的值却不会变 |
|