stm32f4_urat

所属分类:单片机开发
开发工具:C/C++
文件大小:2531KB
下载次数:62
上传日期:2012-05-04 21:11:06
上 传 者lihan519
说明:  stm32f4_usart实例程序,discovery开发板调试成功
(the example of stm32f4_usart)

文件列表:
stm32f4_urat\ExtDll.iex (19, 2012-03-05)
stm32f4_urat\main.crf (394300, 2011-11-29)
stm32f4_urat\main.d (1309, 2012-03-06)
stm32f4_urat\main.o (439456, 2012-03-06)
stm32f4_urat\misc.crf (393007, 2011-11-29)
stm32f4_urat\misc.d (1247, 2012-03-06)
stm32f4_urat\misc.o (431704, 2012-03-06)
stm32f4_urat\startup_stm32f4xx.d (42, 2012-03-06)
stm32f4_urat\startup_stm32f4xx.lst (72131, 2012-03-06)
stm32f4_urat\startup_stm32f4xx.o (7776, 2012-03-06)
stm32f4_urat\startup_stm32f4xx.s (29506, 2011-09-20)
stm32f4_urat\stm32f4xx_adc.crf (399747, 2011-11-29)
stm32f4_urat\stm32f4xx_adc.d (1598, 2012-03-06)
stm32f4_urat\stm32f4xx_adc.o (480748, 2012-03-06)
stm32f4_urat\stm32f4xx_dma.crf (399632, 2011-11-29)
stm32f4_urat\stm32f4xx_dma.d (1598, 2012-03-06)
stm32f4_urat\stm32f4xx_dma.o (454124, 2012-03-06)
stm32f4_urat\stm32f4xx_exti.crf (393589, 2011-11-29)
stm32f4_urat\stm32f4xx_exti.d (1637, 2012-03-06)
stm32f4_urat\stm32f4xx_exti.o (436008, 2012-03-06)
stm32f4_urat\stm32f4xx_gpio.crf (394925, 2011-11-29)
stm32f4_urat\stm32f4xx_gpio.d (1637, 2012-03-06)
stm32f4_urat\stm32f4xx_gpio.o (445224, 2012-03-06)
stm32f4_urat\stm32f4xx_it.crf (392468, 2011-11-29)
stm32f4_urat\stm32f4xx_it.d (1560, 2012-03-06)
stm32f4_urat\stm32f4xx_it.o (440028, 2012-03-06)
stm32f4_urat\stm32f4xx_rcc.crf (401753, 2011-11-29)
stm32f4_urat\stm32f4xx_rcc.d (1598, 2012-03-06)
stm32f4_urat\stm32f4xx_rcc.o (488972, 2012-03-06)
stm32f4_urat\stm32f4xx_syscfg.crf (393082, 2011-11-29)
stm32f4_urat\stm32f4xx_syscfg.d (1715, 2012-03-06)
stm32f4_urat\stm32f4xx_syscfg.o (433732, 2012-03-06)
stm32f4_urat\stm32f4xx_usart.d (1676, 2012-03-06)
stm32f4_urat\stm32f4xx_usart.o (467348, 2012-03-06)
stm32f4_urat\stm32f4_discovery.crf (395306, 2011-11-29)
stm32f4_urat\stm32f4_discovery.d (1776, 2012-03-06)
stm32f4_urat\stm32f4_discovery.o (438088, 2012-03-06)
stm32f4_urat\stm32f4_pro.axf (306116, 2012-03-06)
stm32f4_urat\stm32f4_pro.htm (41960, 2012-03-06)
... ...

/** @page ADC3_DMA ADC3 conversion using DMA for Data transfer @verbatim ******************** (C) COPYRIGHT 2011 STMicroelectronics ******************* * @file ADC3_DMA/readme.txt * @author MCD Application Team * @version V1.0.0 * @date 19-September-2011 * @brief Description of the ADC3 DMA example. ****************************************************************************** * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. ****************************************************************************** @endverbatim @par Example Description This example describes how to use the ADC3 and DMA to transfer continuously converted data from ADC3 to memory. The ADC3 is configured to convert continuously channel7. Each time an end of conversion occurs the DMA transfers, in circular mode, the converted data from ADC3 DR register to the ADC3ConvertedValue variable. In this example, the system clock is 144MHz, APB2 = 72MHz and ADC clock = APB2/2. Since ADC3 clock is 36 MHz and sampling time is set to 3 cycles, the conversion time to 12bit data is 12 cycles so the total conversion time is (12+3)/36= 0.41us(2.4Msps). @par Directory contents - ADC3_DMA/system_stm32f4xx.c STM32F4xx system clock configuration file - ADC3_DMA/stm32f4xx_conf.h Library Configuration file - ADC3_DMA/stm32f4xx_it.c Interrupt handlers - ADC3_DMA/stm32f4xx_it.h Interrupt handlers header file - ADC3_DMA/main.c Main program @par Hardware and Software environment - This example runs on STM32F4xx Devices Revision A. - This example has been tested with STM32F4-Discovery (MB997) RevA and can be easily tailored to any other development board. - STM32F4-Discovery - Connect the external signal(ranges from 0 to 3.3V) to the ADC3 pin (PC.02) to be converted. @par How to use it ? In order to make the program work, you must do the following : + EWARM - Open the ADC3_DMA.eww workspace - Rebuild all files: Project->Rebuild all - Load project image: Project->Debug - Run program: Debug->Go(F5) + MDK-ARM - Open the ADC3_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 "ADC3_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 - Open the TrueSTUDIO 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 "ADC3_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 2011 STMicroelectronics

*/

近期下载者

相关文件


收藏者