Home
TRDB-D5M - Terasic
Contents
1. TRDB D5SM User Manual ter BG ALTER www terasic com Copyright 2003 2014 Terasic Technologies Inc All Rights Reserved www terasic com CONTENTS GHAPTERT ABOUT TEKI daan an aka 1 EE GSE NE EN AN NN PA EEE NAN PA 1 1 2 ASSEMBLE THE NENNE 1 wa GETTIN O MEER NN 3 CHAPIER2 TROB DOM rrr ner nusa sa memanas 4 RA FEATURE EEE EE Been ora naa aa 4 2 2 PIN OUT OF THE 40 PIN CONNECTOR ON T RDB D5M 0 ccccccesssccccceceessssceeeceeeeesssaceeeeceeeesssseeeeeeeeeeetaaees 5 2 3 PIN DESCRIPTION OF THE 40 PIN INTERFACE OF TRDB D5M ooooo W o W on nnnnn nan 6 CHAPTER 3 DIGITAL CAMERA DESIGN DEMONSTRATION ooocooooooooooooooooooooooooooooooooooooooooooo 7 3 1 DEMONSTRATION SETUP kei aa Ron n en Randa na aat 7 3 2 CAMERA DEMONSTRATION SETUP ON DE4 BOARD oooooooooooooooooo anna 7 3 3 CAMERA DEMONSTRATION SETUP ON DE2 115 BOARD nana 9 3 4 CONFIGURING THE CAMERA AND LOAD THE IMAGE CAPTURED TO YOUR PC DE2 70 BOARD USERS J 11 3 5 CONFIGURING THE CAMERA DE2 BOARD USERS oooooooooWooWoo oo aan 13 3 6 CONFIGURING THE CAMERA DE1 BOARD USERS ooooooWooo Woo oo Jualan 14 3 7 BLOCK DIAGRAM OF THE REFERENCE DESIGN o ooooooooo oom ena 16 CHAPIER 4S APPENDIX sn nanas sukun 17 AA REVISION PIS TORY ENE NU PA PN DA EE 17 4 2 ALWAYS VISIT TRDB D5M WEBPAGE FOR NEW APPLICATIONS ooocooooooooo oo Wo 17 TRDB D5M User Manual 2 www terasic c
2. DDR2 ODIMM Read Write Port modules in SOPC Builder under each resolution 640 480 4 1280 1024 4 respectively TRDB D5M User Manual 8 ae ET ee July 1 2014 ter www terasic com Table 3 1 The functional keys of the digital camera demonstration Component Function Description BUTTON 0 Reset circuit BUTTON 1 Set the new exposure time use with SW 0 BUTTON 2 Trigger the Image Capture take a shot BUTTON 3 Switch to Free Run mode Off Extend the exposure time SLIDE SW 0 On Shorten the exposure time On ZOOM in SLIDE SW 1 Off Normal display On Color pattern display SW 0 Off Normal display HEX 1 0 Frame counter Display the low 8 bits ONLY 3 3 Camera Demonstration Setup On DE2 115 Board Locate the project directory from the CD ROM included and follow the steps i mn 19 below www terasic com 1 Directory Demonstration DE2 115 CAMERA FPGA Bitstream Used DE2 115 CAMERA sof Ensure the GPIO voltage level is set to 3 3V via JP6 GPIO VCCIO of the DE2 115 board Ensure the connection is made correctly as shown in Figure 3 2 Make sure the D5M is connected to JP5 GPIO of the DE2 115 board Connect the VGA output of the DE2 115 board to a VGA monitor Copy the directory DE2 115 D5M VGA from D5M System CD ROM to the host computer Download the bitstream DE2 115 D5M VGA sof pof to the DE2 115 board The system enters the FREE RUN mode automatically Press KEY 0 on the
3. com Chapter 3 Digital Camera Design Demonstration This chapter illustrates how to exercise the digital camera reference design provided with the kit Users can follow the instructions in this chapter to build a 5 Mega Pixel camera using their DE4 DE2 115 DE2 70 DE2 DEI in minutes 3 1 Demonstration Setup The image raw data is sent from DSM to the DE4 DE2 115 DE2 70 DE2 DE1 board The FPGA on the DE4 DE2_ 115 DE2 70 DE2 DE1 board is handling image processing part and converts the data to RGB format to display on the DVI VGA monitor For DE2 70 the image captured at SDRAM can be taken at anytime snapshot and uploaded to a PC as a BMP JPG file 3 2 Camera Demonstration Setup On DE4 Board Locate the project directory from the CD ROM included and follow the steps below Directory Demonstration DE4 230 530 D5M DVI FPGA Bitstream Used DE4 230 530 D5M DVI sof 1 Ensure the connection is made correctly as shown in Figure 3 1 Make sure the D5M is connected to JP4 GPIO 1 and DVI daughter card is connected to J20 HSMC PORT A of the DE4 board with two THCB HMF2 interface cards which are bundled in the DE4 kit 2 Insert the DDR2 memory card into J9 DDR2 SO DIMM 1 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 5 Download the bitstream DE4 230 530 D5M DVI sof to the DE4 board 6 Th
4. DB DSM has a 40 pin connector on the board The pin description of the 40 pin connector follows www terasic com Pin Numbers 1 CON OO O1 PB W DO co 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 Name PIXCLK D 11 NC D 10 D 9 D 8 D 7 D 6 D 5 D 4 NC GND D 3 D 2 D 1 D 0 NC NC XCLKIN RESETn NC TRIGGER STROBE LVAL FVAL SDATA SCLK NC VCC33 GND NC NC NC NC NC NC NC NC NC NC TRDB D5M User Manual Direction Output Output N A Output Output Output Output Output Output Output N A N A Output Output Output Output N A N A Input Input N A Input Output Output Output I O Input N A N A N A N A N A N A N A N A N A N A N A N A N A Description Pixel clock Pixel data Bit 11 Not Connect Pixel data Bit 10 Pixel data Bit 9 Pixel data Bit 8 Pixel data Bit 7 Pixel data Bit 6 Pixel data Bit 5 Pixel data Bit 4 Not Connect Ground Pixel data Bit 3 Pixel data Bit 2 Pixel data Bit 1 Pixel data Bit 0 Not Connect Not Connect External input clock D5M reset Not Connect Snapshot trigger Snapshot strobe Line valid Frame valid Serial data Serial clock Not Connect 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 July 1 2014 ter www terasic
5. DE2 115 board to reset the circuit 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 TRDB D5M User Manual 9 ae ET ee July 1 2014 ter www terasic com 8 User can use the SW 0 with KEY 1 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 KEY 1 is pressed longer If SW 0 is set to On the brightness of image will be decreased as KEY 1 is pressed shorter 9 Set the SW 16 to On upper position the captured image will be enlarged with KEY 0 and KEY 3 pressed in order 10 Table 3 2 summarizes the functional keys of the digital camera Figure 3 2 The Connection Setup for DE2 115 users Table 3 2 The functional Keys of the digital camera demonstration Component Function Description KEY 0 Reset circuit KEY 1 Set the new exposure time use with SW 0 KEY 2 Trigger the Image Capture take a shot KEY 3 Switch to Free Run mode Off Extend the exposure time SW 0 i On Shorten the exposure time On ZOOM in a Off Normal display HEX 7 0 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 TRDB D5M User Ma
6. ct Connected Video Capture success Dim 1280x1024 28 0 sec Figure 3 4 The DE2 70 camera tool 3 5 Configuring the Camera DE2 Board Users Locate the project directory from the CD ROM included and follow the steps below Directory Demonstration DE2 CAMERA FPGA Bitstream Used DE2 D5M sof or DE2 D5M pof Ensure the connection is set correctly as shown in Figure 3 5 Make sure the D5M is connected to JP2 GPIO 1 of the DE2 board 2 Connect the VGA output of the DE2 board to a VGA monitor 3 Download the bitstream DE2 D5M sof pof to the DE2 board 4 Press KEYO on the DE2 board to reset the circuit 5 You can press KEY3 to switch to the FREE RUN mode and you should be able to see whatever the camera sees on the VGA display 6 Press KEY2 to take a shot of the photo you can press KEY3 again to switch back to FREE RUN mode 7 Users can use the SW 0 with KEY1 to set the exposure time for brightness adjustment of the image captured When SWIOJ is set to Off the brightness of image will be increased as KEY1 is pressed longer If SW 0 is set to On Tasic TRDB D5M User Manual 13 TSE www terasic com ter www terasic com the brightness of image will be decreased as KEY1 is pressed shorter 8 Set the SW 16 to On upper position the captured image will be enlarged with KEYO and KEY3 pressed in order 9 Table 3 4 summarizes the functional keys of the digital camera Figure 3 5 The Connection Setup
7. e system enters the FREE RUN mode automatically Press TRDB D5M User Manual 7 www terasic com Klasic A www terasic com ter www terasic com www terasic com 10 11 BUTTON 0 on the DE4 board to reset the circuit User can use the SWIOJ to set the DVI display mode When SW 0 is set to Off the DVI will display whatever the camera captures when On the DVI will display color pattern Press BUTTON 2 to take a shot of the photo you can press BUTTON 3 again to switch back to FREE RUN mode and you should be able to see whatever the camera captures on the VGA display User can use the SLIDE_SW 0 with BUTTON 1 to set the exposure time for brightness adjustment of the image captured When SLIDE_SW 0 is set to Off the brightness of image will be increased as BUTTON 1 is pressed longer If SLIDE_SW 0 is set to On the brightness of image will be decreased as BUTTON 1 is pressed shorter Set the SLIDE_SW 1 to On upper position the captured image will be enlarged with BUTTON 0 and BUTTON 3 pressed in order Table 3 1 summarizes the functional keys of the digital camera Figure 3 1 The Connection Setup for DE4 users 12 User can revise the header file vpg h in the project to select the system resolution between SXGA 1280 1024 and VGA 640 480 note 13 After revision regenerate the project and repeat above steps Q Note users should revise the parameter PORT SIZE BYTES of the
8. ed longer If SW 0 is set to On the brightness of image will be decreased as KEY1 is pressed shorter 8 Set the SW 8 to On upper position the captured image will be enlarged with KEYO and KEY3 pressed in order 9 Table 3 5 summarizes the functional keys of the digital camera Figure 3 6 The Connection Setup for DE1 users Table 3 5 The functional keys of the digital camera demonstration Component Function Description KEY 0 Reset circuit KEY 1 Set the new exposure time use with SW 0 KEY 2 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 ad Off Normal display HEX 3 0 Frame counter Display ONLY TRDB D5M User Manual 15 www terasic com rer www terasic com www terasic com 3 7 Block Diagram of the Reference Design The complete reference design is also located in the CD ROM attached Please refer to the following diagram to help you in reading the code provided DATA FVAL LVAL Is CMOS Sensor Data Capture PCLK CMOS MCLK gt Image A Sensor SNL tbe I2C Sensor SCLK _ Configuration Module DATA Bayer Color VGA Pattern Data Controller gt VGA To And vs DAC 30 Bit RGB Data Request gy i 4 gt la DATA Multi Port SDRAM ADDR SDRAM Controller CTRL Core Board Figure 3 7 The block diagram of the digital camera design The belo
9. for DE2 users Table 3 4 The functional keys of the digital camera demonstration Component Function Description KEY 0 Reset circuit KEY 1 Set the new exposure time use with SW 0 KEY 2 Trigger the Image Capture take a shot KEY 3 Switch to Free Run mode Off Extend the exposure time a On Shorten the exposure time On ZOOM in a Off Normal display HEX 7 0 Frame counter Display ONLY 3 6 Configuring the Camera DE1 Board Users Locate the project directory from the CD ROM included and follow the steps 1 k 10 below Directory Demonstration DE1 CAMERA FPGA Bitstream Used DE1 D5M sof or DE1 D5M pof 1 Ensure the connection is set correctly as shown in Figure 3 6 Make sure the D5M is connected to JP2 GPIO 1 of the DE1 board 2 Download the bitstream DE1_D5M sof pof to the DE1 board 3 Connect the VGA output of the DE1 board to a VGA monitor TRDB D5M User Manual 14 www terasic com et one www terasic com ter www terasic com Press KEYO on the DE1 board to reset the circuit You can press KEY3 to switch to the FREE RUN mode and you should be able to see whatever the camera sees on the VGA display 6 Press KEY2 to take a shot of the photo you can press KEY3 again to switch back to FREE RUN mode 7 Users can use the SW 0 with KEY1 to set the exposure time for brightness adjustment of the image captured When SWIOJ is set to Off the brightness of image will be increased as KEY1 is press
10. inning modes to improve image quality when resizing Simple two wire serial interface Programmable controls gain frame rate frame size exposure Ha Automatic black level calibration On chip PLL Oo TRDB D5M User Manual 4 www terasic com RET www terasic com ter www terasic com E Key Performance Parameters Parameter Value i Active pixels 2 592H x 1 944V i Pixel size 2 2pm x 2 2um Color filter array RGB Bayer pattern Shuttertype Global reset release GRR B _ Maximum data rate master 96 Mp s at 96 MHz Frame Full resolution Programmable up to 15 fps rate VGA 640 x 480 Programmable up to 70 fps ADC resolution 12 bit Responsivity 1 4 V lux sec 550nm Pixel dynamic range 70 1dB SNRMAX 38 1dB Supply Power 33Vv 00 Voltage I O 1 7V 3 1V Note For detail specification of D5M please refer to TRDB D5M Hardware specification PDF 2 2 Pin out of the 40 pin connector on TRDB D5M PIXCLK D11 NC D10 D9 D8 D D6 D5 D4 NC GND D3 D2 D1 DO NC NC XCLKIN RESE In NC TRIGGER STROBE LVAL FVAL SDATA SCLK NC VCC33 GND NC NC NC NC NC NC NC NC NC NC Figure 2 1 The pin out of the 40 pin connector on TRDB_D5M TRDB D5M User Manual www terasic com www teraSic com July 1 2014 ter www terasic com 2 3 Pin Description of the 40 pin Interface of TRDB_D5M The TR
11. nual 10 www terasic com rer www terasic com ter www terasic com 3 4 Configuring the Camera and Load the Image Captured to Your PC DE2 70 Board Users www terasic com Locate the project directory from the CD ROM included and follow the steps below Directory Demonstration DE2 70 CAMERA SW FPGA Bitstream Used DE2 70 CAMERA sof 10 11 Ensure the connection is made correctly as shown in Figure 3 3 Make sure the D5M is connected to J5 GPIO 1 of the DE2 70 board Copy the directory DE2 70 CAMERA from D5M System CD ROM to the host computer Execute the DE2 70 CAMERA exe form the directory DE2 70 CAMERA SW Click the Download Code button Error message will pop up for warning since the DE2 70 is loaded with factory default image which cannot be transmitted Click OK button to skip the error message and click Download Code to proceed Connect the VGA output of the DE2 70 board to a VGA monitor Press KEYO on the DE2 70 board to reset the circuit You can press KEY3 to switch to the FREE RUN mode and you should be able to see whatever the camera captures on the VGA display Press KEY2 to take a shot of the photo you can press KEY3 again to switch back to FREE RUN mode 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 i
12. om Klasic WAE www terasic com ter www terasic com Chapter 1 About the Kit The TRDB D5M Kit provides everything you need to develop a 5 Mega Pixel Digital Camera on the Altera DE4 DE2_115 DE2 70 DE2 DE1 boards The kit contains hardware design in Verilog and software to load the picture taken into a PC and save it as a BMP or JPG file DE2 70 only The Getting Started User Guide enables users to exercise the digital camera functions This chapter provides users key information about the kit 1 1 Kit Contents Figure 1 1 shows the photo of the TRDB D5M package The package includes 1 The TRDB DSM DSM board with one CMOS sensor 2 A reference design CD us vw o wd HF 10 1100 E TI I ter M PO 87120045 Cee 2 rERFPPTCTR TT TTT tty TY LEE RR GPU BRU F FETT Figure 1 1 The TRDB D5M D5M Package Content CD not including 1 2 Assemble the Camera Please follow the step below to assemble your camera 1 Connect the D5M to your DE4 board as shown in Figure 1 2 TRDB D5M User Manual 1 www terasic com on www terasic com www terasic com Figure 1 2 Connect the D5M to DE4 board s expansion port outermost port 2 Connect the D5M to your DE2 115 board as shown in Figure 1 3 Figure 1 3 Connect the D5M to DE2 115 board s expansion port 3 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 e
13. s set to On the brightness of image will be decreased as KEY1 is pressed shorter Set the SW 16 to On upper position the captured image will be enlarged with KEYO and KEY3 pressed in order Table 3 3 summarizes the functional keys of the digital camera TadasiC TRDB D5M User Manual 11 ww terasic com July 1 2014 ter www terasic com VGA Monitor VGA OUT Figure 3 3 The Connection Setup for DE2 70 users Table 3 3 The functional Keys of the digital camera demonstration Component Function Description KEY 0 Reset circuit KEY 1 Set the new exposure time use with SW 0 KEY 2 Trigger the Image Capture take a shot KEY 3 Switch to Free Run mode Off Extend the exposure time dd On Shorten the exposure time On ZOOM in did led Off Normal display HEX 7 0 Frame counter Display ONLY 12 Users can upload the captured image to PC by clicking the Capture button of the DE2 70 CAMERA exe as shown in Figure 3 4 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 TRDB D5M User Manual 12 www terasic com et one www terasic com www terasic com Camera Utility V1 0 0 DE3 FPGA board provides users the most available IOs the most flexibility the hightest quality and the largest design Capture 1260x1024 Pixels Save Download Code Disconne
14. w figure for DE4 only DATA FVAL LVAL JJ CMOS Sensor Data Capture PCLK MCLK SDAT 12C Sensor SCLK Configuration Module DATA gt Bayer Color DVI HS Pattern Data Controller DVI To And EEA 30 Bit RGB Data Request cik p DATA Multi Port DDR2 ADDR DDR Read amp Write Controller CTRL gt Core Board Figure 3 8 The block diagram of the digital camera design for DE4 TRDB D5M User Manual www terasic com 16 www teraSic com July 1 2014 ter www terasic com 4 1 Revision History Chapter 4 Appendix Date Change Log MAR 24 2008 _ Initial Version Preliminary AUG 03 2009 revised AUG 10 2010 D5M on DE4 and DE2 115 Board Added 4 2 Always Visit TRDB D5M Webpage for New Applications We will be continuing providing interesting examples and labs on our TRDB D5M webpage Please visit www altera com or d5m terasic com for more information TRDB D5M User Manual www terasic com 17 www teraSic com July 1 2014
15. xpansion port outermost port TRDB D5M User Manual 2 www terasic com Klasic an www terasic com www terasic com 4 Connect the D5M to your DE2 board as shown in Figure 1 5 Figure 1 5 Connect the D5M to DE2 board s expansion port outermost port 5 Connect the D5M to your DEI board as shown in Figure 1 6 Figure 1 6 Connect the D5M to DE1 board s expansion port outermost port 1 3 Getting Help Here are some places to get help if you encounter any problem v Email to support terasic com v Taiwan amp China 886 3 5750 880 v Korea 82 2 512 7661 v Japan 81 428 77 7000 English Support Line 1 408 512 1336 TRDB D5M User Manual 3 www terasic com Klasic MPSR www terasic com ter www terasic com Chapter 2 IRDB D5M This chapter will illustrate the technical details users need to know to modify the reference design for their own purpose 2 1 Features The DSM kit is designed to use the same strict design and layout practices used in high end consumer products The feature set is listed below High frame rate Superior low light performance Low dark current Global reset release which starts the exposure of all rows simultaneously Bulb exposure mode for arbitrary exposure times Snapshot mode to take frames on demand Horizontal and vertical mirror image Column and row skip modes to reduce image size without reducing field of view DEE e Column and row b
Download Pdf Manuals
Related Search
Related Contents
Estufa Nexus Samsung WF0800NCE/YLV Εγχειρίδιο χρήσης Nemox Gelato Chef 2200 Rebreather Wing User Manual 219-00-D-CACOM-1-GRUTE-2010 MANTTO. EQUIPO SPECTROIL Saeco Saeco HD8323/41 coffee maker Hawk Low-power x86 Embedded Processing Unit Data Copyright © All rights reserved.
Failed to retrieve file