Introduction - If you have any usage issues, please Google them yourself
DS18B20 digital temperature sensor test program
1, program instructions:
This routine demonstrates the P3.5 port on the microcontroller DS18B20 digital temperature sensor test experiment.
And display the current temperature on the digital tube.
2, experimental operation
The dial switch SMG S10 end of the ON to the side, indicating that the end is connected.
The dial switch TDQ S10 end of the ON to the side, indicating that the end is connected.
At the same time, the other end of the dial switch is in a disconnected state, that is, the switch is not transferred to the ON terminal.
Otherwise, it will affect the experimental results.
After the program is downloaded to the development board can be observed in the digital tube display the current temperature.