As the development of USB technology, the excellent transporting characteristics and facility of USB greatly enhance its applications in PC peripherals.USB interface has become one of the standard configurations of today's PC. If applicable in distance, USB implementation in instruments has become practical and possible in technic..This paper implements a kind of peripheral based on a voltage monitor by embedding a USB controller-PDIUSBDll after studying a lot of USB protocols and technic . At the PC-end, USB device driver is designed according to WDM driver conventions recommended by Microsoft Corporation. The read and write functions are programmed using DLL technics to simplify the operation of device. Finally, an application to communicate with the device is designed in Visual Basic by calling the read and write functions exported in DLL. Additionally, this paper analyzed the Win32 Driver Model in details and studied the driver design technic .
|