FX2 interrupt mixed?

From: Michael Bahrs (mbahrs_at_gmx.de)
Date: 07/28/04


Date: 28 Jul 2004 07:30:20 GMT

Hi everybody

I have a strange problem with a cypress FX2. I want to work with timers
and external events on INT0 and INT1 Pin. (I want to measure the time
beween an event on INT0 and INT1).
 Everything works fine except I get the interrupts IE0, TF0, IE1 and TF1
alltogether on interrupt vector 0x1b (normally only TF1).

If I use 'interrupt 3' everthing works fine. I can enable/disable Timer0
and/or Timer1 and I get the expected result but only on interrupt 3.
The same with INT0 and INT1. I get the events but on interrupt 3.

What's wrong?

When I check main.lst everything seems to be ok:
   0000 630 __interrupt_vect:
   0000 02s00r00 631 ljmp __sdcc_gsinit_startup
   0003 32 632 reti
   0004 633 .ds 7
   000B 32 634 reti
   000C 635 .ds 7
   0013 32 636 reti
   0014 637 .ds 7
   001B 02s01r53 638 ljmp _isr01
   001E 639 .ds 5
   0023 32 640 reti
   0024 641 .ds 7
   002B 32 642 reti
   002C 643 .ds 7
   0033 32 644 reti
   0034 645 .ds 7
   003B 32 646 reti
   003C 647 .ds 7
   0043 02s00r00 648 ljmp _autovector_jump_table_usb
   0046 649 .ds 5
   004B 32 650 reti
   004C 651 .ds 7
   0053 02s00r00 652 ljmp _autovector_jump_table_gpif

How can I get Interrupts on other vectors than 0x1B. Or is it a hardware
problem?
The autovector interrupts work fine.

BTW I use sdcc 2.4.

I hope someone can give me some hints.

Michael Bahrs
  



Relevant Pages

  • Re: [PATCH] x86: Get irq for hpet timer
    ... going on with interrupt lines 0, 2 and 8 which means that the interrupt ... You are correct as far as input lines INT0 and INT2 of the I/O APIC are ... Then the reasons for routing INT0 and INT2 like this are generally ...
    (Linux-Kernel)
  • Re: AVR, polling INT0 IRQ bit - help?
    ... edge detector. ... but what about setting INT0 in EIMSK? ... "External Interrupt Mask Register - EIMSK ... When the INT0 bit is set and the I-bit in the Status Register ...
    (comp.arch.embedded)
  • Re: Help Z180 Interrupt Vector INT0 Mode 2
    ... jump to the interrupt handler. ... void isrv_setup ... > interrupting device must place the lower bits of the vector on the bus. ... If your key is directly connected to INT0, ...
    (comp.arch.embedded)