stm32f103 dac
时间: 2023-09-21 14:07:08 浏览: 96
STM32F103 DAC例程
STM32F103是一款微控制器,它具有DAC模块用于数模转换。该微控制器的DAC通道1连接在PA4引脚上。要使用STM32F103的DAC功能,首先需要使能PORTA的时钟,并将PA4设置为模拟输入,即使它实际上连接在DAC的模拟输出上。然后,需要在APB1ENR寄存器中设置DAC模块的时钟使能,以便开启DAC模块的时钟。最后,可以设置DAC的工作模式来完成配置。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [DAC(数模转换模块)-STM32F103](https://blog.csdn.net/weixin_44951165/article/details/108023103)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文