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 subroutines. The interrupt service program carries out timed temperature measurement and reading time.The main program flow chart is shown in the following figure.At startup system, the system program will be initialized to the system operation, when the system initialization is completed, enter the temperature setting, if you don't need to set temperature, can be directly into the temperature conversion, such as the need to set temperature, can enter the required set temperature, the system program on DS18B20 read the temperature, temperature program by judging can be read back to determine whether the environment temperature is normal, abnormal means that the outside temperature is more than the normal work of the temperature sensor of temperature range, the system will be informed by displaying the operating personnel.When the temperature value is read, the system program will scale the temperature value, and then display.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 go directly to the next step.Then call the communication subroutine, return the setting temperature link, according to this loop.
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 subroutines. The interrupt service program carries out timed temperature measurement and reading time.The main program flow chart is shown in the following figure.At startup system, the system program will be initialized to the system operation, when the system initialization is completed, enter the temperature setting, if you don't need to set temperature, can be directly into the temperature conversion, such as the need to set temperature, can enter the required set temperature, the system program on DS18B20 read the temperature, temperature program by judging can be read back to determine whether the environment temperature is normal, abnormal means that the outside temperature is more than the normal work of the temperature sensor of temperature range, the system will be informed by displaying the operating personnel.When the temperature value is read, the system program will scale the temperature value, and then display.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 go directly to the next step.Then call the communication subroutine, return the setting temperature link, according to this loop.
正在翻译中..