资源简介
串口打印 温湿度 STM32,本人 亲自测试,有效,由于DHT11是单总线芯片,所以采用单总线数据格式,一次通讯时间4ms左右,所以它与STM32单片机连接时,只需用到三根线,分别是VCC、GND以及DATA,DATA用于单片机与DHT11之间的通讯和同步。
代码片段和文件信息
/**************************************************************************//**
* @file core_cm3.c
* @brief CMSIS Cortex-M3 Core Peripheral Access layer Source File
* @version V1.30
* @date 30. October 2009
*
* @note
* Copyright (C) 2009 ARM Limited. All rights reserved.
*
* @par
* ARM Limited (ARM) is supplying this software for use with Cortex-M
* processor based microcontrollers. This file can be freely distributed
* within development tools that are supporting such ARM based processors.
*
* @par
* THIS SOFTWARE IS PROVIDED “AS IS“. NO WARRANTIES WHETHER EXPRESS IMPLIED
* OR STATUTORY INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
* ARM SHALL NOT IN ANY CIRCUMSTANCES BE LIABLE FOR SPECIAL INCIDENTAL OR
* CONSEQUENTIAL DAMAGES FOR ANY REASON WHATSOEVER.
*
******************************************************************************/
#include
/* define compiler specific symbols */
#if defined ( __CC_ARM )
#define __ASM __asm /*!< asm keyword for ARM Compiler */
#define __INLINE __inline /*!< inline keyword for ARM Compiler */
#elif defined ( __ICCARM__ )
#define __ASM __asm /*!< asm keyword for IAR Compiler */
#define __INLINE inline /*!< inline keyword for IAR Compiler. Only avaiable in High optimization mode! */
#elif defined ( __GNUC__ )
#define __ASM __asm /*!< asm keyword for GNU Compiler */
#define __INLINE inline /*!< inline keyword for GNU Compiler */
#elif defined ( __TASKING__ )
#define __ASM __asm /*!< asm keyword for TASKING Compiler */
#define __INLINE inline /*!< inline keyword for TASKING Compiler */
#endif
/* ################### Compiler specific Intrinsics ########################### */
#if defined ( __CC_ARM ) /*------------------RealView Compiler -----------------*/
/* ARM armcc specific functions */
/**
* @brief Return the Process Stack Pointer
*
* @return ProcessStackPointer
*
* Return the actual process stack pointer
*/
__ASM uint32_t __get_PSP(void)
{
mrs r0 psp
bx lr
}
/**
* @brief Set the Process Stack Pointer
*
* @param topOfProcStack Process Stack Pointer
*
* Assign the value ProcessStackPointer to the MSP
* (process stack pointer) Cortex processor register
*/
__ASM void __set_PSP(uint32_t topOfProcStack)
{
msr psp r0
bx lr
}
/**
* @brief Return the Main Stack Pointer
*
* @return Main Stack Pointer
*
* Return the curren
相关资源
- fft算法1024
- AD7606驱动代码 stm32
- 基于STM32的倾斜仪程序具体设计在博客
- STM32F103C8T6-ADC例程
- STM32F103驱动DS18B20程序
- ADS1256 基于 RT-Thread 4.0.2 版本驱动程序
- 编译jepglib需要的Win32.Mak
- STM32 硬件IIC读取BH1750
- 32*64点阵LED显示屏单元板原理图
- Matrox Imaging Libray9.0 32位地址
- STM32控制LED灯
- LM324组成的电池电量指示电路
- STM32CubeF4固件包STM32Cube_FW_F4_V1.22.0
- STM32库函数代码自动生成器V1.2破解版
- CodeWarrior for S12(X) V5.1 特别版 破解
- Qt与stm32通信绘制波形
- TSC条码打印机Dll文件32位+64位
- INA226使用教程.docx
- STM32HAL库驱动SPILCD代码
- STM32F103RBT6系统原理图
- 使用STM32控制无源蜂鸣器发声播放音乐
- eclipse-jee-mars-2-win32-x86_64火星版本
- ST LIS3DH STM32 驱动参考代码
- RTSP 协议的中文版
- zw_20170327165343745.zip
- libjpeg lib文件
- openGL配置资源文件,含32/64位
- STM32的AD采集信号,并发送到串口
- STM32串口连续接收一帧数据
- VMware-ESXi-7.0.0-16324942-depot.zip
评论
共有 条评论