STM32F4XXX通过PWM实现DAC功能 控制STM32的TIM9_CH2的PWM输出,经过二阶RC滤波
后转换为DAC输出,通过ADC1的通道5采集PWM DAC的输出电压,在LCD模块上面显示ADC获取到的电压值以
及PWM DAC的设定输出电压值等信息。同时可以通过usmart调用PWM_DAC_Set函数,来直接设置PWM DAC的
输出电压。
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-10-07 17:41 STM32 PWM实现DAC
目录 0 2018-10-07 17:41 STM32 PWM实现DACCORE
文件 24423 2016-07-01 18:05 STM32 PWM实现DACCOREcmsis_armcc.h
文件 114498 2016-07-01 18:05 STM32 PWM实现DACCOREcore_cm4.h
文件 3620 2016-07-01 18:05 STM32 PWM实现DACCOREcore_cmFunc.h
文件 3636 2016-07-01 18:05 STM32 PWM实现DACCOREcore_cmInstr.h
文件 3662 2016-07-01 18:05 STM32 PWM实现DACCOREcore_cmSimd.h
文件 31694 2016-07-01 18:05 STM32 PWM实现DACCOREstartup_stm32f429xx.s
目录 0 2018-10-07 17:41 STM32 PWM实现DACHALLIB
目录 0 2018-10-07 17:41 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_Driver
目录 0 2018-10-07 17:41 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverInc
目录 0 2018-10-07 17:41 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncLegacy
文件 166216 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncLegacystm32_hal_legacy.h
文件 13345 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal.h
文件 36376 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal_adc.h
文件 18952 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal_adc_ex.h
文件 36361 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal_can.h
文件 30747 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal_cec.h
文件 17044 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal_conf_template.h
文件 20217 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal_cortex.h
文件 7298 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal_crc.h
文件 23327 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal_cryp.h
文件 8122 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal_cryp_ex.h
文件 16428 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal_dac.h
文件 11242 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal_dac_ex.h
文件 19885 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal_dcmi.h
文件 10401 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal_dcmi_ex.h
文件 8527 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal_def.h
文件 37305 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal_dma.h
文件 24927 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal_dma2d.h
文件 4242 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal_dma_ex.h
............此处省略177个文件信息
/**
******************************************************************************
* @file stm32f4xx_hal.c
* @author MCD Application Team
* @version V1.4.2
* @date 10-November-2015
* @brief HAL module driver.
* This is the common part of the HAL initialization
*
@verbatim
==============================================================================
##### How to use this driver #####
==============================================================================
[..]
The common HAL driver contains a set of generic and common APIs that can be
used by the PPP peripheral drivers and the user to start using the HAL.
[..]
The HAL contains two APIs‘ categories:
(+) Common HAL APIs
(+) Services HAL APIs
@endverbatim
******************************************************************************
* @attention
*
* © COPYRIGHT(c) 2015 STMicroelectronics
*
* Redistribution and use in source and binary forms with or without modification
* are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. Neither the name of STMicroelectronics nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS“
* AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL
* DAMAGES (INCLUDING BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
******************************************************************************
*/
/* Includes ------------------------------------------------------------------*/
#include “stm32f4xx_hal.h“
/** @addtogroup STM32F4xx_HAL_Driver
* @{
*/
/** @defgroup HAL HAL
* @brief HAL module driver.
* @{
*/
/* Private typedef -----------------------------------------------------------*/
/
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-10-07 17:41 STM32 PWM实现DAC
目录 0 2018-10-07 17:41 STM32 PWM实现DACCORE
文件 24423 2016-07-01 18:05 STM32 PWM实现DACCOREcmsis_armcc.h
文件 114498 2016-07-01 18:05 STM32 PWM实现DACCOREcore_cm4.h
文件 3620 2016-07-01 18:05 STM32 PWM实现DACCOREcore_cmFunc.h
文件 3636 2016-07-01 18:05 STM32 PWM实现DACCOREcore_cmInstr.h
文件 3662 2016-07-01 18:05 STM32 PWM实现DACCOREcore_cmSimd.h
文件 31694 2016-07-01 18:05 STM32 PWM实现DACCOREstartup_stm32f429xx.s
目录 0 2018-10-07 17:41 STM32 PWM实现DACHALLIB
目录 0 2018-10-07 17:41 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_Driver
目录 0 2018-10-07 17:41 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverInc
目录 0 2018-10-07 17:41 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncLegacy
文件 166216 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncLegacystm32_hal_legacy.h
文件 13345 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal.h
文件 36376 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal_adc.h
文件 18952 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal_adc_ex.h
文件 36361 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal_can.h
文件 30747 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal_cec.h
文件 17044 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal_conf_template.h
文件 20217 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal_cortex.h
文件 7298 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal_crc.h
文件 23327 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal_cryp.h
文件 8122 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal_cryp_ex.h
文件 16428 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal_dac.h
文件 11242 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal_dac_ex.h
文件 19885 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal_dcmi.h
文件 10401 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal_dcmi_ex.h
文件 8527 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal_def.h
文件 37305 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal_dma.h
文件 24927 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal_dma2d.h
文件 4242 2016-07-01 18:05 STM32 PWM实现DACHALLIBSTM32F4xx_HAL_DriverIncstm32f4xx_hal_dma_ex.h
............此处省略177个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)