• 大小: 553KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-18
  • 语言: 其他
  • 标签: DMA  +ADC  Stm32F407ZGT  

资源简介

程序是基于STM32F407的任意波形发生器,可以通过STM32自带的DAC实现生成任意需要的波形,目前自己测试过正弦波和三角波 没有问题, 波形的时序是通过定时器出发来控制的 ,先通过函数生成对应的波形点图,然后通过定时器定时触发 来控制输出波形的频率,以此来实现任意波形的发生! 程序用到了 DMA DAC Timer 程序运行时CPU时间占用很少 适合嵌入大工程里面使用!

资源截图

代码片段和文件信息

/**
  ******************************************************************************
  * @file    misc.c
  * @author  MCD Application Team
  * @version V1.4.0
  * @date    04-August-2014
  * @brief   This file provides all the miscellaneous firmware functions (add-on
  *          to CMSIS functions).
  *          
  *  @verbatim   
  *                               
  *          ===================================================================      
  *                        How to configure Interrupts using driver 
  *          ===================================================================      
  * 
  *            This section provide functions allowing to configure the NVIC interrupts (IRQ).
  *            The Cortex-M4 exceptions are managed by CMSIS functions.
  *
  *            1. Configure the NVIC Priority Grouping using NVIC_PriorityGroupConfig()
  *                function according to the following table.
 
  *  The table below gives the allowed values of the pre-emption priority and subpriority according
  *  to the Priority Grouping configuration performed by NVIC_PriorityGroupConfig function
  *    ==========================================================================================================================
  *      NVIC_PriorityGroup   | NVIC_IRQChannelPreemptionPriority | NVIC_IRQChannelSubPriority  |       Description
  *    ==========================================================================================================================
  *     NVIC_PriorityGroup_0  |                0                  |            0-15             | 0 bits for pre-emption priority
  *                           |                                   |                             | 4 bits for subpriority
  *    --------------------------------------------------------------------------------------------------------------------------
  *     NVIC_PriorityGroup_1  |                0-1                |            0-7              | 1 bits for pre-emption priority
  *                           |                                   |                             | 3 bits for subpriority
  *    --------------------------------------------------------------------------------------------------------------------------    
  *     NVIC_PriorityGroup_2  |                0-3                |            0-3              | 2 bits for pre-emption priority
  *                           |                                   |                             | 2 bits for subpriority
  *    --------------------------------------------------------------------------------------------------------------------------    
  *     NVIC_PriorityGroup_3  |                0-7                |            0-1              | 3 bits for pre-emption priority
  *                           |                                   |                             | 1 bits for subpriority
  *    -----------------------------------------------

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       2953  2016-04-15 21:58  HARDWARE\ADC\adc.c

     文件        740  2016-04-15 21:58  HARDWARE\ADC\adc.h

     文件       2509  2019-01-25 19:52  HARDWARE\DAC\dac.c

     文件        668  2016-04-15 21:58  HARDWARE\DAC\dac.h

     文件       3092  2019-01-25 21:01  HARDWARE\IIC\olediic.c

     文件       1397  2018-12-25 22:47  HARDWARE\IIC\olediic.h

     文件       1872  2016-04-15 21:58  HARDWARE\KEY\key.c

     文件       1180  2016-04-15 21:58  HARDWARE\KEY\key.h

     文件      35016  2016-04-15 21:58  HARDWARE\LCD\FONT.H

     文件      88114  2016-04-15 21:58  HARDWARE\LCD\lcd.c

     文件       7543  2016-04-15 21:58  HARDWARE\LCD\lcd.h

     文件       1177  2016-04-15 21:58  HARDWARE\LED\led.c

     文件        659  2016-04-15 21:58  HARDWARE\LED\led.h

     文件       5586  2014-10-26 21:07  HARDWARE\OLED\bmp.h

     文件       6913  2019-01-25 21:02  HARDWARE\OLED\oled.c

     文件       2819  2018-04-13 21:09  HARDWARE\OLED\oled.h

     文件      15257  2014-10-26 23:37  HARDWARE\OLED\oledfont.h

     文件     105929  2016-03-23 11:48  HARDWARE\OLED\__Previews\oled.hPreview

     文件       1638  2018-12-27 21:02  HARDWARE\Timer\timer.c

     文件        579  2018-12-26 19:18  HARDWARE\Timer\timer.h

     文件      46475  2019-01-25 21:06  OBJ\DAC.hex

     文件       7683  2016-04-15 21:58  SYSTEM\delay\delay.c

     文件        838  2016-04-15 21:58  SYSTEM\delay\delay.h

     文件       1067  2016-04-15 21:58  SYSTEM\sys\sys.c

     文件       3442  2016-04-15 21:58  SYSTEM\sys\sys.h

     文件       5033  2016-04-15 21:58  SYSTEM\usart\usart.c

     文件       1332  2016-04-15 21:58  SYSTEM\usart\usart.h

    .......     89040  2019-01-25 21:34  USER\DAC.uvguix.Administrator

    .......     16845  2019-01-25 21:34  USER\DAC.uvoptx

    .......     19529  2018-12-27 22:46  USER\DAC.uvprojx

............此处省略108个文件信息

评论

共有 条评论