资源简介
采用STM32F373 16位SDADC,用了两个SDADC同时采集数据,有需要的可以看一下,已经过测试,欢迎指正
代码片段和文件信息
/**
******************************************************************************
* @file stm32f37x_adc.c
* @author MCD Application Team
* @version V1.0.0
* @date 20-September-2012
* @brief This file provides firmware functions to manage the following
* functionalities of the Analog to Digital Converter (ADC) peripheral:
* + Initialization and Configuration
* + Analog Watchdog configuration
* + Temperature Sensor Vrefint (Internal Reference Voltage)
* and VBAT (Voltage battery) management
* + Regular Channels Configuration
* + Regular Channels DMA Configuration
* + Injected channels Configuration
* + Interrupts and flags management
*
* @verbatim
================================================================================
##### How to use this driver #####
================================================================================
[..]
(#) Enable the ADC interface clock using
RCC_APB2PeriphClockCmd(RCC_APB2Periph_ADC1 ENABLE);
(#) ADC pins configuration
(++) Enable the clock for the ADC GPIOs using the following function:
RCC_AHBPeriphClockCmd(RCC_AHBPeriph_GPIOx ENABLE);
(++) Configure these ADC pins in analog mode using GPIO_Init();
(#) Configure the data alignment using the ADC_Init() function.
(#) Activate the ADC peripheral using ADC_Cmd() function.
*** Regular channels group configuration ***
============================================
[..]
(+) To configure the ADC regular channels group features use
ADC_Init() and ADC_RegularChannelConfig() functions.
(+) To activate the continuous mode use the ADC_ContinuousModeCmd()
function.
(+) To configure and activate the Discontinuous mode use the
ADC_DiscModeChannelCountConfig() and ADC_DiscModeCmd() functions.
(+) To read the ADC converted values use the ADC_GetConversionValue()
function.
*** DMA for Regular channels group features configuration ***
=============================================================
[..]
(+) To enable the DMA mode for regular channels group use the
ADC_DMACmd() function.
*** Injected channels group configuration ***
=============================================
[..]
(+) To configure the ADC Injected channels group features use
ADC_InjectedChannelConfig() function.
(+) To activate the Injected Discontinuous mode use the
ADC_InjectedDiscModeCmd() function.
(+) To activate the AutoInjected mode use the ADC_AutoInjectedConvCmd()
function.
(+) To read the ADC converted values use the ADC_GetInjectedConversionValue() function.
* @endverbatim
*
****************************************************************
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 18701 2012-09-19 03:31 SDADC\FWlib\inc\stm32f37x_adc.h
文件 27231 2012-09-19 03:31 SDADC\FWlib\inc\stm32f37x_can.h
文件 12347 2012-09-19 03:31 SDADC\FWlib\inc\stm32f37x_cec.h
文件 11336 2012-09-19 03:31 SDADC\FWlib\inc\stm32f37x_comp.h
文件 4649 2012-09-19 03:31 SDADC\FWlib\inc\stm32f37x_crc.h
文件 15673 2012-09-19 03:31 SDADC\FWlib\inc\stm32f37x_dac.h
文件 4513 2012-09-19 03:31 SDADC\FWlib\inc\stm32f37x_dbgmcu.h
文件 21198 2012-09-19 03:31 SDADC\FWlib\inc\stm32f37x_dma.h
文件 9875 2012-09-19 03:31 SDADC\FWlib\inc\stm32f37x_exti.h
文件 15825 2012-09-19 03:31 SDADC\FWlib\inc\stm32f37x_flash.h
文件 13984 2012-09-19 03:31 SDADC\FWlib\inc\stm32f37x_gpio.h
文件 18016 2012-09-19 03:31 SDADC\FWlib\inc\stm32f37x_i2c.h
文件 4535 2012-09-19 03:31 SDADC\FWlib\inc\stm32f37x_iwdg.h
文件 9405 2012-09-19 03:31 SDADC\FWlib\inc\stm32f37x_misc.h
文件 6656 2012-09-19 03:31 SDADC\FWlib\inc\stm32f37x_pwr.h
文件 25342 2012-09-19 03:31 SDADC\FWlib\inc\stm32f37x_rcc.h
文件 41487 2012-09-19 03:31 SDADC\FWlib\inc\stm32f37x_rtc.h
文件 23717 2012-09-19 03:31 SDADC\FWlib\inc\stm32f37x_sdadc.h
文件 22347 2012-09-19 03:31 SDADC\FWlib\inc\stm32f37x_spi.h
文件 10764 2012-09-19 03:31 SDADC\FWlib\inc\stm32f37x_syscfg.h
文件 53505 2012-09-19 03:31 SDADC\FWlib\inc\stm32f37x_tim.h
文件 25390 2012-09-19 03:31 SDADC\FWlib\inc\stm32f37x_usart.h
文件 3544 2012-09-19 03:31 SDADC\FWlib\inc\stm32f37x_wwdg.h
文件 58493 2012-09-19 03:31 SDADC\FWlib\src\stm32f37x_adc.c
文件 58541 2012-09-19 03:31 SDADC\FWlib\src\stm32f37x_can.c
文件 25670 2012-09-19 03:31 SDADC\FWlib\src\stm32f37x_cec.c
文件 15598 2012-09-19 03:31 SDADC\FWlib\src\stm32f37x_comp.c
文件 10773 2012-09-19 03:31 SDADC\FWlib\src\stm32f37x_crc.c
文件 28481 2012-09-19 03:31 SDADC\FWlib\src\stm32f37x_dac.c
文件 7796 2012-09-19 03:31 SDADC\FWlib\src\stm32f37x_dbgmcu.c
............此处省略140个文件信息
- 上一篇:企业员工工资管理系统说明书预览版
- 下一篇:在线音乐平台软件需求规格说明书
评论
共有 条评论