Digilent Pcam 5C 410-358 Скачать руководство пользователя страница 5

Functional Description 

Serial Communication 

MIPI CSI-2 Interface 

The Pcam 5C includes a dual-lane MIPI CSI-2 interface that is used to transmit image data from the 
OV5640 image sensor on the Pcam 5C to the attached host. It consists of three differential pairs, 
two for data and one for a clock signal, which are all routed to the 15-pin FFC connector. The clock 
and data signals are driven by the image sensor and should be treated as inputs by the attached 
host.  

The physical layer of the MIPI CSI-2 interface is called D-PHY. It is supported by the I/O blocks on 
Xilinx Ultrascale devices natively, but requires some passive circuitry external to the FPGA in order 
to be connected to Xilinx 7-series devices. For detailed information on the circuitry required to use D-
PHY with a 7-series device, see the XAPP894 Application Note available from Xilinx.  

Further information on the details of MIPI CSI-2 and D-PHY are beyond the scope of this document. 
Digilent provides open source MIPI CSI-2 and D-PHY Vivado IP cores that can be studied to learn 
more. These IP cores are included in the Digilent Vivado Library.  

Serial Camera Control Bus (SCCB)

 

The SCCB on the Pcam 5C is a two-pin bus used to access the control registers for the OV5640 
image sensor. The bus behaves the same way as an I2C bus, and can be treated exactly the same. 
This means it can be controlled using existing I2C IP cores or RTL. For a more complete description 
of how an I2C bus works, see the I2C Fundamentals Guide.  

It is expected that the host provide 1.5 KOhm pull-up resistors on both SCL and SDA. The attached 
host drives the clock (SCL) and behaves as the master on the bus. The OV5640 acts as a slave at 
the I2C address 0x78.  

The register map accessed with the SCCB consists of 8-bit registers organized in a 16-bit address 
space. The details of how register read and write transactions occur are detailed in proprietary 
documentation that is available from OmniVision. Most users should not need to fully understand 
how the SCCB transactions occur, and can instead rely on the libraries included with the Pcam 5C 
demo that use the Zynq I2C hardware to properly read and write the OV5640 registers.  

 

Register Details

 

The registers that are accessed using the SCCB are used to control the OV5640 image sensor. This 
includes things such as initializing the sensor, setting the output format, and enabling image 
processing features.  

The OV5640 image sensor register map is fully documented in the OV5640 datasheet, but Digilent 
does not have permission to redistribute that document. To obtain complete information on the 
registers, please contact OmniVision and request access to the OV5640 datasheet.  

Содержание Pcam 5C 410-358

Страница 1: ...aturation hue gamma and sharpness Data is transferred over a dual lane MIPI CSI 2 interface which provides enough data bandwidth to support common video streaming formats such as 1080p at 30 frames per second and 720p at 60 frames per second The module is connected to the FPGA development board via a 15 pin flat flexible cable FFC that is pin compatible with the connector found on the popular Rasp...

Страница 2: ... FPGA host there are two realistic options 1 Pay a license fee to acquire MIPI CSI 2 IP that is designed to work in FPGAs Typically this will provide a very robust solution and good software support including embedded Linux drivers The licensing fees are steep for these and can be cost prohibitive to many The source code is also often encrypted so it can not be studied for educational purposes 2 D...

Страница 3: ...be more relevant to those trying to implement a professional project or that require software support in embedded Linux Please reach out on the Digilent Forum for an update on the status of this project Although the connector on the Pcam 5C is pin compatible with the Raspberry Pi Digilent has not validated that the two devices work properly together and does not provide software to do so Specifica...

Страница 4: ... Ground 3 LANE0_P MIPI CSI 2 Lane 0 Positive 11 PWUP Power supply and sensor enable 4 GND Power Supply Ground 12 N C Not Connected 5 LANE1_N MIPI CSI 2 Lane 1 Negative 13 SCL Serial Camera Control Bus SCCB Clock 6 LANE1_P MIPI CSI 2 Lane 1 Positive 14 SDA Serial Camera Control Bus SCCB Data 7 GND Power Supply Ground 15 VCC3V3 Power Supply 3 3V Input 8 MIPI_CLK_ N MIPI CSI 2 Clock Negative Physical...

Страница 5: ...V5640 image sensor The bus behaves the same way as an I2C bus and can be treated exactly the same This means it can be controlled using existing I2C IP cores or RTL For a more complete description of how an I2C bus works see the I2C Fundamentals Guide It is expected that the host provide 1 5 KOhm pull up resistors on both SCL and SDA The attached host drives the clock SCL and behaves as the master...

Страница 6: ...e 7 The FFC is now connected properly For information on how to attach the other side of the FFC to a host board see the Pcam section of the board s reference manual Lens Adjustment The lens solution provided on the Pcam 5C includes an M12 Lens mount and a factory installed manual focus lens with lens cap The lens focus is adjusted by twisting it either clockwise or counter clockwise It is possibl...

Страница 7: ...eset by writing 0x82 to register address 0x3008 6 Wait for 10ms 7 De assert reset and enable power down until configuration is done by writing 0x42 to register address 0x3008 8 Choose system input clock from PLL by writing 0x03 to register address 0x3103 9 Set PLL registers for desired MIPI data rate and sensor timing frame rate 10 Set imaging configuration registers 11 Enable MIPI interface by wr...

Страница 8: ...however this functionality may be incorporated into a future version of the Pcam 5C If you are interested in obtaining a liquid lens capable version of the Pcam 5C please contact Digilent using the Digilent Forum Additional Information The schematics of the Pcam 5C are available here Additional information about the OV5640 image sensor SoC can be found in the sensor datasheet which can be obtained...

Отзывы: