Project Name: VideoInVideoOut.dpj Project Type: ADSP-BF533 [ ] ADSP-BF537 [ ] ADSP-BF561 [X] Hardware Used: ************************************** ************************************** *** PLEASE READ THE RELEASE NOTE *** *** FOR SPECIFIC HARDWARE AND *** *** SOFTWARE CONFIGURATIONS *** *** SUPPORTED BY THIS APPLICATION *** ************************************** ************************************** ADSP-BF561 EZ-Kit VisualDSP++ Emulator System Services Components Used: DMA Manager [X] Deferred Callback Manager [ ] Interrupt Manager [X] Timer Module [ ] Power Management Module [X] Flag Module [ ] External Bus Interface Unit Module [X] Port Module [ ] OVERVIEW ======== This application shows how to perform the video acquisiton in ITU-656 mode from the decoder ADV7183, buffering the data in SDRAM. The buffered video frame is then sent out to the video monitor. In this application, no processing is done on buffered video frames. Both PAL and NTSC formats are implemented in this application, selectable through a conditional compilation macro (PAL_FRAME). This application uses a chained or chained with loopback dataflow method, selectable through a conditional compilation macro (USE_LOOPBACK) ADV7183 and ADV7179 hardware registers can be accessed through pseudo TWI and device access service. Pushbutton (SW9) can be used to terminate this application. RUNNING THE APPLICATION ======================= 1. Hardware settings -------------------- ADSP-BF561 EZ-KIT LITE SETTINGS ------------------------------- SW2: 1-OFF 2-OFF 3-OFF 4-OFF 5-OFF 6-ON SW3: 1-OFF 2-ON 3-ON 4-OFF SW4: 1-ON 2-ON 3-ON 4-ON 5-OFF 6-OFF SW5: 1-OFF 2-ON 3-ON 4-ON SW10: 1-OFF 2-OFF 3-OFF 4-OFF 5-OFF 6-OFF SW11: 1-OFF 2-OFF 3-OFF 4-OFF SW12: 1-ON 2-ON 3-ON 4-ON SW13: 1-ON 2-ON 2. External connections ----------------------- Connect a monitor to the EZ-Kit video-out connector and a video source to the EZ-Kit video-in. The video connectors are the bank of 6 RCA-style jacks nearest the serial cable connector on the EZ-Kit labeled as J6. +---------------------------------------------------+ | O O < Video Out O | (white) | O O O < Video In | (red) +---------------------------------------------------+ J6 3.Operational Description ------------------------- - Open the "VideoInVideoOut.dpj" project in the VisualDSP Integrated Development Environment (IDDE). - Select via #define in VideoInVideoOut.c the desired video input format e.g. //#define PAL_FRAME (for NTSC - deafult) or #define PAL_FRAME (for PAL) - Under the "Project" tab, select "Build Project" (program is then loaded automatically into DSP). - Connect a video NTSC/PAL CVBS source to the bottom right connector of J6 (video in/out jack) - Connect a video display monitor to the video output jack (top middle connector of J6) - Run the executables by pressing "multiprocessor run" (CTRL-F5) on the toolbar. DO NOT use the single core (F5) button. You should see a copy of the input video in the output screen. - Halt the processor ("multiprocessor halt" button). If you open a memory window and go to the addresses of sFrame0,1,2,3, you see the video data of the four frames. 4. Project Build Optimization ----------------------------- Please note that for this project in Debug Mode, code optimizations have been enabled. This is done via the menu Project -> Project Options - Project - Compile - Code Generation - Enable optimization [X] Code optimizations improve the speed of applications by transforming certain code segments. SOFTWARE HIERARCHY ================== This application consists of the following files: \---BlackfinSDK | +---BFinUtils | SDK-ezkitutilities.c | +---Multimedia | \---VideoInVideoOut | \---ADSP-BF561 readme_VideoInVideoOut_561.txt VideoInVideoOut.c VideoInVideoOut.dpj VideoInVideoOut.ldf \---VisualDSP +---Blackfin | +---lib | +---src | +---drivers | +---deviceaccess | adi_device_access_twi.c | +---decoder | adi_adv7183.c | +---encoder | adi_adv7179.c | +---lcd | | | \---nec | nl6448BC33_54.c | \---twi adi_twi_pseudo.c