| The control system of family computer embroider machine mostly adopts a single slice microprocessor, expanding to save more pattern data through external system memory.Because of the fast development of the computer technology and with the improvement of USB standard itself, the customer has the request for the function of family computer embroider machine, such as USB communication.Considering the function request of computer embroider machine, the paper introduces the developing method of USB interface that is composed with Atmel's AT89C55WD and Qinheng's CH375, which supports USB device mode and USB host mode.The paper introduces the protocol of USB simply at first ,and then illustrates hardware design of USB interface of computer embroider machine, Single-Chip computer soft programming and developing device driver. Firstly, the performance of CH375 is described, and then the USB interface computer embroider machine of hardware scheme is given in detail. Secondly, Single-Chip computer system soft design under host and slave mode of CH375 is introduced, and the paper shows the flow chart, the program design in detail and some codes. Finally, the paper introduces the structure of the WDM and some definition in developing device driver, and then illustrates how to develop USB driver using DDK specifically. Furthermore, the paper introduces the design and the function of supervision software simply. |