资源简介
stm8s103单片机+ds18b20温度传感器,IAR集成开发环境,函数库源代码,内含OLED显示驱动,DS18B20驱动,实际工程,绝对能够运行。

代码片段和文件信息
# include “stm8s.h“
# include “oled.h“
# include “ds18b20.h“
# include “stdio.h“
#include “stdlib.h“
void CLK_Configuration(void)
{
//预分频,分频系数1
CLK_DeInit();
CLK_HSIPrescalerConfig(CLK_PRESCALER_HSIDIV1);
CLK_HSICmd(ENABLE);
}
//char str[4];
void main(void)
{
unsigned int temp;
CLK_Configuration();
OLED_Init();
OLED_Clear();
Init_DS18B20();
OLED_ShowString(01“TEMP:“16);
while(1)
{
temp = Read_DS18B20();
OLED_ShowNum(451temp/10416);
OLED_ShowChar(801‘.‘16);
OLED_ShowNum(881temp%10116);
delay_ms(1000);
}
}
#ifdef USE_FULL_ASSERT
void assert_failed(u8* file u32 line)
{
while (1)
{
}
}
#endif
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-03-01 00:39 temp\
目录 0 2019-03-01 00:29 temp\BSP\
文件 422 2019-02-28 22:46 temp\BSP\delay.c
文件 140 2019-02-28 22:40 temp\BSP\delay.h
文件 4533 2019-02-28 22:40 temp\BSP\ds18b20.c
文件 1163 2019-02-28 23:09 temp\BSP\ds18b20.h
文件 8621 2019-02-28 23:21 temp\BSP\oled.c
文件 2621 2019-02-28 21:52 temp\BSP\oled.h
文件 15257 2014-10-26 23:37 temp\BSP\oledfont.h
目录 0 2019-03-01 00:37 temp\Debug\
目录 0 2019-03-01 00:39 temp\Debug\Exe\
文件 67700 2019-03-01 00:39 temp\Debug\Exe\temp.out
目录 0 2019-03-01 00:41 temp\Debug\List\
目录 0 2019-03-01 00:39 temp\Debug\Obj\
文件 5796 2019-03-01 00:39 temp\Debug\Obj\delay.o
文件 303719 2019-03-01 00:39 temp\Debug\Obj\delay.pbi
文件 10303 2019-03-01 00:39 temp\Debug\Obj\delay.pbi.cout
文件 15225 2019-03-01 00:39 temp\Debug\Obj\ds18b20.o
文件 309919 2019-03-01 00:39 temp\Debug\Obj\ds18b20.pbi
文件 10305 2019-03-01 00:39 temp\Debug\Obj\ds18b20.pbi.cout
文件 8609 2019-03-01 00:39 temp\Debug\Obj\main.o
文件 353028 2019-03-01 00:39 temp\Debug\Obj\main.pbi
文件 10298 2019-03-01 00:39 temp\Debug\Obj\main.pbi.cout
文件 51239 2019-03-01 00:39 temp\Debug\Obj\oled.o
文件 359661 2019-03-01 00:39 temp\Debug\Obj\oled.pbi
文件 10302 2019-03-01 00:39 temp\Debug\Obj\oled.pbi.cout
文件 52887 2019-03-01 00:39 temp\Debug\Obj\stm8s_clk.o
文件 324651 2019-03-01 00:39 temp\Debug\Obj\stm8s_clk.pbi
文件 10311 2019-03-01 00:39 temp\Debug\Obj\stm8s_clk.pbi.cout
文件 21088 2019-03-01 00:39 temp\Debug\Obj\stm8s_gpio.o
文件 308053 2019-03-01 00:39 temp\Debug\Obj\stm8s_gpio.pbi
............此处省略71个文件信息
- 上一篇:学生信息档案管理系统源代码
- 下一篇:仿微信登录界面
相关资源
- IAR FOR 430 破解工具
- IAR For ARM 7.3最新注册机
- IAR7.20H破解机注册机
- IAR ARM 7.8破解
- IAR 7.80.4的安装包
- IAR for MSP430 v7.10.1 注册机
- IAR-Keygen-2019+附使用教程.zip
- IAR 7.3 注册机
- IAR For ARM V5.5 注册机
- IAR for ARM 7.40 破解
- IAR For ARM 7.4 破解
- 单片机与温度传感器DS18B20的程序设计
- 毕业论文之温度传感器DS18B20(源码
- stm32 ds18b20 温度传感器 测试通过
- 51单片机读取温度数据存储到SD卡中并
- STM32F103 DS18B20 V3.5.0固件库驱动程序工
- DS18B20分布式多点测温的Proteus仿真
- 单片机 DS18B20 温度控制系统
- 课程设计蔬菜大棚自动控制系统,包
- STM8S SX1278 项目和源代码
- STM8S003 红外遥控
- STM8S例程,基于IAR下的STM8S例程
- 在IAR环境下,lpc1788用户程序的地址及
- IAR破解已验证可破解最新版本EWARM-C
- 最新IAR 6.3破解
- 基于STM8的HT1621B显示驱动程序
- ds18b20温度传感是什么传感器
- IAR 全系列软件注册机(20100615)
- IAR EW430连接仿真器在线仿真
- Synthesis and photophysical properties of star
评论
共有 条评论