Welcome to HPMug2oMmNrOfxWQHLiEksa6s0hFu9Ox348d7QefarYlaFR5ArkhOwm3Da1pmxmxCtenj1+6luWD#r#n+EPn9L6Ce+9onqnMlT+i! Today is

HPMug2oMmNrOfxWQHLiEksa6s0hFu9Ox348d7QefarYlaFR5ArkhOwm3Da1pmxmxCtenj1+6luWD#r#n+EPn9L6Ce+9onqnMlT+i ›› 2026, Vol. 42 ›› Issue (1): 62-.DOI: 10.3969/j.issn.1009-0479.2026.01.008

Previous Articles     Next Articles

Modular Programming Design for Single‑Bus Multi‑Channel Temperature Measurement and Control System

  

  1. (1. Faculty of Electrical and Mechanical Engineering, Kunming Metallurgy College, Kunming 650033, China; 2. Science and Technology Research Institute of Kunming Railway Bureau, Kunming 650011, China)
  • Online:2026-02-11 Published:2026-06-04

Abstract:  The programming methods for microcontrollers can be divided into linear programming and modular programming. Linear programming is a more traditional approach characterized by simple program structure and a strong focus on procedural flow. However, it often results in a bloated main program, disorganized functional logic, and poor readability and maintainability of the code. Modular programming emphasizes functional independence and modular invocation, featuring clear program structure as well as improved code maintainability and reusability. In multi-channel temperature control system based on MCU, modular programming can be applied to functional modules such as temperature detection, temperature display, and time-delay operations. This approach ensures that each functional module maintains its operational independence while retaining connectivity with other functions, thereby resulting in a more systematic and rational program design.

Key words: microcontroller, modularprogramming, multichanneltemperaturecontr

CLC Number: