interrupt problem
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2004-07-14 4:12 AM
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2004-05-26 3:42 AM
Posted on May 26, 2004 at 12:42
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 ?Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2004-07-14 4:12 AM
Posted on July 14, 2004 at 13:12
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