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

Digilent recommends that the included lens never be fully removed unless a different lens is being 
swapped in. This will help prevent damage to the image sensor, which is very delicate. If swapping 
in a different lens, the procedure should be done in a clean environment and the time in which the 
image sensor is exposed should be minimized.  

 

Power-up and Reset

 

The PWUP signal on the 15-pin FFC connector is used by the host to turn the Pcam 5C on and off. It 
directly controls the power supplies found on the Pcam 5C, disconnecting power to the OV5640 
when it is not driven high. The PWUP signal must be driven high in order to use the Pcam 5C.  

The power-up sequence for the Pcam 5C includes a number of steps. These steps are implemented 
in the source code for the Pcam 5C demo described in the Software Support section, however they 
are also provided here for reference purposes:  

1.  Execute a power-cycle by applying a low pulse of 100ms on CAM_PWUP, then driving it 

high. 

2.  Wait for 50ms. 
3.  Read sensor ID from registers 0x300A and 0x300B and check against 0x56 and 0x40, 

respectively. 

4.  Choose system input clock from pad by writing 0x11 to register address 0x3103. 
5.  Execute software reset 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 writing either 0x45 for two-lane mode or 0x25 for one-lane mode to 

register address 0x300E. 

12. Let MIPI clock free-run, and force LP11 when no packet transmission by writing 0x14 to 

register address 0x4800. 

13. Set output format to RAW10 by writing 0x00 to register address 0x4300 and 0x03 to register 

address 0x501F. 

14. Wake up sensor by writing 0x02 to register address 0x3800. 

The procedure above can be repeated at any time during execution to perform a reset on the 
sensor.  

Auxiliary Signals

 

The unloaded header labeled J3 on the Pcam 5C can be used to access some additional signals of 
the OV5640. This is so that those with access to the OV5640 datasheet can use some of the 
additional functionality they provide. These signals will not be useful to those without access to the 
OV5640 datasheet, as they are otherwise undocumented. Most will not need to have any use for the 
functionality provided on these signals, and their use is not required for normal function of the Pcam 
5C.  

Содержание 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...

Отзывы: