资源简介
STM32F746G eclipse环境 通过分析PWM 读取传感器TMP05的占空比 并计算温度值 将温度值实时显示在LCD屏幕上
代码片段和文件信息
/**
******************************************************************************
* @file LTDC/LTDC_Display_1layer/Src/main.c
* @author MCD Application Team
* @version V1.0.0
* @date 25-June-2015
* @brief This example provides a description of how to configure LTDC peripheral
* to display BMP image on LCD using only one layer.
******************************************************************************
* @attention
*
* © COPYRIGHT(c) 2015 STMicroelectronics
*
* Redistribution and use in source and binary forms with or without modification
* are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. Neither the name of STMicroelectronics nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS“
* AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL
* DAMAGES (INCLUDING BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
******************************************************************************
*/
/* Includes ------------------------------------------------------------------*/
#include “main.h“
#include “stm32f7xx_hal.h“
#include “math.h“
#define max(ab) ( ((a)>(b)) ? (a):(b) )
#define min(ab) ( ((a)>(b)) ? (b):(a) )
#define MASK_R 0xFF
#define MASK_G 0xFF00
#define MASK_B 0xFF0000
/* Timer handler declaration */
TIM_HandleTypeDef TimHandle;
/* Timer Input Capture Configuration Structure declaration */
TIM_IC_InitTypeDef sConfig;
/* Slave configuration structure */
TIM_SlaveConfigTypeDef sSlaveConfig;
/* Captured Value */
__IO uint32_t uwIC1Value = 0;
__IO uint32_t uwIC2Value = 0;
/* The lowest TEMP Value */
uint32_t Low_Temp = 50000;
/* The highest TEMP Value */
uint32_t High_Temp = 0;
/* High TO low percentage Value */
__IO float per_HL = 0;
/* TEMP Value */
__IO float
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 44070 2017-12-07 15:56 heh\.cproject
文件 812 2017-08-07 15:26 heh\.project
文件 2190 2018-03-13 16:51 heh\.settings\language.settings.xm
文件 1281 2017-08-07 15:27 heh\.settings\org.eclipse.cdt.core.prefs
文件 59 2017-12-11 18:58 heh\.settings\org.eclipse.core.resources.prefs
文件 1193400 2017-08-07 15:26 heh\Debug\Camera_Test.elf
文件 1229340 2018-03-16 09:50 heh\Debug\heh.elf
文件 111873 2018-03-16 09:50 heh\Debug\heh.hex
文件 1276278 2018-03-16 09:50 heh\Debug\heh.map
文件 2987 2018-03-16 09:50 heh\Debug\makefile
文件 239 2018-03-15 17:13 heh\Debug\ob
文件 1031 2018-03-16 09:50 heh\Debug\sources.mk
文件 5373 2018-03-16 09:50 heh\Debug\src\main.d
文件 939964 2018-03-16 09:50 heh\Debug\src\main.o
文件 5399 2018-03-15 17:13 heh\Debug\src\stm32f7xx_hal_msp.d
文件 915528 2018-03-15 17:13 heh\Debug\src\stm32f7xx_hal_msp.o
文件 5449 2018-03-15 17:14 heh\Debug\src\stm32f7xx_it.d
文件 912512 2018-03-15 17:14 heh\Debug\src\stm32f7xx_it.o
文件 1206 2018-03-16 09:50 heh\Debug\src\subdir.mk
文件 311 2017-12-07 17:04 heh\Debug\system\include\Components\exc7200\exc7200.d
文件 27404 2017-12-07 17:04 heh\Debug\system\include\Components\exc7200\exc7200.o
文件 1210 2018-03-16 09:50 heh\Debug\system\include\Components\exc7200\subdir.mk
文件 301 2017-12-07 17:04 heh\Debug\system\include\Components\ft5336\ft5336.d
文件 43844 2017-12-07 17:04 heh\Debug\system\include\Components\ft5336\ft5336.o
文件 1202 2018-03-16 09:50 heh\Debug\system\include\Components\ft5336\subdir.mk
文件 607 2017-12-07 17:04 heh\Debug\system\include\Components\mfxstm32l152\mfxstm32l152.d
文件 90116 2017-12-07 17:04 heh\Debug\system\include\Components\mfxstm32l152\mfxstm32l152.o
文件 1250 2018-03-16 09:50 heh\Debug\system\include\Components\mfxstm32l152\subdir.mk
文件 309 2017-12-07 17:04 heh\Debug\system\include\Components\ov9655\ov9655.d
文件 35992 2017-12-07 17:04 heh\Debug\system\include\Components\ov9655\ov9655.o
............此处省略507个文件信息
- 上一篇:webmax2.0软件
- 下一篇:02324离散数学真题+复习资料
相关资源
- STM32F412使用TIM1输出互补的PWM
- STM32 CubeMX输入捕获测量PWM的频率和占
- PMSM SVPWM 矢量控制各种模型最全
- ESP8266的简单PWM呼吸灯程序
- PWM整流器及其控制_12997442.pdf
- LWIP-freertos.rarSTM32F7芯片,lwip实现热插
- 电压型PWM整流器的非线性控制王久和
- STM32F7XX全系列原理图封装库
- PWM整流器设计
- 异步电动机SVPWM矢量控制变频器系统设
- STM32数控直流电源
- pspice仿真三相桥式PWM逆变电路(完美
- STM32F767 ADC DMA
- stm32f4麦克纳姆轮+机械臂多路pwm控制代
- PWM整流器及其控制 高清 电子书 pdf
- PWM整流器及其控制张兴2012.part1.rar
- STM32F7等精度测量频率程序
- L298N控制遥控小车
- STM32F103SPWM
- STM32F767移植W5500官网程序
- Keil.STM32F7xx_DFP.2.12.0.rar
- N76E003单片机PWM程序边沿对齐,独立输
- MC9S12XS128控制180°舵机程序
- keil_STM32F7系列芯片支持包.rar
- STM32F1、F4电机PWM调速及PID速度闭环控
- PWM整流器及其控制 [张兴,张崇巍编著
- 正弦波脉宽调制SPWM控制法
- STC89C52 pwm控制LED亮度等级汇编
- STM32的PWM程序,亲测可用
- 基于STM32室内温度报警控制系统设计报
评论
共有 条评论