cancel
Showing results for 
Search instead for 
Did you mean: 

Extern IRQ

mgerkens9
Associate II
Posted on May 21, 2007 at 11:39

Extern IRQ

1 REPLY 1
mgerkens9
Associate II
Posted on May 17, 2011 at 09:43

Hi all,

my external interrupt (EXINT 4) doesn't work. I tried all resolutions dicussed before, but my system won't run.

I wor with a STR912FW44 ,a STR910FW32 and the CrossStudio IDE by Rowley.

My Code looks like this:

void init_external_irq (void)

{

SCU_PRR1 |= 0x20000; // Disable Reset from Port 3

SCU_PCGR1 |= 0x20000; // Clock enabling from Port 3

SCU_PRR1 |= 0x2000; // Disable Reset from WIU

SCU_PCGR1 |= 0x2000; // Clock enabling to WIU

WIU_PR = 0xfffc; // Clear all external interrupts

SCU_GPIOIN3 |= 0x38; // Configure Ports to alternative Input

WIU_MR |= 0x10; // Enable external IRQ 4

WIU_CTRL |= 0x02; // Global WIU Interrupt Enable (ext irq)

VIC1_VA9R = (unsigned int)&irq_handler_extern; // Set the address

VIC1_VC9R = 0x29; // Use slot 9 for WIU interrupt (ext irq)

VIC1_INTER |= 0x200; // Enable external IRQ (Bit 4)

}