Project Name: FrameCaptureVideoOut_533.dpj Project Type: ADSP-BF533 [X] ADSP-BF537 [ ] ADSP-BF561 [ ] Hardware Used: ************************************** ************************************** *** PLEASE READ THE RELEASE NOTE *** *** FOR SPECIFIC HARDWARE AND *** *** SOFTWARE CONFIGURATIONS *** *** SUPPORTED BY THIS APPLICATION *** ************************************** ************************************** ADSP-BF533 EZ-KIT Lite Analog Devices VisualDSP++ VisualDSP++ Emulator DVD player with ITU-656 NTSC/PAL Output TV with NTSC/PAL AV input 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 use ADV7183 device driver to read video frame and ADV7171 device driver to output video frame. The application first configures the decoder ADV7183 driver to read a single video frame from the video source, buffering the data in SDRAM and the driver is closed. Then the encoder ADV7171 driver is opened for sending out the buffered video frame to the video monitor continuosly until push button SW4 is pressed and the encoder driver is closed. The process then repeats, until push button SW7 is pressed. When the button is pressed, the program is terminated. 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 circular buffer, selectable through a conditional compilation macro (USE_CIRCULAR) ADV7183 and ADV7179 hardware registers can be accessed through pseudo TWI and device access service RUNNING THE APPLICATION ======================= 1. Hardware Settings -------------------- ADSP-BF533 EZ-KIT LITE SETTINGS: -------------------------------- SW1: 1-OFF 2-OFF 3-OFF 4-OFF 5-OFF 6-OFF SW2: 1-OFF 2-OFF 3-OFF 4-OFF 5-OFF 6-OFF SW3: 1-OFF 2-OFF 3-OFF 4-OFF 5-OFF 6-ON SW9: 1-ON 2-ON 3-ON 4-ON 5-OFF 6-OFF SW10 1-ON 2-ON SW11 1-OFF 2-ON SW12 1-ON 2-ON 3-ON 4-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 J8. J8 +---------------------------------------------------+ | O O < Video Out O | (white) | O O O < Video In | (red) +---------------------------------------------------+ 3. Operational Description -------------------------- - Open the "FrameCaptureVideoOut_533.dpj" project in the VisualDSP Integrated Development Environment (IDDE). - Select via #define in FrameCaptureVideoOut.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 "run" (F5) on the toolbar. You should see a copy of the input video in the output screen. - Press pushbutton SW4 to capture a new video frame - Press pushbutton SW7 to terminate the program SOFTWARE HIERARCHY ================== This application consists of the following files: \---BlackfinSDK | +---BFinUtils | SDK-ezkitutilities.c | +---Multimedia | \---FrameCaptureVideoOut | FrameCaptureVideoOut.c | \---ADSP-BF533 readme_FrameCaptureVideoOut_533.txt FrameCaptureVideoOut_533.dpj FrameCaptureVideoOut_533.ldf FrameCaptureVideoOut_533_basiccrt.s FrameCaptureVideoOut_533_heaptab.c \---VisualDSP +---Blackfin | +---lib | +---src | +---drivers | +---deviceaccess | adi_device_access_twi.c | +---decoder | adi_adv7183.c | +---encoder | adi_adv7171.c | +---lcd | | | \---nec | nl6448BC33_54.c | \---twi adi_twi_pseudo.c