| Universal Serial Bus (USB) is a computer communications bus interface standard. The paper aims at designing a USB interface microcontrol based on ADuC812 by the advantage of USB, such as high-speed, plug&play (PNP) and power supply, etc. This microcontrol is powered by USB bus and has merits of convenience handle and flexible application, it will get great application in the wild, and apply to factorys and enterprises.The specific points of the paper include three parts, which are software and hardware designing in data acquisition and PID control, USB interface design and application program of computer. In this paper the technology of data acquisition and computer control is first introduced briefly, second the key content about USB bus is particularize, presents its electric character, the model of data stream and communication. Based on the above presentation, the microcontrol scheme is put forward, which is made up of ADuC812 and USB bus interface technology. In this paper, we used two USB interface chips to realize two microcontrols, which are PDIUSBD12 for USB1.1 interface and ISP1581 for USB2.0 interface. The paper detailedly describes the design of every part of hardware circuit, the software program flow. Finally the debugging methods and the results of the hardware, software and system are presented. In addition, Visual C++ is used for designing program of communicating between single-chip microcomputer and PC.The microcontrol has high accuracy, which is owed to the high sampling and low noise 12-bit A/D and D/A are integrated in ADuC812. And ADuC812 decreases the designing complexity, enhances the stability and lessens the volume.The microcontrol has been completed the design, the manufacture and the debugging of the hardware and software, and its performance is stable and reliable. The results show that the microcontrol can realize eight channels data acquisition and two channels PID control output. The sample speed can reach 150kHz, the data transmission speed can reach 52kbps of USB 1.1 microcontrol and lOOkbps of USB2.0 microcontrol, and it has strong practicability. So it can apply to factories and enterprises. The study is to design a new type of microcontrol with the technology all above, which has new characters of high function-price-ratio, powerful function, low power supply and easily using. |