FPGA_VIP_V101 Video Development Board in-depth debugging summary

Source: Internet
Author: User

FPGA_VIP_V101 has been introduced for more than half a year, the functions of the routine has been transplanted, the main reference Crazybingo routines for porting and the development of a combination of board design a few instances of the routine

Mainly includes:

Hardware configuration:

FPGA:EP4CE6E22C8N (6k logical resource, can be nios developed)

sdram:hy57v641620 (32M, can do video image cache, Nios memory)

Communication interface: 1, USB2.0 (68013 high-speed data communication) 2, USB2.0 (cp2102 USB to serial port)

CMOS camera interface (can be directly connected to OV7670, OV7725, OV9650, OV5642. 30w to 500w pixel camera)

LCD LCD Interface (dynamic LCD refresh, LCD drive, TTL driver, can directly drive most LCD display, can use TTL to LVDS to connect notebook LCD)

VGA display interface (ADV7123 30bit LCD interface, the system is only 16bit, can display 65535 colors)

Power supply Interface (4-6v DC5 interface, can be directly external power supply, laptop USB power is insufficient)

System structure: Backplane + Core board. can be arbitrarily extended

JTAG Download interface: Support to download sof files, JIC files.

TF card, SD Card interface: Nios system can be used for file system operation or FPGA directly operate SD card memory.

First, the basic routine

1, VGA display driver (640*480-1080p)

2, serial communication routines (serial transceiver, using logical resources to build a serial port, the board comes with cp2102, directly through the USB communication)

3, clock, running lights, key control (test the simplest program, verify that the hardware is OK)

4, SDRAM test (through the VGA display SDRAM various pattern effects, dynamic refresh)

5, 68013 for the camera register configuration (currently can automatically identify 7725 and 7670, can be configured as RAW8 output or rgb565 output)

Second, the algorithm routine transplant (source Crazybingo, support original)

1, 7725 camera RGB video display

2, 7725 Camera USB capture RAW format decoding

3, ov7725_rgb888 turn YCbCr444

4, cmos_ov7725_ycbcr422_rgb888

5, Cmos_ov7725_gray_mean_filter

6, Cmos_ov7725_gray_median_filter

7, Cmos_ov7725_gray_sobel

8, Cmos_ov7725_gray_sobel_erosion

9, Cmos_ov7725_gray_sobel_erosion_dilation

Three, LCD drive

1, lcd_display_test800480 (7 inch liquid crystal display 800*600 test)

2, sdram_lcd_display_test800480 (7 inch LCD display SDRAM dynamic refresh content test)

3, lcd_cmos_ov7725_rgb640480 (7 inch LCD camera video test program)

Iv. Next Plan

1, Analog camera access (AV access, PAL decoding)

2, Nios routines Perfect (LCD driver, VGA driver, camera drive, TF file system)

3, integrated routines (VGA display routines, menus, USB video capture, TF file system maintenance, video recording, photo and other functions)

4, TTL to LVDS LCD drive (drive notebook display, large-size liquid crystal)

Current Commissioning Experience

1, the core board suddenly can not work, can not download programs, LED, such as full light.

Check the operating voltage: 3.3v, 2.5v, 1.2v are correct

Question: Suddenly do not work, before the power OK, suddenly inactivated, a succession of two blocks are so. Speculation: false welding, electrostatic damage?

Demolition, repeated verification, can not work, a day after the decision to take a hot air platform to replace the FPGA.

Around all round-trip blowing, re-power, resume work! Speculation: Chassis grounding collapse.

Continue to heat the chassis solder melting welding, the second block also according to this method of treatment, all return to normal, which is determined to be chassis grounding problems.

2, VGA video display flower screen, not synchronized

Check program: found that the camera parameter is 68013 configuration, so check 68013 of the camera configuration mode to be consistent with the FPGA decoding mode, all Raw8, normal

Summary: If you configure the register separately for 68013, you need to carefully check whether 68013 is normal, the initialization mode is consistent with the FPGA decoding mode, the line is ok! can solve the problem

3, VGA video color bias, can display images, but the color is not normal.

Suspicion is weld welding: Carefully check the VGA of each cable, because the color is not correct, can display the image, so the synchronization signal should be no problem.

After re-repair welding, return to normal!

Note: This problem encountered two board, there is a piece of welding, check link relationship is correct, still color deviation, after replacing the IC OK, so also do not rule out adv7123 damage.

4, USB video capture, unreliable, occasionally can link collection, occasionally unsuccessful (68013)

The main suspicion of false welding, but there is no virtual welding, carefully compared with other OK board, also did not find differences,

Only study manuals and reference drawings, found that CS, add0,add1 need to connect low level,

At the beginning of this board design because not much understanding of the chip, and want to retain more choice, so some fixed-level IO through the resistor pull up or pull down, so that easy to change as other applications.

Add0 and ADD1 have been pulled down, except that the CS connection led light is grounded, which may cause the level to be unreliable

Change: Use 1k resistor directly pull down, problem solving, every time can be collected normally, so solve the problem.

5, USB video capture, just start on the power, video images have snowflakes, slowly disappear, and finally no longer appear, each power will have, the first time will be more.

Analysis: Only the beginning of power, the first time when the acquisition will appear, and gradually disappear, currently not resolved

Picture effects are as follows

Just started working on the electricity.

After about 5-10 seconds

At present the speculation may be a hardware problem, but did not find the problem, and the core board is not relevant, on the other floor OK, which heroes have informed you please, careless grateful!

Attachment:

1. User manual

Http://pan.baidu.com/s/1gdgW2Mf

Drawings

Http://pan.baidu.com/s/1qWG5Uyw

Reference Links:

http://item.taobao.com/item.htm?spm=a1z10.1-c.w4004-2613737252.11.ab1vls&id=42772767702

http://item.taobao.com/item.htm?spm=a1z10.3-c.w4002-2707874652.11.mEnnTf&id=42060514081

FPGA_VIP_V101 Video Development Board in-depth debugging summary

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.