ADC

所属分类:单片机开发
开发工具:C/C++
文件大小:845KB
下载次数:4
上传日期:2012-09-10 10:13:43
上 传 者zzzxiao
说明:  基于cortex M3 内核的STM32F103x的ADC操作例程
(The cortex M3 core-based STM32F103x ADC operation routines)

文件列表:
ADC\ADC.map (58807, 2009-09-20)
ADC\ADC.Opt (2700, 2009-09-28)
ADC\ADC.plg (191, 2009-09-20)
ADC\ADC.Uv2 (3278, 2009-09-20)
ADC\ADC_Opt.Bak (2698, 2009-09-21)
ADC\ADC_Target 1.dep (9110, 2009-09-28)
ADC\ADC_Uv2.Bak (3221, 2009-09-20)
ADC\code\LCD1602.c (10419, 2009-09-02)
ADC\code\LCD1602.h (4238, 2009-09-12)
ADC\code\main.c (16279, 2009-09-20)
ADC\code\stm32f10x_conf.h (5578, 2007-10-08)
ADC\code\stm32f10x_it.c (29889, 2009-09-20)
ADC\code\stm32f10x_it.h (3842, 2009-09-02)
ADC\cortexm3_macro.lst (27135, 2009-09-20)
ADC\lib\inc\cortexm3_macro.h (2356, 2009-09-12)
ADC\lib\inc\ip_arp_udp_tcp.h (2158, 2009-09-02)
ADC\lib\inc\LCD1620.h (1086, 2009-09-02)
ADC\lib\inc\stm32f10x_adc.h (21514, 2009-09-20)
ADC\lib\inc\stm32f10x_bkp.h (8251, 2009-09-07)
ADC\lib\inc\stm32f10x_can.h (12410, 2009-09-02)
ADC\lib\inc\stm32f10x_conf.h (6411, 2009-09-12)
ADC\lib\inc\stm32f10x_crc.h (2012, 2009-09-02)
ADC\lib\inc\stm32f10x_dac.h (9729, 2009-09-02)
ADC\lib\inc\stm32f10x_dbgmcu.h (2990, 2009-09-02)
ADC\lib\inc\stm32f10x_dma.h (20022, 2009-09-06)
ADC\lib\inc\stm32f10x_exti.h (6207, 2009-09-03)
ADC\lib\inc\stm32f10x_flash.h (13851, 2009-09-07)
ADC\lib\inc\stm32f10x_fsmc.h (19172, 2009-09-02)
ADC\lib\inc\stm32f10x_gpio.h (15254, 2009-09-02)
ADC\lib\inc\stm32f10x_i2c.h (16391, 2009-09-02)
ADC\lib\inc\stm32f10x_it.h (3973, 2009-09-02)
ADC\lib\inc\stm32f10x_iwdg.h (3872, 2009-09-08)
ADC\lib\inc\stm32f10x_lib.h (3397, 2009-09-12)
ADC\lib\inc\stm32f10x_map.h (33231, 2009-10-15)
ADC\lib\inc\stm32f10x_nvic.h (18727, 2009-09-08)
ADC\lib\inc\stm32f10x_pwr.h (4399, 2009-09-07)
ADC\lib\inc\stm32f10x_rcc.h (17123, 2009-09-02)
ADC\lib\inc\stm32f10x_rtc.h (3735, 2009-09-07)
ADC\lib\inc\stm32f10x_sdio.h (18457, 2009-09-02)
ADC\lib\inc\stm32f10x_spi.h (15276, 2009-10-15)
... ...

/******************** (C) COPYRIGHT 2007 STMicroelectronics ******************** * File Name : readme.txt * Author : MCD Application Team * Version : V1.0 * Date : 10/08/2007 * Description : Description of the ADC Example5. ******************************************************************************** * THE PRESENT SOFTWARE 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 SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. *******************************************************************************/ Example description =================== This example describes how to use ADC1 and ADC2 in regular simultaneous dual mode. ADC1 is configured to convert channel14 and channel17 regular channel continuously. ADC2 is configured to convert channel10 and channel11 regular channel continuously. The connection between internal Vref and channel17 is enabled. Once the regular channels conversion is started by software, channel14 is converted on ADC1 and channel10 is converted on ADC2 on the same time. The 32bits conversion result is then stored on ADC1 DR register. The DMA will transfer this data which will be stored ADC_DualConvertedValueTab table. Consecutively to those conversion, channel17 is converted on ADC1 and channel11 on ADC2. The combined conversion result is also transfered by DMA to the same destination buffer. The same procedure is repeated until the specified number of data to be transfered by DMA is reached. The ADC1 clock is set to 14 MHz. Directory contents ================== stm32f10x_conf.h Library Configuration file stm32f10x_it.c Interrupt handlers stm32f10x_it.h Interrupt handlers header file main.c Main program Hardware environment ==================== - Connect a known voltage, between 0-3.3V, to ADC Channel14 mapped on pin PC.04 (potentiometer RV1 on STM3210B-EVAL board),ADC Channel10 mapped on pin PC.00 and ADC Channel11 mapped on pin PC.01. How to use it ============= In order to make the program work, you must do the following : - Create a project and setup all your toolchain's start-up files - Compile the directory content files and required Library files : + stm32f10x_lib.c + stm32f10x_adc.c + stm32f10x_dma.c + stm32f10x_gpio.c + stm32f10x_rcc.c + stm32f10x_nvic.c + stm32f10x_flash.c - Link all compiled files and load your image into either RAM or FLASH - Run the example ******************* (C) COPYRIGHT 2007 STMicroelectronics *****END OF FILE******

近期下载者

相关文件


收藏者