基于嵌入式ARM9的USB设计与实现
2010-05-13王平,施文灶,黄晞,江华丽
王 平,施文灶,黄 晞,江华丽
摘 要:从电路设计到程序调试,全方位地研究开发了一种基于嵌入式的通用USB接口。选用ARM9的S3C2440A芯片作为CPU,因为该芯片内部集成了控制USB的全部部件,所以只需附加简单的电源变换等外围电路即可完成硬件设计,再通过串口加载和调试USB的驱动程序,实现嵌入式终端的USB接口功能。测试表明,该接口可以稳定可靠地自动挂载U盘以及准确交换数据。采用基于S3C2440A芯片的USB接口方案具有外围电路简单和运行可靠的特点,从而提升了嵌入式终端的整体性能,为日后的应用提供了基础。
关键词:USB;嵌入式;ARM9;S3C2440A
中图分类号:TP319文献标识码:B
文章编号:1004-373X(2009)12-033-03
Design and Realization of USB Based on Embedded ARM9
WANG Ping,SHI Wenzao,HUANG Xi,JIANG Huali
(School of Physics and Optoelectronics Technology,Fujian Normal University,Fuzhou,350007,China)
Abstract:In embedded system,from circuit design to the process of debugging,research and development of a common USB interface.Taking S3C2440A of ARM9 chip as CPU,the chip because of the internal control integrated USB all parts,so only a simple additional power,and other external circuit to complete hardware design,and then through the serial port to load and debug the USB driver,the end of embedded USB interface function is achieved.The tests prove that this can be stable and reliable interface to automatically mount disk U,as well as the exchange of accurate data.Based on the USB interface chip of S3C2440A,it has a simple external circuit and reliable operation of the characteristics,thus enhancing the overall performance embedded terminal for the future provide a basis.
Keywords:USB;embedded;ARM9;S3C2440A
0 引 言
USB(Universal Serial Bus)是通用串行总线的缩写,因其具有方便易用,动态分配带宽,容错性优越和高性价比等特点,现已成为计算机的主流接口[1]。
随着嵌入式系统的广泛应用,各种小型终端需要开发出与外界联系的USB接口。目前,常用的技术有两种。基于单片机的USB接口,特点是需要外置芯片,电路复杂,留下的CPU资源不多[2];基于ARM的USB接口,特点是资源丰富,但ARM系列产品较多,如果选型不当,还需要搭接较多的外围电路,且不能很好地发挥CPU性能[3]。
该设计采用三星公司ARM9核的S3C2440A芯片作为CPU,因为该芯片内部集成了控制USB的所有部件,外围电路简单,易于实现[4]。
1 S3C2440A特点
S3C2440A的CPU部分主要集成了电源模块、复位和时钟模块、触摸屏和小键盘模块、程序存储器和数据存储器模块。同时提供如下丰富的外围接口:同步存储器(SDRAM)和NAND FLASH控制接口,可扩展到1 GB的……
