| USB data transfers and network communication are important part and have been widely applied in an embedded system to it. The paper designed USB interface and Ethernet interface for an embedded system and discusses its realization.The system mainly includes modules of CPU, power, debugging, extended memory and USB transportation. CPU module is designed by chose of Moto's MC9328, which is composed of reset circuit, clock circuit and JTAG interface. USB interface is designed by chose of Philips's ISP1581, which completely accords with USB2.0 protocol. Ethernet interface is designed by chose of Devicom's dm9000, which is 10/100M PHY. Normal MCU mode was adopted in the connection between MC9328 and ISP1581, and the interrupt mode was used in data exchange.Program was designed under linux system, which includes USB firmware design , Ethernet driver and test examples. USB firmware design mainly includes interrupt, initialization and protocol handle software. USB firmware realized enum process and acquired device descriptors. Ethernet driver includes register of reading and writing, interrupt service and data packets transmit and receive. Server and client program were tested by Ethernet driver performance.When debugging the USB program, data packet is acquired by BUSHOUND. And when debugging Ethernet program, data packets is acquired by linux system TCPDUMP. The paper completed the program design of USB and Ethernet based on MC9328, and realized data exchange. |