Mercurial > ~darius > hgwebdir.cgi > stm32temp
comparison libs/STM32F10x_StdPeriph_Lib_V3.5.0/Project/STM32F10x_StdPeriph_Examples/DAC/OneChannelDMA_Escalator/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 DAC_OneChannelDMA_Escalator DAC one channel DMA escalator example | |
3 | |
4 @verbatim | |
5 ******************** (C) COPYRIGHT 2011 STMicroelectronics ******************* | |
6 * @file DAC/OneChannelDMA_Escalator/readme.txt | |
7 * @author MCD Application Team | |
8 * @version V3.5.0 | |
9 * @date 08-April-2011 | |
10 * @brief Description of the DAC one channel DMA escalator 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 one DAC channel mode with DMA to generate an | |
24 escalator signal on DAC channel1 output. | |
25 | |
26 DAC channel1 conversion is configured to be triggered by TIM6 TRGO triggers and | |
27 without noise/triangle wave generation. 8bit right data alignment is selected | |
28 since we choose to access DAC_DHR8R1 register. | |
29 DMA2 channel3 is configured to transfer continuously, byte by byte, a 6-byte | |
30 buffer to the DAC1 register DAC_DHR8R1. | |
31 | |
32 The transferred 6bytes buffer is made to have an escalator signal on DAC channel1 | |
33 output. DAC channel1 is then enabled. Once TIM6 is enabled, each TIM6 TRGO update | |
34 event generate a DMA request which transfer data to the DAC1 register and DAC | |
35 conversion is started. The escalator signal can be visualized by connecting PA.04 | |
36 pin to an oscilloscope. | |
37 | |
38 @par Directory contents | |
39 | |
40 - DAC/OneChannelDMA_Escalator/stm32f10x_conf.h Library Configuration file | |
41 - DAC/OneChannelDMA_Escalator/stm32f10x_it.c Interrupt handlers | |
42 - DAC/OneChannelDMA_Escalator/stm32f10x_it.h Header for stm32f10x_it.c | |
43 - DAC/OneChannelDMA_Escalator/main.c Main program | |
44 - DAC/OneChannelDMA_Escalator/system_stm32f10x.c STM32F10x system source file | |
45 | |
46 @par Hardware and Software environment | |
47 | |
48 - This example runs on STM32F10x Connectivity line, High-Density, XL-Density, | |
49 High-Density Value line, Medium-Density Value line and Low-Density Value | |
50 line Devices. | |
51 | |
52 - This example has been tested with STMicroelectronics STM32100B-EVAL | |
53 (Medium-Density Value line),STM32100E-EVAL (High-Density Value line), | |
54 STM3210C-EVAL (Connectivity line) and STM3210E-EVAL (High-Density and | |
55 XL-Density) evaluation boards and can be easily tailored to any other | |
56 supported device and development board. | |
57 | |
58 - STM32100B-EVAL Set-up | |
59 - Connect PA.04 pin to an oscilloscope | |
60 @note Make shure that jumper JP2 is open. | |
61 | |
62 - STM3210C-EVAL Set-up | |
63 - Connect PA.04 pin to an oscilloscope | |
64 @note Make shure that jumper JP15 is open. | |
65 | |
66 - STM3210E-EVAL Set-up | |
67 - Connect PA.04 pin to an oscilloscope | |
68 | |
69 - STM32100E-EVAL Set-up | |
70 - Connect PA.04 pin to an oscilloscope | |
71 | |
72 @par How to use it ? | |
73 | |
74 In order to make the program work, you must do the following : | |
75 - Copy all source files from this example folder to the template folder under | |
76 Project\STM32F10x_StdPeriph_Template | |
77 - Open your preferred toolchain | |
78 - Rebuild all files and load your image into target memory | |
79 - Run the example | |
80 | |
81 @note | |
82 - Low-density Value line devices are STM32F100xx microcontrollers where the | |
83 Flash memory density ranges between 16 and 32 Kbytes. | |
84 - Low-density devices are STM32F101xx, STM32F102xx and STM32F103xx | |
85 microcontrollers where the Flash memory density ranges between 16 and 32 Kbytes. | |
86 - Medium-density Value line devices are STM32F100xx microcontrollers where | |
87 the Flash memory density ranges between 64 and 128 Kbytes. | |
88 - Medium-density devices are STM32F101xx, STM32F102xx and STM32F103xx | |
89 microcontrollers where the Flash memory density ranges between 64 and 128 Kbytes. | |
90 - High-density Value line devices are STM32F100xx microcontrollers where | |
91 the Flash memory density ranges between 256 and 512 Kbytes. | |
92 - High-density devices are STM32F101xx and STM32F103xx microcontrollers where | |
93 the Flash memory density ranges between 256 and 512 Kbytes. | |
94 - XL-density devices are STM32F101xx and STM32F103xx microcontrollers where | |
95 the Flash memory density ranges between 512 and 1024 Kbytes. | |
96 - Connectivity line devices are STM32F105xx and STM32F107xx microcontrollers. | |
97 | |
98 * <h3><center>© COPYRIGHT 2011 STMicroelectronics</center></h3> | |
99 */ |