• 大小: 18.45MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-25
  • 语言: 其他
  • 标签: HAL  stm32  DAC  

资源简介

使用stm32的HAL库,产生正弦波。stm32F103 DAC+DMA+TIM6查表法产生正弦波

资源截图

代码片段和文件信息

/**
  ******************************************************************************
  * @file    system_stm32f1xx.c
  * @author  MCD Application Team
  * @version V4.2.0
  * @date    31-March-2017
  * @brief   CMSIS Cortex-M3 Device Peripheral Access layer System Source File.
  * 
  * 1.  This file provides two functions and one global variable to be called from 
  *     user application:
  *      - SystemInit(): Setups the system clock (System clock source PLL Multiplier
  *                      factors AHB/APBx prescalers and Flash settings). 
  *                      This function is called at startup just after reset and 
  *                      before branch to main program. This call is made inside
  *                      the “startup_stm32f1xx_xx.s“ file.
  *
  *      - SystemCoreClock variable: Contains the core clock (HCLK) it can be used
  *                                  by the user application to setup the SysTick 
  *                                  timer or configure other parameters.
  *                                     
  *      - SystemCoreClockUpdate(): Updates the variable SystemCoreClock and must
  *                                 be called whenever the core clock is changed
  *                                 during program execution.
  *
  * 2. After each device reset the HSI (8 MHz) is used as system clock source.
  *    Then SystemInit() function is called in “startup_stm32f1xx_xx.s“ file to
  *    configure the system clock before to branch to main program.
  *
  * 4. The default value of HSE crystal is set to 8 MHz (or 25 MHz depending on
  *    the product used) refer to “HSE_VALUE“. 
  *    When HSE is used as system clock source directly or through PLL and you
  *    are using different crystal you have to adapt the HSE value to your own
  *    configuration.
  *        
  ******************************************************************************
  * @attention
  *
  * 

© COPYRIGHT(c) 2017 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 WARRANTIE

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-06-15 10:23  sin103\
     文件        6026  2019-06-06 09:37  sin103\.mxproject
     文件     2340116  2019-06-06 09:51  sin103\20k正弦波.JPG
     目录           0  2019-06-06 08:49  sin103\Drivers\
     目录           0  2019-06-06 08:49  sin103\Drivers\CMSIS\
     目录           0  2019-06-06 08:49  sin103\Drivers\CMSIS\DSP_Lib\
     目录           0  2019-06-06 08:49  sin103\Drivers\CMSIS\DSP_Lib\Source\
     目录           0  2019-06-06 08:49  sin103\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\
     文件        5114  2019-05-14 15:03  sin103\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_abs_f32.c
     文件        5458  2019-05-14 15:03  sin103\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_abs_q15.c
     文件        4431  2019-05-14 15:03  sin103\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_abs_q31.c
     文件        5090  2019-05-14 15:03  sin103\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_abs_q7.c
     文件        4891  2019-05-14 15:03  sin103\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_add_f32.c
     文件        4423  2019-05-14 15:03  sin103\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_add_q15.c
     文件        4553  2019-05-14 15:03  sin103\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_add_q31.c
     文件        4226  2019-05-14 15:03  sin103\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_add_q7.c
     文件        4613  2019-05-14 15:03  sin103\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_dot_prod_f32.c
     文件        4912  2019-05-14 15:03  sin103\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_dot_prod_q15.c
     文件        5000  2019-05-14 15:03  sin103\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_dot_prod_q31.c
     文件        5408  2019-05-14 15:03  sin103\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_dot_prod_q7.c
     文件        5582  2019-05-14 15:03  sin103\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_mult_f32.c
     文件        5306  2019-05-14 15:03  sin103\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_mult_q15.c
     文件        5201  2019-05-14 15:03  sin103\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_mult_q31.c
     文件        4530  2019-05-14 15:03  sin103\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_mult_q7.c
     文件        4574  2019-05-14 15:03  sin103\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_negate_f32.c
     文件        4621  2019-05-14 15:03  sin103\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_negate_q15.c
     文件        4178  2019-05-14 15:03  sin103\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_negate_q31.c
     文件        4104  2019-05-14 15:03  sin103\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_negate_q7.c
     文件        5095  2019-05-14 15:03  sin103\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_offset_f32.c
     文件        4534  2019-05-14 15:03  sin103\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_offset_q15.c
     文件        4425  2019-05-14 15:03  sin103\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_offset_q31.c
............此处省略621个文件信息

评论

共有 条评论