- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi everyone, I'm having problems interfacing OV7670 Data to Nios II.
The OV7670 Camera, sends pixel data from a PIO D[7:0], and this data is synchronizated with a clock called PCLK, the PCLK can be configured and the Fmax = 24 MHz to get 30 fps and the frame is configured as a 640x480 resolution, each pixel is sending in 2 bytes, now I want to performace the operation of reading the data by using DMA to store each frame into the SDRAM (Nios II is configured with SDRAM as main memory) but i don't know if is possible to synchronyzate the DMA with the PCLK clock, is it possible? Or there is another method to read the data without get it using Nios II? Thanks in advance!Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I recommend leaving the Nios and DMA cores on their own clock domain and just have the data cross clock domains using a FIFO (search for "FIFO" in Qsys and you'll find a couple of them). So you would push the pixels into the FIFO at 24MHz and then have the DMA empty the FIFO at a much higher speed. Make sure to make the FIFO depth large so that you can handle gaps between frames without underflowing.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page