基本信息
源码名称:DS18B20数字温度传感器,LED输出显示
源码大小:2.89M
文件格式:.zip
开发语言:C/C++
更新时间:2021-07-12
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300

本次赞助数额为: 2 元 
   源码介绍
DS18B20数字温度传感器的使用.学习DS18B20数字温度传感器的使用,LED屏显示

u8 DS18B20_Init(void)
{
  GPIO_InitTypeDef  GPIO_InitStructure;
 
  RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOC, ENABLE); //使能PORTA口时钟 

  GPIO_InitStructure.GPIO_Pin = GPIO_Pin_1; //PORTA0 推挽输出
  GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;   
  GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
  GPIO_Init(GPIOA, &GPIO_InitStructure);

  GPIO_SetBits(GPIOC,GPIO_Pin_1);    //输出1

DS18B20_Rst();

return DS18B20_Check();
}  
//从ds18b20得到温度值
//精度:0.1C

//返回值:温度值 (-550~1250) 


【文件目录】

ALIENTEK MINISTM32  DS18B20数字温度传感器

├── CORE
│   ├── core_cm3.c
│   ├── core_cm3.h
│   ├── startup_stm32f10x_hd.s
│   └── startup_stm32f10x_md.s
├── HARDWARE
│   ├── DS18B20
│   │   ├── ds18b20.c
│   │   └── ds18b20.h
│   ├── LCD
│   │   ├── FONT.H
│   │   ├── lcd.c
│   │   └── lcd.h
│   └── LED
│       ├── led.c
│       └── led.h
├── OBJ
│   ├── DS18B20.axf
│   ├── DS18B20.build_log.htm
│   ├── DS18B20.hex
│   ├── DS18B20.htm
│   ├── DS18B20.lnp
│   ├── DS18B20.sct
│   ├── DS18B20_Target 1.dep
│   ├── core_cm3.crf
│   ├── core_cm3.d
│   ├── core_cm3.o
│   ├── delay.crf
│   ├── delay.d
│   ├── delay.o
│   ├── ds18b20.crf
│   ├── ds18b20.d
│   ├── ds18b20.o
│   ├── lcd.crf
│   ├── lcd.d
│   ├── lcd.o
│   ├── led.crf
│   ├── led.d
│   ├── led.o
│   ├── main.crf
│   ├── main.d
│   ├── main.o
│   ├── misc.crf
│   ├── misc.d
│   ├── misc.o
│   ├── startup_stm32f10x_hd.d
│   ├── startup_stm32f10x_hd.o
│   ├── stm32f10x_gpio.crf
│   ├── stm32f10x_gpio.d
│   ├── stm32f10x_gpio.o
│   ├── stm32f10x_it.crf
│   ├── stm32f10x_it.d
│   ├── stm32f10x_it.o
│   ├── stm32f10x_rcc.crf
│   ├── stm32f10x_rcc.d
│   ├── stm32f10x_rcc.o
│   ├── stm32f10x_usart.crf
│   ├── stm32f10x_usart.d
│   ├── stm32f10x_usart.o
│   ├── sys.crf
│   ├── sys.d
│   ├── sys.o
│   ├── system_stm32f10x.crf
│   ├── system_stm32f10x.d
│   ├── system_stm32f10x.o
│   ├── usart.crf
│   ├── usart.d
│   └── usart.o
├── README.TXT
├── STM32F10x_FWLib
│   ├── inc
│   │   ├── misc.h
│   │   ├── stm32f10x_adc.h
│   │   ├── stm32f10x_bkp.h
│   │   ├── stm32f10x_can.h
│   │   ├── stm32f10x_cec.h
│   │   ├── stm32f10x_crc.h
│   │   ├── stm32f10x_dac.h
│   │   ├── stm32f10x_dbgmcu.h
│   │   ├── stm32f10x_dma.h
│   │   ├── stm32f10x_exti.h
│   │   ├── stm32f10x_flash.h
│   │   ├── stm32f10x_fsmc.h
│   │   ├── stm32f10x_gpio.h
│   │   ├── stm32f10x_i2c.h
│   │   ├── stm32f10x_iwdg.h
│   │   ├── stm32f10x_pwr.h
│   │   ├── stm32f10x_rcc.h
│   │   ├── stm32f10x_rtc.h
│   │   ├── stm32f10x_sdio.h
│   │   ├── stm32f10x_spi.h
│   │   ├── stm32f10x_tim.h
│   │   ├── stm32f10x_usart.h
│   │   └── stm32f10x_wwdg.h
│   └── src
│       ├── misc.c
│       ├── stm32f10x_adc.c
│       ├── stm32f10x_bkp.c
│       ├── stm32f10x_can.c
│       ├── stm32f10x_cec.c
│       ├── stm32f10x_crc.c
│       ├── stm32f10x_dac.c
│       ├── stm32f10x_dbgmcu.c
│       ├── stm32f10x_dma.c
│       ├── stm32f10x_exti.c
│       ├── stm32f10x_flash.c
│       ├── stm32f10x_fsmc.c
│       ├── stm32f10x_gpio.c
│       ├── stm32f10x_i2c.c
│       ├── stm32f10x_iwdg.c
│       ├── stm32f10x_pwr.c
│       ├── stm32f10x_rcc.c
│       ├── stm32f10x_rtc.c
│       ├── stm32f10x_sdio.c
│       ├── stm32f10x_spi.c
│       ├── stm32f10x_tim.c
│       ├── stm32f10x_usart.c
│       └── stm32f10x_wwdg.c
├── SYSTEM
│   ├── delay
│   │   ├── delay.c
│   │   └── delay.h
│   ├── sys
│   │   ├── sys.c
│   │   └── sys.h
│   └── usart
│       ├── usart.c
│       └── usart.h
├── USER
│   ├── DS18B20.map
│   ├── DS18B20.uvguix.Administrator
│   ├── DS18B20.uvoptx
│   ├── DS18B20.uvprojx
│   ├── JLinkSettings.ini
│   ├── main.c
│   ├── startup_stm32f10x_hd.lst
│   ├── stm32f10x.h
│   ├── stm32f10x_conf.h
│   ├── stm32f10x_it.c
│   ├── stm32f10x_it.h
│   ├── system_stm32f10x.c
│   └── system_stm32f10x.h
└── keilkilll.bat

14 directories, 129 files