基于FPGA的CMOS图像传感器驱动电路设计
来源:保捱科技网
第32卷第1期 2015年2月 广东工业大学学报 Journal of Guangdong University of Technology Vo1.32 No.1 February 20l5 doi:10.3969/j.issn.1007—7162.2015.01.015 基于FPGA的CMOS图像传感器驱动电路设计 应小军,李瑜煜 (广东工业大学材料与能源学院,广东广州510006) 摘要:提出了一种基于现场可编程门阵列(Field Progammable Gata An-ay,FPGA)的图像实时采集和显示的驱动电路 设计方案.该方案采用了OmniVision公司的OV7670 CMOS图像传感器,选用Ahera公司Cyclone II系列 EP2C8Q208C8N作为逻辑控制芯片FPGA,构建了图像传感器驱动电路,并用Modelsim进行仿真验证.仿真结果表 明,系统能够很好地满足设计时序要求,并输出稳定的图像. 关键词:图像传感器;FPGA;I2C;CMOS图像传感器 中图分类号:TP212 文献标志码:A 文章编号:1007—7162(2015)01—0071—04 Design of Drive Circuit of CMOS Image Sensor Based on FPGA Ying Xiao-jun,Li Yu—yu (School of Materials and Energy,Guangdong University of Technology,Guangzhou 5 10006,China) Abstract:The paper proposes a project of drive circuit of real—time image capturing and displaying based on FPGA.The OmniVision S 0V7670 is chosen as CMOS image sensor,while Ahera S Cyclone II series EP2C8Q208C8N as the logic control chip.The drive circuit has been veriifed by Modelsim.The simula— tion results show that the system meets the requirements of timing and stable image output perfectly. Key words:image sensor;field progammable gata array(FPGA);I2 C;CMOS image sensor CMOS图像传感器是近些年发展较快的一种新 型图像传感器.与CCD相比,CMOS图像传感器具有 体积小、成本低、重量轻、功耗低、编程方便、易于控制 等优点.CMOS图像传感器已经广泛应用于各种通用 图像采集系统中.随着CMOS集成电路设计和工艺的 不断进步和完善,CMOS正在朝着高分辨率,高灵敏 度,低噪声,大动态范围,高智能化的方向不断发 展¨ .采用FPGA作为主控芯片,整个系统具有设计 方便、仿真简单和传送高速数据时有更小的高频噪 声干扰等优势_6_8_.因此,提出基于FPGA的CMOS 图1系统结构框图 Fig.1 Diagram of the circuit system structure 图像传感器实时采集和显示的设计方案,为图像检 测系统项目的研究提供了有价值的设计参考. 系统以Ahera公司的FPGA(现场可编程逻辑器 件)EP2C8Q208C8N作为逻辑控制器 J,利用I2C 1 系统结构 系统整体结构包括4部分:CMOS图像传感器 图像数据采集模块、FPGA逻辑控制模块、SRAM读 写模块及VGA显示模块.图1为系统结构框图. (Inter.Integrate Circuit)总线配置CMOS图像传感 器,采用两片SRAM(静态随机存储器)进行乒乓读 写.FPGA根据CMOS图像传感器输出的同步信号, 将CMOS图像传感器采集到的图像数据存储到其中 收稿日期:2013-09—27 基金项目:广东省省部产学研项目(2012B090400513) 作者简介:应小军(1989一),男,硕士研究生,主要研究方向为嵌入式及图像处理算法 第1期 (2):315-323. 田为刚,等:一类非线性不确定系统的输出跟踪控制 [1 1]Tong S C,Li Y M.Observer—based fuzzy adaptive control for stict—froedbaek nonlinear systems J J】.Fuzzy Sets and [9]高子林,王银河,石炳杰.基于自适应模糊逻辑系统的一 类非线性系统跟踪控制设计[J].广东工业大学学报, 2012,29(9):77—81. Gao Z L,Wang Y H,Shi B J.Design of tracking control for a class of nonlinear systems based on adaptive fuzzy logic Systems,2009,160(12):1749—1764. [12]王立新.模糊系统与模糊控制教程[M].北京:清华 大学出版社,2003. [13]王国俊.计算智能[M].2版.北京:高等教育出版社, 2005. systems[J].Journal of Guangdong University of Technolo— gY,2012,29(9):77—81. [14]Bart K.Fuzzy engineering[M].Upper Saddle River, USA:Prentice Hall,Inc.,1997. [10]Zhou Y H.Fuzzy indirect adaptive control using SVM— based multiple models for a class of nonlinear systems [15]Slotine J E,“W P.Applied Nonlinear Control[M].En- glewood Cliffs,NJ:Prentice Hall,Inc.,1991. [J].Neural Computing&Applications,2013,22(34): 825—833. …一…一~一…一…‘ (上接第65页) [14]赵国鸿,吴虎城.分布式总线仲裁器的设计[J].计算 机工程与科学,1998,20(02):11—14+70. Zhao G H,Wu H C.Design of the distributed bus arbiter 1atin square[J].Journal of Guangdong University of Technology,2011,28(1):62-67. [16]张宇华.基于可编程逻辑器件技术的基本模型机实验 [J].Computer Engineering&Science,1998,20(02):11- 14+70. 的设计与实现[J].广东工业大学学报:社会科学版, 2010,S1:49-51. [15]丹,郭大昌,王静.星图应用米哈尔顿拉丁方的并 行路由算法[J].广东工业大学学报,2011,28(1):62— 67. Zhang Y H.The design and implementation of the basic model machine based on complex programmable logic de— vice(CPLD)technology[J].Journal of Guangdong Uni— versity of Technology:Social Sciences Edition,2010,S1: 49-5】. Wang D D,Guo D C,Wang J.A parallel routing algorith— non star graph network employing the hamihonian circuit (上接第74页) [6]曾桂英,潘金艳.基于FPGA的CMOS图像传感器采集 系统设计[J].科学技术与工程,2010,10(3):692-695 Zeng G Y.Pan J Y.Design of the CMOS Sensor image ac— system based on CMOS image sensor『J].Modern Elec— tronic Technique,2012,35(14):178—181. [11]刘泽伟,解梅.基于FPGA的视频图像采集系统的设计 与实现[J].仪器与仪表学报,2008,29(4),382—385. Liu Z W,Xie M.A system design and realization for video quisition system based on FPGA[J].Science Technology and Engineering,2010,10(3):692-695. [7]谢磊.基于FPGA的VGA图像控制器的设计与实现 [J].新乡学院学报,2009,26(6):51-53. Xie L.Research and design of VGA display system based image acquirement based on FPGA[J].Chinese Journal of Scientiifc Instrument,2008,29(4),382—385. [12]OmniVision Technology Inc.OV7670/OV7171 CMOS VGA(640x480)CAMERACHIP with OmniPixel Tech— on FPGA[J].Journal of Xinxiang University,2009,26 (6):51—53. [8]侯舒志,姚素英,周津,等.CMOS图像传感器时序控制 nology[EB/OL].[2006-04-05].http:∥www.ovt.corn. [13]王晗,李翔,李忠敏,等.基于0V7670的图像采集与显 方法研究与实现[J].固体电子学研究与进展,2007,27 (1):119・122. Hou S Z,Yao S Y,Zhou J,et a1.Research andimplement— 示设计[J].中国科技信息,2013(11):90-91. Wang H,Li X,Li Z M,et a1.Image acquisition and dis— ation of timing control for CMOS image sensor IJ 1.Re— play design based on OV7670[J].China Science and Technology Information,2013(11):90-91. search&Progress of SSE,2007,27(1):119—122. [9]Corporation A.Cyclone FPGA family datasheet[EB/OL]. [14]Philips Semiconductors.The I2C—bus speciifcation[EB/ OL].[2000-01].http://www.philips.corn.cn. [15]Video Electronics Standards Association.VESA and in— dustry standards and guidelines for computer display moni— [2011_o4 1].http:∥- ̄q, ̄cw.altera.eom.cn. [10]丁吴杰,刘敬彪,盛庆华.基于CMOS图像传感器的视 频采集系统设计[J].现代电子技术,2012,35(14): 178—181. tor timing[EB/OL].[2004—10-29].http://bbs.elec— fans.com. Ding H J.Liu J B.Sheng Q H.Design of video acquisition