In the system control software, after the main program completes the system initialization, its keyboard input, temperature measurement, heating part control, time determination and display, control algorithm, etc. are all completed by subprograms, and the interrupt service program carries out timed temperature measurement and reading time. The main program flow chart is shown in the figure below. When starting the system, the system program will initialize the system. When the system is initialized, enter the temperature setting. If you do not need to set the temperature, you can directly enter the temperature conversion link. If you need to set the temperature, you can enter the required set temperature. The system program will start DS18B20 to read the temperature. The program will judge the external environment temperature by judging whether it can read back the temperature value Whether it is normal or not means that the external temperature has exceeded the normal temperature range of the temperature sensor, and the system will inform the operator through the display. After reading the temperature value, the system program will scale the temperature value and then display it. If temperature control is required, the system program will call the temperature control subroutine (as shown in the figure below). If temperature control is not required, the program will directly enter the next link. Then the communication subroutine is called to return the set temperature link and loop accordingly.<br>
正在翻译中..