The digital spectrum analyzer is used to measure the spectral characteristics of the various electrical signals in consumer electronics, semiconductor manufacturing, defense and aerospace. In this paper, a solution based on the embedded systems is provided, Real time multitask managing advantages of Windows CE operating system is used to complete machine control and measurement of the digital spectrum analyzer.According to the spectrum analyzer’s application requirements—to facilitate the core control system hardware and software upgrades, and to shorter development cycles and reduce development costs, the design develops a reasonably stable, efficient and economical hardware and software systems. In hardware systems, the design uses hardware system architecture of embedded core system board, functional processor board and system peripherals interface board. In software system, the design firstly completes parts of the device drivers according to the platform needing, additionally takes full advantages of hi-efficient resource management ability of Windows operating system, traditional Windows programming style, OOP techniques and various Win32API interface function to improve code reusability and scalability.The article also focuses on programming ideas and key technologies in the digital spectrum analyzer embedded system software development. The program design inherits the Windows environment programming methods to achieve the effective management of resources and memory resources. Windows CE accesses to peripheral devices or external storage unit according virtual address mapping. By the spectrum data transfer mechanism, the design complete the orderly reading the FPGA FIFO logic buffer unit in real time. In view of the complexity and diversity of measurement, the design takes full advantage of multi-thread mechanism to read real-time spectral data and plot spectral traces. The design finally satisfies controlling requirements of the digital spectrum analyzer. |