基于STM32F407,输出双路互补的SPWM波,AD采集用DMA DAC的方式,具有PID调节
源程序如下:
#include "stm32f407.h"
#include "string.h"
#include "usart.h"
#include "delay.h"
#include "bsp_advance_tim.h"
#include "bsp_spwm.h"
#include "ShuangLu.h"
#include "PID.h"
#include "bsp_adc.h"
#include "SD_io.h"
#include "oled.h"
#include "filter.h"
#include "bsp_spwm.h"
#include "led.h"
1