#50HZ

STM32-正弦波可调(50HZ~20KHZ可调、峰峰值0~3.3V可调)

#defineHZ(x)(u16)(72000000/sizeof(Sine12bit)*2/x)//计算Hz#defineDAC_DHR12R10x40007408//外设DAC通道1的基地址u16Sine12bit[256]={//正弦波描点2048,2098,2148,2198,2248,2298,2348,23...