- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I am trying to do an interruption of a video signal. I am using the hsmc quad video card of Bitec associated to a cyclone III C25 Altera card. An interruption is supposed to be generated at each frame. First of all, I don't really understand what is the context, and what I should put in the edge_capture variable. I tried to adapt the interuption program which worked on buttons but no success. It should print "coincoin" whenever an interruption occurs. I put below the parts of my program corresponding to the interruption. Tell me if you need more details. Thanks for helping, Myriam Program : volatile int pouet=0; volatile int edge_capture; static void handle_DMA_interrupts(void* context, alt_u32 id) { volatile int* edge_capture_ptr = (volatile int*) context; if (pouet==0) pouet = 1; } Then in, the main : ... IOWR(video_in_base[0], 0x0, 0x08 ); // enable bit for interrupt IOWR_ALTERA_AVALON_PIO_IRQ_MASK(VIDEO_1_BASE, 0x01); alt_irq_register( VIDEO_1_IRQ,&edge_capture, handle_DMA_interrupts ); while ( 1 == 1 ) { if (pouet == 1) {printf("coincoin"); pouet == 0; } ... }Link Copied
- « Previous
-
- 1
- 2
- Next »
23 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I never work with external memory and I never had this kind of error, so I cannot be a great help here. Sorry.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try to compile a memory test software example. Run it from the on-chip memory and have it test the sdram. It should give you some clues about the problem you have.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Maybe the clock is not connected

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
- « Previous
-
- 1
- 2
- Next »