Technical Note TN_158. What is the Camera Parallel Interface?

Similar documents
Application Note AN_385. FTDI D3XX Driver Installation Guide

Technical Note TN_152. USB 3.0 Compatibility Issues Explained

Application Note AN_299. FT800_FT801_Internal_Clock _Trimming

Application Note AN_243. FT312D USB Host to UART Cable Application

Application Note AN_242

Application Note AN_209. AN_209 PDIUSBD12 to FT120 Migration Guide

Application Note AN_241. FTDI_AOA_HyperTerm_User_Manual

White Paper WP_001. Connecting Peripherals to an Android Platform

UMFT4222PROG FT4222 Programmer Module

Determining USB Peripheral Device Class

Future Technology Devices International Ltd. FTDI Drivers Installation guide for. Windows 7

Application Note AN_276. FT800 Audio File Conversion

Future Technology Devices International Ltd

Application Note AN_101. Submitting Modified FTDI Drivers for Windows Hardware Certification

Technical Note TN_146. Creating Android Images for Application Development

Future Technology Devices International Ltd. Application Note AN_234. FTDI Drivers Installation guide for. Windows 8

Application Note. AN_136_Hi-Speed Mini Module EEPROM Disaster Recovery

Application Note AN_149. Upgrading a passive DB9 RS232 Interface to an active USB Interface using an FTDI DB9-USB-RS232 Module

Technical Note. TN_134 FTDI Android D2XX Driver

Command Processor for MPSSE and MCU Host Bus Emulation Modes

Application Note AN_254. FT800 Designs With Visual TFT

Future Technology Devices International Ltd

FTDI Chip. VM800P Datasheet Embedded Video Engine Plus Module. VM800P Embedded Video Engine Plus Module Datasheet Version 1.0

Simplified Description of USB Device Enumeration

Application Note AN_185. Vinculum-II UART to USB HID Class Host Bridge

Technical Note. TN_132 Adding FTDI Devices VCP Driver Support to Android

Future Technology Devices International Ltd. FTDI Drivers Installation guide for Windows XP

VDIP1. Vinculum VNC1L Module. Datasheet

Technical Note. TN_147 Java D2xx for Android

Future Technology Devices International Ltd. USB NMC-2.5m. USB to USB Null Modem Cable. Datasheet

TTL-232R. TTL to USB Serial Converter Range of Cables. Datasheet

FT2232H Mini Module. USB Hi-Speed FT2232H Evaluation Module. Datasheet

FT4232H Mini Module. USB Hi-Speed FT4232H Evaluation Module. Datasheet

Future Technology Devices International Ltd. AN232R-02 FTDIChip-ID for the FT232R and FT245R

C232HM. USB 2.0 Hi-Speed to MPSSE Cable. Datasheet

C232HD. USB 2.0 Hi-Speed to UART Cable. Datasheet

TTL-232R-PCB. TTL to USB Serial Converter PCB. Datasheet

Future Technology Devices International Ltd. USB-Key. Datasheet

USB Hi-Speed Serial/Hub Module. Datasheet

Vinco Development Module. Datasheet

VF2F. USB Flash Disk File-to-file Transfer Vinculum Evaluation Kit. Future Technology Devices International Ltd. Preliminary - Subject to Change

Application Note AN_250. Configuring FT313H Driver for Embedded Linux

Future Technology Devices International Ltd. USB to RS232 UART Serial Converter PCB. Datasheet

Application Note AN_252. FT800 Audio Primer

Future Technology Devices International Ltd. Technical Note TN_101

Application Note AN_208. FT311D and FT312D Demo_APK_User_GuideFT311D and FT312D Demo_APK_User_Guide

Future Technology Devices International Ltd. VF2F2. USB Flash Disk File-to-file Transfer Vinculum Evaluation Kit.

Future Technology Devices International Ltd USB TO RS422 UART SERIAL CONVERTER PCB. Datasheet. Document Reference No.: FT_000119

Application Note AN_240. FT800 From the Ground Up

Application Note AN_146. USB Hardware Design Guidelines for FTDI ICs

Future Technology Devices International Ltd. FTDI Drivers Installation guide for Windows XP

USB-COM422-PLUS1. Datasheet

Future Technology Devices International Ltd

Future Technology Devices International Ltd. FTDI Drivers Installation guide for. Windows VISTA

Below is a diagram explaining the data packet and the timing related to the mouse clock while receiving a byte from the PS-2 mouse:

TTL-232R-3V3 USB to TTL Serial Converter Cable

The DB9-USB Family of. UART Converter Modules. Datasheet

Note monitors controlled by analog signals CRT monitors are controlled by analog voltage. i. e. the level of analog signal delivered through the

Camera Sensor Driver Development And Integration

DB9-USB-RS232 Module. Male & Female. Datasheet

MicroVGA - Device Overview

CMOS OV7660 Camera Module 1/5-Inch 0.3-Megapixel Module Datasheet

Introduction to graphics and LCD technologies. NXP Product Line Microcontrollers Business Line Standard ICs

USB-COM232-PLUS4. Datasheet

Future Technology Devices International Ltd. FT311D

Prepared by: Paul Lee ON Semiconductor

Future Technology Devices International Ltd. USB to RS232 Serial Converter Range of Cables. Datasheet

Future Technology Devices International Ltd. Windows XP Installation Guide

USB-COM422-PLUS2. Datasheet

Application Note AN_113. Interfacing FT2232H Hi-Speed Devices To I2C Bus

Flexible Active Shutter Control Interface using the MC1323x

MONOCHROME RGB YCbCr VIDEO DIGITIZER

Technical Note TN_105

Connecting Kinetis MCU with CMOS Sensor Interface through GPIO QQVGA image transfer to Kinetis internal SRAM

TTL-232R. TTL to USB Serial Converter Range of Cables. Datasheet

3.2 inch QVGA TFT Color LCD User s Guide Version 1 & 2

CH7101A. CH7101A HDMI to VGA Converter GENERAL DESCRIPTION

Application Note AN_100. Using the FT232R/FT245R with an External Crystal or Oscillator

CAN bus board. EB018

VGA video signal generation

FTDI Ltd DS_US232R-10(R-100/500) USB to RS232 Adapter cable. Data Sheet

AVR151: Setup and Use of the SPI. Introduction. Features. Atmel AVR 8-bit Microcontroller APPLICATION NOTE

Future Technology Devices International Ltd. UM245R USB - Parallel FIFO. Development Module. Datasheet

ZL30136 GbE and Telecom Rate Network Interface Synchronizer

DATASHEET. ADAM Arduino Display Adaptor Module. Arduino Compatible Shield P/N: 4Display-Shield-FT843 For the 4D Systems 4DLCD-FT843 Display

7 OUT1 8 OUT2 9 OUT3 10 OUT4 11 OUT5 12 OUT6 13 OUT7 14 OUT8 15 OUT9 16 OUT10 17 OUT11 18 OUT12 19 OUT13 20 OUT14 21 OUT15 22 OUT16 OUT17 23 OUT18

3D Input Format Requirements for DLP Projectors using the new DDP4421/DDP4422 System Controller ASIC. Version 1.3, March 2 nd 2012

Lesson 10: Video-Out Interface

AND8336. Design Examples of On Board Dual Supply Voltage Logic Translators. Prepared by: Jim Lepkowski ON Semiconductor.

White paper. CCD and CMOS sensor technology Technical white paper

Elettronica dei Sistemi Digitali Costantino Giaconia SERIAL I/O COMMON PROTOCOLS

Wireless Temperature

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

LEVERAGING FPGA AND CPLD DIGITAL LOGIC TO IMPLEMENT ANALOG TO DIGITAL CONVERTERS

Implementing SPI Communication Between MSP430 G2452 and LTC ADC

Embedded Systems Design Course Applying the mbed microcontroller

AN2680 Application note

Transcription:

TN_158 What is the Camera Parallel Interface? Issue Date: 2015-03-23 This technical note explains the basics of the Camera Parallel Interface, a feature of FTDI MCUs. Use of FTDI devices in life support and/or safety applications is entirely at the user s risk, and the user agrees to defend, indemnify and hold FTDI harmless from any and all damages, claims, suits or expense resulting from such use. Future Technology Devices International Limited (FTDI) Unit 1, 2 Seaward Place, Glasgow G41 1HH, United Kingdom Tel.: +44 (0) 141 429 2777 Fax: + 44 (0) 141 429 2758 Web Site: http://ftdichip.com

Table of Contents 1 Introduction... 2 2 Camera Parallel Interface... 3 2.1 Signals... 3 2.1.1 I 2 C Control Signals... 3 2.1.2 Parallel Data Signals... 4 2.2 Typical Interconnect... 5 2.3 Data Format... 6 2.4 Other Image Sensor and Camera Interfaces... 7 3 Typical Applications... 8 4 What FTDI Offer... 9 5 Contact Information... 10 Appendix A References... 11 Document References... 11 Acronyms and Abbreviations... 11 Appendix B List of Tables & Figures... 12 List of Tables... 12 List of Figures... 12 Appendix C Revision History... 13 1

1 Introduction Many embedded systems benefit from the use of a camera. An embedded camera is typically comprised of three parts: lens assembly, image sensor(s) and the digital interface. Over the years, the MIPI Alliance have specified successive camera digital interfaces: Camera Parallel Interface (CPI), Camera Serial Interface 1 (CSI-1), Camera Serial Interface 2 (CSI-2), and Camera Serial Interface 3 (CSI-3). This technical note focuses on the CPI. Although the MIPI Alliance (www.mipi.org) claims there is no acronym associated with MIPI, it is often referred to as the Mobile Industry Processor Interface. The MIPI Specification is a set of standards adopted by the MIPI Alliance for various mobile product functions. 2

2 Camera Parallel Interface An image sensor captures images at a particular rate and makes the corresponding data available through one of several digital interfaces. Shown here is the OmniVision OV7675 VGA sensor: Figure 2.1 - Typical Image Sensor Image sensors are coupled with a lens to become a camera module. The camera modules can then be mounted in an assembly. Shown here is the OmniVision OVM7692 CameraCubeChip a complete camera module with the Camera Parallel Interface: Figure 2.2 - Typical Camera Module The CPI is one of the original image sensor interfaces specified by the MIPI Alliance. It consists of two portions: an I 2 C bus to control the interface and a parallel bus for the image data itself. 2.1 Signals 2.1.1 I 2 C Control Signals The I 2 C bus is used in many applications, such as a personal computer System Management Bus to identify and control various features of the system. It is also used for monitoring and control of different devices. In this case, the I 2 C bus is used to control the various registers of the camera module. The I 2 C bus consists of two signals: SDA (data) and SCK (clock). The I 2 C signals are connected in a daisy-chain multi-drop configuration. An MCU provides the I 2 C master used to communicate with the camera configuration interface. The typical interface voltage of a camera module is 1.5V to 2.8V. Each signal is driven in an open-drain configuration where only logic zeroes are transmitted. A logic 1 relies on the pull-up resistor on the bus. Multiple devices can be connected to a single bus in a daisy-chain, multi-drop configuration. 3

Image from www.i2c-bus.org Figure 2.3 - Typical I 2 C connection A common 7-bit or 10-bit addressing scheme is used by the I 2 C master to identify and select a particular I 2 C slave for communication. Image from www.i2c-bus.org Figure 2.4 - I 2 C signaling 2.1.2 Parallel Data Signals An 8-bit parallel link connects to the video data bus from an image sensor. The sensor also provides Vertical SYNC (VSYNC), Horizontal Reference (HREF) and Pixel clock (PCLK) timing signals. The parallel interface is unidirectional. All parallel signals are transmitted by the camera module and received by the controlling MCU. Image data is output for each rising edge of PCLK. HREF is high while clocking out active image data for each scan line. VSYNC is pulsed high at the start of each frame. Refer to the camera module datasheet for timing specifications for these signals. 4

VSYNC VREF VREF (For Illustration Only) 492 Rows 480 Lines Active Sensing Region 640 Pixels 656 Columns Image CLK HSYNC HREF RGB555 or RGB565 RGB Pixel Data Figure 2.5 - Typical Parallel Interface Timing The figure above shows how the signals are related. A VREF signal is shown for illustration, though it is not an actual signal output from the sensor. The image clock is one clock per pixel. The actual PCLK is 2x the frequency since the data for each pixel consists of 16-bits being clocked on an 8-bit interface. The actual number of columns and rows will vary with each different sensor or camera module. Refer to the device s datasheet for the actual values. 2.2 Typical Interconnect Both I 2 C and parallel portions of the CPI will connect to a MCU that supports the interface (SDA, SCL, D7:0, PCLK, VSYNC, and HREF). The voltage levels required at each end of the interface may indicate the need for level shifters. The image below shows the connections. 5

Image from OmniVision OVM7692 Product Brief Figure 2.6 - Typical Image Sensor Block Diagram The MCP, MCN, MDP and MDN signals are not used in the case of the CPI. SIOC and SIOD are the I 2 C SCL and SDA, respectively. 2.3 Data Format There are several ways that camera modules format the data. One common method is to output the data in a packed pixel 2-byte format. RGB565 (16-bit) and RGB555 (15-bit) modes are shown here: Mode Byte D7 D6 D5 D4 D3 D2 D1 D0 RGB565 First R4 R3 R2 R1 R0 G5 G4 G3 Second G2 G1 G0 B4 B2 B2 B1 B0 RGB555 First X R4 R3 R2 R1 R0 G4 G3 Second G2 G1 G0 B4 B2 B2 B1 B0 Table 2.1 - Color Encoding on Pixel Data Each image point takes two clocks to send the full pixel data to the MCU. For 16-bit encoding, 65,536 colors can be represented. For 15-bit encoding, 32,768 colors can be represented. Other formats may be available as well. Some only require one byte per pixel; however, the color depth will be limited. YUV422 is one of these formats. Data information is conveyed in luminance and chrominance rather than direct red, green and blue. 2.4 Frame rates A single scan of a frame can take a snapshot or still image. When looking at streaming video, the frame rate becomes important. A full frame consists of the entire image including the leading and 6

trailing sections beyond the active image area the front porch and back porch in analog video terminology. Referring to Figure 2.5, the overall frame is 656x492 for the 640x480 image. Each pixel takes two PCLK cycles one for each byte so the number of pixel clocks to capture a full frame is: 656 (horizontal) 492 (vertical) 2 bytes pixel = 645504 PCLK cycles per frame For a theoretical maximum PCLK rate of 25MHz, the maximum number of frames per second is: In generic terms: 25MHz = 38.7 frames per second (fps) 645504 PCLK per frame Theoretical Frame Rate = Maximum supported PCLK Horizontal size Vertical size Bytes pixel In practice, the actual frame rate is usually slower due to the MCU processing of the incoming data. 2.5 Other Image Sensor and Camera Interfaces The CPI is not unlike a parallel LCD interface. Both have a pixel clock, pixel data, and horizontal and vertical reference signals. Data direction is the primary difference. The image sensor/camera module sends data to the MCU while the LCD displays data from the MCU (or video controller). The MIPI Alliance also have defined Camera Serial Interfaces, denoted CSI-1, CSI-2, or CSI-3. The I 2 C portion remains. The parallel portion is replaced differential clock and data signals. CSI-1 has a single data pair and a single clock pair. CSI-2 can provide multiple data pairs. CSI-3 is an extension of CSI-2 and accounts for additional protocol specifications and EMI concerns. 7

3 Typical Applications There are many applications for embedded cameras and image sensors. The CPI and CSI interfaces provide a well-defined interface for connection of these image devices to a MCU. Some examples of where camera data is useful include: Security systems and surveillance Child monitors Production inspection systems Image recognition Mobile phones Internet connected camera Manned or unmanned aircraft Police & fire (vehicle dash-cam or on-person video recording) 8

4 What FTDI Offer FTDI now offers the FT900 series microcontrollers that provide a connection for image sensors over the industry standard MIPI Camera Parallel Interface (CPI). Full VGA (640x480) at up to 15fps can be achieved with the FT900 series camera interface. Higher rates are possible with smaller images. 9

5 Contact Information Head Office Glasgow, UK Future Technology Devices International Limited Unit 1, 2 Seaward Place, Centurion Business Park Glasgow G41 1HH United Kingdom Tel: +44 (0) 141 429 2777 Fax: +44 (0) 141 429 2758 E-mail (Sales) E-mail (Support) E-mail (General Enquiries) sales1@ftdichip.com support1@ftdichip.com admin1@ftdichip.com Branch Office Tigard, Oregon, USA Future Technology Devices International Limited (USA) 7130 SW Fir Loop Tigard, OR 97223-8160 USA Tel: +1 (503) 547 0988 Fax: +1 (503) 547 0987 E-Mail (Sales) E-Mail (Support) E-Mail (General Enquiries) us.sales@ftdichip.com us.support@ftdichip.com us.admin@ftdichip.com Branch Office Taipei, Taiwan Future Technology Devices International Limited (Taiwan) 2F, No. 516, Sec. 1, NeiHu Road Taipei 114 Taiwan, R.O.C. Tel: +886 (0) 2 8791 3570 Fax: +886 (0) 2 8791 3576 Branch Office Shanghai, China Future Technology Devices International Limited (China) Room 1103, No. 666 West Huaihai Road, Shanghai, 200052 China Tel: +86 21 62351596 Fax: +86 21 62351595 E-mail (Sales) E-mail (Support) E-mail (General Enquiries) tw.sales1@ftdichip.com tw.support1@ftdichip.com tw.admin1@ftdichip.com E-mail (Sales) E-mail (Support) E-mail (General Enquiries) cn.sales@ftdichip.com cn.support@ftdichip.com cn.admin@ftdichip.com Web Site http://ftdichip.com System and equipment manufacturers and designers are responsible to ensure that their systems, and any Future Technology Devices International Ltd (FTDI) devices incorporated in their systems, meet all applicable safety, regulatory and system-level performance requirements. All application-related information in this document (including application descriptions, suggested FTDI devices and other materials) is provided for reference only. While FTDI has taken care to assure it is accurate, this information is subject to customer confirmation, and FTDI disclaims all liability for system designs and for any applications assistance provided by FTDI. Use of FTDI devices in life support and/or safety applications is entirely at the user s risk, and the user agrees to defend, indemnify and hold harmless FTDI from any and all damages, claims, suits or expense resulting from such use. This document is subject to change without notice. No freedom to use patents or other intellectual property rights is implied by the publication of this document. Neither the whole nor any part of the information contained in, or the product described in this document, may be adapted or reproduced in any material or electronic form without the prior written consent of the copyright holder. Future Technology Devices International Ltd, Unit 1, 2 Seaward Place, Centurion Business Park, Glasgow G41 1HH, United Kingdom. Scotland Registered Company Number: SC136640 10

Appendix A References Document References FT900 Datasheet I 2 C bus MIPI Alliance MIPI Camera Interfaces OmniVision sensor with parallel interface (OV7675) OmniVision CameraCubeChip camera module with parallel interface (OVM7962) Acronyms and Abbreviations Terms CPI CSI HREF MIPI PCLK VSYNC Description Camera Parallel Interface Camera Serial Interface Horizontal Reference MIPI Alliance (MIPI itself is not an acronym) Pixel Clock Vertical Sync 11

Appendix B List of Tables & Figures List of Tables Table 2.1 - Color Encoding on Pixel Data... 6 List of Figures Figure 2.1 - Typical Image Sensor... 3 Figure 2.2 - Typical Camera Module... 3 Figure 2.3 - Typical I 2 C connection... 4 Figure 2.4 - I 2 C signaling... 4 Figure 2.5 - Typical Image Sensor Block Diagram... 6 12

Appendix C Revision History Document Title: Document Reference No.: FT_001110 Clearance No.: FTDI# 443 Product Page: http://www.ftdichip.com/mcu.html Document Feedback: Send Feedback Revision Changes Date 1.0 Initial Release 2015-03-23 13