Mercurial > ~darius > hgwebdir.cgi > stm32temp
comparison libs/STM32F10x_StdPeriph_Lib_V3.5.0/Project/STM32F10x_StdPeriph_Examples/I2C/I2C_TSENSOR/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 I2C_TSENSOR I2C and LM75 Temperature Sensor communication example | |
3 | |
4 @verbatim | |
5 ******************** (C) COPYRIGHT 2011 STMicroelectronics ******************* | |
6 * @file I2C/I2C_TSENSOR/readme.txt | |
7 * @author MCD Application Team | |
8 * @version V3.5.0 | |
9 * @date 08-April-2011 | |
10 * @brief Description of the I2C and LM75 Temperature Sensor communication | |
11 * example. | |
12 ****************************************************************************** | |
13 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS | |
14 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE | |
15 * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY | |
16 * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING | |
17 * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE | |
18 * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. | |
19 ****************************************************************************** | |
20 @endverbatim | |
21 | |
22 @par Example Description | |
23 | |
24 This example provides a description of how to use the I2C to communicate with | |
25 an STLM75 (or a compatible device) I2C temperature sensor is mounted on the | |
26 evaluation board and used to get instantaneous external temperature | |
27 (-55ÝC to +125ÝC). | |
28 Thanks to STM32 I2C SMBus feature, we can easily monitor the temperature | |
29 variations. This is managed by the SMBus Alert which is generating a dedicated | |
30 interrupt informing the system that the temperature is out of the selected | |
31 ranges. | |
32 The user can configure the TOS and THYS thanks to a dedicated define values in | |
33 the code. | |
34 | |
35 #define TEMPERATURE_THYS 31 | |
36 #define TEMPERATURE_TOS 32 | |
37 | |
38 @par Directory contents | |
39 | |
40 - I2C/I2C_TSENSOR/stm32f10x_conf.h Library Configuration file | |
41 - I2C/I2C_TSENSOR/stm32f10x_it.c Interrupt handlers | |
42 - I2C/I2C_TSENSOR/stm32f10x_it.h Interrupt handlers header file | |
43 - I2C/I2C_TSENSOR/main.c Main program | |
44 - I2C/I2C_TSENSOR/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, High-Density | |
49 Value line, Medium-Density, XL-Density, Medium-Density Value line, Low-Density | |
50 and Low-Density Value line Devices. | |
51 | |
52 - This example has been tested with STMicroelectronics STM32100E-EVAL (High-Density | |
53 Value line), STM32100B-EVAL (Medium-Density Value line), STM3210E-EVAL (High-Density | |
54 and XL-Density) and STM3210B-EVAL (Medium-Density) evaluation boards and can be | |
55 easily tailored to any other supported device and development board. | |
56 | |
57 - STM3210E-EVAL Set-up | |
58 @note The jumper 11 must be fitted. | |
59 | |
60 - STM32100E-EVAL Set-up | |
61 - Make sure that jumper 6 must be set in position 2<->3 | |
62 | |
63 | |
64 @par How to use it ? | |
65 | |
66 In order to make the program work, you must do the following : | |
67 - Copy all source files from this example folder to the template folder under | |
68 Project\STM32F10x_StdPeriph_Template | |
69 - Open your preferred toolchain | |
70 - Rebuild all files and load your image into target memory | |
71 - Run the example | |
72 | |
73 @note | |
74 - Low-density Value line devices are STM32F100xx microcontrollers where the | |
75 Flash memory density ranges between 16 and 32 Kbytes. | |
76 - Low-density devices are STM32F101xx, STM32F102xx and STM32F103xx | |
77 microcontrollers where the Flash memory density ranges between 16 and 32 Kbytes. | |
78 - Medium-density Value line devices are STM32F100xx microcontrollers where | |
79 the Flash memory density ranges between 64 and 128 Kbytes. | |
80 - Medium-density devices are STM32F101xx, STM32F102xx and STM32F103xx | |
81 microcontrollers where the Flash memory density ranges between 64 and 128 Kbytes. | |
82 - High-density Value line devices are STM32F100xx microcontrollers where | |
83 the Flash memory density ranges between 256 and 512 Kbytes. | |
84 - High-density devices are STM32F101xx and STM32F103xx microcontrollers where | |
85 the Flash memory density ranges between 256 and 512 Kbytes. | |
86 - XL-density devices are STM32F101xx and STM32F103xx microcontrollers where | |
87 the Flash memory density ranges between 512 and 1024 Kbytes. | |
88 - Connectivity line devices are STM32F105xx and STM32F107xx microcontrollers. | |
89 | |
90 * <h3><center>© COPYRIGHT 2011 STMicroelectronics</center></h3> | |
91 */ |