文件名称:stm32 心电-DAC
文件大小:2.22MB
文件格式:RAR
更新时间:2018-12-08 14:00:45
心电
static void DAC1_Mode_Config(void) { DAC_InitTypeDef DAC_InitType; DAC_InitType.DAC_Trigger=DAC_Trigger_None; //²»Ê¹Óô¥·¢¹¦ÄÜ TEN1=0 DAC_InitType.DAC_WaveGeneration=DAC_WaveGeneration_None;//²»Ê¹Óò¨Ðη¢Éú DAC_InitType.DAC_LFSRUnmask_TriangleAmplitude=DAC_LFSRUnmask_Bit0;//ÆÁ±Î¡¢·ùÖµÉèÖà DAC_InitType.DAC_OutputBuffer=DAC_OutputBuffer_Disable ; //DAC1Êä³ö»º´æ¹Ø±Õ BOFF1=1 DAC_Init(DAC_Channel_1,&DAC_InitType); //³õʼ»¯DACͨµÀ1 DAC_Cmd(DAC_Channel_1, ENABLE); //ʹÄÜDAC1 DAC_SetChannel1Data(DAC_Align_12b_R, 0); //12λÓÒ¶ÔÆëÊý¾Ý¸ñʽÉèÖÃDACÖµ }