Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
21615 Discussions

Interruption program

Altera_Forum
Honored Contributor II
4,912 Views

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; 

... 

}
0 Kudos
23 Replies
Altera_Forum
Honored Contributor II
327 Views

Hi, 

 

I never work with external memory and I never had this kind of error, so I cannot be a great help here. Sorry.
0 Kudos
Altera_Forum
Honored Contributor II
327 Views

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.

0 Kudos
Altera_Forum
Honored Contributor II
327 Views

Maybe the clock is not connected

0 Kudos
Reply