• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2012, Vol. 34 ›› Issue (12): 115-119.

• 论文 • 上一篇    下一篇

基于S3C6410和ADV7180的嵌入式视频采集系统设计与实现

吴君钦,宋健,刘昊   

  1. (江西理工大学信息工程学院,江西 赣州 341000)
  • 收稿日期:2012-02-15 修回日期:2012-04-17 出版日期:2012-12-25 发布日期:2012-12-25
  • 基金资助:

    国家自然科学基金资助项目(11062002)

Design and Implementation of Embedded Video Capture System Based on ADV7180 and S3C6410

WU Junqin,SONG Jian,LIU Hao   

  1. (College of Information Engineering,Jiangxi University of Science and Technology,Ganzhou 341000,China)
  • Received:2012-02-15 Revised:2012-04-17 Online:2012-12-25 Published:2012-12-25

摘要:

高端的视频采集应用不仅要求接口灵活、简单,还要有强大的数据处理能力,因此亟需将两者进行恰当的集成,为大范围内的视频采集与处理提供便利。根据嵌入式图像采集的实时性和可靠性特点,使用灵敏度高、抗干扰能力强的CCD摄像头,选取ADV7180解码芯片,提出一种以S3C6410为主控芯片的图像采集和存储系统结构。在完成接口硬件连接的基础上,设计出基于Linux平台的ADV7180驱动程序,重点阐述如何通过I2C总线对ADV7180芯片寄存器进行有效配置、以及视频数据经由DMA通道写入SDRAM的驱动方法。详细给出了提取YCbCr4:2:2格式视频数据的方法,并将其进行格式转换,最后写入LCD的帧缓冲区进行显示。测试结果表明,该接口使用方便有效,采集到的图像清晰流畅,实时性较高。

关键词: 视频采集, 驱动程序, I2C, ADV7180

Abstract:

Highend video capture applications need not only a flexible and convenient interface but also a powerful data processing capacity. Both should be integrated properly to create conditions for a wide range of video acquisition and processing. Embedded image capture should be realtime and reliable. According to these characteristics, using the decoder chip ADV7180 and the highsensitive and antijamming CCD camera, a new image capture and storage system is designed where the S3C6410 is used as the main chip. We develop the ADV7180 drivers under the Linux platform, and mainly describe how to configure the ADV7180 registers through the I2C bus correctly and how to write video data into the SDRAM through the DMA channel. The paper details the method how to extract YCbCr4:2:2 format data. Converted video data is written into frame buffer of LCD for show. Test results show that video capture interface is effective and easy to use, and the collected images are clear, smooth and high realtime.

Key words: image capture;drivers;I2C;ADV7180