2004-07-14 04:12 AM
2004-05-26 03:42 AM
I use STPC consumer II on a PC104. I have got DOS6.22 and I work with TURBOC. I want to use IRQ12 as a hardware interrupt. A square signal is connect on the ISA IRQ12 Pin.
My C program run ok on an old STPC Client but not on STPC consumer II. The program build but when I run it, the program doesn't jump on the interrupt function. #include #include #include void interrupt int_timer(void); void interrupt (*old_int12)(void); #define irq12 0x74 // Adresse de irq12 : Timer unsigned char compteur = 1; void interrupt int_timer(void) { compteur++; outportb(0x20,0x20); //PIC1 EOI outportb(0xA0,0x20); //PIC2 EOI } void main(void) { disable(); old_int12 = getvect(irq12); setvect(irq12,int_timer); outportb(0x20+1,inportb(0x20+1) & ~0x04); outportb(0xA0+1,inportb(0xA0+1) & ~0x10); enable(); getch(); printf(''compteur : %i'', compteur); setvect(irq12,old_int12); // IRQ12 ==> Timer } if you met this problem, would you help me ?2004-07-14 04:12 AM
I guess you've found the bug since the time you posted this. Have you tried to make the interrupt routine output an I/O byte somewhere, like a POST card, just to find if the program enters the interrupt routine?
Felix