BMP180

所属分类:单片机开发
开发工具:Visual C++
文件大小:6268KB
下载次数:340
上传日期:2014-04-01 20:23:26
上 传 者旺旺我
说明:  基于STM32F10X的气压传感器(bmp180)程序,串口输出,内含bmp180手册。
(Based STM32F10X pressure sensor (bmp180) program, serial output, containing bmp180 manual.)

文件列表:
BMP180\bmp180\bmp180.c (6107, 2014-04-01)
BMP180\bmp180\bmp180.h (406, 2014-03-26)
BMP180\bmp180\bmpi2c.c (8604, 2014-04-01)
BMP180\bmp180\bmpi2c.h (2317, 2014-03-24)
BMP180\custom\usart.c (3279, 2012-11-20)
BMP180\custom\usart.h (1204, 2014-04-01)
BMP180\Libraries\CMSIS\Core\CM3\core_cm3.c (17206, 2009-09-28)
BMP180\Libraries\CMSIS\Core\CM3\core_cm3.h (46533, 2009-09-28)
BMP180\Libraries\CMSIS\Core\CM3\startup\arm\startup_stm32f10x_cl.s (15600, 2009-09-28)
BMP180\Libraries\CMSIS\Core\CM3\startup\arm\startup_stm32f10x_hd.s (15872, 2009-09-28)
BMP180\Libraries\CMSIS\Core\CM3\startup\arm\startup_stm32f10x_ld.s (12164, 2009-09-28)
BMP180\Libraries\CMSIS\Core\CM3\startup\arm\startup_stm32f10x_md.s (12564, 2009-09-28)
BMP180\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_cl.s (12917, 2009-09-28)
BMP180\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_hd.s (13560, 2009-09-28)
BMP180\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_ld.s (9830, 2009-09-28)
BMP180\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_md.s (10340, 2009-09-28)
BMP180\Libraries\CMSIS\Core\CM3\startup\iar\startup_stm32f10x_cl.s (16309, 2009-09-28)
BMP180\Libraries\CMSIS\Core\CM3\startup\iar\startup_stm32f10x_hd.s (16709, 2009-09-28)
BMP180\Libraries\CMSIS\Core\CM3\startup\iar\startup_stm32f10x_ld.s (12333, 2009-09-28)
BMP180\Libraries\CMSIS\Core\CM3\startup\iar\startup_stm32f10x_md.s (12594, 2009-09-28)
BMP180\Libraries\CMSIS\Core\CM3\stm32f10x.h (593385, 2009-09-28)
BMP180\Libraries\CMSIS\Core\CM3\system_stm32f10x.c (30622, 2009-09-28)
BMP180\Libraries\CMSIS\Core\CM3\system_stm32f10x.h (2404, 2009-09-28)
BMP180\Libraries\CMSIS\Core\Documentation\CMSIS_Core.htm (52463, 2009-09-28)
BMP180\Libraries\CMSIS\License.doc (39936, 2009-09-28)
BMP180\Libraries\STM32F10x_StdPeriph_Driver\inc\misc.h (8893, 2009-09-28)
BMP180\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_adc.h (21441, 2009-09-28)
BMP180\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_bkp.h (7466, 2009-09-28)
BMP180\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_can.h (20503, 2009-09-28)
BMP180\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_crc.h (2073, 2009-09-28)
BMP180\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_dac.h (13775, 2009-09-28)
BMP180\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_dbgmcu.h (3134, 2009-09-28)
BMP180\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_dma.h (20573, 2009-09-28)
BMP180\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_exti.h (6682, 2009-09-28)
BMP180\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_flash.h (19528, 2009-09-28)
BMP180\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_fsmc.h (26187, 2009-09-28)
BMP180\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_gpio.h (17304, 2009-09-28)
BMP180\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_i2c.h (17982, 2009-09-28)
BMP180\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_iwdg.h (3739, 2009-09-28)
BMP180\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_pwr.h (4294, 2009-09-28)
... ...

/** @page TIM_DMA TIM_DMA @verbatim ******************** (C) COPYRIGHT 2009 STMicroelectronics ******************* * @file TIM/DMA/readme.txt * @author MCD Application Team * @version V3.1.2 * @date 09/28/2009 * @brief Description of the TIM DMA 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. ****************************************************************************** @endverbatim @par Example Description This example provides a description of how to use DMA with TIM1 Update request to transfer Data from memory to TIM1 Capture Compare Register3. TIM1CLK = 72 MHz, Prescaler = 0, TIM1 counter clock = 72 MHz The TIM1 Channel3 is configured to generate a complementary PWM signal with a frequency equal to: TIM1 counter clock / (TIM1_Period + 1) = 17.57 KHz The TIM1 Channel3 is configured to generate a complementary PWM signal with a frequency equal to 17.578 KHz and a variable duty cycle that is changed by the DMA after a specific number of Update event. The number of this repetitive requests is defined by the TIM1 Repetion counter, each 3 Update Requests, the TIM1 Channel3 Duty Cycle changes to the next new value defined by the SRC_Buffer. @par Directory contents - TIM/DMA/stm32f10x_conf.h Library Configuration file - TIM/DMA/stm32f10x_it.c Interrupt handlers - TIM/DMA/stm32f10x_it.h Interrupt handlers header file - TIM/DMA/main.c Main program @par Hardware and Software environment - This example runs on STM32F10x Connectivity line, High-Density, Medium-Density and Low-Density Devices. - This example has been tested with STMicroelectronics STM3210C-EVAL (STM32F10x Connectivity line), STM3210E-EVAL (STM32F10x High-Density) and STM3210B-EVAL (STM32F10x Medium-Density) evaluation boards and can be easily tailored to any other supported device and development board. - STM3210E-EVAL, STM3210B-EVAL and STM3210C-EVAL Set-up - Connect the following pins to an oscilloscope to monitor the different waveforms: - TIM1 CH3 (PA.10) - TIM1 CH3N (PB.15) @par How to use it ? In order to make the program work, you must do the following: - Create a project and setup all project configuration - Add the required Library files: - stm32F10x_dma.c - stm32F10x_flash.c - stm32F10x_gpio.c - stm32F10x_rcc.c - stm32F10x_tim.c - system_stm32f10x.c (under Libraries\CMSIS\Core\CM3) - Edit stm32f10x.h file to select the device you are working on. @b Tip: You can tailor the provided project template to run this example, for more details please refer to "stm32f10x_stdperiph_lib_um.chm" user manual; select "Peripheral Examples" then follow the instructions provided in "How to proceed" section. - Link all compiled files and load your image into target memory - Run the example @note - Low-density devices are STM32F101xx and STM32F103xx microcontrollers where the Flash memory density ranges between 16 and 32 Kbytes. - Medium-density devices are STM32F101xx and STM32F103xx microcontrollers where the Flash memory density ranges between 32 and 128 Kbytes. - High-density devices are STM32F101xx and STM32F103xx microcontrollers where the Flash memory density ranges between 256 and 512 Kbytes. - Connectivity line devices are STM32F105xx and STM32F107xx microcontrollers. *

© COPYRIGHT 2009 STMicroelectronics

*/

近期下载者

相关文件


收藏者