6. Test the FFC is securely fastened by ensuring that both sides of the black plastic tab are touching the white part of
the connector. Then gently tug on the FFC to ensure it is not loose.
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.
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 possible to adjust the focus of the lens to a point that will cause most objects to be in focus, as long as they are not
very close to the lens. This can be accomplished in practice by running the Pcam 5C demo project, and then adjusting the
focus of the lens until an object several feet away looks very clear and sharp. The lens should not need to be adjusted
further, unless an object close to the Pcam 5C needs to be focused on.
For complete optical characteristics of the lens included with the Pcam 5C, please refer to itsdatasheet. The mechanical
dimensions of the M12 lens mount are available in itsdatasheetas well.
It is also possible to replace the included lens with a different M12 lens. Many suitable M12 lenses with a range of unique
characteristics are available for sale from third-party vendors. Care should be taken when choosing a third party lens to
ensure it is appropriate to use with the OV5640 image sensor and the Pcam 5C lens mount. Some longer lenses may make
contact with the image sensor if over tightened, which could cause damage.
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.
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 theSoftware 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.
Lens Adjustment
Power-up and Reset
Auxiliary Signals