DAC_SignalsGeneration

所属分类:单片机开发
开发工具:C/C++
文件大小:15KB
下载次数:29
上传日期:2013-10-14 19:11:51
上 传 者stefan2005
说明:  stm32f4 系列单片机代码,DMA 做为信号发生器用。
(C code for stm32f4 series, DMA for the signal generator.)

文件列表:
DAC_SignalsGeneration\main.c (12034, 2013-01-18)
DAC_SignalsGeneration\main.h (2327, 2013-01-18)
DAC_SignalsGeneration\stm32f4xx_conf.h (3762, 2013-01-18)
DAC_SignalsGeneration\stm32f4xx_it.c (4993, 2013-01-18)
DAC_SignalsGeneration\stm32f4xx_it.h (2240, 2013-01-18)
DAC_SignalsGeneration\system_stm32f4xx.c (22110, 2013-01-18)
DAC_SignalsGeneration (0, 2013-09-04)

/** @page DAC_SignalsGen DAC Signals generation example @verbatim ******************** (C) COPYRIGHT 2013 STMicroelectronics ******************* * @file DAC/DAC_SignalsGeneration/readme.txt * @author MCD Application Team * @version V1.1.0 * @date 18-January-2013 * @brief Description of the DAC Signals generation example. ****************************************************************************** * * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); * You may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.st.com/software_license_agreement_liberty_v2 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ****************************************************************************** @endverbatim @par Example Description This example provides a short description of how to use the DAC peripheral to generate several signals using DMA controller. When the user presses the KEY push-button, DMA transfers the two selected waveforms to the DAC. For each press on KEY button, 2 signals has been selected and can be monitored on the two DAC channels: - Escalator waveform (Channel 1) and Sine waveForm (Channel 2). - Noise waveform (Channel 1) and Triangle waveform (Channel 2). @par Directory contents - DAC/DAC_SignalsGeneration/stm32f4xx_conf.h Library Configuration file - DAC/DAC_SignalsGeneration/stm32f4xx_it.c Interrupt handlers - DAC/DAC_SignalsGeneration/stm32f4xx_it.h Interrupt handlers header file - DAC/DAC_SignalsGeneration/main.c Main program - DAC/DAC_SignalsGeneration/main.h Main program header file - DAC/DAC_SignalsGeneration/system_stm32f4xx.c STM32F4xx system source file @note The "system_stm32f4xx.c" is generated by an automatic clock configuration tool and can be easily customized to your own configuration. To select different clock setup, use the "STM32F4xx_Clock_Configuration_V1.1.0.xls" provided with the AN3***8 package available on ST Microcontrollers @par Hardware and Software environment - This example runs on STM32F40xx/STM32F41xx, STM32F427x/STM32F437x Devices. - This example has been tested with STMicroelectronics STM324xG-EVAL (STM32F40xx/ STM32F41xx Devices) and STM32437I-EVAL (STM32F427x/STM32F437x Devices) evaluation boards and can be easily tailored to any other supported device and development board. - STM324xG-EVAL and STM32437I-EVAL Set-up - Use KEY push-button connected to PG15. - Connect PA4 (DAC Channel1) and PA5 (DAC Channel2) pins to an oscilloscope. - Make sure that JP31 is removed. @par How to use it ? In order to make the program work, you must do the following : - Copy all source files from this example folder to the template folder under Project\STM32F4xx_StdPeriph_Templates - Open your preferred toolchain - Rebuild all files and load your image into target memory - Run the example *

© COPYRIGHT STMicroelectronics

*/

近期下载者

相关文件


收藏者