The paper is mainly concerned with the design process of data acquisition system that is based on USB bus. The design scheme, developing method and developing process of a suit of data acquisition system used with America Cygnal's C8051F320 are expatiated. In addition, the paper also gives the material realization scheme.At first, the paper introduces the protocol of USB bus in brief, and then discusses the design of data acquisition system, which includes four segments, hardware design, firmware design, device driver and application program design. In hardware design segment, the performance of C8051F320 firstly is described; then the hardware design scheme is given in detail; the questions in design are explained, which should be paid attention to. The most important project is the firmware writing. The paper shows the idea of firmware program design and the hierarchy and then introduces the program design in detail and gives some code. In device driver segment the principle of choosing driver develop tools is explained, at last the structure and writing steps of device driver are discussed. The design of host application program is relatively simple. It mainly provides a friendly user interface to control the acquisition system and display the data. So there is not much content in the paper.The paper has finished the design of data acquisition system based on USB bus and realized the basal data acquisition foundation. Using USB bus to transfer data blazed a way in communication between data acquisition system and computer. |