comparison libs/STM32F10x_StdPeriph_Lib_V3.5.0/Project/STM32F10x_StdPeriph_Examples/TIM/TIM9_OCToggle/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 TIM9_OCToggle TIM9 OC Toggle example
3
4 @verbatim
5 ******************** (C) COPYRIGHT 2011 STMicroelectronics *******************
6 * @file TIM/TIM9_OCToggle/readme.txt
7 * @author MCD Application Team
8 * @version V3.5.0
9 * @date 08-April-2011
10 * @brief Description of the TIM9 OC Toggle 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 shows how to configure the TIM9 peripheral to generate two different
24 signals with two different frequencies.
25
26 The TIM9CLK frequency is set to SystemCoreClock (72 MHz), and we want to get TIM9
27 counter clock at 24 MHz so the Prescaler is computed as following:
28 - Prescaler = (TIM9CLK / TIM9 counter clock) - 1
29
30 The TIM9 CCR1 register value is equal to 32768:
31 CC1 update rate = TIM9 counter clock / CCR1Val = 732.4 Hz,
32 so the TIM9 Channel 1 generates a periodic signal with a frequency equal to 366.2 Hz.
33
34 The TIM9 CCR2 register is equal to 16384:
35 CC2 update rate = TIM9 counter clock / CCR2Val = 1464.8
36 so the TIM9 channel 2 generates a periodic signal with a frequency equal to 732.4 Hz.
37
38
39 @par Directory contents
40
41 - TIM/TIM9_OCToggle/stm32f10x_conf.h Library Configuration file
42 - TIM/TIM9_OCToggle/stm32f10x_it.c Interrupt handlers
43 - TIM/TIM9_OCToggle/stm32f10x_it.h Interrupt handlers header file
44 - TIM/TIM9_OCToggle/main.c Main program
45 - TIM/TIM9_OCToggle/system_stm32f10x.c STM32F10x system source file
46
47 @par Hardware and Software environment
48
49 - This example runs only on STM32F10x XL-Density Devices.
50
51 - This example has been tested with STMicroelectronics STM3210E-EVAL (XL-Density)
52 evaluation board and can be easily tailored to any development board.
53
54 - STM3210E-EVAL Set-up
55 - Connect the TIM9 pins to an oscilloscope to monitor the different waveforms:
56 - PA.02 (TIM9_CH1)
57 - PA.03 (TIM9_CH2)
58
59
60 @par How to use it ?
61
62 In order to make the program work, you must do the following :
63 - Copy all source files from this example folder to the template folder under
64 Project\STM32F10x_StdPeriph_Template
65 - Open your preferred toolchain
66 - Rebuild all files and load your image into target memory
67 - Run the example
68
69 @note
70 - Low-density Value line devices are STM32F100xx microcontrollers where the
71 Flash memory density ranges between 16 and 32 Kbytes.
72 - Low-density devices are STM32F101xx, STM32F102xx and STM32F103xx
73 microcontrollers where the Flash memory density ranges between 16 and 32 Kbytes.
74 - Medium-density Value line devices are STM32F100xx microcontrollers where
75 the Flash memory density ranges between 64 and 128 Kbytes.
76 - Medium-density devices are STM32F101xx, STM32F102xx and STM32F103xx
77 microcontrollers where the Flash memory density ranges between 64 and 128 Kbytes.
78 - High-density Value line devices are STM32F100xx microcontrollers where
79 the Flash memory density ranges between 256 and 512 Kbytes.
80 - High-density devices are STM32F101xx and STM32F103xx microcontrollers where
81 the Flash memory density ranges between 256 and 512 Kbytes.
82 - XL-density devices are STM32F101xx and STM32F103xx microcontrollers where
83 the Flash memory density ranges between 512 and 1024 Kbytes.
84 - Connectivity line devices are STM32F105xx and STM32F107xx microcontrollers.
85
86 * <h3><center>&copy; COPYRIGHT 2011 STMicroelectronics</center></h3>
87 */