Example9-Temperature

所属分类:嵌入式/单片机/硬件编程
开发工具:C/C++
文件大小:603KB
下载次数:59
上传日期:2010-03-04 23:34:00
上 传 者ripny
说明:  使用stm32内部温度传感器测量环境温度,简易实现方法
(The internal temperature sensor using stm32 ambient temperature, simple realization method)

文件列表:
Example9-Temperature\ADC.Opt (2928, 2009-08-23)
Example9-Temperature\ADC.Uv2 (2685, 2009-08-23)
Example9-Temperature\ADC_ADC.dep (4382, 2009-08-23)
Example9-Temperature\ADC_Opt.Bak (2936, 2009-08-23)
Example9-Temperature\ADC_Temperature.dep (4390, 2009-08-23)
Example9-Temperature\ADC_Uv2.Bak (2669, 2009-08-21)
Example9-Temperature\Lst\ADC.map (106848, 2009-08-23)
Example9-Temperature\Lst\STM3210B-EVAL.map (91558, 2009-08-19)
Example9-Temperature\Lst\STM3210E-EVAL.map (69512, 2009-08-19)
Example9-Temperature\Lst\stm32f10x_vector.lst (36586, 2009-08-23)
Example9-Temperature\Lst\USART.map (103157, 2009-08-21)
Example9-Temperature\main.c (13622, 2009-08-23)
Example9-Temperature\note.txt (1794, 2008-09-23)
Example9-Temperature\Obj\ADC.axf (162380, 2009-08-23)
Example9-Temperature\Obj\ADC.hex (13940, 2009-08-23)
Example9-Temperature\Obj\ADC.htm (43158, 2009-08-23)
Example9-Temperature\Obj\ADC.lnp (345, 2009-08-23)
Example9-Temperature\Obj\ADC.plg (6699, 2009-08-23)
Example9-Temperature\Obj\ADC.sct (479, 2009-08-21)
Example9-Temperature\Obj\ADC.tra (1125, 2009-08-23)
Example9-Temperature\Obj\ExtDll.iex (19, 2009-08-23)
Example9-Temperature\Obj\main.crf (154530, 2009-08-23)
Example9-Temperature\Obj\main.d (1800, 2009-08-23)
Example9-Temperature\Obj\main.o (184056, 2009-08-23)
Example9-Temperature\Obj\STM3210B-EVAL.axf (110612, 2009-08-19)
Example9-Temperature\Obj\STM3210B-EVAL.htm (33615, 2009-08-19)
Example9-Temperature\Obj\STM3210B-EVAL.lnp (375, 2009-08-19)
Example9-Temperature\Obj\STM3210B-EVAL.plg (1036, 2009-08-19)
Example9-Temperature\Obj\STM3210B-EVAL.sct (479, 2009-08-19)
Example9-Temperature\Obj\STM3210B-EVAL.tra (1205, 2009-08-19)
Example9-Temperature\Obj\STM3210B-EVAL_sct.Bak (479, 2009-04-14)
Example9-Temperature\Obj\STM3210E-EVAL.axf (126812, 2009-08-19)
Example9-Temperature\Obj\STM3210E-EVAL.htm (34385, 2009-08-19)
Example9-Temperature\Obj\STM3210E-EVAL.lnp (375, 2009-08-19)
Example9-Temperature\Obj\STM3210E-EVAL.plg (418, 2009-08-19)
Example9-Temperature\Obj\STM3210E-EVAL.sct (479, 2009-04-14)
Example9-Temperature\Obj\STM3210E-EVAL.tra (1205, 2009-08-19)
Example9-Temperature\Obj\stm32f10x_it.crf (150410, 2009-08-23)
Example9-Temperature\Obj\stm32f10x_it.d (2001, 2009-08-23)
Example9-Temperature\Obj\stm32f10x_it.o (250164, 2009-08-23)
... ...

/******************** (C) COPYRIGHT 2008 STMicroelectronics ******************** * File Name : readme.txt * Author : MCD Application Team * Version : V2.0.1 * Date : 06/13/2008 * Description : Description of the USART Interrupts Example. ******************************************************************************** * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. *******************************************************************************/ Example description =================== This example provides a basic communication between USART1 and USART2 using interrupts. USART2 sends TxBuffer2 to USART1 which sends TxBuffer1 to USART2. The data received by USART1 and USART2 are stored respectively in RxBuffer1 and RxBuffer2. The data transfer is managed in USART1_IRQHandler and USART2_IRQHandler in stm32f10x_it.c file. USART1 and USART2 configured as follow: - BaudRate = 9600 baud - Word Length = 8 Bits - One Stop Bit - No parity - Hardware flow control disabled (RTS and CTS signals) - Receive and transmit enabled Directory contents ================== platform_config.h Evaluation board specific configuration file stm32f10x_conf.h Library Configuration file stm32f10x_it.h Interrupt handlers header file stm32f10x_it.c Interrupt handlers main.c Main program Hardware environment ==================== This example runs on STMicroelectronics STM3210B-EVAL and STM3210E-EVAL evaluation boards and can be easily tailored to any other hardware. To select the STMicroelectronics evaluation board used to run the example, uncomment the corresponding line in platform_config.h file. + STM3210B-EVAL - Connect a null-modem female/female RS232 cable between CN5 and CN6. - Note: in this case USART2 Tx and Rx pins are remapped by software on PD.05 and PD.06 respectively. + STM3210E-EVAL - Connect a null-modem female/female RS232 cable between CN12 and CN8. How to use it ============= In order to make the program work, you must do the following : - Create a project and setup all your toolchain's start-up files - Compile the directory content files and required Library files : + stm32f10x_lib.c + stm32f10x_usart.c + stm32f10x_gpio.c + stm32f10x_nvic.c + stm32f10x_rcc.c + stm32f10x_flash.c - Link all compiled files and load your image into target memory - Run the example ******************* (C) COPYRIGHT 2008 STMicroelectronics *****END OF FILE******

近期下载者

相关文件


收藏者