Home

ANALOG DEVICES EE-181 Interfacing the ADSP-BF535 Blackfin Processor to Single-Chip CIF Digital Camera OV6630 Over the External Memory Bus Manual

image

Contents

1. of these burst patterns to analyze how many cycles are taken for each access Prevu Tees gt a fs se ee 3 00V 1A 84 0ns AL 1 233ns Ch Freq i 121 0MH2 it Secscfuscofvccohccsefccssfesusfrocopccecdocse esecptscohoocahecasseveohcocopescehonc peneeseccoposvehvesspereep al 5 00V CA2 5 00V M20 0ns A Ch2 2 30V 5 Jun 2002 m gt 229 200ns 09 55 30 Figure 3 3 The peripheral clock SCLK is displayed in channel 1 and channel 2 shows the ARE pin After eight read strobes are done nine extra cycles are taken to place the data into internal memory Interfacing the ADSP BF535 Blackfin Processor to Single CHIP CIF Digital Camera OV6630 over the External Memory Bus EE 181 Page 3 of 10 4 Interface the ADSP BF535 Processor into the OV6630 The ADSP BF535 is configured to make full use of its 32 bit external memory interface in order to gain maximum throughput Two 16 bit words from the camera will be packed into one 32 bit word before being read by the Blackfin Processor To interface to the single chip camera LVT16374 latches are used These parts are able to fetch the data received from the video device and latch it until the Asynchronous Interface has been read The 8 867 MHz PCLK of the OV6630 clocks a 74HC74 configured as a 2 divider The 4 43 MHz output then clocks an LVT16374 to fetch the data transmitted by Y 7 0 and UV 7 0 at the rising edge The data will be held in the LVT16374
2. 08010 80108010 80108010 80108010 F000052C 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 F000055C 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 F000058C 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 FO000S5BC 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 0108010 80108010 80108010 F00005EC 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 F000061C 80108010 80108010 80108010 60108010 80108010 60108010 80108010 60108010 80108010 80108010 80108010 60108010 F000064C 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 F000067C 73E98010 75EE75EB BEA 7FO 7 DED6FEA 7 LEC6BEF 7 6ED6DED 84ED7 QEA 82ED74ED 7BEC 7 SEF 80EC83EB 7 3EC8AED 61EA86EB FOO006AC 69EA 7FEC 6BEC 9E8 71EC7FF0 amp 81EC83ED 80E979E9 SBEB 7SEA 7 4EB 7DEB 61EE83EC 75ED7FF0 87EC76EC 83EE6FEC 71EC75EE F00006DC 57EF 73ED S6ED 7FFO 6EEE BEE 7 4EE6CEE 64EF6EEE 65EE80F0 6BEES6EF 6BEC84EC SDEC DEC 71ED 7FEF 87EE8BED 83ED8 9EE F000070C 6BEF76ED 63ED 75F0 BEEE 4ED 6FEE 9EE 7 1LEF CEF 7 SEDS3EF 7AEDSSEF 81EF7FEB 8BEC75EF 91E 774E7 SAEBS7EA 76F088EB F000073C 63EC81EE 67ED8DEF 7 8EC8BEE S4EC 7 FEC 7 EEE6BEB 7FEE69FO 7 SEF69EE 76EE 76F0 7 7EE 3ED 7 3EE6CED 6
3. 2 x 288 The actual resolution is limited due to the limitation of Blackfins external port timing the DMA structure and the internal memory The external port halts during the I O processor loads the next DMA descriptor when it has been expired That causes a large gap in the timing mentioned in chapter 3 and would not meet the requirement set by the camera A way out of this problem is to set up the DMA downloading each frame separately So a DMA expires after receiving each frame and will be reloaded during the camera send blank data anyway The camera sends blank data between each line and each frame The DMA Word Count Register is limited to the maximum of 65 536 2416 A frame of CIF format video in 4 2 2 standard is represented by 202 752 bytes 352 288 pixels 2 bytes The Processor accesses over a 32 bit interface results in 50 688 words 202 752bytes 4 bytes word That fits in the DMAs Word Count Register Resolutions higher than CIF could probably not be served by the DMA on a frame by frame ANALOG DEVICES basis That causes the DMA to become reloaded during active video pixel transfers and results in data misses Building an interface like it is done in this note the access to SDRAM or SRAM is not supported anymore Except the use of the PCI SPORT SPI and USB data can just be stored in L1 or L2 memory The ADSP BF535 provides 52k of L1 memory and 256k bytes of L2 memory L2 memory is be able to keep one fr
4. 80108010 F000094C 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 F00009DC 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 F0000 0C 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 F000043C 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 F0000 6C 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 FOOO0A9C 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 F0000ACC 80108010 80108010 80108010 80108010 80108010 80108010 80108010 6BEA8010 71EE83F0 73EE80EF 7FEC85EB 7 BEASEED FOOO0AFC 77EC86EA 87 EBSCEE 89ECS8SEA 84EE83ED 7CEC87EE 75EB82EA 65EC7FEB SDEC8SEC 63ED8BEC 7CEC87F0 8DEA84EC 89EA 7S3E9 FO000B2C CEC DEC 6FEC8 3EC 6DEE 7 FEC 6DEE BEE 81ED80EC 7DED95EE 64ED8EEC 53ED7 BEF 61F06DED 7 7EA DFO DEA FES 6CEE 8EB Figure 5 2 Interfacing the ADSP BF535 Blackfin Processor to Single CHIP CIF Digital Camera OV6630 over the External Memory Bus EE 181 Page 7 of 10 Conclusion The goal of this project is to show how video sources can be connected to the ADSP BF535 with less glue logic as possible In fact the maximum resolution that can be achieved is video in formats up to CIF 35
5. 9EF 7FO 67EE DEF FO00076C 6CEC 77ED 7 BEE SEE 81EB 7BEC 7 7EE SEE 6FEE6CEE 6EFO6DEF 75F079F0 7 FED BEE S4F07 AEF 81F07BFO 7 SEE BEE 61EE 7S8EF F000079C S6EC 79ED 60EF 9EE 67F077F0 6EEE6FEE 64EC 73ED S3EF 7FED SCFOSBFO 64EC8BFO 74F076ED 67EE73F0 67F07SEE 7OEF BFO F00007CC 74EA83EB 6EEES6EE 7 3EE81ED 76EC87F0 7EEE88EE 85ED7DEE 6FEE BEE SBED SEE SBEC6 9EC 7 3EE67FO 7 BEC66EC 85EB 2ED FO0007FC 93EC70EB 8CE970EA 6DEA 9E8 SFEC DED 6DEC 7 FEC 74ED FEC 7 OEC6FED 7 AEC6FEC 7BEE75ED 6FF074F0 52ED71F0 57F06BEE F000082C 63EC67EE 63E86AEA 6BEB 7SE9 6BEF BEE 6EEB CEF 7CEA7 4EB 76ED6DEC 66EE71EE 6EEES4FO S0F08CEE 85EC89EE DEA FEA FO00085C BEC BEE 6BED7 5EB SBFO 73EE SDFO6FFO 77EC76F0 85EE89EE 79EE8FEC 63EE8FF0 62EE85ED 68EC80EC 63ED87ED 65EBS4EE FO00088C 6FEA 7SEA 7 4EC6CED 7 AEE6CEE 74EC71EE 7BE875EC 7DEA70E9 77EE7 0EB 61EC7FEE 69ED84EC 6FEC85EF 67ED83ED 65F081EF FOO008BC 65EE80F0 64EE7FEE 69EE 7BFO 6BED6DEC 63EE71EE 61EC83ED 69EBS6EB SDEF 8ED SFFO 74F0O 63EE78F0 6FEDS0EE 7 3EE 6EE F00008EC 73EB6FEC 84EE6DED 8BED6 4EE 83EF5DED 78EB66EE 7 SED66EA 6DFO064F0 7EE QEF 83F079F0 84EE76EE 86F077F0 89F073F0 F000091C 85F06EF0 84F075F0 87F07FF0 80EF73F0 7EEE6 7EE 7CF064F0 7DEE6BF0 9CF07 FEF 801081F0 80108010 80108010 80108010 F000094C 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 F000097C 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010
6. C 7 3EE6SEC 7 1LEA66EE SEF6CEC FO0002EC 71EE BEE 7 BED FED 74EC 7 DEA S4EBS1EC SSEF 7FED 67EE71F0 7 O0ED6DED 7BE9 7 AEB 7BEC87EC 71F077ED 77F07BF0 7BEES1F0 FO00031C 7DEA8SED 7CEA83EB 6FFO8SEB 61F07FFO 6DFO7BFO 7CEC CEE 80EE 79EF 71EF SEF 7 1LEE6 DEE 7 3EF6CEE 65F07BEF 62EESBFO FO00034C 60EA8BED 6FEE 7FEE 77EE7DF0 74EB7CEC 69EE83EC 6DEDs6F0 65EC84EC 67EE 7FEE 6CEB 7DEA 6FFO8SEF 7 LED FEF 7 7EF DFO FO00037C 7CEA7EED 7 3EC6FEA 65EB65ED 6CED61EC 7CEB6BF0 7DE967E7 7BED6BF0 7 3EA7 BEB 73EC81EB 6FEC83ED 67EB 8EC 6FEE69ED FOO003AC 79EE6S5EF BEC6FEE 7 3EE BED SBEE CEF 53EF 70EE 58EC65EE 63EB69EA 7 AED BEC 7CFO 7DEF 71F077F0 84ED6FED 83EE6CED F00003DC 73F069EF 6BED SEE 71F083EE 7EBSBEF 80EB89EC 84EC83EC 7BEE7EED 63F078F0 53F070EE 67EE79EE 7BEC7 DEF 75F080EE F000040C 68EF84F0 SFED FED 67ED80EE 6BEES7EF 67E983EC 7 7EC BEC 83ED6CEC 7BEE6 3ED 75EB70ED 83E875EC 88EC72E8 74EE6DEC F000043C 69EE76EE 77ED7EED 7CEC86F0 7EEE8CED 69F081EE S6FO79F0 S1EE 7BFO 53EC 79EE 59ED6EEB 61F073F0 62EE7BFO 80EE7EED FO00046C 7FEE 7SEE 62F073EF 60EE7EFO 7 SECS80EC 7 FEE 0EF 7 DED68EE 7 7ED69EE 7 3EC63EC 7 FOSFED 7FEE63F0 85EE65ED 83F06CEF F000049C 88F071F0 86F06FF0 87EF73F0 SAEF SEE 8BEF BFO 93F07DFO 8SFO7FFO 87FO7CFO 8FF077F0 8CED 5ED 8BF073F0 93EF76F0 F00004CC 9DF073EE 801078F0 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 F00004FC 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010 801
7. Engineer To Engineer Note EE 181 ANALOG Technical Notes on using Analog Devices DSP components and development tools Contact our technical support by phone 800 ANALOG D or e mail dsp support analog com DEVICES Or visit our on line resources http www analog com dsp and http www analog com dsp EZAnswers Interfacing the ADSP BF535 Blackfin Processor to Single CHIP CIF Digital Camera OV6630 over the External Memory Bus Contributed by Thorsten Lorenzen 1 Introduction The purpose of this note is to describe how to hook up video devices like a CIF Common Interface Format Single Chip Digital Camera to the external bus of the ADSP BF535 Blackfin Processor Because of its architecture and video processing capabilities Blackfin Processors will interface with video devices The ADSP BF535 as the first part of the Blackfin family is not equipped with a standard interface that glueless interact with video devices This note is dedicated to show how the Asynchronous Interface can be used to receive video in CIF SIZES 2 Output Format of the OV6630 The OV6630 is a CMOS Image sensor provided as a single chip video imaging camera device designed to provide a high level functionality in a single small footprint package For more details about the functionality it is referred to the internet address below In order to explain the way been accessed by the ADSP BF535 Processor see the schematic of the required output pins in figur
8. ame of video in CIF consisting of 202 752 bytes Higher resolutions does not fit in it A picture of the system is shown in figure Cl Video transfers with higher resolutions than CIF it is revered to the Note Interfacing the ADSP BF535 to ADV7185 3 NTSC PAL video decoder over the External Memory Bus This Note is available soon Interfacing the ADSP BF535 Blackfin Processor to Single CHIP CIF Digital Camera OV6630 over the External Memory Bus EE 181 Page 8 of 10 ANALOG DEVICES Figure C1 References www ovt com OV6630 Datasheet OV7610MD Eva Board ADSP BF535 Datasheet ADSP BF535 Blackfin DSP Hardware Reference VisualDSP 3 0 Interfacing the ADSP BF535 Blackfin Processor to Single CHIP CIF Digital Camera OV6630 over the External Memory Bus EE 181 Page 9 of 10 ANALOG DEVICES Document History April 17 2003 Ported code example to VisualDSP 3 1 Changed according to new Blackfin naming convention January 23 2003 Typos Schematics Gerber files and PDFs are attached to the web site January 09 2003 Initial release Interfacing the ADSP BF535 Blackfin Processor to Single CHIP CIF Digital Camera OV6630 over the External Memory Bus EE 181 Page 10 of 10
9. e 2 1 The datasheet for the OV6630 can be found at www ovt com As it can be seen in figure 2 1 the pins Y 7 0 and UV 7 0 are required to transfer data The PCLK represents the clock aligned to the data Each raising edge of the PCLK will indicate valid data on the bus These pins are necessary April 17 2003 and must be linked to the ADSP BF535 for data transfers Additionally some pins are required for device control and configuration purposes The pin HREF asserted polarity can be chosen indicates active video pixels image data Y 7 0 Analog Pressing UV 7 0 Formatter Video port Column Sense Amp S Exposure WB lt lt lt Detect Detect e Exposure WB SCCB Control Control Interface 356x292 Image Array Video Timig Generator yi a p am H XCLK1 VSYNC FODD CHSYNC AGCEN AWBTH AWBTM SIO 1 SI0 0 SCCEB Figure 2 1 Because of the programmable sensor size as it 1s discussed below HREF provides a way to distinguish between active video pixels and blank data The blank data of the modified senor field will also be transferred and is represented by hex 10 on Y 7 0 and hex 80 UV 7 0 Figure 2 2 shows a transfer of one pixel blanking and HREF indicating an active pixel Due to the configuration the sensor is set to output over a 16 bit bus in this note One pixel exists of one byte of luminance and one byte of Copyright 2003 Analog Devices I
10. ms x Figure 3 1 As mentioned in the ADSP BF535_ Blackfin Hardware Reference Manual after a read cycle is initiated the Async Memory Select line AMS Async Ouput Enable line AOE and the Async Read Enable line ARE become asserted After a multicycle Read Access delay Configured by the Async Interface Bank Control Register the ARE pin normally de assert to complete the read operation But if the interface 1s configured to extend the access the ARE pin remains low until the ARDY pin has been sampled high The data will be fetched one cycle after this happened Due to the architecture of the ADSP BF535 a DMA controlled data download is somewhat non intuitive Each data transfer is split into bursts of eight read access After the burst a gap appears because of internal bus activity Figure 3 2 illustrates this As shown in the figure the first DMA 1s set up to read 32 data words shown as Channel 2 the ARE signal The large gap before the next DMA is required for loading the next DMA descriptor ANALOG Prevu i To p mm nn nn S Ss D i Xi Ch1 Freq 127 7MH2 Chi 5 00V WB 5 00V M200nsl A Ch2 2 40V 24 Apr 2002 iy 37 200ns je ra ae A Figure 3 2 Note also that each DMA transfer is split into bursts of eight accesses in this configuration four bursts per DMA execution Understanding this behavior is crucial for developing a proper DMA interface Figure 3 3 zooms into one
11. nc All rights reserved Analog Devices assumes no responsibility for customer product design or the use or application of customers products or for any infringements of patents or rights of others which may result from Analog Devices assistance All trademarks and logos are property of their respective holders Information furnished by Analog Devices Applications and Development Tools Engineers is believed to be accurate and reliable however no responsibility is assumed by Analog Devices regarding technical accuracy and topicality of the content provided in Analog Devices Engineer to Engineer Notes chrominance information that can be transferred the same time PCLK HREF Y 7 0 UV 7 0 Repeat for all data bytes Pixel Data 16 bit Timing PCLK rising edge latches data bus Figure 2 2 The windowing feature of the OV6630 image sensors allows user definable window sizing as required by the application Window size setting in pixels ranges from 2 x 2 to 356 x 292 and can be positioned anywhere inside the 356 x 292 boundary Note that modifying window size and or position does not change frame or data rate The OV6630 imager alters the assertion of the HREF signal to be consistent with the programmed horizontal and vertical region The default output window is 352 x 288 Figure 2 3 shows it graphically column start column end HREF column re J 5 v m Display Window ne eb o Sensor Array Fig
12. o transfers The memory will be filled just with active video data To detect the first line of each frame the VSYNC signal can be used as mentioned in section 2 VSYNC is connected to a programmable flag and generates an interrupt before the start of a frame This interrupt will enable the DMA transfer Figure 5 1 shows how the timing requirements of the camera and the Processor are met Interfacing the ADSP BF535 Blackfin Processor to Single CHIP CIF Digital Camera OV6630 over the External Memory Bus EE 181 Page 4 of 10 ANALOG DEVICES LYT las i4 iE am LA T a Lr Ch O Vee sO GPIO GPIO PTO CLO ETM SCC BSCL SCC Bis Da FWDH AC CLE1I 17 27 MHz Figure 4 1 Interfacing the ADSP BF535 Blackfin Processor to Single CHIP CIF Digital Camera OV6630 over the External Memory Bus EE 181 Page 5 of 10 ANALOG DEVICES OV6630 PCLCK 8 867 MHz OV6630 Data Port a CM XX AK XX AA XK o 74HC74 Q0 to Top LVT16374 CK mesrone ETP LLLP LP LPL Bottom LVT16374 CK l ARDY AOE Top LVT16374 Q 15 0 To DSP D 15 0 Figure 5 1 Interfacing the ADSP BF535 Blackfin Processor to Single CHIP CIF Digital Camera OV6630 over the External Memory Bus EE 181 Page 6 of 10 ANALOG DEVICES BLACKFIN Memory Hex32 DESTINATION1 FO0002BC 69ED 7ED 6DE96FEC BES 74E6 83E985E 7FEFSOEA 7 BEES OEC 7 9EC8DEF 7 SEC6FEC 7LEA SE
13. until the next rising edge of the CLOCK CK appears When OE asserts the Processor reads the data latched by the LVT16374 The ARDY pin is used to synchronize the video data with the ADSP BF535 As long as the ARDY pin is low the access is held off This way the camera is able to control the asynchronous memory interface By routing a GPIO pin to the PWDN pin of the OV6630 the sensor can be turned off without the lose of configurations done during setup time by the SCCB bus By routing a GPIO pin to the PWDN pin of the OV6630 the sensor can be turned off without the lose of configurations done during setup time by the SCCB bus 5 Data Structure and Improvements As mentioned in section 2 the camera sends active data plus blanking data sequentially Blanking data does fill the internal memory but doesn t contain any useful information ANALOG DEVICES The ADSP BF535 provides 256kBytes of internal L2 Memory One frame of CIF video contains 352 X 288 pixels Each pixel can be represented in two bytes under the 4 2 2 digital component video representation This equates to 202 752 bytes per frame As shown in Figure 5 2 storing the blanking data as well would obviously cause the memory to overflow The use of the AND gate shown in Figure 4 1 stops the data transfer to avoid storing blanking data to the internal memory The AND gate is controlled by the HREF signal of the camera HREF remains high during active vide
14. ure 2 3 In order to detect the first line of each frame the signal VSYNC asserts before Figure 2 4 shows ANALOG DEVICES the VSYNC pin on channel 1 and the HREF pin on channel 4 It can be seen 1f the sensor is set to transfer e g 200 lines the HREF will be asserted 200 times also Each start of frame will be indicated by VSYNC around 2 ms before HREF asserts Prevyu i TE D perm EE E E 200mMY i 100mY LA 32 6ms 1 87ms Chi Freq E 22 21 H2 Low signal amplitude tA a a x Par 28 May 2002 uy 3 27000ms 10 50 47 Figure 2 4 The video output port of the OV6630 image sensor provides a number of output format standard options to suit many different application requirements These formats are user programmable through Omnivision s SCCB two wire control interface The OV6630 imager supports both ITU 601 and ITU 656 output formats in different configurations In this note the sensor is set to provide differential video signals YUV 4 2 2 16 bit wide and clocked at 8 867MHz PCLK 3 Asynchronize Interface of the ADSP BF535 Blackfin Processor The Processors asynchronous interface is used to receive the video data 32 bit data can be fetched in a manner it is shown in figure 3 1 Interfacing the ADSP BF535 Blackfin Processor to Single CHIP CIF Digital Camera OV6630 over the External Memory Bus EE 181 Page 2 of 10 Setup Programmed Read Access Ready Sampled Latched m

Download Pdf Manuals

image

Related Search

ANALOG DEVICES EE 181 Interfacing the ADSP BF535 Blackfin Processor to Single Chip CIF Digital Camer

Related Contents

                SHARP EL6590 EL6560 Operation Manual    

Copyright © All rights reserved.
DMCA: DMCA_mwitty#outlook.com.