This section introduces the basic knowledge of STM32 ADC, including the features of STM32 ADC, the conversion modes of STM32 ADC and the channel groups of STM32 ADC
The guide introduces the DS18B20 digital temperature sensor, its one‑wire interface, operating voltage, temperature range (‑55 °C to +125 °C) and accuracy. It shows how to wire the sensor to the STM32F103RBT6 MCU using the PA0 pin.
The software section provides source code for initializing the sensor, checking its presence, reading bits, bytes and temperature values, and displays the temperature on an LCD. Instructions for compiling, flashing the code, and testing the display are also included. This manual is written in Chinese.
| Temperature range | -55 °C to +125 °C |
|---|---|
| Operating voltage | 3 V – 5.5 V |
| Resolution | 9–12 bits |
| ROM serial number | 64‑bit unique ID |
| Temperature return range | -550 to 1250 (×0.1 °C) |
The DS18B20 works in the 3 V to 5.5 V voltage range.
DS18B20_Get_Temp returns a signed short where the value is ten times the temperature (‑550 to 1250).