Single conversionmode 单次转换模式 In this mode, onlyone input channel must be selected in the ADC_SQRx registers ( if more channels areselected, the highest selected channel is measured). 在这个模式下,必须在ADC_SQRx寄存器中只选择一个通道(如果多个通道被选择,最高选择的通道会被转换) In addition, theDMAOFF bit must be set in the ADC_SQR1 register (to disable DMA transfer). 此外,ADC_SQ1寄存器内的DMAOFF必须设置为1(禁用DMA传输) The input channelis then converted and the ADC conversion stops (one simple conversion). 然后选择的输入通道被转换,然后ADC转换停止。(单次转换,一次简单转换) The convertedvalue is stored into the ADC_DR data register. 转换后的值存储在数据寄存器ADC_DR中。 An interrupt (EOC)can be generated after the end ofconversion. 转换结束后可以产生EOC中断。 The time between 2conversions must be lower than the ADC maximum idle delay(t IDLE ). In case the time between 2 conversions is greater than t IDLE , theADC must be powered-off between the 2 conversions (by clearing the ADON bit). 两次转换时间必须低于ADC最大空闲时间(t IDLE ), 如果两次转换时间大于空闲时间,ADC必须在两个转换中间关闭。 Another possiblityis to discard the first conversion (occuring in a time greater than tidle after previous one) andkeep the next one另一种可行的方法是丢弃第一次的转换(距离前一次的转换时间超过t IDLE的这个),保留下一个转换值。
是不是就是一直开着ADC,然后想转换哪个通道,就选择哪个,然后第一次转换值丢掉,从第二次的开始算是有效的就行了
|