/******************** (C) COPYRIGHT 2007 STMicroelectronics ********************
* File Name : readme.txt
* Author : MCD Application Team
* Version : V1.0
* Date : 10/08/2007
* Description : Description of the ADC Example4.
********************************************************************************
* 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 trigger ADC regular and injected groups channels
conversion using two external line event. Discontinuous mode is enabled for regular
group channel conversion and configured to convert one regular channel on each
external trigger.
ADC1 configured to start regular group channel conversion on EXTI11 event.
On detection of the first rising on PE.11 pin, the conversion of the first regular
channel (ADC channel4) is done and its converted value is transfered by DMA to
ADC_RegularConvertedValueTab table. On the following edge detection, the second
regular channel (ADC channel14) is automatically converted and its converted value
is stored by DMA in the same table. The number of transmitted data by DMA, in this
example is limited to 64 data.
The procedure is repeated for both regular channels on each EXTI11 event.
ADC1 is configured to start injected group channel conversion on EXTI15 event.
On detection of the first rising edge on PE.15 pin all selected injected channel, which
are two in this example (ADC channel10 and channel11), are converted and an interrupt
is generated on JEOC flag rising at the end of all injected channels conversion.
Both injected channels converted results are stored in ADC_InjectedConvertedValueTab
table inside the interrupt routine.
The procedure is repeated for injected channels on each EXTI15 event.
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 Channel4 mapped on pin PA.04,
ADC Channel10 mapped on pin PC.00 and ADC Channel11 mapped on pin PC.01.
- Connect a push-button to pin PE.11 (EXTI Line11) and Connect a push-button to
pin PE.15 (EXTI Line15).
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_exti.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******
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
ADC.rar (40个子文件)
ADC
Example4
main.c 12KB
stm32f10x_it.c 23KB
stm32f10x_conf.h 5KB
STM32F10x.s 9KB
stm32f10x_it.h 3KB
ADC.Uv2 6KB
readme.txt 4KB
ADC.Opt 3KB
Example3
main.c 8KB
stm32f10x_it.c 22KB
stm32f10x_conf.h 5KB
STM32F10x.s 9KB
stm32f10x_it.h 3KB
ADC.Uv2 6KB
readme.txt 3KB
ADC.Opt 3KB
Example2
main.c 11KB
stm32f10x_it.c 23KB
stm32f10x_conf.h 5KB
STM32F10x.s 9KB
stm32f10x_it.h 3KB
ADC.Uv2 6KB
readme.txt 3KB
ADC.Opt 3KB
Example1
main.c 8KB
stm32f10x_it.c 22KB
stm32f10x_conf.h 5KB
STM32F10x.s 9KB
stm32f10x_it.h 3KB
ADC.Uv2 6KB
readme.txt 2KB
ADC.Opt 3KB
Example5
main.c 10KB
stm32f10x_it.c 22KB
stm32f10x_conf.h 5KB
STM32F10x.s 9KB
stm32f10x_it.h 3KB
ADC.Uv2 6KB
readme.txt 3KB
ADC.Opt 3KB
共 40 条
- 1
资源评论
alvarocfc
- 粉丝: 105
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 111111111111111111
- Screenshot_2024-04-30-21-47-24-26.jpg
- Cpp1.cpp1111111111
- 利用ERP流程操作的整个订单流程.ppt
- 最新二开版本源码博客论坛源码,UI很漂亮,可切换皮肤界面.rar
- ModStartBlog现代化个人博客系统 v5.2.0源码.rar
- 带posix库的mingw编译器
- SoraAI是一款功能强大的AI助手,由OpenAI开发,以其出色的语音识别技术、广泛的知识库和高度的人工智能特性而备受瞩目
- Thinkphp开发大气响应式个人博客青春博客网站源码.rar
- 最新PHP博客网站程序源码 ThinkPHP.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功