GPIO_SetBits(GPIOA,GPIO_Pin_4) ;//这一句没用DAC_InitStruct.DAC_Trigger = DAC_Trigger_Software; //触发方式改为软件触发 DAC_SetChannel1Data(DAC_Align_12b_R,temp);//这句后再跟一句DAC_SoftwareTriggerCmd(DAC_Channel_1,ENABLE);
你把DAC输出缓存打开试试OutputBuffer_Enable