comparison libs/STM32F10x_StdPeriph_Lib_V3.5.0/Project/STM32F10x_StdPeriph_Examples/ADC/RegSimul_DualMode/readme.txt @ 0:c59513fd84fb

Initial commit of STM32 test code.
author Daniel O'Connor <darius@dons.net.au>
date Mon, 03 Oct 2011 21:19:15 +1030
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:c59513fd84fb
1 /**
2 @page ADC_RegSimul_DualMode ADC regular simultaneous dual mode example
3
4 @verbatim
5 ******************** (C) COPYRIGHT 2011 STMicroelectronics *******************
6 * @file ADC/RegSimul_DualMode/readme.txt
7 * @author MCD Application Team
8 * @version V3.5.0
9 * @date 08-April-2011
10 * @brief Description of the ADC regular simultaneous dual mode example.
11 ******************************************************************************
12 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
13 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
14 * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
15 * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
16 * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
17 * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
18 ******************************************************************************
19 @endverbatim
20
21 @par Example Description
22
23 This example describes how to use ADC1 and ADC2 in regular simultaneous dual mode.
24 ADC1 is configured to convert channel14 and channel17 regular channels continuously.
25 ADC2 is configured to convert channel11 and channel12 regular channels continuously.
26 The connection between internal Vref and channel17 is enabled for ADC1.
27
28 Once the regular channels conversion is started by software, channel14 is converted
29 on ADC1 and channel11 is converted on ADC2 on the same time. The 32bits conversion
30 result is then stored on ADC1 DR register. The DMA will transfer this data which
31 will be stored ADC_DualConvertedValueTab table. Consecutively to those conversion,
32 channel17 is converted on ADC1 and channel12 on ADC2. The combined conversion
33 result is also transferred by DMA to the same destination buffer.
34
35 The same procedure is repeated until the specified number of data to be transferred
36 by DMA is reached.
37
38 The ADCs clocks are set to 14 MHz.
39
40 @par Directory contents
41
42 - ADC/RegSimul_DualMode/stm32f10x_conf.h Library Configuration file
43 - ADC/RegSimul_DualMode/stm32f10x_it.c Interrupt handlers
44 - ADC/RegSimul_DualMode/stm32f10x_it.h Interrupt handlers header file
45 - ADC/RegSimul_DualMode/system_stm32f10x.c STM32F10x system source file
46 - ADC/RegSimul_DualMode/main.c Main program
47
48 @par Hardware and Software environment
49
50 - This example runs on STM32F10x Connectivity line, High-Density, Medium-Density,
51 XL-Density and Low-Density Devices.
52
53 - This example has been tested with STMicroelectronics STM3210C-EVAL
54 (Connectivity line), STM3210E-EVAL (High-Density and XL-Density) and
55 STM3210B-EVAL (Medium-Density) evaluation boards and can be easily tailored
56 to any other supported device and development board.
57
58 - STM3210C-EVAL Set-up
59 - Connect a known voltage, between 0-3.3V, to ADC Channel14 mapped on pin
60 PC.04 (potentiometer RV1), ADC Channel11 mapped on pin PC.01 and ADC
61 Channel12 mapped on pin PC.02.
62
63 - STM3210E-EVAL Set-up
64 - Connect a known voltage, between 0-3.3V, to ADC Channel14 mapped on pin
65 PC.04 (potentiometer RV1), ADC Channel11 mapped on pin PC.01 and ADC
66 Channel12 mapped on pin PC.02.
67
68 - STM3210B-EVAL Set-up
69 - Connect a known voltage, between 0-3.3V, to ADC Channel14 mapped on pin
70 PC.04 (potentiometer RV1), ADC Channel11 mapped on pin PC.01 and ADC
71 Channel12 mapped on pin PC.02.
72
73 @par How to use it ?
74
75 In order to make the program work, you must do the following :
76 - Copy all source files from this example folder to the template folder under
77 Project\STM32F10x_StdPeriph_Template
78 - Open your preferred toolchain
79 - Rebuild all files and load your image into target memory
80 - Run the example
81
82 @note
83 - Low-density Value line devices are STM32F100xx microcontrollers where the
84 Flash memory density ranges between 16 and 32 Kbytes.
85 - Low-density devices are STM32F101xx, STM32F102xx and STM32F103xx
86 microcontrollers where the Flash memory density ranges between 16 and 32 Kbytes.
87 - Medium-density Value line devices are STM32F100xx microcontrollers where
88 the Flash memory density ranges between 64 and 128 Kbytes.
89 - Medium-density devices are STM32F101xx, STM32F102xx and STM32F103xx
90 microcontrollers where the Flash memory density ranges between 64 and 128 Kbytes.
91 - High-density devices are STM32F101xx and STM32F103xx microcontrollers where
92 the Flash memory density ranges between 256 and 512 Kbytes.
93 - XL-density devices are STM32F101xx and STM32F103xx microcontrollers where
94 the Flash memory density ranges between 512 and 1024 Kbytes.
95 - Connectivity line devices are STM32F105xx and STM32F107xx microcontrollers.
96
97 * <h3><center>&copy; COPYRIGHT 2011 STMicroelectronics</center></h3>
98 */