comparison libs/STM32F10x_StdPeriph_Lib_V3.5.0/Project/STM32F10x_StdPeriph_Examples/TIM/DMA/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 TIM_DMA TIM DMA example
3
4 @verbatim
5 ******************** (C) COPYRIGHT 2011 STMicroelectronics *******************
6 * @file TIM/DMA/readme.txt
7 * @author MCD Application Team
8 * @version V3.5.0
9 * @date 08-April-2011
10 * @brief Description of the TIM DMA 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 provides a description of how to use DMA with TIM1 Update request
24 to transfer Data from memory to TIM1 Capture Compare Register3.
25
26 TIM1CLK = SystemCoreClock, Prescaler = 0, TIM1 counter clock = SystemCoreClock
27 SystemCoreClock is set to 72 MHz for Low-density, Medium-density, High-density
28 and Connectivity line devices. For Low-Density Value line, Medium-Density and
29 High-Density Value line devices, SystemCoreClock is set to 24 MHz.
30
31 The objective is to configure TIM1 channel 3 to generate complementary PWM
32 signal with a frequency equal to 17.57 KHz:
33 - TIM1_Period = (SystemCoreClock / 17570) - 1
34 and a variable duty cycle that is changed by the DMA after a specific number of
35 Update DMA request.
36
37 The number of this repetitive requests is defined by the TIM1 Repetion counter,
38 each 3 Update Requests, the TIM1 Channel 3 Duty Cycle changes to the next new
39 value defined by the SRC_Buffer.
40
41
42 @par Directory contents
43
44 - TIM/DMA/stm32f10x_conf.h Library Configuration file
45 - TIM/DMA/stm32f10x_it.c Interrupt handlers
46 - TIM/DMA/stm32f10x_it.h Interrupt handlers header file
47 - TIM/DMA/main.c Main program
48 - TIM/DMA/system_stm32f10x.c STM32F10x system source file
49
50 @par Hardware and Software environment
51
52 - This example runs on STM32F10x Connectivity line, High-Density, High-Density
53 Value line, Medium-Density, XL-Density, Medium-Density Value line, Low-Density
54 and Low-Density Value line Devices.
55
56 - This example has been tested with STMicroelectronics STM32100E-EVAL (High-Density
57 Value line), STM32100B-EVAL (Medium-Density Value line), STM3210C-EVAL (Connectivity line),
58 STM3210E-EVAL (High-Density and XL-Density) and STM3210B-EVAL (Medium-Density)
59 evaluation boards and can be easily tailored to any other supported device
60 and development board.
61
62 - STM32100E-EVAL, STM32100B-EVAL, STM3210C-EVAL, STM3210E-EVAL, STM32100E-EVAL and STM3210B-EVAL Set-up
63 - Connect the following pins to an oscilloscope to monitor the different
64 waveforms:
65 - TIM1 CH3 (PA.10)
66 - TIM1 CH3N (PB.15)
67
68 @par How to use it ?
69
70 In order to make the program work, you must do the following :
71 - Copy all source files from this example folder to the template folder under
72 Project\STM32F10x_StdPeriph_Template
73 - Open your preferred toolchain
74 - Rebuild all files and load your image into target memory
75 - Run the example
76
77 @note
78 - Low-density Value line devices are STM32F100xx microcontrollers where the
79 Flash memory density ranges between 16 and 32 Kbytes.
80 - Low-density devices are STM32F101xx, STM32F102xx and STM32F103xx
81 microcontrollers where the Flash memory density ranges between 16 and 32 Kbytes.
82 - Medium-density Value line devices are STM32F100xx microcontrollers where
83 the Flash memory density ranges between 64 and 128 Kbytes.
84 - Medium-density devices are STM32F101xx, STM32F102xx and STM32F103xx
85 microcontrollers where the Flash memory density ranges between 64 and 128 Kbytes.
86 - High-density Value line devices are STM32F100xx microcontrollers where
87 the Flash memory density ranges between 256 and 512 Kbytes.
88 - High-density devices are STM32F101xx and STM32F103xx microcontrollers where
89 the Flash memory density ranges between 256 and 512 Kbytes.
90 - XL-density devices are STM32F101xx and STM32F103xx microcontrollers where
91 the Flash memory density ranges between 512 and 1024 Kbytes.
92 - Connectivity line devices are STM32F105xx and STM32F107xx microcontrollers.
93
94 * <h3><center>&copy; COPYRIGHT 2011 STMicroelectronics</center></h3>
95 */