ADC_DMA
所属分类:其他
开发工具:C/C++
文件大小:38KB
下载次数:0
上传日期:2019-03-17 00:24:33
上 传 者:
alisardarzadeh
说明: this program is example of ADC DMA
文件列表:
ADC_DMA (0, 2019-03-17)
ADC_DMA\EWARM (0, 2019-03-17)
ADC_DMA\EWARM\ADC_DMA.ewd (25812, 2013-11-08)
ADC_DMA\EWARM\ADC_DMA.ewp (25759, 2013-11-08)
ADC_DMA\EWARM\ADC_DMA.eww (151, 2013-11-08)
ADC_DMA\EWARM\stm32f0xx_flash.icf (1396, 2013-11-08)
ADC_DMA\main.c (6183, 2013-11-08)
ADC_DMA\MDK-ARM (0, 2019-03-17)
ADC_DMA\MDK-ARM\ADC_DMA.uvopt (13211, 2013-11-08)
ADC_DMA\MDK-ARM\ADC_DMA.uvproj (17510, 2013-11-08)
ADC_DMA\stm32f0xx_conf.h (3224, 2013-11-08)
ADC_DMA\stm32f0xx_it.c (3623, 2013-11-08)
ADC_DMA\stm32f0xx_it.h (2012, 2013-11-08)
ADC_DMA\system_stm32f0xx.c (12814, 2013-11-08)
ADC_DMA\TASKING (0, 2019-03-17)
ADC_DMA\TASKING\ADC_DMA (0, 2019-03-17)
ADC_DMA\TASKING\ADC_DMA\.cproject (24444, 2013-11-08)
ADC_DMA\TASKING\ADC_DMA\.project (3019, 2013-11-08)
ADC_DMA\TASKING\ADC_DMA\ADC_DMA.launch (4067, 2013-11-08)
ADC_DMA\TASKING\ADC_DMA\TASKING (0, 2019-03-17)
ADC_DMA\TASKING\ADC_DMA\TASKING\stm32f0xx.lsl (7743, 2013-11-08)
ADC_DMA\TrueSTUDIO (0, 2019-03-17)
ADC_DMA\TrueSTUDIO\ADC_DMA (0, 2019-03-17)
ADC_DMA\TrueSTUDIO\ADC_DMA\.cproject (20044, 2013-11-08)
ADC_DMA\TrueSTUDIO\ADC_DMA\.project (4628, 2013-11-08)
ADC_DMA\TrueSTUDIO\ADC_DMA\.settings (0, 2019-03-17)
ADC_DMA\TrueSTUDIO\ADC_DMA\.settings\com.atollic.truestudio.debug.hardware_device.prefs (228, 2013-11-08)
ADC_DMA\TrueSTUDIO\ADC_DMA\ADC_DMA.elf.launch (5351, 2013-11-08)
ADC_DMA\TrueSTUDIO\ADC_DMA\stm32_flash.ld (4794, 2013-11-08)
/**
@page ADC_DMA ADC ADC_DMA Example Description
@verbatim
******************** (C) COPYRIGHT 2012 STMicroelectronics *******************
* @file ADC_DMA/readme.txt
* @author MCD Application Team
* @version V1.0.0
* @date 23-March-2012
* @brief ADC ADC_DMA Description.
******************************************************************************
*
* 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 describes how to use the ADC1 and DMA to transfer continuously
converted data from ADC1 to memory.
The ADC1 is configured to convert continuously Voltage reference and Temperature
sensor.
Each time an end of conversion occurs the DMA transfers, in circular mode, the
converted data from ADC1 DR register to the RegularConvData_Tab[] table.
@par Directory contents
- ADC_DMA/stm32f0xx_conf.h Library Configuration file
- ADC_DMA/stm32f0xx_it.c Interrupt handlers
- ADC_DMA/stm32f0xx_it.h Interrupt handlers header file
- ADC_DMA/main.c Main program
- ADC_DMA/system_stm32f0xx.c STM32F0xx system source file
@note The "system_stm32f0xx.c" file contains the system clock configuration for
STM32F0xx devices, and is customized for use with STM32F0-Discovery Kit.
The STM32F0xx is configured to run at 48 MHz, following the three
configuration below:
+ PLL_SOURCE_HSI
- HSI (~8 MHz) used to clock the PLL, and the PLL is used as system
clock source.
+ PLL_SOURCE_HSE
- HSE (8 MHz) used to clock the PLL, and the PLL is used as system
clock source.
- The HSE crystal is not provided with the Discovery Kit, some
hardware modification are needed in manner to connect this crystal.
For more details, refer to section "4.7 OSC clock" in "STM32F0 discovery kit User manual (UM1525)"
+ PLL_SOURCE_HSE_BYPASS
- HSE bypassed with an external clock (fixed at 8 MHz, coming from
ST-Link circuit) used to clock the PLL, and the PLL is used as
system clock source.
- Some hardware modification are needed in manner to bypass the HSE
with clock coming from the ST-Link circuit.
For more details, refer to section "4.7 OSC clock" in "STM32F0 discovery kit User manual (UM1525)"
User can select one of the three configuration in system_stm32f0xx.c file
(default configuration is PLL_SOURCE_HSI).
@par Hardware and Software environment
- This example runs on STM32F0xx Devices.
- This example has been tested with STMicroelectronics STM32F0-Discovery (MB1034)
RevB and can be easily tailored to any other supported device and development board.
- STM32F0-Discovery Set-up
- None.
@par How to use it ?
In order to make the program work, you must do the following :
+ EWARM
- Open the ADC_DMA.eww workspace
- Rebuild all files: Project->Rebuild all
- Load project image: Project->Debug
- Run program: Debug->Go(F5)
+ MDK-ARM
- Open the ADC_DMA.uvproj project
- Rebuild all files: Project->Rebuild all target files
- Load project image: Debug->Start/Stop Debug Session
- Run program: Debug->Run (F5)
+ TASKING
- Open TASKING toolchain.
- Click on File->Import, select General->'Existing Projects into Workspace'
and then click "Next".
- Browse to TASKING workspace directory and select the project "ADC_DMA"
- Rebuild all project files: Select the project in the "Project explorer"
window then click on Project->build project menu.
- Run program: Select the project in the "Project explorer" window then click
Run->Debug (F11)
+ TrueSTUDIO for ARM
- Open the TrueSTUDIO for ARM toolchain.
- Click on File->Switch Workspace->Other and browse to TrueSTUDIO workspace
directory.
- Click on File->Import, select General->'Existing Projects into Workspace'
and then click "Next".
- Browse to the TrueSTUDIO workspace directory and select the project "ADC_DMA"
- Rebuild all project files: Select the project in the "Project explorer"
window then click on Project->build project menu.
- Run program: Select the project in the "Project explorer" window then click
Run->Debug (F11)
*
© COPYRIGHT STMicroelectronics
*/
近期下载者:
相关文件:
收藏者: