2007-05-21 02:39 AM
2011-05-17 12:43 AM
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) }