..............................3 ETTING CHAPTER 2 TRDB_D5M ............................4 2.1 F ................................4 EATURES 2.2 P TRDB-D5M ..................5 OUT OF THE PIN CONNECTOR ON 2.3 P TRDB_D5M ................6 ESCRIPTION OF THE NTERFACE OF CHAPTER 3 DIGITAL CAMERA DESIGN DEMONSTRATION ................. 7 3.1 D...
A reference design CD. Figure 1-1 The TRDB_D5M (D5M) Package Content (CD not including) Please follow the step below to assemble your camera: Connect the D5M to your DE4 board as shown in Figure 1-2. www.terasic.com TRDB-D5M User Manual June 13, 2017...
Page 4
Figure 1-3 Connect the D5M to DE2-115 board’s expansion port Connect the D5M to your DE2-70 board as shown in Figure 1-4. Figure 1-4 Connect the D5M to DE2-70 board’s expansion port (outermost port). www.terasic.com TRDB-D5M User Manual June 13, 2017...
Figure 1-6 Connect the D5M to DE1 board’s expansion port (outermost port). Here are some places to get help if you encounter any problem: Email to support@terasic.com Taiwan & China: +886-3-5750-880 Korea : +82-2-512-7661 Japan: +81-428-77-7000 English Support Line: +1-408-512-1336 www.terasic.com TRDB-D5M User Manual June 13, 2017...
Column and row binning modes to improve image quality when resizing 10. Simple two-wire serial interface 11. Programmable controls: gain, frame rate, frame size, exposure 12. Automatic black level calibration 13. On-chip PLL www.terasic.com TRDB-D5M User Manual June 13, 2017...
Voltage 1.7V~3.1V Note. For detail specification of D5M, please refer to TRDB-D5M_Hardware specification.PDF PIXCLK XCLKIN RESETn TRIGGER STROBE LVAL FVAL SDATA SCLK VCC33 Figure 2-1. The pin-out of the 40-pin connector on TRDB_D5M www.terasic.com TRDB-D5M User Manual June 13, 2017...
SDATA Serial data SCLK Input Serial clock Not Connect VCC33 Power 3.3V Ground Not Connect Not Connect Not Connect Not Connect Not Connect Not Connect Not Connect Not Connect Not Connect Not Connect www.terasic.com TRDB-D5M User Manual June 13, 2017...
Connect the DVI TX output of the DVI daughter card to a DVI monitor. Copy the directory DE4_230/530_D5M_VGA from D5M System CD-ROM to the host computer. Download the bitstream (DE4_230/530_D5M_DVI.sof) to the DE4 board. The system enters the FREE RUN mode automatically. Press BUTTON www.terasic.com TRDB-D5M User Manual June 13, 2017...
Page 10
SXGA@1280*1024 and VGA@640*480 (note*). 13. After revision, regenerate the project and repeat above steps. Note: users should revise the parameter ‘PORT_SIZE_BYTES’ of the DDR2_ODIMM_Read/Write_Port modules in SOPC Builder under each resolution (640*480*4, 1280*1024*4 respectively) . www.terasic.com TRDB-D5M User Manual June 13, 2017...
Press KEY[2] to take a shot of the photo; you can press KEY[3] again to switch back to FREE RUN mode and you should be able to see whatever the camera captures on the VGA display.. www.terasic.com TRDB-D5M User Manual June 13, 2017...
Page 12
Frame counter (Display ONLY) 11. User can revise the header file "VGA_Param.h" in the project to select the system resolution between SVGA@800*600 and VGA@640*480. 12. After revision, regenerate the project and repeat above steps. www.terasic.com TRDB-D5M User Manual June 13, 2017...
KEY1 is pressed shorter. 10. Set the SW[16] to On (upper position), the captured image will be enlarged with KEY0 and KEY3 pressed in order. summarizes the functional keys of the digital camera. Table 3-3 www.terasic.com TRDB-D5M User Manual June 13, 2017...
Page 14
Meanwhile, the digital camera is set to photo-taking mode. Press KEY3 to switch back to FREE RUN mode. 13. Click ‘Save’ button to save the captured image as a JPG or BMP file. www.terasic.com TRDB-D5M User Manual June 13, 2017...
Users can use the SW[0] with KEY1 to set the exposure time for brightness adjustment of the image captured. When SW[0] is set to Off, the brightness of image will be increased as KEY1 is pressed longer. If SW[0] is set to On, www.terasic.com TRDB-D5M User Manual June 13, 2017...
. Make sure the D5M is connected to JP2 (GPIO 1) of the DE1 board. Download the bitstream (DE1_D5M.sof/pof) to the DE1 board. Connect the VGA output of the DE1 board to a VGA monitor. www.terasic.com TRDB-D5M User Manual June 13, 2017...
Page 17
Trigger the Image Capture (take a shot) KEY[3] Switch to Free Run mode Off: Extend the exposure time SW[0] On: Shorten the exposure time On: ZOOM in SW[8] Off: Normal display HEX[3:0] Frame counter (Display ONLY) www.terasic.com TRDB-D5M User Manual June 13, 2017...
Figure 3-7 The block diagram of the digital camera design The below figure for DE4 only. Figure 3-8 The block diagram of the digital camera design for DE4 www.terasic.com TRDB-D5M User Manual June 13, 2017...
D5M on DE4 and DE2-115 Board Added June, 13, 2017 Modify DE2-115 demo We will be continuing providing interesting examples and labs on our TRDB_D5M webpage. d5m.terasic.com Please visit for more information. www.altera.com www.terasic.com TRDB-D5M User Manual June 13, 2017...
Need help?
Do you have a question about the TRDB-D5M and is the answer not in the manual?
Questions and answers