DHT11
所属分类:单片机开发
开发工具:C/C++
文件大小:7249KB
下载次数:18
上传日期:2014-03-27 10:48:19
上 传 者:
稻影昙志
说明: STM32单片机实现DHT11采集温度湿度,并用LCD显示
(STM32 MCU DHT11 collecting temperature and humidity)
文件列表:
DHT11\Libraries\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h (530622, 2012-05-02)
DHT11\Libraries\CMSIS\Device\ST\STM32F4xx\Include\system_stm32f4xx.h (2096, 2012-05-02)
DHT11\Libraries\CMSIS\Device\ST\STM32F4xx\Release_Notes.html (17827, 2012-05-02)
DHT11\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\arm\startup_stm32f4xx.s (29511, 2012-05-02)
DHT11\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\gcc_ride7\startup_stm32f4xx.s (23970, 2012-05-02)
DHT11\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\iar\startup_stm32f4xx.s (24546, 2012-05-02)
DHT11\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\system_stm32f4xx.c (21726, 2012-07-18)
DHT11\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\TASKING\cstart_thumb2.asm (3672, 2012-05-02)
DHT11\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\TrueSTUDIO\startup_stm32f4xx.s (24040, 2012-05-02)
DHT11\Libraries\CMSIS\Include\arm_common_tables.h (1120, 2012-05-02)
DHT11\Libraries\CMSIS\Include\arm_math.h (240326, 2012-05-02)
DHT11\Libraries\CMSIS\Include\core_cm0.h (31948, 2012-05-02)
DHT11\Libraries\CMSIS\Include\core_cm3.h (69722, 2012-05-02)
DHT11\Libraries\CMSIS\Include\core_cm4.h (79281, 2012-05-02)
DHT11\Libraries\CMSIS\Include\core_cm4_simd.h (23979, 2012-05-02)
DHT11\Libraries\CMSIS\Include\core_cmFunc.h (15691, 2012-05-02)
DHT11\Libraries\CMSIS\Include\core_cmInstr.h (16108, 2012-05-02)
DHT11\Libraries\STM32F4xx_StdPeriph_Driver\inc\misc.h (6792, 2012-05-02)
DHT11\Libraries\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_adc.h (32417, 2012-05-02)
DHT11\Libraries\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_can.h (27186, 2012-05-02)
DHT11\Libraries\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_crc.h (2284, 2012-05-02)
DHT11\Libraries\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_cryp.h (12528, 2012-05-02)
DHT11\Libraries\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_dac.h (14814, 2012-05-02)
DHT11\Libraries\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_dbgmcu.h (4164, 2012-05-02)
DHT11\Libraries\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_dcmi.h (12845, 2012-05-02)
DHT11\Libraries\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_dma.h (28750, 2012-05-02)
DHT11\Libraries\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_exti.h (7880, 2012-05-02)
DHT11\Libraries\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_flash.h (14463, 2012-05-02)
DHT11\Libraries\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_fsmc.h (27044, 2012-05-02)
DHT11\Libraries\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_gpio.h (17569, 2012-05-02)
DHT11\Libraries\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_hash.h (8952, 2012-05-02)
DHT11\Libraries\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_i2c.h (31516, 2012-05-02)
DHT11\Libraries\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_iwdg.h (4191, 2012-05-02)
DHT11\Libraries\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_pwr.h (6022, 2012-05-02)
DHT11\Libraries\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_rcc.h (24742, 2012-05-02)
DHT11\Libraries\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_rng.h (3826, 2012-05-02)
DHT11\Libraries\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_rtc.h (40414, 2012-05-02)
DHT11\Libraries\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_sdio.h (22645, 2012-05-02)
DHT11\Libraries\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_spi.h (20649, 2012-05-02)
DHT11\Libraries\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_syscfg.h (7096, 2012-05-02)
... ...
/**
@page GPIO_IOToggle GPIO IO Toggle example
@verbatim
******************** (C) COPYRIGHT 2011 STMicroelectronics *******************
* @file GPIO/IOToggle/readme.txt
* @author MCD Application Team
* @version V1.0.0
* @date 18-April-2011
* @brief Description of the GPIO IO Toggle 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
GPIO ports are connected on AHB bus, using BSRRH and BSRRL registers one cycle is
required to set a pin and another cycle to reset it. So GPIO pins can toggle at
AHB clock divided by 2.
This example describes how to use BSRRH and BSRRL (Port Bit Set/Reset Register
High and Low) for maximum IO toggling.
PG6 and PG8 (configured in output pushpull mode) toggles in a forever loop:
- Set PG6 and PG8 by setting corresponding bits in BSRRL register
- Reset PG6 and PG8 by setting corresponding bits in BSRRH register
In this example, HCLK is configured at 120 MHz so PG6 and PG8 toggles at 60MHz.
To achieve the maximum IO toggling frequency, you have to configure your compiler
options for high speed optimization.
@par Directory contents
- GPIO/IOToggle/stm32f2xx_conf.h Library Configuration file
- GPIO/IOToggle/stm32f2xx_it.c Interrupt handlers
- GPIO/IOToggle/stm32f2xx_it.h Interrupt handlers header file
- GPIO/IOToggle/main.c Main program
- GPIO/IOToggle/system_stm32f2xx.c STM32F2xx system source file
@note The "system_stm32f2xx.c" is generated by an automatic clock configuration
tool and can be easily customized to your own configuration.
To select different clock setup, use the "STM32F2xx_Clock_Configuration_V1.0.0.xls" tool.
@par Hardware and Software environment
- This example runs on STM32F2xx Devices.
- This example has been tested with STM322xG-EVAL RevB and can be easily tailored
to any other development board
- STM322xG-EVAL Set-up
- Use LED1 and LED2 connected respectively to PG.06 and PG.08
@par How to use it ?
In order to make the program work, you must do the following :
- Copy all source files from this example folder to the template folder under
Project\STM32F2xx_StdPeriph_Template
- Open your preferred toolchain
- Rebuild all files and load your image into target memory
- Run the example
*
© COPYRIGHT 2011 STMicroelectronics
*/
近期下载者:
相关文件:
收藏者: