Design of Embedded USB Host System Based on PIC32

1 application field background

With the continuous development of automation technology, a variety of embedded controllers have been increasingly used. Some traditional input and output devices have been replaced by new high-capacity, intelligent input and output devices. U disk has become the latest mobile storage device with its many advantages, such as large capacity, small size and low price. Currently, USB flash drives have replaced traditional floppy disks as widely used mobile storage media on personal computers.

Industrial sites generally require data collectors to perform various data collection tasks. In many practical applications, data collectors are often required to have reliable operation, low cost, simple operation, easy data collection and computer analysis. If the USB host function can be implemented in the embedded data acquisition system, the embedded data collector can use the USB storage device such as the USB flash drive to store data as easily and flexibly as the PC. But the USB flash drive is the same as other USB devices. It is connected to the data bus inside the PC through the PCI bus to realize data transmission, so that the operation of the U disk cannot be realized in some relatively simple microcontrollers. The module implemented in this design is designed to apply the U disk to a place where the PC is not suitable.

2 Design Summary

In view of the limitations of the U disk can not be used away from the PC, many embedded systems in the industrial field do not provide USB interface and file system operation functions. This module uses the PIC32 Starter Kits II to implement the operation of the existing embedded system on the U disk through the RS232 interface. Including the writing, reading of data files and the creation and deletion of file directories.

3 system block diagram

The system hardware mainly includes PIC32 Starter KitsII as the central controller, USB devices such as U disk as the data storage device, and embedded devices as some industrial control devices. Its system block diagram is shown in Figure 3-1.

Figure 3-1 System architecture diagram

Figure 3-1 System architecture diagram

The workflow of the system software is shown in Figure 3-2. It can perform various specified operations, such as opening, creating, deleting files, and so on. USB interface system PIC32 Starter KitsII is the core of the whole system, used to control the USB bus interface and U disk for command and data exchange. It can be seen as a combination of hardware, firmware and software.

Figure 3-2 Work flow chart

Figure 3-2 Work flow chart

48v15Ah Lithium Ion Battery

48V15Ah Lithium Ion Battery,48V15Ah Lithium Battery Pack,Li-Ion 48V15Ah Lithium Battery Pack,Echargeable Lithium Battery Pack 48V

Jiangsu Zhitai New Energy Technology Co.,Ltd , https://www.zhitainewenergy.com