any ideas?
Code: Select all
INTERRUPT(IRQ1, 0x2100 )
{
sim.eport.epfr = 0x02;
iprintf("Interrupt1 \n");
}
INTERRUPT(IRQ2, 0x2300 )
{
sim.eport.epfr = 0x08;
iprintf("Interrupt2 \n");
}
INTERRUPT(IRQ3, 0x2500 )
{
sim.eport.epfr = 0x20;
iprintf("Interrupt3 \n");
}
INTERRUPT(IRQ4, 0x2700 )
{
sim.eport.epfr = 0x80;
iprintf("Interrupt4 \n");
}
sim.eport.eppar=0x4444; // All ext int's rising edge
sim.eport.epddr=0x00;
sim.eport.epier=0xAA; //irq1,3,5,7
SetIntc(0, (long)&IRQ1, 1, 1, 1);
SetIntc(0, (long)&IRQ2, 3, 3, 1);
SetIntc(0, (long)&IRQ3, 5, 5, 1);
SetIntc(0, (long)&IRQ4, 7, 7, 1);
Code: Select all
INTERRUPT(ServoIsr,0x2600)
{}
SetIntc(0,(long)GPTAServoIsr,41,4,6);