ADC_SoftwareStartConvCmd(ADC1, ENABLE);使用软件触发ADC转换
if (NewState != DISABLE)
{
/* Enable the selected ADC conversion on external event and start the selected
ADC conversion */
ADCx->CR2 |= CR2_EXTTRIG_SWSTART_Set;
}
CR2_EXTTRIG_SWSTART_Set ((uint32_t)0x00500000)
0x00500000 应该是20位和22位置1吧
那应该是开始转换规则通道和使用外部触发信号
怎么根库矛盾呀,我可能那点没了解,大家帮忙指导下 |