A software design method is putted forward that is used of intelligent instrument in this paper. By using this method, it has successfully performed to design the software of the Digital Storage Scopemeter (DSS). The Scopemeter in this project is a handhold instrument, which can work absolutely, it is the new-style universal instrument and it synthesizes the functions of the Digital Storage Oscilloscope, Digital Multimeter. The DSS design in this project is the first one in this field in China, and reaches the international level at the end of 1990s as well.The software designed in this project is based on the microprocessor(singlechip W77LE58) that is used of management and control electrocircuit and signal collecting,data calculation,data storage,data communication and signal display. The singlechip itself integrated the CPU, memory, timer, counter, I/O and watchdog electrocircuit is especially applicable to portable instruments. The program which is required to be optimized so it is written by assemble language which can control the configure of the memory and the time of program processing strictly.The modularization method applied to this software is to divide the whole task into some small independent modules,and each one's I/O parameter has been clearly defined and separately accomplishes single intention .The whole task applied in this DDS's program is firstly decomposed "from top to bottom" to some certain modules and then the certain modules are programmed from the most smallest part by the "from bottom to top" method, after the completion of debugging the more small parts are programmed,and so on the top parts are in the end. |