Forum Discussion
Altera_Forum
Honored Contributor
9 years ago --- Quote Start --- I think you need to consider over-sampling your data, with a much faster clock that won't drop out. 10.519MHz isn't a particularly fast data rate. Sample the pixel data (and pixel clock) using a much faster clock - probably in excess of 50MHz (do you have such a clock available on your hardware?). Based on detecting edges on either pixel data or pixel clock, you will be able to maintain a counter - also driven from the faster clock - which you rely on to determine when to sample the pixel data. This way you're not dependent on the pixel clock. You'll need to come up with a suitable method of counting and determining when to sample the pixel data, for however long you need to deal with the loss of pixel clock. Depending on your source frequency the counter may not be an exact multiple of the pixel clock. You're likely to have to drop/add counts every n pixels (or similar). However, you can also continue to use transitions in the pixel data to help maintain the correct alignment of your counters with respect to the pixel data. Cheers, Alex --- Quote End --- Alex, I got it working with your suggestion of sampling with a higher speed clock. Thanks for the great help!